diff --git a/app/Console/Commands/ResetLog.php b/app/Console/Commands/ResetLog.php index 8342b5c..83eb631 100644 --- a/app/Console/Commands/ResetLog.php +++ b/app/Console/Commands/ResetLog.php @@ -3,13 +3,9 @@ namespace App\Console\Commands; use App\Models\Log; -use App\Models\Plan; use App\Models\StatServer; use App\Models\StatUser; -use App\Utils\Helper; use Illuminate\Console\Command; -use App\Models\User; -use Illuminate\Support\Facades\DB; class ResetLog extends Command { diff --git a/app/Helpers/Functions.php b/app/Helpers/Functions.php index d601f4e..58c7123 100644 --- a/app/Helpers/Functions.php +++ b/app/Helpers/Functions.php @@ -1,5 +1,6 @@ toArray(); + return $setting->toArray(); } if (is_array($key)) { - App::make(Setting::class)->save($key); + $setting->save($key); return ''; } + $default = config('v2board.'. $key) ?? $default; - return App::make(Setting::class)->get($key) ?? $default ; + return $setting->get($key) ?? $default; + } +} + +if (! function_exists('admin_settings_batch')) { + /** + * 批量获取配置参数,性能优化版本 + * + * @param array $keys 配置键名数组 + * @return array 返回键值对数组 + */ + function admin_settings_batch(array $keys): array + { + return Setting::getInstance()->getBatch($keys); } } diff --git a/app/Http/Controllers/V2/Admin/ConfigController.php b/app/Http/Controllers/V2/Admin/ConfigController.php index e36e843..5f246fa 100644 --- a/app/Http/Controllers/V2/Admin/ConfigController.php +++ b/app/Http/Controllers/V2/Admin/ConfigController.php @@ -6,7 +6,6 @@ use App\Http\Controllers\Controller; use App\Http\Requests\Admin\ConfigSave; use App\Protocols\Clash; use App\Protocols\ClashMeta; -use App\Protocols\Loon; use App\Protocols\SingBox; use App\Protocols\Stash; use App\Protocols\Surfboard; @@ -17,7 +16,6 @@ use App\Services\ThemeService; use App\Utils\Dict; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; -use Illuminate\Support\Facades\Log; class ConfigController extends Controller { @@ -84,22 +82,29 @@ class ConfigController extends Controller return $this->success(true); } - /** - * 获取自定义规则文件路径,如果不存在则返回默认文件路径 - * - * @param string $customFile 自定义规则文件路径 - * @param string $defaultFile 默认文件名 - * @return string 文件名 - */ - private function getRuleFile(string $customFile, string $defaultFile): string - { - return File::exists(base_path($customFile)) ? $customFile : $defaultFile; - } - public function fetch(Request $request) { $key = $request->input('key'); - $data = [ + + // 构建配置数据映射 + $configMappings = $this->getConfigMappings(); + + // 如果请求特定分组,直接返回 + if ($key && isset($configMappings[$key])) { + return $this->success([$key => $configMappings[$key]]); + } + + return $this->success($configMappings); + } + + /** + * 获取配置映射数据 + * + * @return array 配置映射数组 + */ + private function getConfigMappings(): array + { + return [ 'invite' => [ 'invite_force' => (bool) admin_setting('invite_force', 0), 'invite_commission' => admin_setting('invite_commission', 10), @@ -141,7 +146,6 @@ class ConfigController extends Controller 'default_remind_expire' => (bool) admin_setting('default_remind_expire', 1), 'default_remind_traffic' => (bool) admin_setting('default_remind_traffic', 1), 'subscribe_path' => admin_setting('subscribe_path', 's'), - ], 'frontend' => [ 'frontend_theme' => admin_setting('frontend_theme', 'Xboard'), @@ -197,70 +201,23 @@ class ConfigController extends Controller 'password_limit_expire' => admin_setting('password_limit_expire', 60) ], 'subscribe_template' => [ - 'subscribe_template_singbox' => (function () { - $content = $this->getTemplateContent( - $this->getRuleFile(SingBox::CUSTOM_TEMPLATE_FILE, SingBox::DEFAULT_TEMPLATE_FILE)); - return json_encode(json_decode($content), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - })(), - 'subscribe_template_clash' => (string) $this->getTemplateContent( - $this->getRuleFile(Clash::CUSTOM_TEMPLATE_FILE, Clash::DEFAULT_TEMPLATE_FILE) + 'subscribe_template_singbox' => $this->formatTemplateContent( + admin_setting('subscribe_template_singbox', $this->getDefaultTemplate('singbox')), + 'json' ), - 'subscribe_template_clashmeta' => (string) $this->getTemplateContent( - $this->getRuleFile( - ClashMeta::CUSTOM_TEMPLATE_FILE, - $this->getRuleFile(ClashMeta::CUSTOM_CLASH_TEMPLATE_FILE, ClashMeta::DEFAULT_TEMPLATE_FILE) - ) - ), - 'subscribe_template_stash' => (string) $this->getTemplateContent( - $this->getRuleFile( - Stash::CUSTOM_TEMPLATE_FILE, - $this->getRuleFile(Stash::CUSTOM_CLASH_TEMPLATE_FILE, Stash::DEFAULT_TEMPLATE_FILE) - ) - ), - 'subscribe_template_surge' => (string) $this->getTemplateContent( - $this->getRuleFile(Surge::CUSTOM_TEMPLATE_FILE, Surge::DEFAULT_TEMPLATE_FILE) - ), - 'subscribe_template_surfboard' => (string) $this->getTemplateContent( - $this->getRuleFile(Surfboard::CUSTOM_TEMPLATE_FILE, Surfboard::DEFAULT_TEMPLATE_FILE) - ) + 'subscribe_template_clash' => admin_setting('subscribe_template_clash', $this->getDefaultTemplate('clash')), + 'subscribe_template_clashmeta' => admin_setting('subscribe_template_clashmeta', $this->getDefaultTemplate('clashmeta')), + 'subscribe_template_stash' => admin_setting('subscribe_template_stash', $this->getDefaultTemplate('stash')), + 'subscribe_template_surge' => admin_setting('subscribe_template_surge', $this->getDefaultTemplate('surge')), + 'subscribe_template_surfboard' => admin_setting('subscribe_template_surfboard', $this->getDefaultTemplate('surfboard')) ] ]; - if ($key && isset($data[$key])) { - return $this->success([ - $key => $data[$key] - ]); - } - ; - // TODO: default should be in Dict - return $this->success($data); } public function save(ConfigSave $request) { $data = $request->validated(); - // 处理特殊的模板设置字段,将其保存为文件 - $templateFields = [ - 'subscribe_template_clash' => Clash::CUSTOM_TEMPLATE_FILE, - 'subscribe_template_clashmeta' => ClashMeta::CUSTOM_TEMPLATE_FILE, - 'subscribe_template_stash' => Stash::CUSTOM_TEMPLATE_FILE, - 'subscribe_template_surge' => Surge::CUSTOM_TEMPLATE_FILE, - 'subscribe_template_singbox' => SingBox::CUSTOM_TEMPLATE_FILE, - 'subscribe_template_surfboard' => Surfboard::CUSTOM_TEMPLATE_FILE, - ]; - - foreach ($templateFields as $field => $filename) { - if (isset($data[$field])) { - $content = $data[$field]; - // 对于JSON格式的内容,确保格式化正确 - if ($field === 'subscribe_template_singbox' && is_array($content)) { - $content = json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - } - $this->saveTemplateContent($filename, $content); - unset($data[$field]); // 从数据库保存列表中移除 - } - } - foreach ($data as $k => $v) { if ($k == 'frontend_theme') { $themeService = app(ThemeService::class); @@ -268,29 +225,86 @@ class ConfigController extends Controller } admin_setting([$k => $v]); } - // \Artisan::call('horizon:terminate'); //重启队列使配置生效 + return $this->success(true); } /** - * 保存规则模板内容到文件 + * 格式化模板内容 * - * @param string $filepath 文件名 - * @param string $content 文件内容 - * @return bool 是否保存成功 + * @param mixed $content 模板内容 + * @param string $format 输出格式 (json|string) + * @return string 格式化后的内容 */ - private function saveTemplateContent(string $filepath, string $content): bool + private function formatTemplateContent(mixed $content, string $format = 'string'): string { - $path = base_path($filepath); - try { - File::put($path, $content); - return true; - } catch (\Exception $e) { - Log::error('保存规则模板失败', [ - 'filepath' => $path, - 'error' => $e->getMessage() - ]); - return false; + return match ($format) { + 'json' => match (true) { + is_array($content) => json_encode( + value: $content, + flags: JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + ), + + is_string($content) && str($content)->isJson() => rescue( + callback: fn() => json_encode( + value: json_decode($content, associative: true, flags: JSON_THROW_ON_ERROR), + flags: JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + ), + rescue: $content, + report: false + ), + + default => str($content)->toString() + }, + + default => str($content)->toString() + }; + } + + /** + * 获取默认模板内容 + * + * @param string $type 模板类型 + * @return string 默认模板内容 + */ + private function getDefaultTemplate(string $type): string + { + $fileMap = [ + 'singbox' => [SingBox::CUSTOM_TEMPLATE_FILE, SingBox::DEFAULT_TEMPLATE_FILE], + 'clash' => [Clash::CUSTOM_TEMPLATE_FILE, Clash::DEFAULT_TEMPLATE_FILE], + 'clashmeta' => [ + ClashMeta::CUSTOM_TEMPLATE_FILE, + ClashMeta::CUSTOM_CLASH_TEMPLATE_FILE, + ClashMeta::DEFAULT_TEMPLATE_FILE + ], + 'stash' => [ + Stash::CUSTOM_TEMPLATE_FILE, + Stash::CUSTOM_CLASH_TEMPLATE_FILE, + Stash::DEFAULT_TEMPLATE_FILE + ], + 'surge' => [Surge::CUSTOM_TEMPLATE_FILE, Surge::DEFAULT_TEMPLATE_FILE], + 'surfboard' => [Surfboard::CUSTOM_TEMPLATE_FILE, Surfboard::DEFAULT_TEMPLATE_FILE], + ]; + + if (!isset($fileMap[$type])) { + return ''; } + + // 按优先级查找可用的模板文件 + foreach ($fileMap[$type] as $file) { + $content = $this->getTemplateContent($file); + if (!empty($content)) { + // 对于 SingBox,需要格式化 JSON + if ($type === 'singbox') { + $decoded = json_decode($content, true); + if (json_last_error() === JSON_ERROR_NONE) { + return json_encode($decoded, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + } + } + return $content; + } + } + + return ''; } } diff --git a/app/Http/Controllers/V2/Admin/SystemController.php b/app/Http/Controllers/V2/Admin/SystemController.php index 2fc83b5..b56ae68 100644 --- a/app/Http/Controllers/V2/Admin/SystemController.php +++ b/app/Http/Controllers/V2/Admin/SystemController.php @@ -130,7 +130,7 @@ class SystemController extends Controller $pageSize = $request->input('page_size') >= 10 ? $request->input('page_size') : 10; $level = $request->input('level'); $keyword = $request->input('keyword'); - + $builder = LogModel::orderBy('created_at', 'DESC') ->when($level, function ($query) use ($level) { return $query->where('level', strtoupper($level)); @@ -138,16 +138,16 @@ class SystemController extends Controller ->when($keyword, function ($query) use ($keyword) { return $query->where(function ($q) use ($keyword) { $q->where('data', 'like', '%' . $keyword . '%') - ->orWhere('context', 'like', '%' . $keyword . '%') - ->orWhere('title', 'like', '%' . $keyword . '%') - ->orWhere('uri', 'like', '%' . $keyword . '%'); + ->orWhere('context', 'like', '%' . $keyword . '%') + ->orWhere('title', 'like', '%' . $keyword . '%') + ->orWhere('uri', 'like', '%' . $keyword . '%'); }); }); - + $total = $builder->count(); $res = $builder->forPage($current, $pageSize) ->get(); - + return response([ 'data' => $res, 'total' => $total @@ -174,4 +174,126 @@ class SystemController extends Controller 'page_size' => $pageSize, ]); } + + /** + * 清除系统日志 + * + * @param Request $request + * @return \Illuminate\Http\JsonResponse + */ + public function clearSystemLog(Request $request) + { + $request->validate([ + 'days' => 'integer|min:1|max:365', + 'level' => 'string|in:info,warning,error,all', + 'limit' => 'integer|min:100|max:10000' + ], [ + 'days.required' => '请指定要清除多少天前的日志', + 'days.integer' => '天数必须为整数', + 'days.min' => '天数不能少于1天', + 'days.max' => '天数不能超过365天', + 'level.in' => '日志级别只能是:info、warning、error、all', + 'limit.min' => '单次清除数量不能少于100条', + 'limit.max' => '单次清除数量不能超过10000条' + ]); + + $days = $request->input('days', 30); // 默认清除30天前的日志 + $level = $request->input('level', 'all'); // 默认清除所有级别 + $limit = $request->input('limit', 1000); // 默认单次清除1000条 + + try { + $cutoffDate = now()->subDays($days); + + // 构建查询条件 + $query = LogModel::where('created_at', '<', $cutoffDate->timestamp); + + if ($level !== 'all') { + $query->where('level', strtoupper($level)); + } + + // 获取要删除的记录数量 + $totalCount = $query->count(); + + if ($totalCount === 0) { + return $this->success([ + 'message' => '没有找到符合条件的日志记录', + 'deleted_count' => 0, + 'total_count' => $totalCount + ]); + } + + // 分批删除,避免单次删除过多数据 + $deletedCount = 0; + $batchSize = min($limit, 1000); // 每批最多1000条 + + while ($deletedCount < $limit && $deletedCount < $totalCount) { + $remainingLimit = min($batchSize, $limit - $deletedCount); + + $batchQuery = LogModel::where('created_at', '<', $cutoffDate->timestamp); + if ($level !== 'all') { + $batchQuery->where('level', strtoupper($level)); + } + + $idsToDelete = $batchQuery->limit($remainingLimit)->pluck('id'); + + if ($idsToDelete->isEmpty()) { + break; + } + + $batchDeleted = LogModel::whereIn('id', $idsToDelete)->delete(); + $deletedCount += $batchDeleted; + + // 避免长时间占用数据库连接 + if ($deletedCount < $limit && $deletedCount < $totalCount) { + usleep(100000); // 暂停0.1秒 + } + } + + return $this->success([ + 'message' => '日志清除完成', + 'deleted_count' => $deletedCount, + 'total_count' => $totalCount, + 'remaining_count' => max(0, $totalCount - $deletedCount) + ]); + + } catch (\Exception $e) { + return $this->error('清除日志失败:' . $e->getMessage()); + } + } + + /** + * 获取日志清除统计信息 + * + * @param Request $request + * @return \Illuminate\Http\JsonResponse + */ + public function getLogClearStats(Request $request) + { + $days = $request->input('days', 30); + $level = $request->input('level', 'all'); + + try { + $cutoffDate = now()->subDays($days); + + $query = LogModel::where('created_at', '<', $cutoffDate->timestamp); + if ($level !== 'all') { + $query->where('level', strtoupper($level)); + } + + $stats = [ + 'days' => $days, + 'level' => $level, + 'cutoff_date' => $cutoffDate->format(format: 'Y-m-d H:i:s'), + 'total_logs' => LogModel::count(), + 'logs_to_clear' => $query->count(), + 'oldest_log' => LogModel::orderBy('created_at', 'asc')->first(), + 'newest_log' => LogModel::orderBy('created_at', 'desc')->first(), + ]; + + return $this->success($stats); + + } catch (\Exception $e) { + return $this->error('获取统计信息失败:' . $e->getMessage()); + } + } } diff --git a/app/Http/Routes/V2/AdminRoute.php b/app/Http/Routes/V2/AdminRoute.php index fbfd513..05de19d 100644 --- a/app/Http/Routes/V2/AdminRoute.php +++ b/app/Http/Routes/V2/AdminRoute.php @@ -192,6 +192,8 @@ class AdminRoute $router->get('/getQueueMasters', '\\Laravel\\Horizon\\Http\\Controllers\\MasterSupervisorController@index'); $router->get('/getSystemLog', [SystemController::class, 'getSystemLog']); $router->get('/getHorizonFailedJobs', [SystemController::class, 'getHorizonFailedJobs']); + $router->post('/clearSystemLog', [SystemController::class, 'clearSystemLog']); + $router->get('/getLogClearStats', [SystemController::class, 'getLogClearStats']); }); // Update diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 38e707a..b24a471 100644 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -9,29 +9,60 @@ class Setting extends Model protected $table = 'v2_settings'; protected $guarded = []; protected $casts = [ - 'key' => 'string', + 'name' => 'string', 'value' => 'string', ]; - public function getValueAttribute($value) + /** + * 获取实际内容值 + */ + public function getContentValue() { - if ($value === null) { + $rawValue = $this->attributes['value'] ?? null; + + if ($rawValue === null) { return null; } - if (is_array($value)) { - return $value; + // 如果已经是数组,直接返回 + if (is_array($rawValue)) { + return $rawValue; } - if (is_numeric($value) && !preg_match('/[^\d.]/', $value)) { - return $value; + // 如果是数字字符串,返回原值 + if (is_numeric($rawValue) && !preg_match('/[^\d.]/', $rawValue)) { + return $rawValue; } - $decodedValue = json_decode($value, true); - if (json_last_error() === JSON_ERROR_NONE) { - return $decodedValue; + // 尝试解析 JSON + if (is_string($rawValue)) { + $decodedValue = json_decode($rawValue, true); + if (json_last_error() === JSON_ERROR_NONE) { + return $decodedValue; + } } - return $value; + return $rawValue; + } + + /** + * 兼容性:保持原有的 value 访问器 + */ + public function getValueAttribute($value) + { + return $this->getContentValue(); + } + + /** + * 创建或更新设置项 + */ + public static function createOrUpdate(string $name, $value): self + { + $processedValue = is_array($value) ? json_encode($value) : $value; + + return self::updateOrCreate( + ['name' => $name], + ['value' => $processedValue] + ); } } diff --git a/app/Protocols/Clash.php b/app/Protocols/Clash.php index 3c5df34..5563004 100644 --- a/app/Protocols/Clash.php +++ b/app/Protocols/Clash.php @@ -18,9 +18,10 @@ class Clash extends AbstractProtocol $user = $this->user; $appName = admin_setting('app_name', 'XBoard'); - $template = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + // 优先从数据库配置中获取模板 + $template = admin_setting('subscribe_template_clash', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) - : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)); + : File::get(base_path(self::DEFAULT_TEMPLATE_FILE))); $config = Yaml::parse($template); $proxy = []; diff --git a/app/Protocols/ClashMeta.php b/app/Protocols/ClashMeta.php index 32f7d89..4b5f858 100644 --- a/app/Protocols/ClashMeta.php +++ b/app/Protocols/ClashMeta.php @@ -65,13 +65,13 @@ class ClashMeta extends AbstractProtocol $user = $this->user; $appName = admin_setting('app_name', 'XBoard'); - $template = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + $template = admin_setting('subscribe_template_clashmeta', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) : ( File::exists(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE)) : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)) - ); + )); $config = Yaml::parse($template); $proxy = []; diff --git a/app/Protocols/SingBox.php b/app/Protocols/SingBox.php index 12cbaf8..ae0a4e9 100644 --- a/app/Protocols/SingBox.php +++ b/app/Protocols/SingBox.php @@ -72,11 +72,11 @@ class SingBox extends AbstractProtocol protected function loadConfig() { - $jsonData = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + $jsonData = admin_setting('subscribe_template_singbox', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) - : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)); + : File::get(base_path(self::DEFAULT_TEMPLATE_FILE))); - return json_decode($jsonData, true); + return is_array($jsonData) ? $jsonData : json_decode($jsonData, true); } protected function buildOutbounds() diff --git a/app/Protocols/Stash.php b/app/Protocols/Stash.php index e2c4422..3fa6c03 100644 --- a/app/Protocols/Stash.php +++ b/app/Protocols/Stash.php @@ -67,13 +67,13 @@ class Stash extends AbstractProtocol $user = $this->user; $appName = admin_setting('app_name', 'XBoard'); - $template = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + $template = admin_setting('subscribe_template_stash', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) : ( File::exists(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE)) : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)) - ); + )); $config = Yaml::parse($template); $proxy = []; diff --git a/app/Protocols/Surfboard.php b/app/Protocols/Surfboard.php index ada9f73..9f9152b 100644 --- a/app/Protocols/Surfboard.php +++ b/app/Protocols/Surfboard.php @@ -52,9 +52,9 @@ class Surfboard extends AbstractProtocol } } - $config = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + $config = admin_setting('subscribe_template_surfboard', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) - : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)); + : File::get(base_path(self::DEFAULT_TEMPLATE_FILE))); // Subscription link $subsURL = Helper::getSubscribeUrl($user['token']); $subsDomain = request()->header('Host'); diff --git a/app/Protocols/Surge.php b/app/Protocols/Surge.php index 6d7cd58..0a248b3 100644 --- a/app/Protocols/Surge.php +++ b/app/Protocols/Surge.php @@ -60,9 +60,9 @@ class Surge extends AbstractProtocol } - $config = File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) + $config = admin_setting('subscribe_template_surge', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE)) ? File::get(base_path(self::CUSTOM_TEMPLATE_FILE)) - : File::get(base_path(self::DEFAULT_TEMPLATE_FILE)); + : File::get(base_path(self::DEFAULT_TEMPLATE_FILE))); // Subscription link $subsDomain = request()->header('Host'); @@ -83,6 +83,7 @@ class Surge extends AbstractProtocol $config = str_replace('$subscribe_info', $subscribeInfo, $config); return response($config, 200) + ->header('content-type', 'application/octet-stream') ->header('content-disposition', "attachment;filename*=UTF-8''" . rawurlencode($appName) . ".conf"); } @@ -202,11 +203,16 @@ class Surge extends AbstractProtocol "{$server['host']}", "{$server['port']}", "password={$password}", - "download-bandwidth={$protocol_settings['bandwidth']['up']}", $protocol_settings['tls']['server_name'] ? "sni={$protocol_settings['tls']['server_name']}" : "", // 'tfo=true', 'udp-relay=true' ]; + if (data_get($protocol_settings, 'bandwidth.up')) { + $config[] = "upload-bandwidth={$protocol_settings['bandwidth']['up']}"; + } + if (data_get($protocol_settings, 'bandwidth.down')) { + $config[] = "download-bandwidth={$protocol_settings['bandwidth']['down']}"; + } if (data_get($protocol_settings, 'tls.allow_insecure')) { $config[] = !!data_get($protocol_settings, 'tls.allow_insecure') ? 'skip-cert-verify=true' : 'skip-cert-verify=false'; } diff --git a/app/Support/Setting.php b/app/Support/Setting.php index 6b7165b..0300015 100644 --- a/app/Support/Setting.php +++ b/app/Support/Setting.php @@ -5,17 +5,32 @@ namespace App\Support; use App\Models\Setting as SettingModel; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Fluent; class Setting { const CACHE_KEY = 'admin_settings'; private $cache; - public function __construct() + private static $instance = null; + private static $inMemoryCache = null; + private static $cacheLoaded = false; + + private function __construct() { $this->cache = Cache::store('redis'); } + + /** + * 获取单例实例 + */ + public static function getInstance(): self + { + if (self::$instance === null) { + self::$instance = new self(); + } + return self::$instance; + } + /** * 获取配置. * @@ -26,7 +41,28 @@ class Setting public function get($key, $default = null) { $key = strtolower($key); - return Arr::get($this->fromDatabase(), $key, $default); + return Arr::get($this->getInMemoryCache(), $key, $default); + } + + /** + * 获取内存缓存数据 + */ + private function getInMemoryCache(): array + { + if (!self::$cacheLoaded) { + self::$inMemoryCache = $this->fromDatabase(); + self::$cacheLoaded = true; + } + return self::$inMemoryCache ?? []; + } + + /** + * 清除内存缓存 + */ + public static function clearInMemoryCache(): void + { + self::$inMemoryCache = null; + self::$cacheLoaded = false; } /** @@ -38,16 +74,16 @@ class Setting */ public function set(string $key, $value = null): bool { - if (is_array($value)) { - $value = json_encode($value); - } $key = strtolower($key); - SettingModel::updateOrCreate(['name' => $key], ['value' => $value]); + SettingModel::createOrUpdate($key, $value); $this->cache->forget(self::CACHE_KEY); + + // 清除内存缓存,下次访问时重新加载 + self::clearInMemoryCache(); + return true; } - /** * 保存配置到数据库. * @@ -57,8 +93,13 @@ class Setting public function save(array $settings): bool { foreach ($settings as $key => $value) { - $this->set($key, $value); + $key = strtolower($key); + SettingModel::createOrUpdate($key, $value); } + + // 批量更新后清除缓存 + $this->cache->forget(self::CACHE_KEY); + self::clearInMemoryCache(); return true; } @@ -73,6 +114,7 @@ class Setting { SettingModel::where('name', $key)->delete(); $this->cache->forget(self::CACHE_KEY); + self::clearInMemoryCache(); return true; } @@ -83,9 +125,25 @@ class Setting public function fromDatabase(): array { try { - return $this->cache->rememberForever(self::CACHE_KEY, function (): array { - return array_change_key_case(SettingModel::pluck('value', 'name')->toArray(), CASE_LOWER); + // 统一从 value 字段获取所有配置 + $settings = $this->cache->rememberForever(self::CACHE_KEY, function (): array { + return array_change_key_case( + SettingModel::pluck('value', 'name')->toArray(), + CASE_LOWER + ); }); + + // 处理JSON格式的值 + foreach ($settings as $key => $value) { + if (is_string($value) && $value !== null) { + $decoded = json_decode($value, true); + if (json_last_error() === JSON_ERROR_NONE) { + $settings[$key] = $decoded; + } + } + } + + return $settings; } catch (\Throwable $th) { return []; } @@ -98,7 +156,7 @@ class Setting */ public function toArray(): array { - return $this->fromDatabase(); + return $this->getInMemoryCache(); } /** @@ -110,12 +168,34 @@ class Setting */ public function update(string $key, $value): bool { - if (is_array($value)) { - $value = json_encode($value); + return $this->set($key, $value); + } + + /** + * 批量获取配置项,优化多个配置项获取的性能 + * + * @param array $keys 配置键名数组,格式:['key1', 'key2' => 'default_value', ...] + * @return array 返回键值对数组 + */ + public function getBatch(array $keys): array + { + $cache = $this->getInMemoryCache(); + $result = []; + + foreach ($keys as $index => $item) { + if (is_numeric(value: $index)) { + // 格式:['key1', 'key2'] + $key = strtolower($item); + $default = config('v2board.'. $item); + $result[$item] = Arr::get($cache, $key, $default); + } else { + // 格式:['key1' => 'default_value'] + $key = strtolower($index); + $default = config('v2board.'. $index) ?? $item; + $result[$index] = Arr::get($cache, $key, $default); + } } - $key = strtolower($key); - SettingModel::updateOrCreate(['name' => $key], ['value' => $value]); - $this->cache->forget(self::CACHE_KEY); - return true; + + return $result; } } diff --git a/app/Utils/Helper.php b/app/Utils/Helper.php index ffb61b1..9f67f5f 100644 --- a/app/Utils/Helper.php +++ b/app/Utils/Helper.php @@ -7,6 +7,8 @@ use Illuminate\Support\Arr; class Helper { + private static $subscribeUrlCache = null; + public static function uuidToBase64($uuid, $length) { return base64_encode(substr($uuid, 0, $length)); @@ -122,13 +124,29 @@ class Helper public static function getSubscribeUrl(string $token, $subscribeUrl = null) { $path = route('client.subscribe', ['token' => $token], false); - if (!$subscribeUrl) { - $subscribeUrls = explode(',', (string)admin_setting('subscribe_url', '')); - $subscribeUrl = Arr::random($subscribeUrls); - $subscribeUrl = self::replaceByPattern($subscribeUrl); + + // 如果已提供订阅URL,直接处理并返回 + if ($subscribeUrl) { + $finalUrl = rtrim($subscribeUrl, '/') . $path; + return HookManager::filter('subscribe.url', $finalUrl); } - - $finalUrl = $subscribeUrl ? rtrim($subscribeUrl, '/') . $path : url($path); + + // 使用静态缓存避免重复查询配置 + if (self::$subscribeUrlCache === null) { + $urlString = (string)admin_setting('subscribe_url', ''); + self::$subscribeUrlCache = $urlString ? explode(',', $urlString) : []; + } + + // 如果没有配置订阅URL,使用默认URL + if (empty(self::$subscribeUrlCache)) { + return HookManager::filter('subscribe.url', url($path)); + } + + // 高效随机选择URL并处理 + $randomIndex = array_rand(self::$subscribeUrlCache); + $selectedUrl = self::replaceByPattern(self::$subscribeUrlCache[$randomIndex]); + $finalUrl = rtrim($selectedUrl, '/') . $path; + return HookManager::filter('subscribe.url', $finalUrl); } @@ -184,5 +202,4 @@ class Helper $revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')'); return strtr(rawurlencode($str), $revert); } - } diff --git a/database/migrations/2025_06_21_000001_optimize_v2_settings_table.php b/database/migrations/2025_06_21_000001_optimize_v2_settings_table.php new file mode 100644 index 0000000..affce15 --- /dev/null +++ b/database/migrations/2025_06_21_000001_optimize_v2_settings_table.php @@ -0,0 +1,37 @@ +mediumText('value')->nullable()->change(); + // 添加优化索引 + $table->index('name', 'idx_setting_name'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('v2_settings', function (Blueprint $table) { + $table->string('value')->nullable()->change(); + $table->dropIndex('idx_setting_name'); + }); + } +} \ No newline at end of file diff --git a/public/assets/admin/assets/index.css b/public/assets/admin/assets/index.css index 0fd9082..2f45863 100644 --- a/public/assets/admin/assets/index.css +++ b/public/assets/admin/assets/index.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--header-height: 4rem;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}.collapsibleDropdown{overflow:hidden}.collapsibleDropdown[data-state=open]{animation:slideDown .2s ease-out}.collapsibleDropdown[data-state=closed]{animation:slideUp .2s ease-out}@keyframes slideDown{0%{height:0}to{height:var(--radix-collapsible-content-height)}}@keyframes slideUp{0%{height:var(--radix-collapsible-content-height)}to{height:0}}*{border-color:hsl(var(--border))}body{min-height:100svh;width:100%;background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-right-5{right:-1.25rem}.-top-1{top:-.25rem}.-top-1\/2{top:-50%}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3{left:.75rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.-m-0\.5{margin:-.125rem}.m-1{margin:.25rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-ml-3{margin-left:-.75rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\[16\/9\]{aspect-ratio:16/9}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-0{height:0px}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100vh\]{height:100vh}.h-\[180px\]{height:180px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-\[90vh\]{height:90vh}.h-\[calc\(100\%-var\(--header-height\)\)\]{height:calc(100% - var(--header-height))}.h-\[calc\(100vh-280px\)\]{height:calc(100vh - 280px)}.h-\[var\(--header-height\)\]{height:var(--header-height)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-12{max-height:3rem}.max-h-96{max-height:24rem}.max-h-\[150px\]{max-height:150px}.max-h-\[200px\]{max-height:200px}.max-h-\[250px\]{max-height:250px}.max-h-\[300px\]{max-height:300px}.max-h-\[90vh\]{max-height:90vh}.max-h-\[95\%\]{max-height:95%}.min-h-10{min-height:2.5rem}.min-h-6{min-height:1.5rem}.min-h-\[100px\]{min-height:100px}.min-h-\[120px\]{min-height:120px}.min-h-\[200px\]{min-height:200px}.min-h-\[60px\]{min-height:60px}.min-h-svh{min-height:100svh}.w-0{width:0px}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-40{width:10rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[9\.5rem\]{width:9.5rem}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-20{min-width:5rem}.min-w-\[10em\]{min-width:10em}.min-w-\[3rem\]{min-width:3rem}.min-w-\[40px\]{min-width:40px}.min-w-\[4rem\]{min-width:4rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-32{max-width:8rem}.max-w-4xl{max-width:56rem}.max-w-52{max-width:13rem}.max-w-6xl{max-width:72rem}.max-w-80{max-width:20rem}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[280px\]{max-width:280px}.max-w-\[300px\]{max-width:300px}.max-w-\[500px\]{max-width:500px}.max-w-\[60\%\]{max-width:60%}.max-w-\[600px\]{max-width:600px}.max-w-\[90\%\]{max-width:90%}.max-w-\[90vw\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-\[1\.2\]{flex:1.2}.flex-\[1\]{flex:1}.flex-\[2\]{flex:2}.flex-\[4\]{flex:4}.flex-\[5\]{flex:5}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[100px_1fr\]{grid-template-columns:100px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-0\.5{row-gap:.125rem}.gap-y-2{row-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:var(--radius)}.rounded-tl-none{border-top-left-radius:0}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-tr-lg{border-top-right-radius:var(--radius)}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-500\/50{border-color:#3b82f680}.border-border{border-color:hsl(var(--border))}.border-border\/30{border-color:hsl(var(--border) / .3)}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-foreground\/10{border-color:hsl(var(--foreground) / .1)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground\/25{border-color:hsl(var(--muted-foreground) / .25)}.border-orange-500\/50{border-color:#f9731680}.border-primary{border-color:hsl(var(--primary))}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.border-l-slate-500{--tw-border-opacity: 1;border-left-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-r-muted{border-right-color:hsl(var(--muted))}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/20{background-color:#0003}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/80{background-color:hsl(var(--destructive) / .8)}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/80{background-color:#10b981cc}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-inherit{background-color:inherit}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-secondary\/50{background-color:hsl(var(--secondary) / .5)}.bg-slate-100\/80{background-color:#f1f5f9cc}.bg-transparent{background-color:transparent}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/80{background-color:#eab308cc}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-background\/95{--tw-gradient-from: hsl(var(--background) / .95) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-background\/80{--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-background\/60{--tw-gradient-to: hsl(var(--background) / .6) var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0\.5{padding-bottom:.125rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-12{padding-right:3rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-7{padding-right:1.75rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.625rem\]{font-size:.625rem}.text-\[0\.7rem\]{font-size:.7rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-\[7rem\]{font-size:7rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-10{line-height:2.5rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/70{color:hsl(var(--foreground) / .7)}.text-foreground\/90{color:hsl(var(--foreground) / .9)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/30{color:hsl(var(--muted-foreground) / .3)}.text-muted-foreground\/40{color:hsl(var(--muted-foreground) / .4)}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-muted-foreground\/70{color:hsl(var(--muted-foreground) / .7)}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary\/90{color:hsl(var(--primary) / .9)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-destructive\/50{--tw-shadow-color: hsl(var(--destructive) / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-500\/50{--tw-shadow-color: rgb(16 185 129 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-500\/50{--tw-shadow-color: rgb(234 179 8 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.ring-gray-300\/20{--tw-ring-color: rgb(209 213 219 / .2)}.ring-green-500\/20{--tw-ring-color: rgb(34 197 94 / .2)}.ring-primary\/20{--tw-ring-color: hsl(var(--primary) / .2)}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.ring-offset-white{--tw-ring-offset-color: #fff}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\[1px\]{--tw-backdrop-blur: blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[max-height\,padding\]{transition-property:max-height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[opacity\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.duration-700{animation-duration:.7s}.delay-100{animation-delay:.1s}.delay-150{animation-delay:.15s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{overflow-y:scroll}.sticky{position:sticky!important;z-index:2;background-color:hsl(var(--card))}.sticky.before\:right-0:before,.sticky.before\:left-0:before{content:"";position:absolute;top:0;bottom:0;width:2px;background:linear-gradient(to right,rgba(0,0,0,.08),transparent);opacity:1;transition:opacity .3s ease}.sticky.before\:right-0:before{right:-1px;background:linear-gradient(to right,rgba(0,0,0,.08),transparent)}.sticky.before\:right-0:after{content:"";position:absolute;top:0;right:-8px;bottom:0;width:8px;pointer-events:none;background:linear-gradient(to right,rgba(0,0,0,.05),transparent)}.sticky.before\:left-0:before{left:-1px;background:linear-gradient(to left,rgba(0,0,0,.08),transparent)}.sticky.before\:left-0:after{content:"";position:absolute;top:0;left:-8px;bottom:0;width:8px;pointer-events:none;background:linear-gradient(to left,rgba(0,0,0,.05),transparent)}.sticky:hover:before{opacity:.8}.dark .sticky.before\:right-0:before,.dark .sticky.before\:left-0:before{background:linear-gradient(to right,rgba(255,255,255,.05),transparent)}.dark .sticky.before\:right-0:after,.dark .sticky.before\:left-0:after{background:linear-gradient(to right,rgba(255,255,255,.03),transparent)}.\*\:\!inline-block>*{display:inline-block!important}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-0:before{content:var(--tw-content);right:0}.before\:top-0:before{content:var(--tw-content);top:0}.before\:w-\[1px\]:before{content:var(--tw-content);width:1px}.before\:bg-border:before{content:var(--tw-content);background-color:hsl(var(--border))}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:bottom-0:after{content:var(--tw-content);bottom:0}.after\:left-0:after{content:var(--tw-content);left:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-32:after{content:var(--tw-content);height:8rem}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:bg-\[linear-gradient\(180deg\,_transparent_10\%\,_hsl\(var\(--background\)\)_70\%\)\]:after{content:var(--tw-content);background-image:linear-gradient(180deg,transparent 10%,hsl(var(--background)) 70%)}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:rotate-180:hover{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.hover\:bg-card\/80:hover{background-color:hsl(var(--card) / .8)}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-destructive\/25:hover{background-color:hsl(var(--destructive) / .25)}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\:bg-inherit:hover{background-color:inherit}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/40:hover{background-color:hsl(var(--muted) / .4)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-muted\/70:hover{background-color:hsl(var(--muted) / .7)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/10:hover{background-color:hsl(var(--primary) / .1)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-foreground\/10:hover{background-color:hsl(var(--secondary-foreground) / .1)}.hover\:bg-secondary\/70:hover{background-color:hsl(var(--secondary) / .7)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-slate-200\/80:hover{background-color:#e2e8f0cc}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-yellow-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.hover\:bg-opacity-80:hover{--tw-bg-opacity: .8}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-foreground\/70:hover{color:hsl(var(--foreground) / .7)}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary:hover{color:hsl(var(--primary))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary) / .8)}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-black\/30:hover{--tw-shadow-color: rgb(0 0 0 / .3);--tw-shadow: var(--tw-shadow-colored)}.hover\:ring-primary:hover{--tw-ring-color: hsl(var(--primary))}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:text-red-600:focus{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-red-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\:ring-red-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:via-background\/90{--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / .9) var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-background\/70{--tw-gradient-to: hsl(var(--background) / .7) var(--tw-gradient-to-position)}.group\/id:hover .group-hover\/id\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group[data-collapsed=true] .group-\[\[data-collapsed\=true\]\]\:justify-center{justify-content:center}.group[data-collapsed=true] .group-\[\[data-collapsed\=true\]\]\:px-2{padding-left:.5rem;padding-right:.5rem}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.has-\[\:focus-visible\]\:outline-none:has(:focus-visible){outline:2px solid transparent;outline-offset:2px}.has-\[\:focus-visible\]\:ring-1:has(:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.has-\[\:focus-visible\]\:ring-neutral-950:has(:focus-visible){--tw-ring-opacity: 1;--tw-ring-color: rgb(10 10 10 / var(--tw-ring-opacity, 1))}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[state\=dragging\]\:cursor-grabbing[data-state=dragging]{cursor:grabbing}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[disabled\]\:bg-muted-foreground[data-disabled],.data-\[fixed\]\:bg-muted-foreground[data-fixed]{background-color:hsl(var(--muted-foreground))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[collapsed\=true\]\:py-2[data-collapsed=true]{padding-top:.5rem;padding-bottom:.5rem}.data-\[disabled\]\:text-muted[data-disabled],.data-\[fixed\]\:text-muted[data-fixed]{color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:duration-300[data-state=closed],.data-\[state\=open\]\:duration-300[data-state=open]{transition-duration:.3s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=closed\]\:duration-300[data-state=closed],.data-\[state\=open\]\:duration-300[data-state=open]{animation-duration:.3s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[disabled\]\:hover\:bg-muted-foreground:hover[data-disabled],.data-\[fixed\]\:hover\:bg-muted-foreground:hover[data-fixed]{background-color:hsl(var(--muted-foreground))}.group[data-state=open] .group-data-\[state\=\"open\"\]\:-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.dark\:border-blue-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-yellow-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-950\/30:is(.dark *){background-color:#1725544d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-green-500\/10:is(.dark *){background-color:#22c55e1a}.dark\:bg-red-500\/10:is(.dark *){background-color:#ef44441a}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.dark\:bg-red-950\/30:is(.dark *){background-color:#450a0a4d}.dark\:bg-yellow-500\/10:is(.dark *){background-color:#eab3081a}.dark\:bg-yellow-950\/30:is(.dark *){background-color:#4220064d}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.dark\:ring-gray-700:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1))}.dark\:ring-gray-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.dark\:placeholder\:text-gray-500:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:placeholder\:text-gray-500:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:hover\:bg-blue-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:has-\[\:focus-visible\]\:ring-neutral-300:has(:focus-visible):is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(212 212 212 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:absolute{position:absolute}.sm\:inset-auto{inset:auto}.sm\:bottom-\[calc\(100\%\+10px\)\]{bottom:calc(100% + 10px)}.sm\:left-0{left:0}.sm\:right-0{right:0}.sm\:my-0{margin-top:0;margin-bottom:0}.sm\:my-4{margin-top:1rem;margin-bottom:1rem}.sm\:mt-0{margin-top:0}.sm\:hidden{display:none}.sm\:h-\[80vh\]{height:80vh}.sm\:h-full{height:100%}.sm\:max-h-\[500px\]{max-height:500px}.sm\:max-h-\[600px\]{max-height:600px}.sm\:max-h-\[700px\]{max-height:700px}.sm\:max-h-\[800px\]{max-height:800px}.sm\:w-48{width:12rem}.sm\:w-\[350px\]{width:350px}.sm\:w-\[540px\]{width:540px}.sm\:w-\[90vw\]{width:90vw}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-72{max-width:18rem}.sm\:max-w-\[1025px\]{max-width:1025px}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-\[700px\]{max-width:700px}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:translate-y-5{--tw-translate-y: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-0{gap:0px}.sm\:gap-6{gap:1.5rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:p-6{padding:1.5rem}.sm\:text-left{text-align:left}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:relative{position:relative}.md\:bottom-0{bottom:0}.md\:right-8{right:2rem}.md\:right-auto{right:auto}.md\:top-8{top:2rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:ml-14{margin-left:3.5rem}.md\:ml-64{margin-left:16rem}.md\:block{display:block}.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:hidden{display:none}.md\:h-full{height:100%}.md\:h-svh{height:100svh}.md\:w-14{width:3.5rem}.md\:w-32{width:8rem}.md\:w-64{width:16rem}.md\:w-80{width:20rem}.md\:w-\[420px\]{width:420px}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[31rem\]{max-width:31rem}.md\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:overflow-y-hidden{overflow-y:hidden}.md\:border-none{border-style:none}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:pt-0{padding-top:0}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:opacity-0{opacity:0}.after\:md\:block:after{content:var(--tw-content);display:block}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/5{width:20%}.lg\:w-\[250px\]{width:250px}.lg\:max-w-none{max-width:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}.lg\:gap-8{gap:2rem}.lg\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.lg\:space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.lg\:p-8{padding:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1280px){.xl\:mr-2{margin-right:.5rem}.xl\:flex{display:flex}.xl\:inline-flex{display:inline-flex}.xl\:h-10{height:2.5rem}.xl\:w-60{width:15rem}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:justify-start{justify-content:flex-start}.xl\:px-3{padding-left:.75rem;padding-right:.75rem}.xl\:py-2{padding-top:.5rem;padding-bottom:.5rem}}.\[\&\:\:-webkit-calendar-picker-indicator\]\:hidden::-webkit-calendar-picker-indicator{display:none}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:invisible svg{visibility:hidden}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--header-height: 4rem;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}.collapsibleDropdown{overflow:hidden}.collapsibleDropdown[data-state=open]{animation:slideDown .2s ease-out}.collapsibleDropdown[data-state=closed]{animation:slideUp .2s ease-out}@keyframes slideDown{0%{height:0}to{height:var(--radix-collapsible-content-height)}}@keyframes slideUp{0%{height:var(--radix-collapsible-content-height)}to{height:0}}*{border-color:hsl(var(--border))}body{min-height:100svh;width:100%;background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-right-5{right:-1.25rem}.-top-1{top:-.25rem}.-top-1\/2{top:-50%}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3{left:.75rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.-m-0\.5{margin:-.125rem}.m-1{margin:.25rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-ml-3{margin-left:-.75rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\[16\/9\]{aspect-ratio:16/9}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-0{height:0px}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100vh\]{height:100vh}.h-\[180px\]{height:180px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-\[90vh\]{height:90vh}.h-\[calc\(100\%-var\(--header-height\)\)\]{height:calc(100% - var(--header-height))}.h-\[calc\(100vh-280px\)\]{height:calc(100vh - 280px)}.h-\[var\(--header-height\)\]{height:var(--header-height)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-12{max-height:3rem}.max-h-96{max-height:24rem}.max-h-\[150px\]{max-height:150px}.max-h-\[200px\]{max-height:200px}.max-h-\[250px\]{max-height:250px}.max-h-\[300px\]{max-height:300px}.max-h-\[90vh\]{max-height:90vh}.max-h-\[95\%\]{max-height:95%}.min-h-10{min-height:2.5rem}.min-h-6{min-height:1.5rem}.min-h-\[100px\]{min-height:100px}.min-h-\[120px\]{min-height:120px}.min-h-\[200px\]{min-height:200px}.min-h-\[60px\]{min-height:60px}.min-h-svh{min-height:100svh}.w-0{width:0px}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-40{width:10rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[9\.5rem\]{width:9.5rem}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-20{min-width:5rem}.min-w-\[10em\]{min-width:10em}.min-w-\[3rem\]{min-width:3rem}.min-w-\[40px\]{min-width:40px}.min-w-\[4rem\]{min-width:4rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-4xl{max-width:56rem}.max-w-52{max-width:13rem}.max-w-6xl{max-width:72rem}.max-w-80{max-width:20rem}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[280px\]{max-width:280px}.max-w-\[300px\]{max-width:300px}.max-w-\[500px\]{max-width:500px}.max-w-\[60\%\]{max-width:60%}.max-w-\[600px\]{max-width:600px}.max-w-\[90\%\]{max-width:90%}.max-w-\[90vw\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-\[1\.2\]{flex:1.2}.flex-\[1\]{flex:1}.flex-\[2\]{flex:2}.flex-\[4\]{flex:4}.flex-\[5\]{flex:5}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[100px_1fr\]{grid-template-columns:100px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-0\.5{row-gap:.125rem}.gap-y-2{row-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:var(--radius)}.rounded-tl-none{border-top-left-radius:0}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-tr-lg{border-top-right-radius:var(--radius)}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-500\/50{border-color:#3b82f680}.border-border{border-color:hsl(var(--border))}.border-border\/30{border-color:hsl(var(--border) / .3)}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-foreground\/10{border-color:hsl(var(--foreground) / .1)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground\/25{border-color:hsl(var(--muted-foreground) / .25)}.border-orange-500\/50{border-color:#f9731680}.border-primary{border-color:hsl(var(--primary))}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.border-l-slate-500{--tw-border-opacity: 1;border-left-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-r-muted{border-right-color:hsl(var(--muted))}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/20{background-color:#0003}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/80{background-color:hsl(var(--destructive) / .8)}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/80{background-color:#10b981cc}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-inherit{background-color:inherit}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-secondary\/50{background-color:hsl(var(--secondary) / .5)}.bg-slate-100\/80{background-color:#f1f5f9cc}.bg-transparent{background-color:transparent}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/80{background-color:#eab308cc}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-background\/95{--tw-gradient-from: hsl(var(--background) / .95) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-background\/80{--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-background\/60{--tw-gradient-to: hsl(var(--background) / .6) var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0\.5{padding-bottom:.125rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-12{padding-right:3rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-7{padding-right:1.75rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.625rem\]{font-size:.625rem}.text-\[0\.7rem\]{font-size:.7rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-\[7rem\]{font-size:7rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-10{line-height:2.5rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/70{color:hsl(var(--foreground) / .7)}.text-foreground\/90{color:hsl(var(--foreground) / .9)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/30{color:hsl(var(--muted-foreground) / .3)}.text-muted-foreground\/40{color:hsl(var(--muted-foreground) / .4)}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-muted-foreground\/70{color:hsl(var(--muted-foreground) / .7)}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary\/90{color:hsl(var(--primary) / .9)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-destructive\/50{--tw-shadow-color: hsl(var(--destructive) / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-500\/50{--tw-shadow-color: rgb(16 185 129 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-500\/50{--tw-shadow-color: rgb(234 179 8 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.ring-gray-300\/20{--tw-ring-color: rgb(209 213 219 / .2)}.ring-green-500\/20{--tw-ring-color: rgb(34 197 94 / .2)}.ring-primary\/20{--tw-ring-color: hsl(var(--primary) / .2)}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.ring-offset-white{--tw-ring-offset-color: #fff}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\[1px\]{--tw-backdrop-blur: blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[max-height\,padding\]{transition-property:max-height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[opacity\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.duration-700{animation-duration:.7s}.delay-100{animation-delay:.1s}.delay-150{animation-delay:.15s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html{overflow-y:scroll}.sticky{position:sticky!important;z-index:2;background-color:hsl(var(--card))}.sticky.before\:right-0:before,.sticky.before\:left-0:before{content:"";position:absolute;top:0;bottom:0;width:2px;background:linear-gradient(to right,rgba(0,0,0,.08),transparent);opacity:1;transition:opacity .3s ease}.sticky.before\:right-0:before{right:-1px;background:linear-gradient(to right,rgba(0,0,0,.08),transparent)}.sticky.before\:right-0:after{content:"";position:absolute;top:0;right:-8px;bottom:0;width:8px;pointer-events:none;background:linear-gradient(to right,rgba(0,0,0,.05),transparent)}.sticky.before\:left-0:before{left:-1px;background:linear-gradient(to left,rgba(0,0,0,.08),transparent)}.sticky.before\:left-0:after{content:"";position:absolute;top:0;left:-8px;bottom:0;width:8px;pointer-events:none;background:linear-gradient(to left,rgba(0,0,0,.05),transparent)}.sticky:hover:before{opacity:.8}.dark .sticky.before\:right-0:before,.dark .sticky.before\:left-0:before{background:linear-gradient(to right,rgba(255,255,255,.05),transparent)}.dark .sticky.before\:right-0:after,.dark .sticky.before\:left-0:after{background:linear-gradient(to right,rgba(255,255,255,.03),transparent)}.\*\:\!inline-block>*{display:inline-block!important}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-0:before{content:var(--tw-content);right:0}.before\:top-0:before{content:var(--tw-content);top:0}.before\:w-\[1px\]:before{content:var(--tw-content);width:1px}.before\:bg-border:before{content:var(--tw-content);background-color:hsl(var(--border))}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:bottom-0:after{content:var(--tw-content);bottom:0}.after\:left-0:after{content:var(--tw-content);left:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-32:after{content:var(--tw-content);height:8rem}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:bg-\[linear-gradient\(180deg\,_transparent_10\%\,_hsl\(var\(--background\)\)_70\%\)\]:after{content:var(--tw-content);background-image:linear-gradient(180deg,transparent 10%,hsl(var(--background)) 70%)}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:rotate-180:hover{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.hover\:bg-card\/80:hover{background-color:hsl(var(--card) / .8)}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-destructive\/25:hover{background-color:hsl(var(--destructive) / .25)}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\:bg-inherit:hover{background-color:inherit}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/40:hover{background-color:hsl(var(--muted) / .4)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-muted\/70:hover{background-color:hsl(var(--muted) / .7)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/10:hover{background-color:hsl(var(--primary) / .1)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-foreground\/10:hover{background-color:hsl(var(--secondary-foreground) / .1)}.hover\:bg-secondary\/70:hover{background-color:hsl(var(--secondary) / .7)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-slate-200\/80:hover{background-color:#e2e8f0cc}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-yellow-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.hover\:bg-opacity-80:hover{--tw-bg-opacity: .8}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-foreground\/70:hover{color:hsl(var(--foreground) / .7)}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary:hover{color:hsl(var(--primary))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-primary\/80:hover{color:hsl(var(--primary) / .8)}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-black\/30:hover{--tw-shadow-color: rgb(0 0 0 / .3);--tw-shadow: var(--tw-shadow-colored)}.hover\:ring-primary:hover{--tw-ring-color: hsl(var(--primary))}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:text-red-600:focus{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-red-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\:ring-red-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:via-background\/90{--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / .9) var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-background\/70{--tw-gradient-to: hsl(var(--background) / .7) var(--tw-gradient-to-position)}.group\/id:hover .group-hover\/id\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group[data-collapsed=true] .group-\[\[data-collapsed\=true\]\]\:justify-center{justify-content:center}.group[data-collapsed=true] .group-\[\[data-collapsed\=true\]\]\:px-2{padding-left:.5rem;padding-right:.5rem}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.has-\[\:focus-visible\]\:outline-none:has(:focus-visible){outline:2px solid transparent;outline-offset:2px}.has-\[\:focus-visible\]\:ring-1:has(:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.has-\[\:focus-visible\]\:ring-neutral-950:has(:focus-visible){--tw-ring-opacity: 1;--tw-ring-color: rgb(10 10 10 / var(--tw-ring-opacity, 1))}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[state\=dragging\]\:cursor-grabbing[data-state=dragging]{cursor:grabbing}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[disabled\]\:bg-muted-foreground[data-disabled],.data-\[fixed\]\:bg-muted-foreground[data-fixed]{background-color:hsl(var(--muted-foreground))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[collapsed\=true\]\:py-2[data-collapsed=true]{padding-top:.5rem;padding-bottom:.5rem}.data-\[disabled\]\:text-muted[data-disabled],.data-\[fixed\]\:text-muted[data-fixed]{color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:duration-300[data-state=closed],.data-\[state\=open\]\:duration-300[data-state=open]{transition-duration:.3s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=closed\]\:duration-300[data-state=closed],.data-\[state\=open\]\:duration-300[data-state=open]{animation-duration:.3s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[disabled\]\:hover\:bg-muted-foreground:hover[data-disabled],.data-\[fixed\]\:hover\:bg-muted-foreground:hover[data-fixed]{background-color:hsl(var(--muted-foreground))}.group[data-state=open] .group-data-\[state\=\"open\"\]\:-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-amber-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.dark\:border-blue-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-yellow-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.dark\:bg-amber-950\/30:is(.dark *){background-color:#451a034d}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-950\/30:is(.dark *){background-color:#1725544d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-green-500\/10:is(.dark *){background-color:#22c55e1a}.dark\:bg-red-500\/10:is(.dark *){background-color:#ef44441a}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.dark\:bg-red-950\/30:is(.dark *){background-color:#450a0a4d}.dark\:bg-yellow-500\/10:is(.dark *){background-color:#eab3081a}.dark\:bg-yellow-950\/30:is(.dark *){background-color:#4220064d}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.dark\:ring-gray-700:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1))}.dark\:ring-gray-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.dark\:placeholder\:text-gray-500:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:placeholder\:text-gray-500:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:hover\:bg-blue-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:has-\[\:focus-visible\]\:ring-neutral-300:has(:focus-visible):is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(212 212 212 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:absolute{position:absolute}.sm\:inset-auto{inset:auto}.sm\:bottom-\[calc\(100\%\+10px\)\]{bottom:calc(100% + 10px)}.sm\:left-0{left:0}.sm\:right-0{right:0}.sm\:my-0{margin-top:0;margin-bottom:0}.sm\:my-4{margin-top:1rem;margin-bottom:1rem}.sm\:mt-0{margin-top:0}.sm\:hidden{display:none}.sm\:h-\[80vh\]{height:80vh}.sm\:h-full{height:100%}.sm\:max-h-\[500px\]{max-height:500px}.sm\:max-h-\[600px\]{max-height:600px}.sm\:max-h-\[700px\]{max-height:700px}.sm\:max-h-\[800px\]{max-height:800px}.sm\:w-48{width:12rem}.sm\:w-\[350px\]{width:350px}.sm\:w-\[540px\]{width:540px}.sm\:w-\[90vw\]{width:90vw}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-72{max-width:18rem}.sm\:max-w-\[1025px\]{max-width:1025px}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-\[700px\]{max-width:700px}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:translate-y-5{--tw-translate-y: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-0{gap:0px}.sm\:gap-6{gap:1.5rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:p-6{padding:1.5rem}.sm\:text-left{text-align:left}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:relative{position:relative}.md\:bottom-0{bottom:0}.md\:right-8{right:2rem}.md\:right-auto{right:auto}.md\:top-8{top:2rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:ml-14{margin-left:3.5rem}.md\:ml-64{margin-left:16rem}.md\:block{display:block}.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:hidden{display:none}.md\:h-full{height:100%}.md\:h-svh{height:100svh}.md\:w-14{width:3.5rem}.md\:w-32{width:8rem}.md\:w-64{width:16rem}.md\:w-80{width:20rem}.md\:w-\[420px\]{width:420px}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[31rem\]{max-width:31rem}.md\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:overflow-y-hidden{overflow-y:hidden}.md\:border-none{border-style:none}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:pt-0{padding-top:0}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:opacity-0{opacity:0}.after\:md\:block:after{content:var(--tw-content);display:block}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-1\/5{width:20%}.lg\:w-\[250px\]{width:250px}.lg\:max-w-none{max-width:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}.lg\:gap-8{gap:2rem}.lg\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.lg\:space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.lg\:p-8{padding:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1280px){.xl\:mr-2{margin-right:.5rem}.xl\:flex{display:flex}.xl\:inline-flex{display:inline-flex}.xl\:h-10{height:2.5rem}.xl\:w-60{width:15rem}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:justify-start{justify-content:flex-start}.xl\:px-3{padding-left:.75rem;padding-right:.75rem}.xl\:py-2{padding-top:.5rem;padding-bottom:.5rem}}.\[\&\:\:-webkit-calendar-picker-indicator\]\:hidden::-webkit-calendar-picker-indicator{display:none}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:invisible svg{visibility:hidden}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/public/assets/admin/assets/index.js b/public/assets/admin/assets/index.js index 2531c3d..aec7ec8 100644 --- a/public/assets/admin/assets/index.js +++ b/public/assets/admin/assets/index.js @@ -1,19 +1,19 @@ -import{r as m,j as e,t as di,c as mi,I as Vn,a as Zs,S as on,u as Is,b as ui,d as cn,R as tl,e as al,f as xi,F as hi,C as pi,L as nl,T as ll,g as rl,h as gi,i as fi,k as ji,l as A,z as x,m as V,n as ye,o as _e,p as ne,q as gs,s as Se,v as ot,w as vi,O as dn,x as bi,y as yi,A as Ni,B as _i,D as wi,E as Ci,Q as Si,G as ki,H as Ti,J as Di,P as Pi,K as Ei,M as Ri,N as Ii,U as Li,V as il,W as ol,X as ja,Y as va,Z as mn,_ as ds,$ as ba,a0 as ya,a1 as cl,a2 as dl,a3 as ml,a4 as un,a5 as ul,a6 as Vi,a7 as xl,a8 as hl,a9 as pl,aa as gl,ab as et,ac as fl,ad as Fi,ae as jl,af as vl,ag as Mi,ah as Oi,ai as zi,aj as $i,ak as Ai,al as qi,am as Hi,an as Ui,ao as Ki,ap as Bi,aq as Gi,ar as bl,as as Wi,at as Yi,au as st,av as yl,aw as Ji,ax as Qi,ay as Nl,az as xn,aA as Xi,aB as Zi,aC as Fn,aD as eo,aE as _l,aF as so,aG as wl,aH as to,aI as ao,aJ as no,aK as lo,aL as ro,aM as io,aN as Cl,aO as oo,aP as co,aQ as mo,aR as He,aS as uo,aT as hn,aU as xo,aV as ho,aW as Sl,aX as kl,aY as Tl,aZ as po,a_ as go,a$ as fo,b0 as Dl,b1 as jo,b2 as pn,b3 as Pl,b4 as vo,b5 as El,b6 as bo,b7 as Rl,b8 as yo,b9 as Il,ba as Ll,bb as No,bc as _o,bd as Vl,be as wo,bf as Co,bg as Fl,bh as So,bi as Ml,bj as ko,bk as To,bl as hs,bm as xs,bn as Kt,bo as Do,bp as Po,bq as Eo,br as Ro,bs as Io,bt as Lo,bu as Mn,bv as On,bw as Vo,bx as Fo,by as Mo,bz as Oo,bA as zo,bB as Qa,bC as At,bD as $o,bE as Ao,bF as Ol,bG as qo,bH as Ho,bI as zl,bJ as Uo,bK as Ko,bL as zn,bM as Xa,bN as Za,bO as Bo,bP as Go,bQ as $l,bR as Wo,bS as Yo,bT as Jo,bU as da,bV as en,bW as Je,bX as gn,bY as Qo,bZ as za,b_ as Xo,b$ as $n,c0 as Ft,c1 as sn,c2 as tn,c3 as Al,c4 as Qe,c5 as ls,c6 as ql,c7 as Hl,c8 as Zo,c9 as ec,ca as sc,cb as tc,cc as ac,cd as Ul,ce as nc,cf as lc,cg as ze,ch as An,ci as rc,cj as Kl,ck as Bl,cl as Gl,cm as Wl,cn as Yl,co as Jl,cp as ic,cq as oc,cr as cc,cs as Na,ct as tt,cu as fs,cv as js,cw as vs,cx as dc,cy as mc,cz as uc,cA as xc,cB as hc,cC as pc,cD as gc,cE as fc,cF as jc,cG as an,cH as fn,cI as jn,cJ as vc,cK as Ls,cL as Vs,cM as _a,cN as bc,cO as ma,cP as yc,cQ as qn,cR as Ql,cS as Hn,cT as ua,cU as Nc,cV as _c,cW as wc,cX as Cc,cY as Xl,cZ as Sc,c_ as kc,c$ as Zl,d0 as nn,d1 as er,d2 as Tc,d3 as sr,d4 as tr,d5 as Dc,d6 as Pc,d7 as Ec,d8 as Rc,d9 as Ic}from"./vendor.js";import"./index.js";var $h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ah(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Lc(s){if(s.__esModule)return s;var a=s.default;if(typeof a=="function"){var t=function l(){return this instanceof l?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};t.prototype=a.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(l){var n=Object.getOwnPropertyDescriptor(s,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return s[l]}})}),t}const Vc={theme:"system",setTheme:()=>null},ar=m.createContext(Vc);function Fc({children:s,defaultTheme:a="system",storageKey:t="vite-ui-theme",...l}){const[n,o]=m.useState(()=>localStorage.getItem(t)||a);m.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),n==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";c.classList.add(u);return}c.classList.add(n)},[n]);const r={theme:n,setTheme:c=>{localStorage.setItem(t,c),o(c)}};return e.jsx(ar.Provider,{...l,value:r,children:s})}const Mc=()=>{const s=m.useContext(ar);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},Oc=function(){const a=typeof document<"u"&&document.createElement("link").relList;return a&&a.supports&&a.supports("modulepreload")?"modulepreload":"preload"}(),zc=function(s,a){return new URL(s,a).href},Un={},fe=function(a,t,l){let n=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");n=Promise.allSettled(t.map(i=>{if(i=zc(i,l),i in Un)return;Un[i]=!0;const d=i.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(!!l)for(let S=r.length-1;S>=0;S--){const C=r[S];if(C.href===i&&(!d||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${h}`))return;const T=document.createElement("link");if(T.rel=d?"stylesheet":Oc,d||(T.as="script"),T.crossOrigin="",T.href=i,u&&T.setAttribute("nonce",u),document.head.appendChild(T),d)return new Promise((S,C)=>{T.addEventListener("load",S),T.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${i}`)))})}))}function o(r){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=r,window.dispatchEvent(c),!c.defaultPrevented)throw r}return n.then(r=>{for(const c of r||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};function y(...s){return di(mi(s))}const wt=Zs("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),E=m.forwardRef(({className:s,variant:a,size:t,asChild:l=!1,children:n,disabled:o,loading:r=!1,leftSection:c,rightSection:u,...i},d)=>{const h=l?on:"button";return e.jsxs(h,{className:y(wt({variant:a,size:t,className:s})),disabled:r||o,ref:d,...i,children:[(c&&r||!c&&!u&&r)&&e.jsx(Vn,{className:"mr-2 h-4 w-4 animate-spin"}),!r&&c&&e.jsx("div",{className:"mr-2",children:c}),n,!r&&u&&e.jsx("div",{className:"ml-2",children:u}),u&&r&&e.jsx(Vn,{className:"ml-2 h-4 w-4 animate-spin"})]})});E.displayName="Button";function ct({className:s,minimal:a=!1}){const t=Is(),l=ui(),n=l?.message||l?.statusText||"Unknown error occurred";return e.jsx("div",{className:y("h-svh w-full",s),children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[!a&&e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"500"}),e.jsxs("span",{className:"font-medium",children:["Oops! Something went wrong ",":')"]}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["We apologize for the inconvenience. ",e.jsx("br",{}),n]}),!a&&e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(E,{variant:"outline",onClick:()=>t(-1),children:"Go Back"}),e.jsx(E,{onClick:()=>t("/"),children:"Back to Home"})]})]})})}function Kn(){const s=Is();return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"404"}),e.jsx("span",{className:"font-medium",children:"Oops! Page Not Found!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["It seems like the page you're looking for ",e.jsx("br",{}),"does not exist or might have been removed."]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(E,{variant:"outline",onClick:()=>s(-1),children:"Go Back"}),e.jsx(E,{onClick:()=>s("/"),children:"Back to Home"})]})]})})}function $c(){return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"503"}),e.jsx("span",{className:"font-medium",children:"Website is under maintenance!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["The site is not available at the moment. ",e.jsx("br",{}),"We'll be back online shortly."]}),e.jsx("div",{className:"mt-6 flex gap-4",children:e.jsx(E,{variant:"outline",children:"Learn more"})})]})})}function Ac(s){return typeof s>"u"}function qc(s){return s===null}function Hc(s){return qc(s)||Ac(s)}class Uc{storage;prefixKey;constructor(a){this.storage=a.storage,this.prefixKey=a.prefixKey}getKey(a){return`${this.prefixKey}${a}`.toUpperCase()}set(a,t,l=null){const n=JSON.stringify({value:t,time:Date.now(),expire:l!==null?new Date().getTime()+l*1e3:null});this.storage.setItem(this.getKey(a),n)}get(a,t=null){const l=this.storage.getItem(this.getKey(a));if(!l)return{value:t,time:0};try{const n=JSON.parse(l),{value:o,time:r,expire:c}=n;return Hc(c)||c>new Date().getTime()?{value:o,time:r}:(this.remove(a),{value:t,time:0})}catch{return this.remove(a),{value:t,time:0}}}remove(a){this.storage.removeItem(this.getKey(a))}clear(){this.storage.clear()}}function nr({prefixKey:s="",storage:a=sessionStorage}){return new Uc({prefixKey:s,storage:a})}const lr="Xboard_",Kc=function(s={}){return nr({prefixKey:s.prefixKey||"",storage:localStorage})},Bc=function(s={}){return nr({prefixKey:s.prefixKey||"",storage:sessionStorage})},wa=Kc({prefixKey:lr});Bc({prefixKey:lr});const rr="access_token";function qt(){return wa.get(rr)}function ir(){wa.remove(rr)}const Bn=["/sign-in","/sign-in-2","/sign-up","/forgot-password","/otp"];function Gc({children:s}){const a=Is(),t=cn(),l=qt();return m.useEffect(()=>{if(!l.value&&!Bn.includes(t.pathname)){const n=encodeURIComponent(t.pathname+t.search);a(`/sign-in?redirect=${n}`)}},[l.value,t.pathname,t.search,a]),Bn.includes(t.pathname)||l.value?e.jsx(e.Fragment,{children:s}):null}const ke=m.forwardRef(({className:s,orientation:a="horizontal",decorative:t=!0,...l},n)=>e.jsx(tl,{ref:n,decorative:t,orientation:a,className:y("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...l}));ke.displayName=tl.displayName;const Wc=Zs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xa=m.forwardRef(({className:s,...a},t)=>e.jsx(al,{ref:t,className:y(Wc(),s),...a}));xa.displayName=al.displayName;const we=hi,or=m.createContext({}),v=({...s})=>e.jsx(or.Provider,{value:{name:s.name},children:e.jsx(pi,{...s})}),Ca=()=>{const s=m.useContext(or),a=m.useContext(cr),{getFieldState:t,formState:l}=xi(),n=t(s.name,l);if(!s)throw new Error("useFormField should be used within ");const{id:o}=a;return{id:o,name:s.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...n}},cr=m.createContext({}),f=m.forwardRef(({className:s,...a},t)=>{const l=m.useId();return e.jsx(cr.Provider,{value:{id:l},children:e.jsx("div",{ref:t,className:y("space-y-2",s),...a})})});f.displayName="FormItem";const j=m.forwardRef(({className:s,...a},t)=>{const{error:l,formItemId:n}=Ca();return e.jsx(xa,{ref:t,className:y(l&&"text-destructive",s),htmlFor:n,...a})});j.displayName="FormLabel";const b=m.forwardRef(({...s},a)=>{const{error:t,formItemId:l,formDescriptionId:n,formMessageId:o}=Ca();return e.jsx(on,{ref:a,id:l,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...s})});b.displayName="FormControl";const F=m.forwardRef(({className:s,...a},t)=>{const{formDescriptionId:l}=Ca();return e.jsx("p",{ref:t,id:l,className:y("text-[0.8rem] text-muted-foreground",s),...a})});F.displayName="FormDescription";const P=m.forwardRef(({className:s,children:a,...t},l)=>{const{error:n,formMessageId:o}=Ca(),r=n?String(n?.message):a;return r?e.jsx("p",{ref:l,id:o,className:y("text-[0.8rem] font-medium text-destructive",s),...t,children:r}):null});P.displayName="FormMessage";const Bt=gi,Ct=m.forwardRef(({className:s,...a},t)=>e.jsx(nl,{ref:t,className:y("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...a}));Ct.displayName=nl.displayName;const Ee=m.forwardRef(({className:s,...a},t)=>e.jsx(ll,{ref:t,className:y("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...a}));Ee.displayName=ll.displayName;const We=m.forwardRef(({className:s,...a},t)=>e.jsx(rl,{ref:t,className:y("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...a}));We.displayName=rl.displayName;function Ce(s=void 0,a="YYYY-MM-DD HH:mm:ss"){return s==null?"":(Math.floor(s).toString().length===10&&(s=s*1e3),fi(s).format(a))}function Yc(s=void 0,a="YYYY-MM-DD"){return Ce(s,a)}function pt(s){const a=typeof s=="string"?parseFloat(s):s;return isNaN(a)?"0.00":a.toFixed(2)}function Ws(s,a=!0){if(s==null)return a?"¥0.00":"0.00";const t=typeof s=="string"?parseFloat(s):s;if(isNaN(t))return a?"¥0.00":"0.00";const n=(t/100).toFixed(2).replace(/\.?0+$/,o=>o.includes(".")?".00":o);return a?`¥${n}`:n}function ha(s){return new Promise(a=>{(async()=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(s);else{const l=document.createElement("textarea");l.value=s,l.style.position="fixed",l.style.opacity="0",document.body.appendChild(l),l.select();const n=document.execCommand("copy");if(document.body.removeChild(l),!n)throw new Error("execCommand failed")}a(!0)}catch(l){console.error(l),a(!1)}})()})}function Oe(s){const a=s/1024,t=a/1024,l=t/1024,n=l/1024;return n>=1?pt(n)+" TB":l>=1?pt(l)+" GB":t>=1?pt(t)+" MB":pt(a)+" KB"}const Jc="locale";function Qc(){return wa.get(Jc)}function dr(){ir();const s=window.location.pathname,a=s&&!["/404","/sign-in"].includes(s),t=new URL(window.location.href),n=`${t.pathname.split("/")[1]?`/${t.pathname.split("/")[1]}`:""}#/sign-in`;window.location.href=n+(a?`?redirect=${s}`:"")}const Xc=["/passport/auth/login","/passport/auth/token2Login","/passport/auth/register","/guest/comm/config","/passport/comm/sendEmailVerify","/passport/auth/forget"];function Zc(){const s=window.settings?.base_url||"/";return s.endsWith("/")?s+"api/v2":s+"/api/v2"}const gt=ji.create({baseURL:Zc(),timeout:12e3,headers:{"Content-Type":"application/json"}});gt.interceptors.request.use(s=>{s.method?.toLowerCase()==="get"&&(s.params={...s.params,t:Date.now()});const a=qt();if(!Xc.includes(s.url?.split("?")[0]||"")){if(!a.value)return dr(),Promise.reject({code:-1,message:"未登录"});s.headers.Authorization=a.value}return s.headers["Content-Language"]=Qc().value||"zh-CN",s},s=>Promise.reject(s));gt.interceptors.response.use(s=>s?.data||{code:-1,message:"未知错误"},s=>{const a=s.response?.status,t=s.response?.data?.message;return(a===401||a===403)&&dr(),A.error(t||{401:"登录已过期",403:"没有权限",404:"资源或接口不存在"}[a]||"未知异常"),Promise.reject(s.response?.data||{data:null,code:-1,message:"未知错误"})});const M={get:(s,a)=>gt.get(s,a),post:(s,a,t)=>gt.post(s,a,t),put:(s,a,t)=>gt.put(s,a,t),delete:(s,a)=>gt.delete(s,a)},ed="access_token";function sd(s){wa.set(ed,s)}const Bs=window?.settings?.secure_path,pa={getStats:()=>M.get(Bs+"/monitor/api/stats"),getOverride:()=>M.get(Bs+"/stat/getOverride"),getOrderStat:s=>M.get(Bs+"/stat/getOrder",{params:s}),getStatsData:()=>M.get(Bs+"/stat/getStats"),getNodeTrafficData:s=>M.get(Bs+"/stat/getTrafficRank",{params:s}),getServerLastRank:()=>M.get(Bs+"/stat/getServerLastRank"),getServerYesterdayRank:()=>M.get(Bs+"/stat/getServerYesterdayRank")},kt=window?.settings?.secure_path,Mt={getList:()=>M.get(kt+"/theme/getThemes"),getConfig:s=>M.post(kt+"/theme/getThemeConfig",{name:s}),updateConfig:(s,a)=>M.post(kt+"/theme/saveThemeConfig",{name:s,config:a}),upload:s=>{const a=new FormData;return a.append("file",s),M.post(kt+"/theme/upload",a,{headers:{"Content-Type":"multipart/form-data"}})},drop:s=>M.post(kt+"/theme/delete",{name:s})},dt=window?.settings?.secure_path,Js={getList:()=>M.get(dt+"/server/manage/getNodes"),save:s=>M.post(dt+"/server/manage/save",s),drop:s=>M.post(dt+"/server/manage/drop",s),copy:s=>M.post(dt+"/server/manage/copy",s),update:s=>M.post(dt+"/server/manage/update",s),sort:s=>M.post(dt+"/server/manage/sort",s)},$a=window?.settings?.secure_path,at={getList:()=>M.get($a+"/server/group/fetch"),save:s=>M.post($a+"/server/group/save",s),drop:s=>M.post($a+"/server/group/drop",s)},Aa=window?.settings?.secure_path,Sa={getList:()=>M.get(Aa+"/server/route/fetch"),save:s=>M.post(Aa+"/server/route/save",s),drop:s=>M.post(Aa+"/server/route/drop",s)},Gs=window?.settings?.secure_path,Qs={getList:()=>M.get(Gs+"/payment/fetch"),getMethodList:()=>M.get(Gs+"/payment/getPaymentMethods"),getMethodForm:s=>M.post(Gs+"/payment/getPaymentForm",s),save:s=>M.post(Gs+"/payment/save",s),drop:s=>M.post(Gs+"/payment/drop",s),updateStatus:s=>M.post(Gs+"/payment/show",s),sort:s=>M.post(Gs+"/payment/sort",s)},Tt=window?.settings?.secure_path,Ht={getList:()=>M.get(`${Tt}/notice/fetch`),save:s=>M.post(`${Tt}/notice/save`,s),drop:s=>M.post(`${Tt}/notice/drop`,{id:s}),updateStatus:s=>M.post(`${Tt}/notice/show`,{id:s}),sort:s=>M.post(`${Tt}/notice/sort`,{ids:s})},mt=window?.settings?.secure_path,vt={getList:()=>M.get(mt+"/knowledge/fetch"),getInfo:s=>M.get(mt+"/knowledge/fetch?id="+s),save:s=>M.post(mt+"/knowledge/save",s),drop:s=>M.post(mt+"/knowledge/drop",s),updateStatus:s=>M.post(mt+"/knowledge/show",s),sort:s=>M.post(mt+"/knowledge/sort",s)},Dt=window?.settings?.secure_path,es={getList:()=>M.get(Dt+"/plan/fetch"),save:s=>M.post(Dt+"/plan/save",s),update:s=>M.post(Dt+"/plan/update",s),drop:s=>M.post(Dt+"/plan/drop",s),sort:s=>M.post(Dt+"/plan/sort",{ids:s})},ut=window?.settings?.secure_path,Ys={getList:s=>M.post(ut+"/order/fetch",s),getInfo:s=>M.post(ut+"/order/detail",s),markPaid:s=>M.post(ut+"/order/paid",s),makeCancel:s=>M.post(ut+"/order/cancel",s),update:s=>M.post(ut+"/order/update",s),assign:s=>M.post(ut+"/order/assign",s)},Qt=window?.settings?.secure_path,ga={getList:s=>M.post(Qt+"/coupon/fetch",s),save:s=>M.post(Qt+"/coupon/generate",s),drop:s=>M.post(Qt+"/coupon/drop",s),update:s=>M.post(Qt+"/coupon/update",s)},Ns=window?.settings?.secure_path,ws={getList:s=>M.post(`${Ns}/user/fetch`,s),update:s=>M.post(`${Ns}/user/update`,s),resetSecret:s=>M.post(`${Ns}/user/resetSecret`,{id:s}),generate:s=>s.download_csv?M.post(`${Ns}/user/generate`,s,{responseType:"blob"}):M.post(`${Ns}/user/generate`,s),getStats:s=>M.post(`${Ns}/stat/getStatUser`,s),destroy:s=>M.post(`${Ns}/user/destroy`,{id:s}),sendMail:s=>M.post(`${Ns}/user/sendMail`,s),dumpCSV:s=>M.post(`${Ns}/user/dumpCSV`,s,{responseType:"blob"}),batchBan:s=>M.post(`${Ns}/user/ban`,s)},Xt=window?.settings?.secure_path,ft={getList:s=>M.post(Xt+"/ticket/fetch",s),getInfo:s=>M.get(Xt+"/ticket/fetch?id= "+s),reply:s=>M.post(Xt+"/ticket/reply",s),close:s=>M.post(Xt+"/ticket/close",{id:s})},os=window?.settings?.secure_path,me={getSettings:(s="")=>M.get(os+"/config/fetch?key="+s),saveSettings:s=>M.post(os+"/config/save",s),getEmailTemplate:()=>M.get(os+"/config/getEmailTemplate"),sendTestMail:()=>M.post(os+"/config/testSendMail"),setTelegramWebhook:()=>M.post(os+"/config/setTelegramWebhook"),updateSystemConfig:s=>M.post(os+"/config/save",s),getSystemStatus:()=>M.get(`${os}/system/getSystemStatus`),getQueueStats:()=>M.get(`${os}/system/getQueueStats`),getQueueWorkload:()=>M.get(`${os}/system/getQueueWorkload`),getQueueMasters:()=>M.get(`${os}/system/getQueueMasters`),getHorizonFailedJobs:s=>M.get(`${os}/system/getHorizonFailedJobs`,{params:s}),getSystemLog:s=>M.get(`${os}/system/getSystemLog`,{params:s})},Ds=window?.settings?.secure_path,Ps={getPluginList:()=>M.get(`${Ds}/plugin/getPlugins`),uploadPlugin:s=>{const a=new FormData;return a.append("file",s),M.post(`${Ds}/plugin/upload`,a,{headers:{"Content-Type":"multipart/form-data"}})},deletePlugin:s=>M.post(`${Ds}/plugin/delete`,{code:s}),installPlugin:s=>M.post(`${Ds}/plugin/install`,{code:s}),uninstallPlugin:s=>M.post(`${Ds}/plugin/uninstall`,{code:s}),enablePlugin:s=>M.post(`${Ds}/plugin/enable`,{code:s}),disablePlugin:s=>M.post(`${Ds}/plugin/disable`,{code:s}),getPluginConfig:s=>M.get(`${Ds}/plugin/config`,{params:{code:s}}),updatePluginConfig:(s,a)=>M.post(`${Ds}/plugin/config`,{code:s,config:a})};window?.settings?.secure_path;const td=x.object({subscribe_template_singbox:x.string().nullable(),subscribe_template_clash:x.string().nullable(),subscribe_template_clashmeta:x.string().nullable(),subscribe_template_stash:x.string().nullable(),subscribe_template_surge:x.string().nullable(),subscribe_template_surfboard:x.string().nullable()}),ad={subscribe_template_singbox:"",subscribe_template_clash:"",subscribe_template_clashmeta:"",subscribe_template_stash:"",subscribe_template_surge:"",subscribe_template_surfboard:""};function nd(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),[n,o]=m.useState("singbox"),r=ye({resolver:_e(td),defaultValues:ad,mode:"onBlur"}),{data:c}=ne({queryKey:["settings","client"],queryFn:()=>me.getSettings("subscribe_template")}),{mutateAsync:u}=gs({mutationFn:me.saveSettings,onSuccess:h=>{h.data&&A.success(s("common.autoSaved"))}});m.useEffect(()=>{if(c?.data.subscribe_template){const h=c.data.subscribe_template;Object.entries(h).forEach(([_,T])=>{r.setValue(_,T)}),l.current=h}},[c]),console.log(r.getValues());const i=m.useCallback(Se.debounce(async h=>{if(!Se.isEqual(h,l.current)){t(!0);try{await u(h),l.current=h}finally{t(!1)}}},1e3),[u]),d=m.useCallback(h=>{i(h)},[i]);return e.jsx(we,{...r,children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Bt,{value:n,onValueChange:o,children:[e.jsxs(Ct,{children:[e.jsx(Ee,{value:"singbox",children:"Sing-box"}),e.jsx(Ee,{value:"clash",children:"Clash"}),e.jsx(Ee,{value:"clashmeta",children:"Clash Meta"}),e.jsx(Ee,{value:"stash",children:"Stash"}),e.jsx(Ee,{value:"surge",children:"Surge"}),e.jsx(Ee,{value:"surfboard",children:"Surfboard"})]}),e.jsx(We,{value:"singbox",children:e.jsx(v,{control:r.control,name:"subscribe_template_singbox",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.singbox.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"json",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.singbox.description")}),e.jsx(P,{})]})})}),e.jsx(We,{value:"clash",children:e.jsx(v,{control:r.control,name:"subscribe_template_clash",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.clash.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"yaml",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.clash.description")}),e.jsx(P,{})]})})}),e.jsx(We,{value:"clashmeta",children:e.jsx(v,{control:r.control,name:"subscribe_template_clashmeta",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.clashmeta.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"yaml",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.clashmeta.description")}),e.jsx(P,{})]})})}),e.jsx(We,{value:"stash",children:e.jsx(v,{control:r.control,name:"subscribe_template_stash",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.stash.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"yaml",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.stash.description")}),e.jsx(P,{})]})})}),e.jsx(We,{value:"surge",children:e.jsx(v,{control:r.control,name:"subscribe_template_surge",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.surge.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"ini",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.surge.description")}),e.jsx(P,{})]})})}),e.jsx(We,{value:"surfboard",children:e.jsx(v,{control:r.control,name:"subscribe_template_surfboard",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe_template.surfboard.title")}),e.jsx(b,{children:e.jsx(ot,{height:"500px",defaultLanguage:"ini",value:h.value||"",onChange:_=>{typeof _=="string"&&(h.onChange(_),d(r.getValues()))},options:{minimap:{enabled:!1},fontSize:14}})}),e.jsx(F,{children:s("subscribe_template.surfboard.description")}),e.jsx(P,{})]})})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function ld(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe_template.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe_template.description")})]}),e.jsx(ke,{}),e.jsx(nd,{})]})}const rd=()=>e.jsx(Gc,{children:e.jsx(dn,{})}),id=vi([{path:"/sign-in",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>wd);return{default:s}},void 0,import.meta.url)).default})},{element:e.jsx(rd,{}),children:[{path:"/",lazy:async()=>({Component:(await fe(()=>Promise.resolve().then(()=>Id),void 0,import.meta.url)).default}),errorElement:e.jsx(ct,{}),children:[{index:!0,lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Zd);return{default:s}},void 0,import.meta.url)).default})},{path:"config",errorElement:e.jsx(ct,{}),children:[{path:"system",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>am);return{default:s}},void 0,import.meta.url)).default}),children:[{index:!0,lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>im);return{default:s}},void 0,import.meta.url)).default})},{path:"safe",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>um);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>fm);return{default:s}},void 0,import.meta.url)).default})},{path:"invite",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Nm);return{default:s}},void 0,import.meta.url)).default})},{path:"frontend",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>km);return{default:s}},void 0,import.meta.url)).default})},{path:"server",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Rm);return{default:s}},void 0,import.meta.url)).default})},{path:"email",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Mm);return{default:s}},void 0,import.meta.url)).default})},{path:"telegram",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>qm);return{default:s}},void 0,import.meta.url)).default})},{path:"APP",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Gm);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe-template",element:e.jsx(ld,{})}]},{path:"payment",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>eu);return{default:s}},void 0,import.meta.url)).default})},{path:"plugin",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>au);return{default:s}},void 0,import.meta.url)).default})},{path:"theme",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>iu);return{default:s}},void 0,import.meta.url)).default})},{path:"notice",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>hu);return{default:s}},void 0,import.meta.url)).default})},{path:"knowledge",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Nu);return{default:s}},void 0,import.meta.url)).default})}]},{path:"server",errorElement:e.jsx(ct,{}),children:[{path:"manage",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Xu);return{default:s}},void 0,import.meta.url)).default})},{path:"group",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>ax);return{default:s}},void 0,import.meta.url)).default})},{path:"route",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>cx);return{default:s}},void 0,import.meta.url)).default})}]},{path:"finance",errorElement:e.jsx(ct,{}),children:[{path:"plan",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>jx);return{default:s}},void 0,import.meta.url)).default})},{path:"order",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Rx);return{default:s}},void 0,import.meta.url)).default})},{path:"coupon",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Ax);return{default:s}},void 0,import.meta.url)).default})}]},{path:"user",errorElement:e.jsx(ct,{}),children:[{path:"manage",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>fh);return{default:s}},void 0,import.meta.url)).default})},{path:"ticket",lazy:async()=>({Component:(await fe(async()=>{const{default:s}=await Promise.resolve().then(()=>Mh);return{default:s}},void 0,import.meta.url)).default})}]}]}]},{path:"/500",Component:ct},{path:"/404",Component:Kn},{path:"/503",Component:$c},{path:"*",Component:Kn}]);function od(){return M.get("/user/info")}const qa={token:qt()?.value||"",userInfo:null,isLoggedIn:!!qt()?.value,loading:!1,error:null},Ot=bi("user/fetchUserInfo",async()=>(await od()).data,{condition:(s,{getState:a})=>{const{user:t}=a();return!!t.token&&!t.loading}}),mr=yi({name:"user",initialState:qa,reducers:{setToken(s,a){s.token=a.payload,s.isLoggedIn=!!a.payload},resetUserState:()=>qa},extraReducers:s=>{s.addCase(Ot.pending,a=>{a.loading=!0,a.error=null}).addCase(Ot.fulfilled,(a,t)=>{a.loading=!1,a.userInfo=t.payload,a.error=null}).addCase(Ot.rejected,(a,t)=>{if(a.loading=!1,a.error=t.error.message||"Failed to fetch user info",!a.token)return qa})}}),{setToken:cd,resetUserState:dd}=mr.actions,md=s=>s.user.userInfo,ud=mr.reducer,ur=Ni({reducer:{user:ud}});qt()?.value&&ur.dispatch(Ot());_i.use(wi).use(Ci).init({resources:{"en-US":window.XBOARD_TRANSLATIONS?.["en-US"]||{},"zh-CN":window.XBOARD_TRANSLATIONS?.["zh-CN"]||{},"ko-KR":window.XBOARD_TRANSLATIONS?.["ko-KR"]||{}},fallbackLng:"zh-CN",supportedLngs:["en-US","zh-CN","ko-KR"],detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",lookupLocalStorage:"i18nextLng",caches:["localStorage"]},interpolation:{escapeValue:!1}});const xd=new Si;ki.createRoot(document.getElementById("root")).render(e.jsx(Ti.StrictMode,{children:e.jsx(Di,{client:xd,children:e.jsx(Pi,{store:ur,children:e.jsxs(Fc,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[e.jsx(Ei,{router:id}),e.jsx(Ri,{richColors:!0,position:"top-right"})]})})})}));const Ye=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",s),...a}));Ye.displayName="Card";const ss=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex flex-col space-y-1.5 p-6",s),...a}));ss.displayName="CardHeader";const _s=m.forwardRef(({className:s,...a},t)=>e.jsx("h3",{ref:t,className:y("font-semibold leading-none tracking-tight",s),...a}));_s.displayName="CardTitle";const Xs=m.forwardRef(({className:s,...a},t)=>e.jsx("p",{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Xs.displayName="CardDescription";const ts=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("p-6 pt-0",s),...a}));ts.displayName="CardContent";const hd=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex items-center p-6 pt-0",s),...a}));hd.displayName="CardFooter";const D=m.forwardRef(({className:s,type:a,...t},l)=>e.jsx("input",{type:a,className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:l,...t}));D.displayName="Input";const xr=m.forwardRef(({className:s,...a},t)=>{const[l,n]=m.useState(!1);return e.jsxs("div",{className:"relative rounded-md",children:[e.jsx("input",{type:l?"text":"password",className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}),e.jsx(E,{type:"button",size:"icon",variant:"ghost",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground",onClick:()=>n(o=>!o),children:l?e.jsx(Ii,{size:18}):e.jsx(Li,{size:18})})]})});xr.displayName="PasswordInput";const pd=s=>M.post("/passport/auth/login",s);function gd({className:s,onForgotPassword:a,...t}){const l=Is(),n=il(),{t:o}=V("auth"),r=x.object({email:x.string().min(1,{message:o("signIn.validation.emailRequired")}),password:x.string().min(1,{message:o("signIn.validation.passwordRequired")}).min(7,{message:o("signIn.validation.passwordLength")})}),c=ye({resolver:_e(r),defaultValues:{email:"",password:""}});async function u(i){try{const{data:d}=await pd(i);sd(d.auth_data),n(cd(d.auth_data)),await n(Ot()).unwrap(),l("/")}catch(d){console.error("Login failed:",d),d.response?.data?.message&&c.setError("root",{message:d.response.data.message})}}return e.jsx("div",{className:y("grid gap-6",s),...t,children:e.jsx(we,{...c,children:e.jsx("form",{onSubmit:c.handleSubmit(u),className:"space-y-4",children:e.jsxs("div",{className:"space-y-4",children:[c.formState.errors.root&&e.jsx("div",{className:"text-sm text-destructive",children:c.formState.errors.root.message}),e.jsx(v,{control:c.control,name:"email",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:o("signIn.email")}),e.jsx(b,{children:e.jsx(D,{placeholder:o("signIn.emailPlaceholder"),autoComplete:"email",...i})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"password",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:o("signIn.password")}),e.jsx(b,{children:e.jsx(xr,{placeholder:o("signIn.passwordPlaceholder"),autoComplete:"current-password",...i})}),e.jsx(P,{})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(E,{variant:"link",type:"button",className:"px-0 text-sm font-normal text-muted-foreground hover:text-primary",onClick:a,children:o("signIn.forgotPassword")})}),e.jsx(E,{className:"w-full",size:"lg",loading:c.formState.isSubmitting,children:o("signIn.submit")})]})})})})}const pe=ol,rs=cl,fd=dl,qs=mn,hr=m.forwardRef(({className:s,...a},t)=>e.jsx(ja,{ref:t,className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a}));hr.displayName=ja.displayName;const ue=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(fd,{children:[e.jsx(hr,{}),e.jsxs(va,{ref:l,className:y("max-h-[95%] overflow-auto fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...t,children:[a,e.jsxs(mn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(ds,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=va.displayName;const ve=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",s),...a});ve.displayName="DialogHeader";const Re=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Re.displayName="DialogFooter";const ge=m.forwardRef(({className:s,...a},t)=>e.jsx(ba,{ref:t,className:y("text-lg font-semibold leading-none tracking-tight",s),...a}));ge.displayName=ba.displayName;const Le=m.forwardRef(({className:s,...a},t)=>e.jsx(ya,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Le.displayName=ya.displayName;const bt=Zs("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),G=m.forwardRef(({className:s,variant:a,size:t,asChild:l=!1,...n},o)=>{const r=l?on:"button";return e.jsx(r,{className:y(bt({variant:a,size:t,className:s})),ref:o,...n})});G.displayName="Button";const Es=Mi,Rs=Oi,jd=zi,vd=m.forwardRef(({className:s,inset:a,children:t,...l},n)=>e.jsxs(ml,{ref:n,className:y("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",s),...l,children:[t,e.jsx(un,{className:"ml-auto h-4 w-4"})]}));vd.displayName=ml.displayName;const bd=m.forwardRef(({className:s,...a},t)=>e.jsx(ul,{ref:t,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a}));bd.displayName=ul.displayName;const Cs=m.forwardRef(({className:s,sideOffset:a=4,...t},l)=>e.jsx(Vi,{children:e.jsx(xl,{ref:l,sideOffset:a,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t})}));Cs.displayName=xl.displayName;const Ne=m.forwardRef(({className:s,inset:a,...t},l)=>e.jsx(hl,{ref:l,className:y("relative flex cursor-default cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",s),...t}));Ne.displayName=hl.displayName;const yd=m.forwardRef(({className:s,children:a,checked:t,...l},n)=>e.jsxs(pl,{ref:n,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:t,...l,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(gl,{children:e.jsx(et,{className:"h-4 w-4"})})}),a]}));yd.displayName=pl.displayName;const Nd=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(fl,{ref:l,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(gl,{children:e.jsx(Fi,{className:"h-4 w-4 fill-current"})})}),a]}));Nd.displayName=fl.displayName;const vn=m.forwardRef(({className:s,inset:a,...t},l)=>e.jsx(jl,{ref:l,className:y("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",s),...t}));vn.displayName=jl.displayName;const yt=m.forwardRef(({className:s,...a},t)=>e.jsx(vl,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...a}));yt.displayName=vl.displayName;const ln=({className:s,...a})=>e.jsx("span",{className:y("ml-auto text-xs tracking-widest opacity-60",s),...a});ln.displayName="DropdownMenuShortcut";const Ha=[{code:"en-US",name:"English",flag:$i,shortName:"EN"},{code:"zh-CN",name:"中文",flag:Ai,shortName:"CN"},{code:"ko-KR",name:"한국어",flag:qi,shortName:"KR"}];function pr(){const{i18n:s}=V(),a=n=>{s.changeLanguage(n)},t=Ha.find(n=>n.code===s.language)||Ha[1],l=t.flag;return e.jsxs(Es,{children:[e.jsx(Rs,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",children:[e.jsx(l,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:"text-sm font-medium",children:t.shortName})]})}),e.jsx(Cs,{align:"end",className:"w-[120px]",children:Ha.map(n=>{const o=n.flag,r=n.code===s.language;return e.jsxs(Ne,{onClick:()=>a(n.code),className:y("flex items-center gap-2 px-2 py-1.5 cursor-pointer",r&&"bg-accent"),children:[e.jsx(o,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:y("text-sm",r&&"font-medium"),children:n.name})]},n.code)})})]})}function _d(){const[s,a]=m.useState(!1),{t}=V("auth"),l=t("signIn.resetPassword.command");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"container relative flex min-h-svh flex-col items-center justify-center bg-primary-foreground px-4 py-8 lg:max-w-none lg:px-0",children:[e.jsx("div",{className:"absolute right-4 top-4 md:right-8 md:top-8",children:e.jsx(pr,{})}),e.jsxs("div",{className:"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px] md:w-[420px] lg:p-8",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold sm:text-3xl",children:window?.settings?.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:window?.settings?.description})]}),e.jsxs(Ye,{className:"p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-left",children:[e.jsx("h1",{className:"text-xl font-semibold tracking-tight sm:text-2xl",children:t("signIn.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("signIn.description")})]}),e.jsx(gd,{onForgotPassword:()=>a(!0)})]})]})]}),e.jsx(pe,{open:s,onOpenChange:a,children:e.jsx(ue,{className:"max-w-[90vw] sm:max-w-lg",children:e.jsxs(ve,{children:[e.jsx(ge,{children:t("signIn.resetPassword.title")}),e.jsx(Le,{children:t("signIn.resetPassword.description")}),e.jsx("div",{className:"mt-4",children:e.jsxs("div",{className:"relative",children:[e.jsx("pre",{className:"max-w-full overflow-x-auto rounded-md bg-secondary p-4 pr-12 text-sm",children:l}),e.jsx(G,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-8 w-8 hover:bg-secondary-foreground/10",onClick:()=>ha(l).then(()=>{A.success(t("common:copy.success"))}),children:e.jsx(Hi,{className:"h-4 w-4"})})]})})]})})})]})}const wd=Object.freeze(Object.defineProperty({__proto__:null,default:_d},Symbol.toStringTag,{value:"Module"})),Ve=m.forwardRef(({className:s,fadedBelow:a=!1,fixedHeight:t=!1,...l},n)=>e.jsx("div",{ref:n,className:y("relative flex h-full w-full flex-col",a&&"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_hsl(var(--background))_70%)] after:md:block",t&&"md:h-svh",s),...l}));Ve.displayName="Layout";const Fe=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex h-[var(--header-height)] flex-none items-center gap-4 bg-background p-4 md:px-8",s),...a}));Fe.displayName="LayoutHeader";const Ae=m.forwardRef(({className:s,fixedHeight:a,...t},l)=>e.jsx("div",{ref:l,className:y("flex-1 overflow-hidden px-4 py-6 md:px-8",a&&"h-[calc(100%-var(--header-height))]",s),...t}));Ae.displayName="LayoutBody";const gr=Ui,fr=Ki,jr=Bi,be=Gi,xe=Wi,he=Yi,de=m.forwardRef(({className:s,sideOffset:a=4,...t},l)=>e.jsx(bl,{ref:l,sideOffset:a,className:y("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));de.displayName=bl.displayName;function ka(){const{pathname:s}=cn();return{checkActiveNav:t=>{if(t==="/"&&s==="/")return!0;const l=t.replace(/^\//,""),n=s.replace(/^\//,"");return l?n.startsWith(l):!1}}}function vr({key:s,defaultValue:a}){const[t,l]=m.useState(()=>{const n=localStorage.getItem(s);return n!==null?JSON.parse(n):a});return m.useEffect(()=>{localStorage.setItem(s,JSON.stringify(t))},[t,s]),[t,l]}function Cd(){const[s,a]=vr({key:"collapsed-sidebar-items",defaultValue:[]}),t=n=>!s.includes(n);return{isExpanded:t,toggleItem:n=>{t(n)?a([...s,n]):a(s.filter(o=>o!==n))}}}function Sd({links:s,isCollapsed:a,className:t,closeNav:l}){const{t:n}=V(),o=({sub:r,...c})=>{const u=`${n(c.title)}-${c.href}`;return a&&r?m.createElement(Dd,{...c,sub:r,key:u,closeNav:l}):a?m.createElement(Td,{...c,key:u,closeNav:l}):r?m.createElement(kd,{...c,sub:r,key:u,closeNav:l}):m.createElement(br,{...c,key:u,closeNav:l})};return e.jsx("div",{"data-collapsed":a,className:y("group border-b bg-background py-2 transition-[max-height,padding] duration-500 data-[collapsed=true]:py-2 md:border-none",t),children:e.jsx(be,{delayDuration:0,children:e.jsx("nav",{className:"grid gap-1 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:s.map(o)})})})}function br({title:s,icon:a,label:t,href:l,closeNav:n,subLink:o=!1}){const{checkActiveNav:r}=ka(),{t:c}=V();return e.jsxs(st,{to:l,onClick:n,className:y(wt({variant:r(l)?"secondary":"ghost",size:"sm"}),"h-12 justify-start text-wrap rounded-none px-6",o&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":r(l)?"page":void 0,children:[e.jsx("div",{className:"mr-2",children:a}),c(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:c(t)})]})}function kd({title:s,icon:a,label:t,sub:l,closeNav:n}){const{checkActiveNav:o}=ka(),{isExpanded:r,toggleItem:c}=Cd(),{t:u}=V(),i=!!l?.find(_=>o(_.href)),d=u(s),h=r(d)||i;return e.jsxs(gr,{open:h,onOpenChange:()=>c(d),children:[e.jsxs(fr,{className:y(wt({variant:i?"secondary":"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[e.jsx("div",{className:"mr-2",children:a}),u(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:u(t)}),e.jsx("span",{className:y('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:e.jsx(yl,{stroke:1})})]}),e.jsx(jr,{className:"collapsibleDropdown",asChild:!0,children:e.jsx("ul",{children:l.map(_=>e.jsx("li",{className:"my-1 ml-8",children:e.jsx(br,{..._,subLink:!0,closeNav:n})},u(_.title)))})})]})}function Td({title:s,icon:a,label:t,href:l,closeNav:n}){const{checkActiveNav:o}=ka(),{t:r}=V();return e.jsxs(xe,{delayDuration:0,children:[e.jsx(he,{asChild:!0,children:e.jsxs(st,{to:l,onClick:n,className:y(wt({variant:o(l)?"secondary":"ghost",size:"icon"}),"h-12 w-12"),children:[a,e.jsx("span",{className:"sr-only",children:r(s)})]})}),e.jsxs(de,{side:"right",className:"flex items-center gap-4",children:[r(s),t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:r(t)})]})]})}function Dd({title:s,icon:a,label:t,sub:l,closeNav:n}){const{checkActiveNav:o}=ka(),{t:r}=V(),c=!!l?.find(u=>o(u.href));return e.jsxs(Es,{children:[e.jsxs(xe,{delayDuration:0,children:[e.jsx(he,{asChild:!0,children:e.jsx(Rs,{asChild:!0,children:e.jsx(E,{variant:c?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:a})})}),e.jsxs(de,{side:"right",className:"flex items-center gap-4",children:[r(s)," ",t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:r(t)}),e.jsx(yl,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),e.jsxs(Cs,{side:"right",align:"start",sideOffset:4,children:[e.jsxs(vn,{children:[r(s)," ",t?`(${r(t)})`:""]}),e.jsx(yt,{}),l.map(({title:u,icon:i,label:d,href:h})=>e.jsx(Ne,{asChild:!0,children:e.jsxs(st,{to:h,onClick:n,className:`${o(h)?"bg-secondary":""}`,children:[i," ",e.jsx("span",{className:"ml-2 max-w-52 text-wrap",children:r(u)}),d&&e.jsx("span",{className:"ml-auto text-xs",children:r(d)})]})},`${r(u)}-${h}`))]})]})}const yr=[{title:"nav:dashboard",label:"",href:"/",icon:e.jsx(Ji,{size:18})},{title:"nav:systemManagement",label:"",href:"",icon:e.jsx(Qi,{size:18}),sub:[{title:"nav:systemConfig",label:"",href:"/config/system",icon:e.jsx(Nl,{size:18})},{title:"nav:pluginManagement",label:"",href:"/config/plugin",icon:e.jsx(xn,{size:18})},{title:"nav:themeConfig",label:"",href:"/config/theme",icon:e.jsx(Xi,{size:18})},{title:"nav:noticeManagement",label:"",href:"/config/notice",icon:e.jsx(Zi,{size:18})},{title:"nav:paymentConfig",label:"",href:"/config/payment",icon:e.jsx(Fn,{size:18})},{title:"nav:knowledgeManagement",label:"",href:"/config/knowledge",icon:e.jsx(eo,{size:18})}]},{title:"nav:nodeManagement",label:"",href:"",icon:e.jsx(_l,{size:18}),sub:[{title:"nav:nodeManagement",label:"",href:"/server/manage",icon:e.jsx(so,{size:18})},{title:"nav:permissionGroupManagement",label:"",href:"/server/group",icon:e.jsx(wl,{size:18})},{title:"nav:routeManagement",label:"",href:"/server/route",icon:e.jsx(to,{size:18})}]},{title:"nav:subscriptionManagement",label:"",href:"",icon:e.jsx(ao,{size:18}),sub:[{title:"nav:planManagement",label:"",href:"/finance/plan",icon:e.jsx(no,{size:18})},{title:"nav:orderManagement",label:"",href:"/finance/order",icon:e.jsx(Fn,{size:18})},{title:"nav:couponManagement",label:"",href:"/finance/coupon",icon:e.jsx(lo,{size:18})}]},{title:"nav:userManagement",label:"",href:"",icon:e.jsx(ro,{size:18}),sub:[{title:"nav:userManagement",label:"",href:"/user/manage",icon:e.jsx(io,{size:18})},{title:"nav:ticketManagement",label:"",href:"/user/ticket",icon:e.jsx(Cl,{size:18})}]}];function Pd({className:s,isCollapsed:a,setIsCollapsed:t}){const[l,n]=m.useState(!1),{t:o}=V();return m.useEffect(()=>{l?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[l]),e.jsxs("aside",{className:y(`fixed left-0 right-0 top-0 z-50 flex h-auto flex-col border-r-2 border-r-muted transition-[width] md:bottom-0 md:right-auto md:h-svh ${a?"md:w-14":"md:w-64"}`,s),children:[e.jsx("div",{onClick:()=>n(!1),className:`absolute inset-0 transition-[opacity] delay-100 duration-700 ${l?"h-svh opacity-50":"h-0 opacity-0"} w-full bg-black md:hidden`}),e.jsxs(Ve,{className:`flex h-full flex-col ${l?"h-[100vh] md:h-full":""}`,children:[e.jsxs(Fe,{className:"sticky top-0 justify-between px-4 py-3 shadow md:px-4",children:[e.jsxs("div",{className:`flex items-center ${a?"":"gap-2"}`,children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",className:`transition-all ${a?"h-6 w-6":"h-8 w-8"}`,children:[e.jsx("rect",{width:"256",height:"256",fill:"none"}),e.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("span",{className:"sr-only",children:"Website Name"})]}),e.jsx("div",{className:`flex flex-col justify-end truncate ${a?"invisible w-0":"visible w-auto"}`,children:e.jsx("span",{className:"font-medium",children:window?.settings?.title})})]}),e.jsx(E,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":o("common:toggleNavigation"),"aria-controls":"sidebar-menu","aria-expanded":l,onClick:()=>n(r=>!r),children:l?e.jsx(oo,{}):e.jsx(co,{})})]}),e.jsx(Sd,{id:"sidebar-menu",className:y("flex-1 overflow-auto overscroll-contain",l?"block":"hidden md:block","md:py-2"),closeNav:()=>n(!1),isCollapsed:a,links:yr}),e.jsx("div",{className:y("border-t border-border/50 bg-background","px-4 py-2.5 text-xs text-muted-foreground",l?"block":"hidden md:block",a?"text-center":"text-left"),children:e.jsxs("div",{className:y("flex items-center gap-1.5",a?"justify-center":"justify-start"),children:[e.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),e.jsxs("span",{className:y("whitespace-nowrap tracking-wide","transition-opacity duration-200",a&&"md:opacity-0"),children:["v",window?.settings?.version]})]})}),e.jsx(E,{onClick:()=>t(r=>!r),size:"icon",variant:"outline",className:"absolute -right-5 top-1/2 hidden rounded-full md:inline-flex","aria-label":o("common:toggleSidebar"),children:e.jsx(mo,{stroke:1.5,className:`h-5 w-5 ${a?"rotate-180":""}`})})]})]})}function Ed(){const[s,a]=vr({key:"collapsed-sidebar",defaultValue:!1});return m.useEffect(()=>{const t=()=>{a(window.innerWidth<768?!1:s)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[s,a]),[s,a]}function Rd(){const[s,a]=Ed();return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background",children:[e.jsx(Pd,{isCollapsed:s,setIsCollapsed:a}),e.jsx("main",{id:"content",className:`overflow-x-hidden pt-16 transition-[margin] md:overflow-y-hidden md:pt-0 ${s?"md:ml-14":"md:ml-64"} h-full`,children:e.jsx(dn,{})})]})}const Id=Object.freeze(Object.defineProperty({__proto__:null,default:Rd},Symbol.toStringTag,{value:"Module"})),Us=m.forwardRef(({className:s,...a},t)=>e.jsx(He,{ref:t,className:y("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...a}));Us.displayName=He.displayName;const Ld=({children:s,...a})=>e.jsx(pe,{...a,children:e.jsx(ue,{className:"overflow-hidden p-0",children:e.jsx(Us,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})}),nt=m.forwardRef(({className:s,...a},t)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(uo,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(He.Input,{ref:t,className:y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...a})]}));nt.displayName=He.Input.displayName;const Ks=m.forwardRef(({className:s,...a},t)=>e.jsx(He.List,{ref:t,className:y("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...a}));Ks.displayName=He.List.displayName;const lt=m.forwardRef((s,a)=>e.jsx(He.Empty,{ref:a,className:"py-6 text-center text-sm",...s}));lt.displayName=He.Empty.displayName;const as=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Group,{ref:t,className:y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...a}));as.displayName=He.Group.displayName;const St=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Separator,{ref:t,className:y("-mx-1 h-px bg-border",s),...a}));St.displayName=He.Separator.displayName;const $e=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Item,{ref:t,className:y("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...a}));$e.displayName=He.Item.displayName;function Vd(){const s=[];for(const a of yr)if(a.href&&s.push(a),a.sub)for(const t of a.sub)s.push({...t,parent:a.title});return s}function Xe(){const[s,a]=m.useState(!1),t=Is(),l=Vd(),{t:n}=V("search"),{t:o}=V("nav");m.useEffect(()=>{const c=u=>{u.key==="k"&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),a(i=>!i))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]);const r=m.useCallback(c=>{a(!1),t(c)},[t]);return e.jsxs(e.Fragment,{children:[e.jsxs(G,{variant:"outline",className:"relative h-9 w-9 p-0 xl:h-10 xl:w-60 xl:justify-start xl:px-3 xl:py-2",onClick:()=>a(!0),children:[e.jsx(hn,{className:"h-4 w-4 xl:mr-2"}),e.jsx("span",{className:"hidden xl:inline-flex",children:n("placeholder")}),e.jsx("span",{className:"sr-only",children:n("shortcut.label")}),e.jsx("kbd",{className:"pointer-events-none absolute right-1.5 top-2 hidden h-6 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 xl:flex",children:n("shortcut.key")})]}),e.jsxs(Ld,{open:s,onOpenChange:a,children:[e.jsx(nt,{placeholder:n("placeholder")}),e.jsxs(Ks,{children:[e.jsx(lt,{children:n("noResults")}),e.jsx(as,{heading:n("title"),children:l.map(c=>e.jsxs($e,{value:`${c.parent?c.parent+" ":""}${c.title}`,onSelect:()=>r(c.href),children:[e.jsx("div",{className:"mr-2",children:c.icon}),e.jsx("span",{children:o(c.title)}),c.parent&&e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:o(c.parent)})]},c.href))})]})]})]})}function Ue(){const{theme:s,setTheme:a}=Mc();return m.useEffect(()=>{const t=s==="dark"?"#020817":"#fff",l=document.querySelector("meta[name='theme-color']");l&&l.setAttribute("content",t)},[s]),e.jsxs(e.Fragment,{children:[e.jsx(E,{size:"icon",variant:"ghost",className:"rounded-full",onClick:()=>a(s==="light"?"dark":"light"),children:s==="light"?e.jsx(xo,{size:20}):e.jsx(ho,{size:20})}),e.jsx(pr,{})]})}const Nr=m.forwardRef(({className:s,...a},t)=>e.jsx(Sl,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...a}));Nr.displayName=Sl.displayName;const _r=m.forwardRef(({className:s,...a},t)=>e.jsx(kl,{ref:t,className:y("aspect-square h-full w-full",s),...a}));_r.displayName=kl.displayName;const wr=m.forwardRef(({className:s,...a},t)=>e.jsx(Tl,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...a}));wr.displayName=Tl.displayName;function Ke(){const s=Is(),a=il(),t=po(md),{t:l}=V(["common"]),n=()=>{ir(),a(dd()),s("/sign-in")},o=t?.email?.split("@")[0]||l("common:user"),r=o.substring(0,2).toUpperCase();return e.jsxs(Es,{children:[e.jsx(Rs,{asChild:!0,children:e.jsx(E,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:e.jsxs(Nr,{className:"h-8 w-8",children:[e.jsx(_r,{src:t?.avatar_url,alt:o}),e.jsx(wr,{children:r})]})})}),e.jsxs(Cs,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(vn,{className:"font-normal",children:e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:o}),e.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:t?.email||l("common:defaultEmail")})]})}),e.jsx(yt,{}),e.jsx(Ne,{asChild:!0,children:e.jsxs(st,{to:"/config/system",children:[l("common:settings"),e.jsx(ln,{children:"⌘S"})]})}),e.jsx(yt,{}),e.jsxs(Ne,{onClick:n,children:[l("common:logout"),e.jsx(ln,{children:"⇧⌘Q"})]})]})]})}const X=go,Be=wo,Z=fo,Y=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Dl,{ref:l,className:y("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...t,children:[a,e.jsx(jo,{asChild:!0,children:e.jsx(pn,{className:"h-4 w-4 opacity-50"})})]}));Y.displayName=Dl.displayName;const Cr=m.forwardRef(({className:s,...a},t)=>e.jsx(Pl,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(vo,{className:"h-4 w-4"})}));Cr.displayName=Pl.displayName;const Sr=m.forwardRef(({className:s,...a},t)=>e.jsx(El,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(pn,{className:"h-4 w-4"})}));Sr.displayName=El.displayName;const J=m.forwardRef(({className:s,children:a,position:t="popper",...l},n)=>e.jsx(bo,{children:e.jsxs(Rl,{ref:n,className:y("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:t,...l,children:[e.jsx(Cr,{}),e.jsx(yo,{className:y("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(Sr,{})]})}));J.displayName=Rl.displayName;const Fd=m.forwardRef(({className:s,...a},t)=>e.jsx(Il,{ref:t,className:y("px-2 py-1.5 text-sm font-semibold",s),...a}));Fd.displayName=Il.displayName;const $=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Ll,{ref:l,className:y("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(No,{children:e.jsx(et,{className:"h-4 w-4"})})}),e.jsx(_o,{children:a})]}));$.displayName=Ll.displayName;const Md=m.forwardRef(({className:s,...a},t)=>e.jsx(Vl,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...a}));Md.displayName=Vl.displayName;function rt({className:s,classNames:a,showOutsideDays:t=!0,...l}){return e.jsx(Co,{showOutsideDays:t,className:y("p-3",s),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(bt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",l.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(bt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:({className:n,...o})=>e.jsx(Fl,{className:y("h-4 w-4",n),...o}),IconRight:({className:n,...o})=>e.jsx(un,{className:y("h-4 w-4",n),...o})},...l})}rt.displayName="Calendar";const Ss=ko,ks=To,bs=m.forwardRef(({className:s,align:a="center",sideOffset:t=4,...l},n)=>e.jsx(So,{children:e.jsx(Ml,{ref:n,align:a,sideOffset:t,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...l})}));bs.displayName=Ml.displayName;const zs={income:{main:"hsl(var(--primary))",gradient:{start:"hsl(var(--primary))",end:"transparent"}},commission:{main:"hsl(var(--secondary))",gradient:{start:"hsl(var(--secondary))",end:"transparent"}}},Lt=s=>(s/100).toFixed(2),Od=({active:s,payload:a,label:t})=>{const{t:l}=V();return s&&a&&a.length?e.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-sm",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:t}),a.map((n,o)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:n.color}}),e.jsxs("span",{className:"text-muted-foreground",children:[l(n.name),":"]}),e.jsx("span",{className:"font-medium",children:n.name.includes(l("dashboard:overview.amount"))?`¥${Lt(n.value)}`:l("dashboard:overview.transactions",{count:n.value})})]},o))]}):null},zd=[{value:"7d",label:"dashboard:overview.last7Days"},{value:"30d",label:"dashboard:overview.last30Days"},{value:"90d",label:"dashboard:overview.last90Days"},{value:"180d",label:"dashboard:overview.last180Days"},{value:"365d",label:"dashboard:overview.lastYear"},{value:"custom",label:"dashboard:overview.customRange"}],$d=(s,a)=>{const t=new Date;if(s==="custom"&&a)return{startDate:a.from,endDate:a.to};let l;switch(s){case"7d":l=hs(t,7);break;case"30d":l=hs(t,30);break;case"90d":l=hs(t,90);break;case"180d":l=hs(t,180);break;case"365d":l=hs(t,365);break;default:l=hs(t,30)}return{startDate:l,endDate:t}};function Ad(){const[s,a]=m.useState("amount"),[t,l]=m.useState("30d"),[n,o]=m.useState({from:hs(new Date,7),to:new Date}),{t:r}=V(),{startDate:c,endDate:u}=$d(t,n),{data:i}=ne({queryKey:["orderStat",{start_date:xs(c,"yyyy-MM-dd"),end_date:xs(u,"yyyy-MM-dd")}],queryFn:async()=>{const{data:d}=await pa.getOrderStat({start_date:xs(c,"yyyy-MM-dd"),end_date:xs(u,"yyyy-MM-dd")});return d},refetchInterval:3e4});return e.jsxs(Ye,{children:[e.jsx(ss,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(_s,{children:r("dashboard:overview.title")}),e.jsxs(Xs,{children:[i?.summary.start_date," ",r("dashboard:overview.to")," ",i?.summary.end_date]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsxs(X,{value:t,onValueChange:d=>l(d),children:[e.jsx(Y,{className:"w-[120px]",children:e.jsx(Z,{placeholder:r("dashboard:overview.selectTimeRange")})}),e.jsx(J,{children:zd.map(d=>e.jsx($,{value:d.value,children:r(d.label)},d.value))})]}),t==="custom"&&e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(Kt,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:n?.from?n.to?e.jsxs(e.Fragment,{children:[xs(n.from,"yyyy-MM-dd")," -"," ",xs(n.to,"yyyy-MM-dd")]}):xs(n.from,"yyyy-MM-dd"):r("dashboard:overview.selectDate")})]})}),e.jsx(bs,{className:"w-auto p-0",align:"end",children:e.jsx(rt,{mode:"range",defaultMonth:n?.from,selected:{from:n?.from,to:n?.to},onSelect:d=>{d?.from&&d?.to&&o({from:d.from,to:d.to})},numberOfMonths:2})})]})]}),e.jsx(Bt,{value:s,onValueChange:d=>a(d),children:e.jsxs(Ct,{children:[e.jsx(Ee,{value:"amount",children:r("dashboard:overview.amount")}),e.jsx(Ee,{value:"count",children:r("dashboard:overview.count")})]})})]})]})}),e.jsxs(ts,{children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:r("dashboard:overview.totalIncome")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",Lt(i?.summary?.paid_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:r("dashboard:overview.totalTransactions",{count:i?.summary?.paid_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[r("dashboard:overview.avgOrderAmount")," ¥",Lt(i?.summary?.avg_paid_amount||0)]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:r("dashboard:overview.totalCommission")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",Lt(i?.summary?.commission_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:r("dashboard:overview.totalTransactions",{count:i?.summary?.commission_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[r("dashboard:overview.commissionRate")," ",i?.summary?.commission_rate.toFixed(2)||0,"%"]})]})]}),e.jsx("div",{className:"h-[400px] w-full",children:e.jsx(Do,{width:"100%",height:"100%",children:e.jsxs(Po,{data:i?.list||[],margin:{top:20,right:20,left:0,bottom:0},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"incomeGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:zs.income.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:zs.income.gradient.end,stopOpacity:.1})]}),e.jsxs("linearGradient",{id:"commissionGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:zs.commission.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:zs.commission.gradient.end,stopOpacity:.1})]})]}),e.jsx(Eo,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:d=>xs(new Date(d),"MM-dd",{locale:Vo})}),e.jsx(Ro,{axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:d=>s==="amount"?`¥${Lt(d)}`:r("dashboard:overview.transactions",{count:d})}),e.jsx(Io,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),e.jsx(Lo,{content:e.jsx(Od,{})}),s==="amount"?e.jsxs(e.Fragment,{children:[e.jsx(Mn,{type:"monotone",dataKey:"paid_total",name:r("dashboard:overview.orderAmount"),stroke:zs.income.main,fill:"url(#incomeGradient)",strokeWidth:2}),e.jsx(Mn,{type:"monotone",dataKey:"commission_total",name:r("dashboard:overview.commissionAmount"),stroke:zs.commission.main,fill:"url(#commissionGradient)",strokeWidth:2})]}):e.jsxs(e.Fragment,{children:[e.jsx(On,{dataKey:"paid_count",name:r("dashboard:overview.orderCount"),fill:zs.income.main,radius:[4,4,0,0],maxBarSize:40}),e.jsx(On,{dataKey:"commission_count",name:r("dashboard:overview.commissionCount"),fill:zs.commission.main,radius:[4,4,0,0],maxBarSize:40})]})]})})})]})]})}function ce({className:s,...a}){return e.jsx("div",{className:y("animate-pulse rounded-md bg-primary/10",s),...a})}function qd(){return e.jsxs(Ye,{children:[e.jsxs(ss,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ce,{className:"h-4 w-[120px]"}),e.jsx(ce,{className:"h-4 w-4"})]}),e.jsxs(ts,{children:[e.jsx(ce,{className:"h-8 w-[140px] mb-2"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ce,{className:"h-4 w-4"}),e.jsx(ce,{className:"h-4 w-[100px]"})]})]})]})}function Hd(){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:8}).map((s,a)=>e.jsx(qd,{},a))})}var ae=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.CANCELLED=2]="CANCELLED",s[s.COMPLETED=3]="COMPLETED",s[s.DISCOUNTED=4]="DISCOUNTED",s))(ae||{});const Pt={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Et={0:"yellow-500",1:"blue-500",2:"red-500",3:"green-500",4:"green-500"};var ps=(s=>(s[s.NEW=1]="NEW",s[s.RENEWAL=2]="RENEWAL",s[s.UPGRADE=3]="UPGRADE",s[s.RESET_FLOW=4]="RESET_FLOW",s))(ps||{}),je=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.VALID=2]="VALID",s[s.INVALID=3]="INVALID",s))(je||{});const Zt={0:"待确认",1:"发放中",2:"有效",3:"无效"},ea={0:"yellow-500",1:"blue-500",2:"green-500",3:"red-500"};var Ie=(s=>(s.MONTH_PRICE="month_price",s.QUARTER_PRICE="quarter_price",s.HALF_YEAR_PRICE="half_year_price",s.YEAR_PRICE="year_price",s.TWO_YEAR_PRICE="two_year_price",s.THREE_YEAR_PRICE="three_year_price",s.ONETIME_PRICE="onetime_price",s.RESET_PRICE="reset_price",s))(Ie||{});const Ud={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"};var re=(s=>(s.Shadowsocks="shadowsocks",s.Vmess="vmess",s.Trojan="trojan",s.Hysteria="hysteria",s.Vless="vless",s.Tuic="tuic",s.Socks="socks",s.Naive="naive",s.Http="http",s.Mieru="mieru",s.AnyTLS="anytls",s))(re||{});const cs=[{type:"shadowsocks",label:"Shadowsocks"},{type:"vmess",label:"VMess"},{type:"trojan",label:"Trojan"},{type:"hysteria",label:"Hysteria"},{type:"vless",label:"VLess"},{type:"tuic",label:"TUIC"},{type:"socks",label:"SOCKS"},{type:"naive",label:"Naive"},{type:"http",label:"HTTP"},{type:"mieru",label:"Mieru"},{type:"anytls",label:"AnyTLS"}],Ge={shadowsocks:"#489851",vmess:"#CB3180",trojan:"#EBB749",hysteria:"#5684e6",vless:"#1a1a1a",tuic:"#00C853",socks:"#2196F3",naive:"#9C27B0",http:"#FF5722",mieru:"#4CAF50",anytls:"#7E57C2"};var Ze=(s=>(s[s.AMOUNT=1]="AMOUNT",s[s.PERCENTAGE=2]="PERCENTAGE",s))(Ze||{});const Kd={1:"按金额优惠",2:"按比例优惠"};var Hs=(s=>(s[s.OPENING=0]="OPENING",s[s.CLOSED=1]="CLOSED",s))(Hs||{}),qe=(s=>(s[s.LOW=0]="LOW",s[s.MIDDLE=1]="MIDDLE",s[s.HIGH=2]="HIGH",s))(qe||{}),zt=(s=>(s.MONTH="monthly",s.QUARTER="quarterly",s.HALF_YEAR="half_yearly",s.YEAR="yearly",s.TWO_YEAR="two_yearly",s.THREE_YEAR="three_yearly",s.ONETIME="onetime",s.RESET="reset_traffic",s))(zt||{});function $s({title:s,value:a,icon:t,trend:l,description:n,onClick:o,highlight:r,className:c}){return e.jsxs(Ye,{className:y("transition-colors",o&&"cursor-pointer hover:bg-muted/50",r&&"border-primary/50",c),onClick:o,children:[e.jsxs(ss,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(_s,{className:"text-sm font-medium",children:s}),t]}),e.jsxs(ts,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),l?e.jsxs("div",{className:"flex items-center pt-1",children:[e.jsx(Ao,{className:y("h-4 w-4",l.isPositive?"text-emerald-500":"text-red-500")}),e.jsxs("span",{className:y("ml-1 text-xs",l.isPositive?"text-emerald-500":"text-red-500"),children:[l.isPositive?"+":"-",Math.abs(l.value),"%"]}),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:l.label})]}):e.jsx("p",{className:"text-xs text-muted-foreground",children:n})]})]})}function Bd({className:s}){const a=Is(),{t}=V(),{data:l,isLoading:n}=ne({queryKey:["dashboardStats"],queryFn:async()=>(await pa.getStatsData()).data,refetchInterval:1e3*60*5});if(n||!l)return e.jsx(Hd,{});const o=()=>{const r=new URLSearchParams;r.set("commission_status",je.PENDING.toString()),r.set("status",ae.COMPLETED.toString()),r.set("commission_balance","gt:0"),a(`/finance/order?${r.toString()}`)};return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2 lg:grid-cols-4",s),children:[e.jsx($s,{title:t("dashboard:stats.todayIncome"),value:Ws(l.todayIncome),icon:e.jsx(Fo,{className:"h-4 w-4 text-emerald-500"}),trend:{value:l.dayIncomeGrowth,label:t("dashboard:stats.vsYesterday"),isPositive:l.dayIncomeGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.monthlyIncome"),value:Ws(l.currentMonthIncome),icon:e.jsx(Mo,{className:"h-4 w-4 text-blue-500"}),trend:{value:l.monthIncomeGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:l.monthIncomeGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.pendingTickets"),value:l.ticketPendingTotal,icon:e.jsx(Oo,{className:y("h-4 w-4",l.ticketPendingTotal>0?"text-orange-500":"text-muted-foreground")}),description:l.ticketPendingTotal>0?t("dashboard:stats.hasPendingTickets"):t("dashboard:stats.noPendingTickets"),onClick:()=>a("/user/ticket"),highlight:l.ticketPendingTotal>0}),e.jsx($s,{title:t("dashboard:stats.pendingCommission"),value:l.commissionPendingTotal,icon:e.jsx(zo,{className:y("h-4 w-4",l.commissionPendingTotal>0?"text-blue-500":"text-muted-foreground")}),description:l.commissionPendingTotal>0?t("dashboard:stats.hasPendingCommission"):t("dashboard:stats.noPendingCommission"),onClick:o,highlight:l.commissionPendingTotal>0}),e.jsx($s,{title:t("dashboard:stats.monthlyNewUsers"),value:l.currentMonthNewUsers,icon:e.jsx(Qa,{className:"h-4 w-4 text-blue-500"}),trend:{value:l.userGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:l.userGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.totalUsers"),value:l.totalUsers,icon:e.jsx(Qa,{className:"h-4 w-4 text-muted-foreground"}),description:t("dashboard:stats.activeUsers",{count:l.activeUsers})}),e.jsx($s,{title:t("dashboard:stats.monthlyUpload"),value:Oe(l.monthTraffic.upload),icon:e.jsx(At,{className:"h-4 w-4 text-emerald-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(l.todayTraffic.upload)})}),e.jsx($s,{title:t("dashboard:stats.monthlyDownload"),value:Oe(l.monthTraffic.download),icon:e.jsx($o,{className:"h-4 w-4 text-blue-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(l.todayTraffic.download)})})]})}const Nt=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Ol,{ref:l,className:y("relative overflow-hidden",s),...t,children:[e.jsx(qo,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(fa,{}),e.jsx(Ho,{})]}));Nt.displayName=Ol.displayName;const fa=m.forwardRef(({className:s,orientation:a="vertical",...t},l)=>e.jsx(zl,{ref:l,orientation:a,className:y("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...t,children:e.jsx(Uo,{className:"relative flex-1 rounded-full bg-border"})}));fa.displayName=zl.displayName;const rn={today:{getValue:()=>{const s=Bo();return{start:s,end:Go(s,1)}}},last7days:{getValue:()=>{const s=new Date;return{start:hs(s,7),end:s}}},last30days:{getValue:()=>{const s=new Date;return{start:hs(s,30),end:s}}},custom:{getValue:()=>null}};function Gn({selectedRange:s,customDateRange:a,onRangeChange:t,onCustomRangeChange:l}){const{t:n}=V(),o={today:n("dashboard:trafficRank.today"),last7days:n("dashboard:trafficRank.last7days"),last30days:n("dashboard:trafficRank.last30days"),custom:n("dashboard:trafficRank.customRange")};return e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[e.jsxs(X,{value:s,onValueChange:t,children:[e.jsx(Y,{className:"w-[120px]",children:e.jsx(Z,{placeholder:n("dashboard:trafficRank.selectTimeRange")})}),e.jsx(J,{position:"popper",className:"z-50",children:Object.entries(rn).map(([r])=>e.jsx($,{value:r,children:o[r]},r))})]}),s==="custom"&&e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(Kt,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:a?.from?a.to?e.jsxs(e.Fragment,{children:[xs(a.from,"yyyy-MM-dd")," -"," ",xs(a.to,"yyyy-MM-dd")]}):xs(a.from,"yyyy-MM-dd"):e.jsx("span",{children:n("dashboard:trafficRank.selectDateRange")})})]})}),e.jsx(bs,{className:"w-auto p-0",align:"end",children:e.jsx(rt,{mode:"range",defaultMonth:a?.from,selected:{from:a?.from,to:a?.to},onSelect:r=>{r?.from&&r?.to&&l({from:r.from,to:r.to})},numberOfMonths:2})})]})]})}const xt=s=>`${(s/1024/1024/1024).toFixed(2)} GB`;function Gd({className:s}){const{t:a}=V(),[t,l]=m.useState("today"),[n,o]=m.useState({from:hs(new Date,7),to:new Date}),[r,c]=m.useState("today"),[u,i]=m.useState({from:hs(new Date,7),to:new Date}),d=m.useMemo(()=>t==="custom"?{start:n.from,end:n.to}:rn[t].getValue(),[t,n]),h=m.useMemo(()=>r==="custom"?{start:u.from,end:u.to}:rn[r].getValue(),[r,u]),{data:_}=ne({queryKey:["nodeTrafficRank",d.start,d.end],queryFn:()=>pa.getNodeTrafficData({type:"node",start_time:Se.round(d.start.getTime()/1e3),end_time:Se.round(d.end.getTime()/1e3)}),refetchInterval:3e4}),{data:T}=ne({queryKey:["userTrafficRank",h.start,h.end],queryFn:()=>pa.getNodeTrafficData({type:"user",start_time:Se.round(h.start.getTime()/1e3),end_time:Se.round(h.end.getTime()/1e3)}),refetchInterval:3e4});return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2",s),children:[e.jsxs(Ye,{children:[e.jsx(ss,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(_s,{className:"flex items-center text-base font-medium",children:[e.jsx(Ko,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.nodeTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(Gn,{selectedRange:t,customDateRange:n,onRangeChange:l,onCustomRangeChange:o}),e.jsx(zn,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(ts,{className:"flex-1",children:_?.data?e.jsxs(Nt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:_.data.map(S=>e.jsx(be,{delayDuration:200,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(Xa,{className:"mr-1 h-3 w-3"}):e.jsx(Za,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/_.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:xt(S.value)})]})]})})}),e.jsx(de,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:xt(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:xt(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(fa,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]}),e.jsxs(Ye,{children:[e.jsx(ss,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(_s,{className:"flex items-center text-base font-medium",children:[e.jsx(Qa,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.userTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(Gn,{selectedRange:r,customDateRange:u,onRangeChange:c,onCustomRangeChange:i}),e.jsx(zn,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(ts,{className:"flex-1",children:T?.data?e.jsxs(Nt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:T.data.map(S=>e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(Xa,{className:"mr-1 h-3 w-3"}):e.jsx(Za,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/T.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:xt(S.value)})]})]})})}),e.jsx(de,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:xt(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:xt(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(fa,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]})]})}const Wd=Zs("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/10",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function B({className:s,variant:a,...t}){return e.jsx("div",{className:y(Wd({variant:a}),s),...t})}const ra=m.forwardRef(({className:s,value:a,...t},l)=>e.jsx($l,{ref:l,className:y("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...t,children:e.jsx(Wo,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));ra.displayName=$l.displayName;const bn=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:t,className:y("w-full caption-bottom text-sm",s),...a})}));bn.displayName="Table";const yn=m.forwardRef(({className:s,...a},t)=>e.jsx("thead",{ref:t,className:y("[&_tr]:border-b",s),...a}));yn.displayName="TableHeader";const Nn=m.forwardRef(({className:s,...a},t)=>e.jsx("tbody",{ref:t,className:y("[&_tr:last-child]:border-0",s),...a}));Nn.displayName="TableBody";const Yd=m.forwardRef(({className:s,...a},t)=>e.jsx("tfoot",{ref:t,className:y("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...a}));Yd.displayName="TableFooter";const As=m.forwardRef(({className:s,...a},t)=>e.jsx("tr",{ref:t,className:y("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",s),...a}));As.displayName="TableRow";const _n=m.forwardRef(({className:s,...a},t)=>e.jsx("th",{ref:t,className:y("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));_n.displayName="TableHead";const jt=m.forwardRef(({className:s,...a},t)=>e.jsx("td",{ref:t,className:y("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));jt.displayName="TableCell";const Jd=m.forwardRef(({className:s,...a},t)=>e.jsx("caption",{ref:t,className:y("mt-4 text-sm text-muted-foreground",s),...a}));Jd.displayName="TableCaption";function wn({table:s}){const[a,t]=m.useState(""),{t:l}=V("common");m.useEffect(()=>{t((s.getState().pagination.pageIndex+1).toString())},[s.getState().pagination.pageIndex]);const n=o=>{const r=parseInt(o);!isNaN(r)&&r>=1&&r<=s.getPageCount()?s.setPageIndex(r-1):t((s.getState().pagination.pageIndex+1).toString())};return e.jsxs("div",{className:"flex flex-col-reverse gap-4 px-2 py-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("div",{className:"flex-1 text-sm text-muted-foreground",children:l("table.pagination.selected",{selected:s.getFilteredSelectedRowModel().rows.length,total:s.getFilteredRowModel().rows.length})}),e.jsxs("div",{className:"flex flex-col-reverse items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:l("table.pagination.itemsPerPage")}),e.jsxs(X,{value:`${s.getState().pagination.pageSize}`,onValueChange:o=>{s.setPageSize(Number(o))},children:[e.jsx(Y,{className:"h-8 w-[70px]",children:e.jsx(Z,{placeholder:s.getState().pagination.pageSize})}),e.jsx(J,{side:"top",children:[10,20,30,40,50,100,500].map(o=>e.jsx($,{value:`${o}`,children:o},o))})]})]}),e.jsxs("div",{className:"flex items-center justify-center space-x-2 text-sm font-medium",children:[e.jsx("span",{children:l("table.pagination.page")}),e.jsx(D,{type:"text",value:a,onChange:o=>t(o.target.value),onBlur:o=>n(o.target.value),onKeyDown:o=>{o.key==="Enter"&&n(o.currentTarget.value)},className:"h-8 w-[50px] text-center"}),e.jsx("span",{children:l("table.pagination.pageOf",{total:s.getPageCount()})})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(E,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.firstPage")}),e.jsx(Yo,{className:"h-4 w-4"})]}),e.jsxs(E,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.previousPage")}),e.jsx(Fl,{className:"h-4 w-4"})]}),e.jsxs(E,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.nextPage")}),e.jsx(un,{className:"h-4 w-4"})]}),e.jsxs(E,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.lastPage")}),e.jsx(Jo,{className:"h-4 w-4"})]})]})]})]})}function is({table:s,toolbar:a,draggable:t=!1,onDragStart:l,onDragEnd:n,onDragOver:o,onDragLeave:r,onDrop:c,showPagination:u=!0,isLoading:i=!1}){const{t:d}=V("common"),h=m.useRef(null),_=s.getAllColumns().filter(N=>N.getIsPinned()==="left"),T=s.getAllColumns().filter(N=>N.getIsPinned()==="right"),S=N=>_.slice(0,N).reduce((g,k)=>g+(k.getSize()??0),0),C=N=>T.slice(N+1).reduce((g,k)=>g+(k.getSize()??0),0);return e.jsxs("div",{className:"space-y-4",children:[typeof a=="function"?a(s):a,e.jsx("div",{ref:h,className:"relative overflow-auto rounded-md border bg-card",children:e.jsx("div",{className:"overflow-auto",children:e.jsxs(bn,{children:[e.jsx(yn,{children:s.getHeaderGroups().map(N=>e.jsx(As,{className:"hover:bg-transparent",children:N.headers.map((g,k)=>{const R=g.column.getIsPinned()==="left",p=g.column.getIsPinned()==="right",w=R?S(_.indexOf(g.column)):void 0,I=p?C(T.indexOf(g.column)):void 0;return e.jsx(_n,{colSpan:g.colSpan,style:{width:g.getSize(),...R&&{left:w},...p&&{right:I}},className:y("h-11 bg-card px-4 text-muted-foreground",(R||p)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",R&&"before:right-0",p&&"before:left-0"]),children:g.isPlaceholder?null:da(g.column.columnDef.header,g.getContext())},g.id)})},N.id))}),e.jsx(Nn,{children:s.getRowModel().rows?.length?s.getRowModel().rows.map((N,g)=>e.jsx(As,{"data-state":N.getIsSelected()&&"selected",className:"hover:bg-muted/50",draggable:t,onDragStart:k=>l?.(k,g),onDragEnd:n,onDragOver:o,onDragLeave:r,onDrop:k=>c?.(k,g),children:N.getVisibleCells().map((k,R)=>{const p=k.column.getIsPinned()==="left",w=k.column.getIsPinned()==="right",I=p?S(_.indexOf(k.column)):void 0,H=w?C(T.indexOf(k.column)):void 0;return e.jsx(jt,{style:{width:k.column.getSize(),...p&&{left:I},...w&&{right:H}},className:y("bg-card",(p||w)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",p&&"before:right-0",w&&"before:left-0"]),children:da(k.column.columnDef.cell,k.getContext())},k.id)})},N.id)):e.jsx(As,{children:e.jsx(jt,{colSpan:s.getAllColumns().length,className:"h-24 text-center",children:d("table.noData")})})})]})})}),u&&e.jsx(wn,{table:s})]})}const ia=s=>{if(!s)return"";let a;if(typeof s=="string"){if(a=parseInt(s),isNaN(a))return s}else a=s;return(a.toString().length===10?new Date(a*1e3):new Date(a)).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})},Rt=Al(),It=Al();function sa({data:s,isLoading:a,searchKeyword:t,selectedLevel:l,total:n,currentPage:o,pageSize:r,onViewDetail:c,onPageChange:u}){const{t:i}=V(),d=T=>{switch(T.toLowerCase()){case"info":return e.jsx(Ft,{className:"h-4 w-4 text-blue-500"});case"warning":return e.jsx(sn,{className:"h-4 w-4 text-yellow-500"});case"error":return e.jsx(tn,{className:"h-4 w-4 text-red-500"});default:return e.jsx(Ft,{className:"h-4 w-4 text-slate-500"})}},h=m.useMemo(()=>[Rt.accessor("level",{id:"level",header:()=>i("dashboard:systemLog.level","级别"),size:80,cell:({getValue:T,row:S})=>{const C=T();return e.jsxs("div",{className:"flex items-center gap-1",children:[d(C),e.jsx("span",{className:y(C.toLowerCase()==="error"&&"text-red-600",C.toLowerCase()==="warning"&&"text-yellow-600",C.toLowerCase()==="info"&&"text-blue-600"),children:C})]})}}),Rt.accessor("created_at",{id:"created_at",header:()=>i("dashboard:systemLog.time","时间"),size:160,cell:({getValue:T})=>ia(T())}),Rt.accessor(T=>T.title||T.message||"",{id:"title",header:()=>i("dashboard:systemLog.logTitle","标题"),cell:({getValue:T})=>e.jsx("span",{className:"inline-block max-w-[300px] truncate",children:T()})}),Rt.accessor("method",{id:"method",header:()=>i("dashboard:systemLog.method","请求方法"),size:100,cell:({getValue:T})=>{const S=T();return S?e.jsx(B,{variant:"outline",className:y(S==="GET"&&"border-blue-200 bg-blue-50 text-blue-700",S==="POST"&&"border-green-200 bg-green-50 text-green-700",S==="PUT"&&"border-amber-200 bg-amber-50 text-amber-700",S==="DELETE"&&"border-red-200 bg-red-50 text-red-700"),children:S}):null}}),Rt.display({id:"actions",header:()=>i("dashboard:systemLog.action","操作"),size:80,cell:({row:T})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>c(T.original),"aria-label":i("dashboard:systemLog.viewDetail","查看详情"),children:e.jsx(en,{className:"h-4 w-4"})})})],[i,c]),_=Je({data:s,columns:h,getCoreRowModel:Qe(),getPaginationRowModel:ls(),pageCount:Math.ceil(n/r),manualPagination:!0,state:{pagination:{pageIndex:o-1,pageSize:r}},onPaginationChange:T=>{if(typeof T=="function"){const S=T({pageIndex:o-1,pageSize:r});u(S.pageIndex+1)}else u(T.pageIndex+1)}});return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(is,{table:_,showPagination:!1,isLoading:a}),e.jsx(wn,{table:_}),(t||l&&l!=="all")&&e.jsx("div",{className:"text-center text-sm text-muted-foreground",children:t&&l&&l!=="all"?i("dashboard:systemLog.filter.searchAndLevel",{keyword:t,level:l,count:n},`筛选结果: 包含"${t}"且级别为"${l}"的日志共 ${n} 条`):t?i("dashboard:systemLog.filter.searchOnly",{keyword:t,count:n},`搜索结果: 包含"${t}"的日志共 ${n} 条`):i("dashboard:systemLog.filter.levelOnly",{level:l,count:n},`筛选结果: 级别为"${l}"的日志共 ${n} 条`)})]})}function Qd(){const{t:s}=V(),[a,t]=m.useState(0),[l,n]=m.useState(!1),[o,r]=m.useState(1),[c]=m.useState(10),[u,i]=m.useState(null),[d,h]=m.useState(!1),[_,T]=m.useState(!1),[S,C]=m.useState(1),[N]=m.useState(10),[g,k]=m.useState(null),[R,p]=m.useState(!1),[w,I]=m.useState(""),[H,O]=m.useState(""),[K,oe]=m.useState("all");m.useEffect(()=>{const Q=setTimeout(()=>{O(w),w!==H&&C(1)},500);return()=>clearTimeout(Q)},[w]);const{data:W,isLoading:te,refetch:q,isRefetching:L}=ne({queryKey:["systemStatus",a],queryFn:async()=>(await me.getSystemStatus()).data,refetchInterval:3e4}),{data:U,isLoading:ms,refetch:De,isRefetching:le}=ne({queryKey:["queueStats",a],queryFn:async()=>(await me.getQueueStats()).data,refetchInterval:3e4}),{data:ys,isLoading:Fs,refetch:Fa}=ne({queryKey:["failedJobs",o,c],queryFn:async()=>{const Q=await me.getHorizonFailedJobs({current:o,page_size:c});return{data:Q.data,total:Q.total||0}},enabled:l}),{data:Gt,isLoading:it,refetch:Ma}=ne({queryKey:["systemLogs",S,N,K,H],queryFn:async()=>{const Q={current:S,page_size:N};K&&K!=="all"&&(Q.level=K),H.trim()&&(Q.keyword=H.trim());const Os=await me.getSystemLog(Q);return{data:Os.data,total:Os.total||0}},enabled:_}),Wt=ys?.data||[],Oa=ys?.total||0,se=Gt?.data||[],ie=Gt?.total||0,Me=m.useMemo(()=>[It.display({id:"failed_at",header:()=>s("dashboard:queue.details.time","时间"),cell:({row:Q})=>ia(Q.original.failed_at)}),It.display({id:"queue",header:()=>s("dashboard:queue.details.queue","队列"),cell:({row:Q})=>Q.original.queue}),It.display({id:"name",header:()=>s("dashboard:queue.details.name","任务名称"),cell:({row:Q})=>e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[150px] truncate",children:Q.original.name})}),e.jsx(de,{children:e.jsx("span",{children:Q.original.name})})]})})}),It.display({id:"exception",header:()=>s("dashboard:queue.details.exception","异常信息"),cell:({row:Q})=>e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[200px] truncate",children:Q.original.exception.split(` -`)[0]})}),e.jsx(de,{className:"max-w-[300px] whitespace-pre-wrap",children:e.jsx("span",{children:Q.original.exception})})]})})}),It.display({id:"actions",header:()=>s("dashboard:queue.details.action","操作"),size:80,cell:({row:Q})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>li(Q.original),"aria-label":s("dashboard:queue.details.viewDetail","查看详情"),children:e.jsx(en,{className:"h-4 w-4"})})})],[s]),Ms=Je({data:Wt,columns:Me,getCoreRowModel:Qe(),getPaginationRowModel:ls(),pageCount:Math.ceil(Oa/c),manualPagination:!0,state:{pagination:{pageIndex:o-1,pageSize:c}},onPaginationChange:Q=>{if(typeof Q=="function"){const Os=Q({pageIndex:o-1,pageSize:c});Ln(Os.pageIndex+1)}else Ln(Q.pageIndex+1)}}),ti=()=>{t(Q=>Q+1)},Ln=Q=>{r(Q)},Yt=Q=>{C(Q)},ai=Q=>{oe(Q),C(1)},ni=()=>{I(""),O(""),oe("all"),C(1)},Jt=Q=>{k(Q),p(!0)},li=Q=>{i(Q),h(!0)};if(te||ms)return e.jsx("div",{className:"flex items-center justify-center p-6",children:e.jsx(gn,{className:"h-6 w-6 animate-spin"})});const ri=Q=>Q?e.jsx(ql,{className:"h-5 w-5 text-green-500"}):e.jsx(Hl,{className:"h-5 w-5 text-red-500"});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(Ye,{children:[e.jsxs(ss,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(_s,{className:"flex items-center gap-2",children:[e.jsx(Qo,{className:"h-5 w-5"}),s("dashboard:queue.title")]}),e.jsx(Xs,{children:s("dashboard:queue.status.description")})]}),e.jsx(G,{variant:"outline",size:"icon",onClick:ti,disabled:L||le,children:e.jsx(za,{className:y("h-4 w-4",(L||le)&&"animate-spin")})})]}),e.jsx(ts,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[ri(U?.status||!1),e.jsx("span",{className:"font-medium",children:s("dashboard:queue.status.running")})]}),e.jsx(B,{variant:U?.status?"secondary":"destructive",children:U?.status?s("dashboard:queue.status.normal"):s("dashboard:queue.status.abnormal")})]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.status.waitTime",{seconds:U?.wait?.default||0})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.recentJobs")}),e.jsx("p",{className:"text-2xl font-bold",children:U?.recentJobs||0}),e.jsx(ra,{value:(U?.recentJobs||0)/(U?.periods?.recentJobs||1)*100,className:"h-1"})]})}),e.jsx(de,{children:e.jsx("p",{children:s("dashboard:queue.details.statisticsPeriod",{hours:U?.periods?.recentJobs||0})})})]})}),e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.jobsPerMinute")}),e.jsx("p",{className:"text-2xl font-bold",children:U?.jobsPerMinute||0}),e.jsx(ra,{value:(U?.jobsPerMinute||0)/(U?.queueWithMaxThroughput?.throughput||1)*100,className:"h-1"})]})}),e.jsx(de,{children:e.jsx("p",{children:s("dashboard:queue.details.maxThroughput",{value:U?.queueWithMaxThroughput?.throughput||0})})})]})})]})]})})]}),e.jsxs(Ye,{children:[e.jsxs(ss,{children:[e.jsxs(_s,{className:"flex items-center gap-2",children:[e.jsx(Xo,{className:"h-5 w-5"}),s("dashboard:queue.jobDetails")]}),e.jsx(Xs,{children:s("dashboard:queue.details.description")})]}),e.jsx(ts,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.failedJobs7Days")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cursor-pointer text-2xl font-bold text-destructive hover:underline",title:s("dashboard:queue.details.viewFailedJobs"),onClick:()=>n(!0),style:{userSelect:"none"},children:U?.failedJobs||0}),e.jsx(en,{className:"h-4 w-4 cursor-pointer text-muted-foreground hover:text-destructive",onClick:()=>n(!0),"aria-label":s("dashboard:queue.details.viewFailedJobs")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("dashboard:queue.details.retentionPeriod",{hours:U?.periods?.failedJobs||0})})]}),e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.longestRunningQueue")}),e.jsxs("p",{className:"text-2xl font-bold",children:[U?.queueWithMaxRuntime?.runtime||0,"s"]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:U?.queueWithMaxRuntime?.name||"N/A"})]})]}),e.jsxs("div",{className:"rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.activeProcesses")}),e.jsxs("span",{className:"font-medium",children:[U?.processes||0," /"," ",(U?.processes||0)+(U?.pausedMasters||0)]})]}),e.jsx(ra,{value:(U?.processes||0)/((U?.processes||0)+(U?.pausedMasters||0))*100,className:"mt-2 h-1"})]})]})})]})]}),e.jsxs(Ye,{children:[e.jsxs(ss,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(_s,{className:"flex items-center gap-2",children:[e.jsx($n,{className:"h-5 w-5"}),s("dashboard:systemLog.title","系统日志")]}),e.jsx(Xs,{children:s("dashboard:systemLog.description","查看系统运行日志记录")})]}),e.jsx(G,{variant:"outline",onClick:()=>T(!0),children:s("dashboard:systemLog.viewAll","查看全部")})]}),e.jsx(ts,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-900 dark:bg-blue-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ft,{className:"h-5 w-5 text-blue-500"}),e.jsx("p",{className:"font-medium text-blue-700 dark:text-blue-300",children:s("dashboard:systemLog.tabs.info","信息")})]}),e.jsx("p",{className:"text-2xl font-bold text-blue-700 dark:text-blue-300",children:W?.logs?.info||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-900 dark:bg-yellow-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(sn,{className:"h-5 w-5 text-yellow-500"}),e.jsx("p",{className:"font-medium text-yellow-700 dark:text-yellow-300",children:s("dashboard:systemLog.tabs.warning","警告")})]}),e.jsx("p",{className:"text-2xl font-bold text-yellow-700 dark:text-yellow-300",children:W?.logs?.warning||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-900 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(tn,{className:"h-5 w-5 text-red-500"}),e.jsx("p",{className:"font-medium text-red-700 dark:text-red-300",children:s("dashboard:systemLog.tabs.error","错误")})]}),e.jsx("p",{className:"text-2xl font-bold text-red-700 dark:text-red-300",children:W?.logs?.error||0})]})]}),W?.logs&&W.logs.total>0&&e.jsx("div",{className:"mt-3 text-center text-sm text-muted-foreground",children:s("dashboard:systemLog.totalLogs","总日志数:{{count}}",{count:W.logs.total})})]})})]}),e.jsx(pe,{open:l,onOpenChange:n,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(ve,{children:e.jsx(ge,{children:s("dashboard:queue.details.failedJobsDetailTitle","失败任务详情")})}),e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(is,{table:Ms,showPagination:!1,isLoading:Fs}),e.jsx(wn,{table:Ms}),Wt.length===0&&e.jsx("div",{className:"py-8 text-center text-muted-foreground",children:s("dashboard:queue.details.noFailedJobs","暂无失败任务")})]}),e.jsxs(Re,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Fa(),children:[e.jsx(za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh","刷新")]}),e.jsx(qs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common.close","关闭")})})]})]})}),e.jsx(pe,{open:d,onOpenChange:h,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(ve,{children:e.jsx(ge,{children:s("dashboard:queue.details.jobDetailTitle","任务详情")})}),u&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.id","任务ID")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.id})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.time","时间")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.failed_at})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.queue","队列")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.queue})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.connection","连接")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.connection})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.name","任务名称")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.exception","异常信息")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-red-700 dark:text-red-300",children:u.exception})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.payload","任务数据")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(u.payload),null,2)}catch{return u.payload}})()})})]})]}),e.jsx(Re,{children:e.jsx(G,{variant:"outline",onClick:()=>h(!1),children:s("common.close","关闭")})})]})}),e.jsx(pe,{open:_,onOpenChange:T,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(ve,{children:e.jsx(ge,{children:s("dashboard:systemLog.title","系统日志")})}),e.jsxs(Bt,{value:K,onValueChange:ai,className:"w-full overflow-x-auto",children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 p-1 md:flex-row md:items-center md:justify-between",children:[e.jsxs(Ct,{className:"grid w-auto grid-cols-4",children:[e.jsxs(Ee,{value:"all",className:"flex items-center gap-2",children:[e.jsx($n,{className:"h-4 w-4"}),s("dashboard:systemLog.tabs.all","全部")]}),e.jsxs(Ee,{value:"info",className:"flex items-center gap-2",children:[e.jsx(Ft,{className:"h-4 w-4 text-blue-500"}),s("dashboard:systemLog.tabs.info","信息")]}),e.jsxs(Ee,{value:"warning",className:"flex items-center gap-2",children:[e.jsx(sn,{className:"h-4 w-4 text-yellow-500"}),s("dashboard:systemLog.tabs.warning","警告")]}),e.jsxs(Ee,{value:"error",className:"flex items-center gap-2",children:[e.jsx(tn,{className:"h-4 w-4 text-red-500"}),s("dashboard:systemLog.tabs.error","错误")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(hn,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(D,{placeholder:s("dashboard:systemLog.search","搜索日志内容..."),value:w,onChange:Q=>I(Q.target.value),className:"w-full md:w-64"})]})]}),e.jsx(We,{value:"all",className:"mt-0",children:e.jsx(sa,{data:se,isLoading:it,searchKeyword:H,selectedLevel:K,total:ie,currentPage:S,pageSize:N,onViewDetail:Jt,onPageChange:Yt})}),e.jsx(We,{value:"info",className:"mt-0 overflow-x-auto",children:e.jsx(sa,{data:se,isLoading:it,searchKeyword:H,selectedLevel:K,total:ie,currentPage:S,pageSize:N,onViewDetail:Jt,onPageChange:Yt})}),e.jsx(We,{value:"warning",className:"mt-0",children:e.jsx(sa,{data:se,isLoading:it,searchKeyword:H,selectedLevel:K,total:ie,currentPage:S,pageSize:N,onViewDetail:Jt,onPageChange:Yt})}),e.jsx(We,{value:"error",className:"mt-0",children:e.jsx(sa,{data:se,isLoading:it,searchKeyword:H,selectedLevel:K,total:ie,currentPage:S,pageSize:N,onViewDetail:Jt,onPageChange:Yt})})]}),e.jsxs(Re,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Ma(),children:[e.jsx(za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh","刷新")]}),e.jsx(G,{variant:"outline",onClick:ni,children:s("dashboard:systemLog.filter.reset","重置筛选")}),e.jsx(qs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common.close","关闭")})})]})]})}),e.jsx(pe,{open:R,onOpenChange:p,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(ve,{children:e.jsx(ge,{children:s("dashboard:systemLog.detailTitle","日志详情")})}),g&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.level","级别")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ft,{className:"h-4 w-4"}),e.jsx("p",{className:"font-medium",children:g.level})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.time","时间")}),e.jsx("p",{children:ia(g.created_at)||ia(g.updated_at)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.logTitle","标题")}),e.jsx("div",{className:"whitespace-pre-wrap rounded-md bg-muted/50 p-3",children:g.title||g.message||""})]}),(g.host||g.ip)&&e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.host&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.host","主机")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:g.host})]}),g.ip&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.ip","IP地址")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:g.ip})]})]}),g.uri&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.uri","URI")}),e.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 p-3",children:e.jsx("code",{className:"text-sm",children:g.uri})})]}),g.method&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.method","请求方法")}),e.jsx("div",{children:e.jsx(B,{variant:"outline",className:"text-base font-medium",children:g.method})})]}),g.data&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.requestData","请求数据")}),e.jsx("div",{className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(g.data),null,2)}catch{return g.data}})()})})]}),g.context&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.exception","异常信息")}),e.jsx("div",{className:"max-h-[250px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs text-red-700 dark:text-red-300",children:(()=>{try{const Q=JSON.parse(g.context);if(Q.exception){const Os=Q.exception,ii=Os["\0*\0message"]||"",oi=Os["\0*\0file"]||"",ci=Os["\0*\0line"]||"";return`${ii} +import{r as m,j as e,t as ki,c as Ti,I as qn,a as tt,S as mn,u as Rs,b as Di,d as un,R as ml,e as ul,f as Pi,F as Li,C as Ei,L as xl,T as hl,g as pl,h as Ii,i as Ri,k as Vi,l as $,z as x,m as V,n as Ne,o as we,p as le,q as fs,s as ke,v as Fi,w as Mi,O as xn,x as Oi,y as zi,A as $i,B as Ai,D as qi,E as Hi,Q as Ui,G as Ki,H as Bi,J as Gi,P as Wi,K as Yi,M as Ji,N as Qi,U as Xi,V as gl,W as fl,X as wa,Y as Ca,Z as hn,_ as ds,$ as Sa,a0 as ka,a1 as jl,a2 as vl,a3 as bl,a4 as pn,a5 as yl,a6 as Zi,a7 as Nl,a8 as _l,a9 as wl,aa as Cl,ab as at,ac as Sl,ad as eo,ae as kl,af as Tl,ag as so,ah as to,ai as ao,aj as no,ak as lo,al as ro,am as io,an as oo,ao as co,ap as mo,aq as uo,ar as Dl,as as xo,at as ho,au as nt,av as Pl,aw as po,ax as go,ay as Ll,az as gn,aA as fo,aB as jo,aC as Hn,aD as vo,aE as El,aF as bo,aG as Il,aH as yo,aI as No,aJ as _o,aK as wo,aL as Co,aM as So,aN as Rl,aO as ko,aP as To,aQ as Do,aR as He,aS as Po,aT as fn,aU as Lo,aV as Eo,aW as Vl,aX as Fl,aY as Ml,aZ as Io,a_ as Ro,a$ as Vo,b0 as Ol,b1 as Fo,b2 as jn,b3 as zl,b4 as Mo,b5 as $l,b6 as Oo,b7 as Al,b8 as zo,b9 as ql,ba as Hl,bb as $o,bc as Ao,bd as Ul,be as qo,bf as Ho,bg as Kl,bh as Uo,bi as Bl,bj as Ko,bk as Bo,bl as ps,bm as hs,bn as Ct,bo as Go,bp as Wo,bq as Yo,br as Jo,bs as Qo,bt as Xo,bu as Un,bv as Kn,bw as Zo,bx as ec,by as Gl,bz as sc,bA as tc,bB as sn,bC as Kt,bD as ac,bE as nc,bF as Wl,bG as lc,bH as rc,bI as Yl,bJ as ic,bK as oc,bL as Bn,bM as tn,bN as an,bO as cc,bP as dc,bQ as Jl,bR as mc,bS as uc,bT as xc,bU as ga,bV as nn,bW as Je,bX as fa,bY as hc,bZ as Ha,b_ as pc,b$ as Gn,c0 as We,c1 as $t,c2 as ma,c3 as ln,c4 as Ql,c5 as Qe,c6 as rs,c7 as Xl,c8 as Zl,c9 as gc,ca as fc,cb as jc,cc as vc,cd as bc,ce as er,cf as yc,cg as Nc,ch as ze,ci as Wn,cj as _c,ck as sr,cl as tr,cm as ar,cn as nr,co as lr,cp as rr,cq as wc,cr as Cc,cs as Sc,ct as Ta,cu as lt,cv as js,cw as vs,cx as kc,cy as Tc,cz as Dc,cA as Pc,cB as Lc,cC as Ec,cD as Ic,cE as Rc,cF as Vc,cG as rn,cH as vn,cI as bn,cJ as Fc,cK as Vs,cL as Fs,cM as Da,cN as Mc,cO as ja,cP as Oc,cQ as Yn,cR as ir,cS as Jn,cT as va,cU as zc,cV as $c,cW as Ac,cX as qc,cY as or,cZ as Hc,c_ as Uc,c$ as cr,d0 as on,d1 as dr,d2 as Kc,d3 as mr,d4 as ur,d5 as Bc,d6 as Gc,d7 as Wc,d8 as Yc,d9 as Jc}from"./vendor.js";import"./index.js";var ap=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function np(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Qc(s){if(s.__esModule)return s;var a=s.default;if(typeof a=="function"){var t=function l(){return this instanceof l?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};t.prototype=a.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(l){var n=Object.getOwnPropertyDescriptor(s,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return s[l]}})}),t}const Xc={theme:"system",setTheme:()=>null},xr=m.createContext(Xc);function Zc({children:s,defaultTheme:a="system",storageKey:t="vite-ui-theme",...l}){const[n,r]=m.useState(()=>localStorage.getItem(t)||a);m.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),n==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";c.classList.add(u);return}c.classList.add(n)},[n]);const o={theme:n,setTheme:c=>{localStorage.setItem(t,c),r(c)}};return e.jsx(xr.Provider,{...l,value:o,children:s})}const ed=()=>{const s=m.useContext(xr);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},sd=function(){const a=typeof document<"u"&&document.createElement("link").relList;return a&&a.supports&&a.supports("modulepreload")?"modulepreload":"preload"}(),td=function(s,a){return new URL(s,a).href},Qn={},ve=function(a,t,l){let n=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");n=Promise.allSettled(t.map(i=>{if(i=td(i,l),i in Qn)return;Qn[i]=!0;const d=i.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(!!l)for(let S=o.length-1;S>=0;S--){const w=o[S];if(w.href===i&&(!d||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${h}`))return;const C=document.createElement("link");if(C.rel=d?"stylesheet":sd,d||(C.as="script"),C.crossOrigin="",C.href=i,u&&C.setAttribute("nonce",u),document.head.appendChild(C),d)return new Promise((S,w)=>{C.addEventListener("load",S),C.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${i}`)))})}))}function r(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return n.then(o=>{for(const c of o||[])c.status==="rejected"&&r(c.reason);return a().catch(r)})};function y(...s){return ki(Ti(s))}const St=tt("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),L=m.forwardRef(({className:s,variant:a,size:t,asChild:l=!1,children:n,disabled:r,loading:o=!1,leftSection:c,rightSection:u,...i},d)=>{const h=l?mn:"button";return e.jsxs(h,{className:y(St({variant:a,size:t,className:s})),disabled:o||r,ref:d,...i,children:[(c&&o||!c&&!u&&o)&&e.jsx(qn,{className:"mr-2 h-4 w-4 animate-spin"}),!o&&c&&e.jsx("div",{className:"mr-2",children:c}),n,!o&&u&&e.jsx("div",{className:"ml-2",children:u}),u&&o&&e.jsx(qn,{className:"ml-2 h-4 w-4 animate-spin"})]})});L.displayName="Button";function dt({className:s,minimal:a=!1}){const t=Rs(),l=Di(),n=l?.message||l?.statusText||"Unknown error occurred";return e.jsx("div",{className:y("h-svh w-full",s),children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[!a&&e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"500"}),e.jsxs("span",{className:"font-medium",children:["Oops! Something went wrong ",":')"]}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["We apologize for the inconvenience. ",e.jsx("br",{}),n]}),!a&&e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>t(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>t("/"),children:"Back to Home"})]})]})})}function Xn(){const s=Rs();return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"404"}),e.jsx("span",{className:"font-medium",children:"Oops! Page Not Found!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["It seems like the page you're looking for ",e.jsx("br",{}),"does not exist or might have been removed."]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>s(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>s("/"),children:"Back to Home"})]})]})})}function ad(){return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"503"}),e.jsx("span",{className:"font-medium",children:"Website is under maintenance!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["The site is not available at the moment. ",e.jsx("br",{}),"We'll be back online shortly."]}),e.jsx("div",{className:"mt-6 flex gap-4",children:e.jsx(L,{variant:"outline",children:"Learn more"})})]})})}function nd(s){return typeof s>"u"}function ld(s){return s===null}function rd(s){return ld(s)||nd(s)}class id{storage;prefixKey;constructor(a){this.storage=a.storage,this.prefixKey=a.prefixKey}getKey(a){return`${this.prefixKey}${a}`.toUpperCase()}set(a,t,l=null){const n=JSON.stringify({value:t,time:Date.now(),expire:l!==null?new Date().getTime()+l*1e3:null});this.storage.setItem(this.getKey(a),n)}get(a,t=null){const l=this.storage.getItem(this.getKey(a));if(!l)return{value:t,time:0};try{const n=JSON.parse(l),{value:r,time:o,expire:c}=n;return rd(c)||c>new Date().getTime()?{value:r,time:o}:(this.remove(a),{value:t,time:0})}catch{return this.remove(a),{value:t,time:0}}}remove(a){this.storage.removeItem(this.getKey(a))}clear(){this.storage.clear()}}function hr({prefixKey:s="",storage:a=sessionStorage}){return new id({prefixKey:s,storage:a})}const pr="Xboard_",od=function(s={}){return hr({prefixKey:s.prefixKey||"",storage:localStorage})},cd=function(s={}){return hr({prefixKey:s.prefixKey||"",storage:sessionStorage})},Pa=od({prefixKey:pr});cd({prefixKey:pr});const gr="access_token";function Bt(){return Pa.get(gr)}function fr(){Pa.remove(gr)}const Zn=["/sign-in","/sign-in-2","/sign-up","/forgot-password","/otp"];function dd({children:s}){const a=Rs(),t=un(),l=Bt();return m.useEffect(()=>{if(!l.value&&!Zn.includes(t.pathname)){const n=encodeURIComponent(t.pathname+t.search);a(`/sign-in?redirect=${n}`)}},[l.value,t.pathname,t.search,a]),Zn.includes(t.pathname)||l.value?e.jsx(e.Fragment,{children:s}):null}const De=m.forwardRef(({className:s,orientation:a="horizontal",decorative:t=!0,...l},n)=>e.jsx(ml,{ref:n,decorative:t,orientation:a,className:y("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...l}));De.displayName=ml.displayName;const md=tt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xs=m.forwardRef(({className:s,...a},t)=>e.jsx(ul,{ref:t,className:y(md(),s),...a}));Xs.displayName=ul.displayName;const Ce=Li,jr=m.createContext({}),v=({...s})=>e.jsx(jr.Provider,{value:{name:s.name},children:e.jsx(Ei,{...s})}),La=()=>{const s=m.useContext(jr),a=m.useContext(vr),{getFieldState:t,formState:l}=Pi(),n=t(s.name,l);if(!s)throw new Error("useFormField should be used within ");const{id:r}=a;return{id:r,name:s.name,formItemId:`${r}-form-item`,formDescriptionId:`${r}-form-item-description`,formMessageId:`${r}-form-item-message`,...n}},vr=m.createContext({}),f=m.forwardRef(({className:s,...a},t)=>{const l=m.useId();return e.jsx(vr.Provider,{value:{id:l},children:e.jsx("div",{ref:t,className:y("space-y-2",s),...a})})});f.displayName="FormItem";const j=m.forwardRef(({className:s,...a},t)=>{const{error:l,formItemId:n}=La();return e.jsx(Xs,{ref:t,className:y(l&&"text-destructive",s),htmlFor:n,...a})});j.displayName="FormLabel";const b=m.forwardRef(({...s},a)=>{const{error:t,formItemId:l,formDescriptionId:n,formMessageId:r}=La();return e.jsx(mn,{ref:a,id:l,"aria-describedby":t?`${n} ${r}`:`${n}`,"aria-invalid":!!t,...s})});b.displayName="FormControl";const M=m.forwardRef(({className:s,...a},t)=>{const{formDescriptionId:l}=La();return e.jsx("p",{ref:t,id:l,className:y("text-[0.8rem] text-muted-foreground",s),...a})});M.displayName="FormDescription";const P=m.forwardRef(({className:s,children:a,...t},l)=>{const{error:n,formMessageId:r}=La(),o=n?String(n?.message):a;return o?e.jsx("p",{ref:l,id:r,className:y("text-[0.8rem] font-medium text-destructive",s),...t,children:o}):null});P.displayName="FormMessage";const Yt=Ii,kt=m.forwardRef(({className:s,...a},t)=>e.jsx(xl,{ref:t,className:y("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...a}));kt.displayName=xl.displayName;const es=m.forwardRef(({className:s,...a},t)=>e.jsx(hl,{ref:t,className:y("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...a}));es.displayName=hl.displayName;const Ls=m.forwardRef(({className:s,...a},t)=>e.jsx(pl,{ref:t,className:y("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...a}));Ls.displayName=pl.displayName;function Se(s=void 0,a="YYYY-MM-DD HH:mm:ss"){return s==null?"":(Math.floor(s).toString().length===10&&(s=s*1e3),Ri(s).format(a))}function ud(s=void 0,a="YYYY-MM-DD"){return Se(s,a)}function gt(s){const a=typeof s=="string"?parseFloat(s):s;return isNaN(a)?"0.00":a.toFixed(2)}function Js(s,a=!0){if(s==null)return a?"¥0.00":"0.00";const t=typeof s=="string"?parseFloat(s):s;if(isNaN(t))return a?"¥0.00":"0.00";const n=(t/100).toFixed(2).replace(/\.?0+$/,r=>r.includes(".")?".00":r);return a?`¥${n}`:n}function ba(s){return new Promise(a=>{(async()=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(s);else{const l=document.createElement("textarea");l.value=s,l.style.position="fixed",l.style.opacity="0",document.body.appendChild(l),l.select();const n=document.execCommand("copy");if(document.body.removeChild(l),!n)throw new Error("execCommand failed")}a(!0)}catch(l){console.error(l),a(!1)}})()})}function Oe(s){const a=s/1024,t=a/1024,l=t/1024,n=l/1024;return n>=1?gt(n)+" TB":l>=1?gt(l)+" GB":t>=1?gt(t)+" MB":gt(a)+" KB"}const xd="locale";function hd(){return Pa.get(xd)}function br(){fr();const s=window.location.pathname,a=s&&!["/404","/sign-in"].includes(s),t=new URL(window.location.href),n=`${t.pathname.split("/")[1]?`/${t.pathname.split("/")[1]}`:""}#/sign-in`;window.location.href=n+(a?`?redirect=${s}`:"")}const pd=["/passport/auth/login","/passport/auth/token2Login","/passport/auth/register","/guest/comm/config","/passport/comm/sendEmailVerify","/passport/auth/forget"];function gd(){const s=window.settings?.base_url||"/";return s.endsWith("/")?s+"api/v2":s+"/api/v2"}const ft=Vi.create({baseURL:gd(),timeout:12e3,headers:{"Content-Type":"application/json"}});ft.interceptors.request.use(s=>{s.method?.toLowerCase()==="get"&&(s.params={...s.params,t:Date.now()});const a=Bt();if(!pd.includes(s.url?.split("?")[0]||"")){if(!a.value)return br(),Promise.reject({code:-1,message:"未登录"});s.headers.Authorization=a.value}return s.headers["Content-Language"]=hd().value||"zh-CN",s},s=>Promise.reject(s));ft.interceptors.response.use(s=>s?.data||{code:-1,message:"未知错误"},s=>{const a=s.response?.status,t=s.response?.data?.message;return(a===401||a===403)&&br(),$.error(t||{401:"登录已过期",403:"没有权限",404:"资源或接口不存在"}[a]||"未知异常"),Promise.reject(s.response?.data||{data:null,code:-1,message:"未知错误"})});const F={get:(s,a)=>ft.get(s,a),post:(s,a,t)=>ft.post(s,a,t),put:(s,a,t)=>ft.put(s,a,t),delete:(s,a)=>ft.delete(s,a)},fd="access_token";function jd(s){Pa.set(fd,s)}const Ws=window?.settings?.secure_path,ya={getStats:()=>F.get(Ws+"/monitor/api/stats"),getOverride:()=>F.get(Ws+"/stat/getOverride"),getOrderStat:s=>F.get(Ws+"/stat/getOrder",{params:s}),getStatsData:()=>F.get(Ws+"/stat/getStats"),getNodeTrafficData:s=>F.get(Ws+"/stat/getTrafficRank",{params:s}),getServerLastRank:()=>F.get(Ws+"/stat/getServerLastRank"),getServerYesterdayRank:()=>F.get(Ws+"/stat/getServerYesterdayRank")},Lt=window?.settings?.secure_path,At={getList:()=>F.get(Lt+"/theme/getThemes"),getConfig:s=>F.post(Lt+"/theme/getThemeConfig",{name:s}),updateConfig:(s,a)=>F.post(Lt+"/theme/saveThemeConfig",{name:s,config:a}),upload:s=>{const a=new FormData;return a.append("file",s),F.post(Lt+"/theme/upload",a,{headers:{"Content-Type":"multipart/form-data"}})},drop:s=>F.post(Lt+"/theme/delete",{name:s})},mt=window?.settings?.secure_path,Zs={getList:()=>F.get(mt+"/server/manage/getNodes"),save:s=>F.post(mt+"/server/manage/save",s),drop:s=>F.post(mt+"/server/manage/drop",s),copy:s=>F.post(mt+"/server/manage/copy",s),update:s=>F.post(mt+"/server/manage/update",s),sort:s=>F.post(mt+"/server/manage/sort",s)},Ua=window?.settings?.secure_path,rt={getList:()=>F.get(Ua+"/server/group/fetch"),save:s=>F.post(Ua+"/server/group/save",s),drop:s=>F.post(Ua+"/server/group/drop",s)},Ka=window?.settings?.secure_path,Ea={getList:()=>F.get(Ka+"/server/route/fetch"),save:s=>F.post(Ka+"/server/route/save",s),drop:s=>F.post(Ka+"/server/route/drop",s)},Ys=window?.settings?.secure_path,et={getList:()=>F.get(Ys+"/payment/fetch"),getMethodList:()=>F.get(Ys+"/payment/getPaymentMethods"),getMethodForm:s=>F.post(Ys+"/payment/getPaymentForm",s),save:s=>F.post(Ys+"/payment/save",s),drop:s=>F.post(Ys+"/payment/drop",s),updateStatus:s=>F.post(Ys+"/payment/show",s),sort:s=>F.post(Ys+"/payment/sort",s)},Et=window?.settings?.secure_path,Gt={getList:()=>F.get(`${Et}/notice/fetch`),save:s=>F.post(`${Et}/notice/save`,s),drop:s=>F.post(`${Et}/notice/drop`,{id:s}),updateStatus:s=>F.post(`${Et}/notice/show`,{id:s}),sort:s=>F.post(`${Et}/notice/sort`,{ids:s})},ut=window?.settings?.secure_path,bt={getList:()=>F.get(ut+"/knowledge/fetch"),getInfo:s=>F.get(ut+"/knowledge/fetch?id="+s),save:s=>F.post(ut+"/knowledge/save",s),drop:s=>F.post(ut+"/knowledge/drop",s),updateStatus:s=>F.post(ut+"/knowledge/show",s),sort:s=>F.post(ut+"/knowledge/sort",s)},It=window?.settings?.secure_path,ss={getList:()=>F.get(It+"/plan/fetch"),save:s=>F.post(It+"/plan/save",s),update:s=>F.post(It+"/plan/update",s),drop:s=>F.post(It+"/plan/drop",s),sort:s=>F.post(It+"/plan/sort",{ids:s})},xt=window?.settings?.secure_path,Qs={getList:s=>F.post(xt+"/order/fetch",s),getInfo:s=>F.post(xt+"/order/detail",s),markPaid:s=>F.post(xt+"/order/paid",s),makeCancel:s=>F.post(xt+"/order/cancel",s),update:s=>F.post(xt+"/order/update",s),assign:s=>F.post(xt+"/order/assign",s)},ta=window?.settings?.secure_path,Na={getList:s=>F.post(ta+"/coupon/fetch",s),save:s=>F.post(ta+"/coupon/generate",s),drop:s=>F.post(ta+"/coupon/drop",s),update:s=>F.post(ta+"/coupon/update",s)},ys=window?.settings?.secure_path,_s={getList:s=>F.post(`${ys}/user/fetch`,s),update:s=>F.post(`${ys}/user/update`,s),resetSecret:s=>F.post(`${ys}/user/resetSecret`,{id:s}),generate:s=>s.download_csv?F.post(`${ys}/user/generate`,s,{responseType:"blob"}):F.post(`${ys}/user/generate`,s),getStats:s=>F.post(`${ys}/stat/getStatUser`,s),destroy:s=>F.post(`${ys}/user/destroy`,{id:s}),sendMail:s=>F.post(`${ys}/user/sendMail`,s),dumpCSV:s=>F.post(`${ys}/user/dumpCSV`,s,{responseType:"blob"}),batchBan:s=>F.post(`${ys}/user/ban`,s)},aa=window?.settings?.secure_path,jt={getList:s=>F.post(aa+"/ticket/fetch",s),getInfo:s=>F.get(aa+"/ticket/fetch?id= "+s),reply:s=>F.post(aa+"/ticket/reply",s),close:s=>F.post(aa+"/ticket/close",{id:s})},Me=window?.settings?.secure_path,oe={getSettings:(s="")=>F.get(Me+"/config/fetch?key="+s),saveSettings:s=>F.post(Me+"/config/save",s),getEmailTemplate:()=>F.get(Me+"/config/getEmailTemplate"),sendTestMail:()=>F.post(Me+"/config/testSendMail"),setTelegramWebhook:()=>F.post(Me+"/config/setTelegramWebhook"),updateSystemConfig:s=>F.post(Me+"/config/save",s),getSystemStatus:()=>F.get(`${Me}/system/getSystemStatus`),getQueueStats:()=>F.get(`${Me}/system/getQueueStats`),getQueueWorkload:()=>F.get(`${Me}/system/getQueueWorkload`),getQueueMasters:()=>F.get(`${Me}/system/getQueueMasters`),getHorizonFailedJobs:s=>F.get(`${Me}/system/getHorizonFailedJobs`,{params:s}),getSystemLog:s=>F.get(`${Me}/system/getSystemLog`,{params:s}),getLogFiles:()=>F.get(`${Me}/log/files`),getLogContent:s=>F.get(`${Me}/log/fetch`,{params:s}),getLogClearStats:s=>F.get(`${Me}/system/getLogClearStats`,{params:s}),clearSystemLog:s=>F.post(`${Me}/system/clearSystemLog`,s)},Ds=window?.settings?.secure_path,Ps={getPluginList:()=>F.get(`${Ds}/plugin/getPlugins`),uploadPlugin:s=>{const a=new FormData;return a.append("file",s),F.post(`${Ds}/plugin/upload`,a,{headers:{"Content-Type":"multipart/form-data"}})},deletePlugin:s=>F.post(`${Ds}/plugin/delete`,{code:s}),installPlugin:s=>F.post(`${Ds}/plugin/install`,{code:s}),uninstallPlugin:s=>F.post(`${Ds}/plugin/uninstall`,{code:s}),enablePlugin:s=>F.post(`${Ds}/plugin/enable`,{code:s}),disablePlugin:s=>F.post(`${Ds}/plugin/disable`,{code:s}),getPluginConfig:s=>F.get(`${Ds}/plugin/config`,{params:{code:s}}),updatePluginConfig:(s,a)=>F.post(`${Ds}/plugin/config`,{code:s,config:a})};window?.settings?.secure_path;const vd=x.object({subscribe_template_singbox:x.string().optional().default(""),subscribe_template_clash:x.string().optional().default(""),subscribe_template_clashmeta:x.string().optional().default(""),subscribe_template_stash:x.string().optional().default(""),subscribe_template_surge:x.string().optional().default(""),subscribe_template_surfboard:x.string().optional().default("")}),el=[{key:"singbox",label:"Sing-box",language:"json"},{key:"clash",label:"Clash",language:"yaml"},{key:"clashmeta",label:"Clash Meta",language:"yaml"},{key:"stash",label:"Stash",language:"yaml"},{key:"surge",label:"Surge",language:"ini"},{key:"surfboard",label:"Surfboard",language:"ini"}],sl={subscribe_template_singbox:"",subscribe_template_clash:"",subscribe_template_clashmeta:"",subscribe_template_stash:"",subscribe_template_surge:"",subscribe_template_surfboard:""};function bd(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),[n,r]=m.useState("singbox"),o=Ne({resolver:we(vd),defaultValues:sl,mode:"onChange"}),{data:c,isLoading:u}=le({queryKey:["settings","client"],queryFn:()=>oe.getSettings("subscribe_template")}),{mutateAsync:i}=fs({mutationFn:oe.saveSettings,onSuccess:()=>{$.success(s("common.autoSaved"))},onError:C=>{console.error("保存失败:",C),$.error(s("common.saveFailed"))}});m.useEffect(()=>{if(c?.data?.subscribe_template){const C=c.data.subscribe_template;Object.entries(C).forEach(([S,w])=>{if(S in sl){const N=typeof w=="string"?w:"";o.setValue(S,N)}}),l.current=o.getValues()}},[c,o]);const d=m.useCallback(ke.debounce(async C=>{if(!l.current||!ke.isEqual(C,l.current)){t(!0);try{await i(C),l.current=C}catch(S){console.error("保存设置失败:",S)}finally{t(!1)}}},1500),[i]),h=m.useCallback(()=>{const C=o.getValues();d(C)},[o,d]),k=m.useCallback((C,S)=>e.jsx(v,{control:o.control,name:C,render:({field:w})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s(`subscribe_template.${C.replace("subscribe_template_","")}.title`)}),e.jsx(b,{children:e.jsx(Fi,{height:"500px",defaultLanguage:S,value:w.value||"",onChange:N=>{w.onChange(N||""),h()},options:{minimap:{enabled:!1},fontSize:14,wordWrap:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})}),e.jsx(M,{children:s(`subscribe_template.${C.replace("subscribe_template_","")}.description`)}),e.jsx(P,{})]})}),[o.control,s,h]);return u?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.loading")})}):e.jsx(Ce,{...o,children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Yt,{value:n,onValueChange:r,className:"w-full",children:[e.jsx(kt,{className:"",children:el.map(({key:C,label:S})=>e.jsx(es,{value:C,className:"text-xs",children:S},C))}),el.map(({key:C,language:S})=>e.jsx(Ls,{value:C,className:"mt-4",children:k(`subscribe_template_${C}`,S)},C))]}),a&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-blue-500"}),s("common.saving")]})]})})}function yd(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe_template.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe_template.description")})]}),e.jsx(De,{}),e.jsx(bd,{})]})}const Nd=()=>e.jsx(dd,{children:e.jsx(xn,{})}),_d=Mi([{path:"/sign-in",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>$d);return{default:s}},void 0,import.meta.url)).default})},{element:e.jsx(Nd,{}),children:[{path:"/",lazy:async()=>({Component:(await ve(()=>Promise.resolve().then(()=>Yd),void 0,import.meta.url)).default}),errorElement:e.jsx(dt,{}),children:[{index:!0,lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>pm);return{default:s}},void 0,import.meta.url)).default})},{path:"config",errorElement:e.jsx(dt,{}),children:[{path:"system",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>vm);return{default:s}},void 0,import.meta.url)).default}),children:[{index:!0,lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>_m);return{default:s}},void 0,import.meta.url)).default})},{path:"safe",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Tm);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Im);return{default:s}},void 0,import.meta.url)).default})},{path:"invite",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Om);return{default:s}},void 0,import.meta.url)).default})},{path:"frontend",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Hm);return{default:s}},void 0,import.meta.url)).default})},{path:"server",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Wm);return{default:s}},void 0,import.meta.url)).default})},{path:"email",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Zm);return{default:s}},void 0,import.meta.url)).default})},{path:"telegram",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>nu);return{default:s}},void 0,import.meta.url)).default})},{path:"APP",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>cu);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe-template",element:e.jsx(yd,{})}]},{path:"payment",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>gu);return{default:s}},void 0,import.meta.url)).default})},{path:"plugin",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>vu);return{default:s}},void 0,import.meta.url)).default})},{path:"theme",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>_u);return{default:s}},void 0,import.meta.url)).default})},{path:"notice",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Pu);return{default:s}},void 0,import.meta.url)).default})},{path:"knowledge",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Ou);return{default:s}},void 0,import.meta.url)).default})}]},{path:"server",errorElement:e.jsx(dt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>hx);return{default:s}},void 0,import.meta.url)).default})},{path:"group",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>vx);return{default:s}},void 0,import.meta.url)).default})},{path:"route",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Cx);return{default:s}},void 0,import.meta.url)).default})}]},{path:"finance",errorElement:e.jsx(dt,{}),children:[{path:"plan",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Rx);return{default:s}},void 0,import.meta.url)).default})},{path:"order",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Wx);return{default:s}},void 0,import.meta.url)).default})},{path:"coupon",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>ah);return{default:s}},void 0,import.meta.url)).default})}]},{path:"user",errorElement:e.jsx(dt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Ih);return{default:s}},void 0,import.meta.url)).default})},{path:"ticket",lazy:async()=>({Component:(await ve(async()=>{const{default:s}=await Promise.resolve().then(()=>Zh);return{default:s}},void 0,import.meta.url)).default})}]}]}]},{path:"/500",Component:dt},{path:"/404",Component:Xn},{path:"/503",Component:ad},{path:"*",Component:Xn}]);function wd(){return F.get("/user/info")}const Ba={token:Bt()?.value||"",userInfo:null,isLoggedIn:!!Bt()?.value,loading:!1,error:null},qt=Oi("user/fetchUserInfo",async()=>(await wd()).data,{condition:(s,{getState:a})=>{const{user:t}=a();return!!t.token&&!t.loading}}),yr=zi({name:"user",initialState:Ba,reducers:{setToken(s,a){s.token=a.payload,s.isLoggedIn=!!a.payload},resetUserState:()=>Ba},extraReducers:s=>{s.addCase(qt.pending,a=>{a.loading=!0,a.error=null}).addCase(qt.fulfilled,(a,t)=>{a.loading=!1,a.userInfo=t.payload,a.error=null}).addCase(qt.rejected,(a,t)=>{if(a.loading=!1,a.error=t.error.message||"Failed to fetch user info",!a.token)return Ba})}}),{setToken:Cd,resetUserState:Sd}=yr.actions,kd=s=>s.user.userInfo,Td=yr.reducer,Nr=$i({reducer:{user:Td}});Bt()?.value&&Nr.dispatch(qt());Ai.use(qi).use(Hi).init({resources:{"en-US":window.XBOARD_TRANSLATIONS?.["en-US"]||{},"zh-CN":window.XBOARD_TRANSLATIONS?.["zh-CN"]||{},"ko-KR":window.XBOARD_TRANSLATIONS?.["ko-KR"]||{}},fallbackLng:"zh-CN",supportedLngs:["en-US","zh-CN","ko-KR"],detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",lookupLocalStorage:"i18nextLng",caches:["localStorage"]},interpolation:{escapeValue:!1}});const Dd=new Ui;Ki.createRoot(document.getElementById("root")).render(e.jsx(Bi.StrictMode,{children:e.jsx(Gi,{client:Dd,children:e.jsx(Wi,{store:Nr,children:e.jsxs(Zc,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[e.jsx(Yi,{router:_d}),e.jsx(Ji,{richColors:!0,position:"top-right"})]})})})}));const Ye=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",s),...a}));Ye.displayName="Card";const ts=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex flex-col space-y-1.5 p-6",s),...a}));ts.displayName="CardHeader";const Ns=m.forwardRef(({className:s,...a},t)=>e.jsx("h3",{ref:t,className:y("font-semibold leading-none tracking-tight",s),...a}));Ns.displayName="CardTitle";const st=m.forwardRef(({className:s,...a},t)=>e.jsx("p",{ref:t,className:y("text-sm text-muted-foreground",s),...a}));st.displayName="CardDescription";const as=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("p-6 pt-0",s),...a}));as.displayName="CardContent";const Pd=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex items-center p-6 pt-0",s),...a}));Pd.displayName="CardFooter";const D=m.forwardRef(({className:s,type:a,...t},l)=>e.jsx("input",{type:a,className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:l,...t}));D.displayName="Input";const _r=m.forwardRef(({className:s,...a},t)=>{const[l,n]=m.useState(!1);return e.jsxs("div",{className:"relative rounded-md",children:[e.jsx("input",{type:l?"text":"password",className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}),e.jsx(L,{type:"button",size:"icon",variant:"ghost",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground",onClick:()=>n(r=>!r),children:l?e.jsx(Qi,{size:18}):e.jsx(Xi,{size:18})})]})});_r.displayName="PasswordInput";const Ld=s=>F.post("/passport/auth/login",s);function Ed({className:s,onForgotPassword:a,...t}){const l=Rs(),n=gl(),{t:r}=V("auth"),o=x.object({email:x.string().min(1,{message:r("signIn.validation.emailRequired")}),password:x.string().min(1,{message:r("signIn.validation.passwordRequired")}).min(7,{message:r("signIn.validation.passwordLength")})}),c=Ne({resolver:we(o),defaultValues:{email:"",password:""}});async function u(i){try{const{data:d}=await Ld(i);jd(d.auth_data),n(Cd(d.auth_data)),await n(qt()).unwrap(),l("/")}catch(d){console.error("Login failed:",d),d.response?.data?.message&&c.setError("root",{message:d.response.data.message})}}return e.jsx("div",{className:y("grid gap-6",s),...t,children:e.jsx(Ce,{...c,children:e.jsx("form",{onSubmit:c.handleSubmit(u),className:"space-y-4",children:e.jsxs("div",{className:"space-y-4",children:[c.formState.errors.root&&e.jsx("div",{className:"text-sm text-destructive",children:c.formState.errors.root.message}),e.jsx(v,{control:c.control,name:"email",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:r("signIn.email")}),e.jsx(b,{children:e.jsx(D,{placeholder:r("signIn.emailPlaceholder"),autoComplete:"email",...i})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"password",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:r("signIn.password")}),e.jsx(b,{children:e.jsx(_r,{placeholder:r("signIn.passwordPlaceholder"),autoComplete:"current-password",...i})}),e.jsx(P,{})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{variant:"link",type:"button",className:"px-0 text-sm font-normal text-muted-foreground hover:text-primary",onClick:a,children:r("signIn.forgotPassword")})}),e.jsx(L,{className:"w-full",size:"lg",loading:c.formState.isSubmitting,children:r("signIn.submit")})]})})})})}const he=fl,is=jl,Id=vl,qs=hn,wr=m.forwardRef(({className:s,...a},t)=>e.jsx(wa,{ref:t,className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a}));wr.displayName=wa.displayName;const ue=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Id,{children:[e.jsx(wr,{}),e.jsxs(Ca,{ref:l,className:y("max-h-[95%] overflow-auto fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...t,children:[a,e.jsxs(hn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(ds,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=Ca.displayName;const je=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",s),...a});je.displayName="DialogHeader";const Le=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Le.displayName="DialogFooter";const pe=m.forwardRef(({className:s,...a},t)=>e.jsx(Sa,{ref:t,className:y("text-lg font-semibold leading-none tracking-tight",s),...a}));pe.displayName=Sa.displayName;const Re=m.forwardRef(({className:s,...a},t)=>e.jsx(ka,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Re.displayName=ka.displayName;const yt=tt("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),K=m.forwardRef(({className:s,variant:a,size:t,asChild:l=!1,...n},r)=>{const o=l?mn:"button";return e.jsx(o,{className:y(yt({variant:a,size:t,className:s})),ref:r,...n})});K.displayName="Button";const Es=so,Is=to,Rd=ao,Vd=m.forwardRef(({className:s,inset:a,children:t,...l},n)=>e.jsxs(bl,{ref:n,className:y("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",s),...l,children:[t,e.jsx(pn,{className:"ml-auto h-4 w-4"})]}));Vd.displayName=bl.displayName;const Fd=m.forwardRef(({className:s,...a},t)=>e.jsx(yl,{ref:t,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a}));Fd.displayName=yl.displayName;const ws=m.forwardRef(({className:s,sideOffset:a=4,...t},l)=>e.jsx(Zi,{children:e.jsx(Nl,{ref:l,sideOffset:a,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t})}));ws.displayName=Nl.displayName;const _e=m.forwardRef(({className:s,inset:a,...t},l)=>e.jsx(_l,{ref:l,className:y("relative flex cursor-default cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",s),...t}));_e.displayName=_l.displayName;const Md=m.forwardRef(({className:s,children:a,checked:t,...l},n)=>e.jsxs(wl,{ref:n,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:t,...l,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Cl,{children:e.jsx(at,{className:"h-4 w-4"})})}),a]}));Md.displayName=wl.displayName;const Od=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Sl,{ref:l,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Cl,{children:e.jsx(eo,{className:"h-4 w-4 fill-current"})})}),a]}));Od.displayName=Sl.displayName;const yn=m.forwardRef(({className:s,inset:a,...t},l)=>e.jsx(kl,{ref:l,className:y("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",s),...t}));yn.displayName=kl.displayName;const Nt=m.forwardRef(({className:s,...a},t)=>e.jsx(Tl,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...a}));Nt.displayName=Tl.displayName;const cn=({className:s,...a})=>e.jsx("span",{className:y("ml-auto text-xs tracking-widest opacity-60",s),...a});cn.displayName="DropdownMenuShortcut";const Ga=[{code:"en-US",name:"English",flag:no,shortName:"EN"},{code:"zh-CN",name:"中文",flag:lo,shortName:"CN"},{code:"ko-KR",name:"한국어",flag:ro,shortName:"KR"}];function Cr(){const{i18n:s}=V(),a=n=>{s.changeLanguage(n)},t=Ga.find(n=>n.code===s.language)||Ga[1],l=t.flag;return e.jsxs(Es,{children:[e.jsx(Is,{asChild:!0,children:e.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",children:[e.jsx(l,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:"text-sm font-medium",children:t.shortName})]})}),e.jsx(ws,{align:"end",className:"w-[120px]",children:Ga.map(n=>{const r=n.flag,o=n.code===s.language;return e.jsxs(_e,{onClick:()=>a(n.code),className:y("flex items-center gap-2 px-2 py-1.5 cursor-pointer",o&&"bg-accent"),children:[e.jsx(r,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:y("text-sm",o&&"font-medium"),children:n.name})]},n.code)})})]})}function zd(){const[s,a]=m.useState(!1),{t}=V("auth"),l=t("signIn.resetPassword.command");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"container relative flex min-h-svh flex-col items-center justify-center bg-primary-foreground px-4 py-8 lg:max-w-none lg:px-0",children:[e.jsx("div",{className:"absolute right-4 top-4 md:right-8 md:top-8",children:e.jsx(Cr,{})}),e.jsxs("div",{className:"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px] md:w-[420px] lg:p-8",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold sm:text-3xl",children:window?.settings?.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:window?.settings?.description})]}),e.jsxs(Ye,{className:"p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-left",children:[e.jsx("h1",{className:"text-xl font-semibold tracking-tight sm:text-2xl",children:t("signIn.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("signIn.description")})]}),e.jsx(Ed,{onForgotPassword:()=>a(!0)})]})]})]}),e.jsx(he,{open:s,onOpenChange:a,children:e.jsx(ue,{className:"max-w-[90vw] sm:max-w-lg",children:e.jsxs(je,{children:[e.jsx(pe,{children:t("signIn.resetPassword.title")}),e.jsx(Re,{children:t("signIn.resetPassword.description")}),e.jsx("div",{className:"mt-4",children:e.jsxs("div",{className:"relative",children:[e.jsx("pre",{className:"max-w-full overflow-x-auto rounded-md bg-secondary p-4 pr-12 text-sm",children:l}),e.jsx(K,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-8 w-8 hover:bg-secondary-foreground/10",onClick:()=>ba(l).then(()=>{$.success(t("common:copy.success"))}),children:e.jsx(io,{className:"h-4 w-4"})})]})})]})})})]})}const $d=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),Ve=m.forwardRef(({className:s,fadedBelow:a=!1,fixedHeight:t=!1,...l},n)=>e.jsx("div",{ref:n,className:y("relative flex h-full w-full flex-col",a&&"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_hsl(var(--background))_70%)] after:md:block",t&&"md:h-svh",s),...l}));Ve.displayName="Layout";const Fe=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:y("flex h-[var(--header-height)] flex-none items-center gap-4 bg-background p-4 md:px-8",s),...a}));Fe.displayName="LayoutHeader";const Ae=m.forwardRef(({className:s,fixedHeight:a,...t},l)=>e.jsx("div",{ref:l,className:y("flex-1 overflow-hidden px-4 py-6 md:px-8",a&&"h-[calc(100%-var(--header-height))]",s),...t}));Ae.displayName="LayoutBody";const Sr=oo,kr=co,Tr=mo,ye=uo,ge=xo,fe=ho,xe=m.forwardRef(({className:s,sideOffset:a=4,...t},l)=>e.jsx(Dl,{ref:l,sideOffset:a,className:y("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));xe.displayName=Dl.displayName;function Ia(){const{pathname:s}=un();return{checkActiveNav:t=>{if(t==="/"&&s==="/")return!0;const l=t.replace(/^\//,""),n=s.replace(/^\//,"");return l?n.startsWith(l):!1}}}function Dr({key:s,defaultValue:a}){const[t,l]=m.useState(()=>{const n=localStorage.getItem(s);return n!==null?JSON.parse(n):a});return m.useEffect(()=>{localStorage.setItem(s,JSON.stringify(t))},[t,s]),[t,l]}function Ad(){const[s,a]=Dr({key:"collapsed-sidebar-items",defaultValue:[]}),t=n=>!s.includes(n);return{isExpanded:t,toggleItem:n=>{t(n)?a([...s,n]):a(s.filter(r=>r!==n))}}}function qd({links:s,isCollapsed:a,className:t,closeNav:l}){const{t:n}=V(),r=({sub:o,...c})=>{const u=`${n(c.title)}-${c.href}`;return a&&o?m.createElement(Kd,{...c,sub:o,key:u,closeNav:l}):a?m.createElement(Ud,{...c,key:u,closeNav:l}):o?m.createElement(Hd,{...c,sub:o,key:u,closeNav:l}):m.createElement(Pr,{...c,key:u,closeNav:l})};return e.jsx("div",{"data-collapsed":a,className:y("group border-b bg-background py-2 transition-[max-height,padding] duration-500 data-[collapsed=true]:py-2 md:border-none",t),children:e.jsx(ye,{delayDuration:0,children:e.jsx("nav",{className:"grid gap-1 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:s.map(r)})})})}function Pr({title:s,icon:a,label:t,href:l,closeNav:n,subLink:r=!1}){const{checkActiveNav:o}=Ia(),{t:c}=V();return e.jsxs(nt,{to:l,onClick:n,className:y(St({variant:o(l)?"secondary":"ghost",size:"sm"}),"h-12 justify-start text-wrap rounded-none px-6",r&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":o(l)?"page":void 0,children:[e.jsx("div",{className:"mr-2",children:a}),c(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:c(t)})]})}function Hd({title:s,icon:a,label:t,sub:l,closeNav:n}){const{checkActiveNav:r}=Ia(),{isExpanded:o,toggleItem:c}=Ad(),{t:u}=V(),i=!!l?.find(k=>r(k.href)),d=u(s),h=o(d)||i;return e.jsxs(Sr,{open:h,onOpenChange:()=>c(d),children:[e.jsxs(kr,{className:y(St({variant:i?"secondary":"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[e.jsx("div",{className:"mr-2",children:a}),u(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:u(t)}),e.jsx("span",{className:y('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:e.jsx(Pl,{stroke:1})})]}),e.jsx(Tr,{className:"collapsibleDropdown",asChild:!0,children:e.jsx("ul",{children:l.map(k=>e.jsx("li",{className:"my-1 ml-8",children:e.jsx(Pr,{...k,subLink:!0,closeNav:n})},u(k.title)))})})]})}function Ud({title:s,icon:a,label:t,href:l,closeNav:n}){const{checkActiveNav:r}=Ia(),{t:o}=V();return e.jsxs(ge,{delayDuration:0,children:[e.jsx(fe,{asChild:!0,children:e.jsxs(nt,{to:l,onClick:n,className:y(St({variant:r(l)?"secondary":"ghost",size:"icon"}),"h-12 w-12"),children:[a,e.jsx("span",{className:"sr-only",children:o(s)})]})}),e.jsxs(xe,{side:"right",className:"flex items-center gap-4",children:[o(s),t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:o(t)})]})]})}function Kd({title:s,icon:a,label:t,sub:l,closeNav:n}){const{checkActiveNav:r}=Ia(),{t:o}=V(),c=!!l?.find(u=>r(u.href));return e.jsxs(Es,{children:[e.jsxs(ge,{delayDuration:0,children:[e.jsx(fe,{asChild:!0,children:e.jsx(Is,{asChild:!0,children:e.jsx(L,{variant:c?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:a})})}),e.jsxs(xe,{side:"right",className:"flex items-center gap-4",children:[o(s)," ",t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:o(t)}),e.jsx(Pl,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),e.jsxs(ws,{side:"right",align:"start",sideOffset:4,children:[e.jsxs(yn,{children:[o(s)," ",t?`(${o(t)})`:""]}),e.jsx(Nt,{}),l.map(({title:u,icon:i,label:d,href:h})=>e.jsx(_e,{asChild:!0,children:e.jsxs(nt,{to:h,onClick:n,className:`${r(h)?"bg-secondary":""}`,children:[i," ",e.jsx("span",{className:"ml-2 max-w-52 text-wrap",children:o(u)}),d&&e.jsx("span",{className:"ml-auto text-xs",children:o(d)})]})},`${o(u)}-${h}`))]})]})}const Lr=[{title:"nav:dashboard",label:"",href:"/",icon:e.jsx(po,{size:18})},{title:"nav:systemManagement",label:"",href:"",icon:e.jsx(go,{size:18}),sub:[{title:"nav:systemConfig",label:"",href:"/config/system",icon:e.jsx(Ll,{size:18})},{title:"nav:pluginManagement",label:"",href:"/config/plugin",icon:e.jsx(gn,{size:18})},{title:"nav:themeConfig",label:"",href:"/config/theme",icon:e.jsx(fo,{size:18})},{title:"nav:noticeManagement",label:"",href:"/config/notice",icon:e.jsx(jo,{size:18})},{title:"nav:paymentConfig",label:"",href:"/config/payment",icon:e.jsx(Hn,{size:18})},{title:"nav:knowledgeManagement",label:"",href:"/config/knowledge",icon:e.jsx(vo,{size:18})}]},{title:"nav:nodeManagement",label:"",href:"",icon:e.jsx(El,{size:18}),sub:[{title:"nav:nodeManagement",label:"",href:"/server/manage",icon:e.jsx(bo,{size:18})},{title:"nav:permissionGroupManagement",label:"",href:"/server/group",icon:e.jsx(Il,{size:18})},{title:"nav:routeManagement",label:"",href:"/server/route",icon:e.jsx(yo,{size:18})}]},{title:"nav:subscriptionManagement",label:"",href:"",icon:e.jsx(No,{size:18}),sub:[{title:"nav:planManagement",label:"",href:"/finance/plan",icon:e.jsx(_o,{size:18})},{title:"nav:orderManagement",label:"",href:"/finance/order",icon:e.jsx(Hn,{size:18})},{title:"nav:couponManagement",label:"",href:"/finance/coupon",icon:e.jsx(wo,{size:18})}]},{title:"nav:userManagement",label:"",href:"",icon:e.jsx(Co,{size:18}),sub:[{title:"nav:userManagement",label:"",href:"/user/manage",icon:e.jsx(So,{size:18})},{title:"nav:ticketManagement",label:"",href:"/user/ticket",icon:e.jsx(Rl,{size:18})}]}];function Bd({className:s,isCollapsed:a,setIsCollapsed:t}){const[l,n]=m.useState(!1),{t:r}=V();return m.useEffect(()=>{l?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[l]),e.jsxs("aside",{className:y(`fixed left-0 right-0 top-0 z-50 flex h-auto flex-col border-r-2 border-r-muted transition-[width] md:bottom-0 md:right-auto md:h-svh ${a?"md:w-14":"md:w-64"}`,s),children:[e.jsx("div",{onClick:()=>n(!1),className:`absolute inset-0 transition-[opacity] delay-100 duration-700 ${l?"h-svh opacity-50":"h-0 opacity-0"} w-full bg-black md:hidden`}),e.jsxs(Ve,{className:`flex h-full flex-col ${l?"h-[100vh] md:h-full":""}`,children:[e.jsxs(Fe,{className:"sticky top-0 justify-between px-4 py-3 shadow md:px-4",children:[e.jsxs("div",{className:`flex items-center ${a?"":"gap-2"}`,children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",className:`transition-all ${a?"h-6 w-6":"h-8 w-8"}`,children:[e.jsx("rect",{width:"256",height:"256",fill:"none"}),e.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("span",{className:"sr-only",children:"Website Name"})]}),e.jsx("div",{className:`flex flex-col justify-end truncate ${a?"invisible w-0":"visible w-auto"}`,children:e.jsx("span",{className:"font-medium",children:window?.settings?.title})})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":r("common:toggleNavigation"),"aria-controls":"sidebar-menu","aria-expanded":l,onClick:()=>n(o=>!o),children:l?e.jsx(ko,{}):e.jsx(To,{})})]}),e.jsx(qd,{id:"sidebar-menu",className:y("flex-1 overflow-auto overscroll-contain",l?"block":"hidden md:block","md:py-2"),closeNav:()=>n(!1),isCollapsed:a,links:Lr}),e.jsx("div",{className:y("border-t border-border/50 bg-background","px-4 py-2.5 text-xs text-muted-foreground",l?"block":"hidden md:block",a?"text-center":"text-left"),children:e.jsxs("div",{className:y("flex items-center gap-1.5",a?"justify-center":"justify-start"),children:[e.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),e.jsxs("span",{className:y("whitespace-nowrap tracking-wide","transition-opacity duration-200",a&&"md:opacity-0"),children:["v",window?.settings?.version]})]})}),e.jsx(L,{onClick:()=>t(o=>!o),size:"icon",variant:"outline",className:"absolute -right-5 top-1/2 hidden rounded-full md:inline-flex","aria-label":r("common:toggleSidebar"),children:e.jsx(Do,{stroke:1.5,className:`h-5 w-5 ${a?"rotate-180":""}`})})]})]})}function Gd(){const[s,a]=Dr({key:"collapsed-sidebar",defaultValue:!1});return m.useEffect(()=>{const t=()=>{a(window.innerWidth<768?!1:s)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[s,a]),[s,a]}function Wd(){const[s,a]=Gd();return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background",children:[e.jsx(Bd,{isCollapsed:s,setIsCollapsed:a}),e.jsx("main",{id:"content",className:`overflow-x-hidden pt-16 transition-[margin] md:overflow-y-hidden md:pt-0 ${s?"md:ml-14":"md:ml-64"} h-full`,children:e.jsx(xn,{})})]})}const Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Wd},Symbol.toStringTag,{value:"Module"})),Us=m.forwardRef(({className:s,...a},t)=>e.jsx(He,{ref:t,className:y("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...a}));Us.displayName=He.displayName;const Jd=({children:s,...a})=>e.jsx(he,{...a,children:e.jsx(ue,{className:"overflow-hidden p-0",children:e.jsx(Us,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})}),it=m.forwardRef(({className:s,...a},t)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(Po,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(He.Input,{ref:t,className:y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...a})]}));it.displayName=He.Input.displayName;const Ks=m.forwardRef(({className:s,...a},t)=>e.jsx(He.List,{ref:t,className:y("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...a}));Ks.displayName=He.List.displayName;const ot=m.forwardRef((s,a)=>e.jsx(He.Empty,{ref:a,className:"py-6 text-center text-sm",...s}));ot.displayName=He.Empty.displayName;const ns=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Group,{ref:t,className:y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...a}));ns.displayName=He.Group.displayName;const Tt=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Separator,{ref:t,className:y("-mx-1 h-px bg-border",s),...a}));Tt.displayName=He.Separator.displayName;const $e=m.forwardRef(({className:s,...a},t)=>e.jsx(He.Item,{ref:t,className:y("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...a}));$e.displayName=He.Item.displayName;function Qd(){const s=[];for(const a of Lr)if(a.href&&s.push(a),a.sub)for(const t of a.sub)s.push({...t,parent:a.title});return s}function Xe(){const[s,a]=m.useState(!1),t=Rs(),l=Qd(),{t:n}=V("search"),{t:r}=V("nav");m.useEffect(()=>{const c=u=>{u.key==="k"&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),a(i=>!i))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]);const o=m.useCallback(c=>{a(!1),t(c)},[t]);return e.jsxs(e.Fragment,{children:[e.jsxs(K,{variant:"outline",className:"relative h-9 w-9 p-0 xl:h-10 xl:w-60 xl:justify-start xl:px-3 xl:py-2",onClick:()=>a(!0),children:[e.jsx(fn,{className:"h-4 w-4 xl:mr-2"}),e.jsx("span",{className:"hidden xl:inline-flex",children:n("placeholder")}),e.jsx("span",{className:"sr-only",children:n("shortcut.label")}),e.jsx("kbd",{className:"pointer-events-none absolute right-1.5 top-2 hidden h-6 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 xl:flex",children:n("shortcut.key")})]}),e.jsxs(Jd,{open:s,onOpenChange:a,children:[e.jsx(it,{placeholder:n("placeholder")}),e.jsxs(Ks,{children:[e.jsx(ot,{children:n("noResults")}),e.jsx(ns,{heading:n("title"),children:l.map(c=>e.jsxs($e,{value:`${c.parent?c.parent+" ":""}${c.title}`,onSelect:()=>o(c.href),children:[e.jsx("div",{className:"mr-2",children:c.icon}),e.jsx("span",{children:r(c.title)}),c.parent&&e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:r(c.parent)})]},c.href))})]})]})]})}function Ue(){const{theme:s,setTheme:a}=ed();return m.useEffect(()=>{const t=s==="dark"?"#020817":"#fff",l=document.querySelector("meta[name='theme-color']");l&&l.setAttribute("content",t)},[s]),e.jsxs(e.Fragment,{children:[e.jsx(L,{size:"icon",variant:"ghost",className:"rounded-full",onClick:()=>a(s==="light"?"dark":"light"),children:s==="light"?e.jsx(Lo,{size:20}):e.jsx(Eo,{size:20})}),e.jsx(Cr,{})]})}const Er=m.forwardRef(({className:s,...a},t)=>e.jsx(Vl,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...a}));Er.displayName=Vl.displayName;const Ir=m.forwardRef(({className:s,...a},t)=>e.jsx(Fl,{ref:t,className:y("aspect-square h-full w-full",s),...a}));Ir.displayName=Fl.displayName;const Rr=m.forwardRef(({className:s,...a},t)=>e.jsx(Ml,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...a}));Rr.displayName=Ml.displayName;function Ke(){const s=Rs(),a=gl(),t=Io(kd),{t:l}=V(["common"]),n=()=>{fr(),a(Sd()),s("/sign-in")},r=t?.email?.split("@")[0]||l("common:user"),o=r.substring(0,2).toUpperCase();return e.jsxs(Es,{children:[e.jsx(Is,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:e.jsxs(Er,{className:"h-8 w-8",children:[e.jsx(Ir,{src:t?.avatar_url,alt:r}),e.jsx(Rr,{children:o})]})})}),e.jsxs(ws,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(yn,{className:"font-normal",children:e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:r}),e.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:t?.email||l("common:defaultEmail")})]})}),e.jsx(Nt,{}),e.jsx(_e,{asChild:!0,children:e.jsxs(nt,{to:"/config/system",children:[l("common:settings"),e.jsx(cn,{children:"⌘S"})]})}),e.jsx(Nt,{}),e.jsxs(_e,{onClick:n,children:[l("common:logout"),e.jsx(cn,{children:"⇧⌘Q"})]})]})]})}const J=Ro,Be=qo,Q=Vo,W=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Ol,{ref:l,className:y("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...t,children:[a,e.jsx(Fo,{asChild:!0,children:e.jsx(jn,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=Ol.displayName;const Vr=m.forwardRef(({className:s,...a},t)=>e.jsx(zl,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(Mo,{className:"h-4 w-4"})}));Vr.displayName=zl.displayName;const Fr=m.forwardRef(({className:s,...a},t)=>e.jsx($l,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(jn,{className:"h-4 w-4"})}));Fr.displayName=$l.displayName;const Y=m.forwardRef(({className:s,children:a,position:t="popper",...l},n)=>e.jsx(Oo,{children:e.jsxs(Al,{ref:n,className:y("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:t,...l,children:[e.jsx(Vr,{}),e.jsx(zo,{className:y("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(Fr,{})]})}));Y.displayName=Al.displayName;const Xd=m.forwardRef(({className:s,...a},t)=>e.jsx(ql,{ref:t,className:y("px-2 py-1.5 text-sm font-semibold",s),...a}));Xd.displayName=ql.displayName;const A=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Hl,{ref:l,className:y("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx($o,{children:e.jsx(at,{className:"h-4 w-4"})})}),e.jsx(Ao,{children:a})]}));A.displayName=Hl.displayName;const Zd=m.forwardRef(({className:s,...a},t)=>e.jsx(Ul,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...a}));Zd.displayName=Ul.displayName;function ct({className:s,classNames:a,showOutsideDays:t=!0,...l}){return e.jsx(Ho,{showOutsideDays:t,className:y("p-3",s),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(yt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",l.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(yt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:({className:n,...r})=>e.jsx(Kl,{className:y("h-4 w-4",n),...r}),IconRight:({className:n,...r})=>e.jsx(pn,{className:y("h-4 w-4",n),...r})},...l})}ct.displayName="Calendar";const Cs=Ko,Ss=Bo,bs=m.forwardRef(({className:s,align:a="center",sideOffset:t=4,...l},n)=>e.jsx(Uo,{children:e.jsx(Bl,{ref:n,align:a,sideOffset:t,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...l})}));bs.displayName=Bl.displayName;const zs={income:{main:"hsl(var(--primary))",gradient:{start:"hsl(var(--primary))",end:"transparent"}},commission:{main:"hsl(var(--secondary))",gradient:{start:"hsl(var(--secondary))",end:"transparent"}}},Ot=s=>(s/100).toFixed(2),em=({active:s,payload:a,label:t})=>{const{t:l}=V();return s&&a&&a.length?e.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-sm",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:t}),a.map((n,r)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:n.color}}),e.jsxs("span",{className:"text-muted-foreground",children:[l(n.name),":"]}),e.jsx("span",{className:"font-medium",children:n.name.includes(l("dashboard:overview.amount"))?`¥${Ot(n.value)}`:l("dashboard:overview.transactions",{count:n.value})})]},r))]}):null},sm=[{value:"7d",label:"dashboard:overview.last7Days"},{value:"30d",label:"dashboard:overview.last30Days"},{value:"90d",label:"dashboard:overview.last90Days"},{value:"180d",label:"dashboard:overview.last180Days"},{value:"365d",label:"dashboard:overview.lastYear"},{value:"custom",label:"dashboard:overview.customRange"}],tm=(s,a)=>{const t=new Date;if(s==="custom"&&a)return{startDate:a.from,endDate:a.to};let l;switch(s){case"7d":l=ps(t,7);break;case"30d":l=ps(t,30);break;case"90d":l=ps(t,90);break;case"180d":l=ps(t,180);break;case"365d":l=ps(t,365);break;default:l=ps(t,30)}return{startDate:l,endDate:t}};function am(){const[s,a]=m.useState("amount"),[t,l]=m.useState("30d"),[n,r]=m.useState({from:ps(new Date,7),to:new Date}),{t:o}=V(),{startDate:c,endDate:u}=tm(t,n),{data:i}=le({queryKey:["orderStat",{start_date:hs(c,"yyyy-MM-dd"),end_date:hs(u,"yyyy-MM-dd")}],queryFn:async()=>{const{data:d}=await ya.getOrderStat({start_date:hs(c,"yyyy-MM-dd"),end_date:hs(u,"yyyy-MM-dd")});return d},refetchInterval:3e4});return e.jsxs(Ye,{children:[e.jsx(ts,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Ns,{children:o("dashboard:overview.title")}),e.jsxs(st,{children:[i?.summary.start_date," ",o("dashboard:overview.to")," ",i?.summary.end_date]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsxs(J,{value:t,onValueChange:d=>l(d),children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:o("dashboard:overview.selectTimeRange")})}),e.jsx(Y,{children:sm.map(d=>e.jsx(A,{value:d.value,children:o(d.label)},d.value))})]}),t==="custom"&&e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(K,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(Ct,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:n?.from?n.to?e.jsxs(e.Fragment,{children:[hs(n.from,"yyyy-MM-dd")," -"," ",hs(n.to,"yyyy-MM-dd")]}):hs(n.from,"yyyy-MM-dd"):o("dashboard:overview.selectDate")})]})}),e.jsx(bs,{className:"w-auto p-0",align:"end",children:e.jsx(ct,{mode:"range",defaultMonth:n?.from,selected:{from:n?.from,to:n?.to},onSelect:d=>{d?.from&&d?.to&&r({from:d.from,to:d.to})},numberOfMonths:2})})]})]}),e.jsx(Yt,{value:s,onValueChange:d=>a(d),children:e.jsxs(kt,{children:[e.jsx(es,{value:"amount",children:o("dashboard:overview.amount")}),e.jsx(es,{value:"count",children:o("dashboard:overview.count")})]})})]})]})}),e.jsxs(as,{children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:o("dashboard:overview.totalIncome")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",Ot(i?.summary?.paid_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:o("dashboard:overview.totalTransactions",{count:i?.summary?.paid_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[o("dashboard:overview.avgOrderAmount")," ¥",Ot(i?.summary?.avg_paid_amount||0)]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:o("dashboard:overview.totalCommission")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",Ot(i?.summary?.commission_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:o("dashboard:overview.totalTransactions",{count:i?.summary?.commission_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[o("dashboard:overview.commissionRate")," ",i?.summary?.commission_rate.toFixed(2)||0,"%"]})]})]}),e.jsx("div",{className:"h-[400px] w-full",children:e.jsx(Go,{width:"100%",height:"100%",children:e.jsxs(Wo,{data:i?.list||[],margin:{top:20,right:20,left:0,bottom:0},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"incomeGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:zs.income.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:zs.income.gradient.end,stopOpacity:.1})]}),e.jsxs("linearGradient",{id:"commissionGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:zs.commission.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:zs.commission.gradient.end,stopOpacity:.1})]})]}),e.jsx(Yo,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:d=>hs(new Date(d),"MM-dd",{locale:Zo})}),e.jsx(Jo,{axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:d=>s==="amount"?`¥${Ot(d)}`:o("dashboard:overview.transactions",{count:d})}),e.jsx(Qo,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),e.jsx(Xo,{content:e.jsx(em,{})}),s==="amount"?e.jsxs(e.Fragment,{children:[e.jsx(Un,{type:"monotone",dataKey:"paid_total",name:o("dashboard:overview.orderAmount"),stroke:zs.income.main,fill:"url(#incomeGradient)",strokeWidth:2}),e.jsx(Un,{type:"monotone",dataKey:"commission_total",name:o("dashboard:overview.commissionAmount"),stroke:zs.commission.main,fill:"url(#commissionGradient)",strokeWidth:2})]}):e.jsxs(e.Fragment,{children:[e.jsx(Kn,{dataKey:"paid_count",name:o("dashboard:overview.orderCount"),fill:zs.income.main,radius:[4,4,0,0],maxBarSize:40}),e.jsx(Kn,{dataKey:"commission_count",name:o("dashboard:overview.commissionCount"),fill:zs.commission.main,radius:[4,4,0,0],maxBarSize:40})]})]})})})]})]})}function me({className:s,...a}){return e.jsx("div",{className:y("animate-pulse rounded-md bg-primary/10",s),...a})}function nm(){return e.jsxs(Ye,{children:[e.jsxs(ts,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(me,{className:"h-4 w-[120px]"}),e.jsx(me,{className:"h-4 w-4"})]}),e.jsxs(as,{children:[e.jsx(me,{className:"h-8 w-[140px] mb-2"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-4 w-4"}),e.jsx(me,{className:"h-4 w-[100px]"})]})]})]})}function lm(){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:8}).map((s,a)=>e.jsx(nm,{},a))})}var ne=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.CANCELLED=2]="CANCELLED",s[s.COMPLETED=3]="COMPLETED",s[s.DISCOUNTED=4]="DISCOUNTED",s))(ne||{});const Rt={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Vt={0:"yellow-500",1:"blue-500",2:"red-500",3:"green-500",4:"green-500"};var gs=(s=>(s[s.NEW=1]="NEW",s[s.RENEWAL=2]="RENEWAL",s[s.UPGRADE=3]="UPGRADE",s[s.RESET_FLOW=4]="RESET_FLOW",s))(gs||{}),be=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.VALID=2]="VALID",s[s.INVALID=3]="INVALID",s))(be||{});const na={0:"待确认",1:"发放中",2:"有效",3:"无效"},la={0:"yellow-500",1:"blue-500",2:"green-500",3:"red-500"};var Ie=(s=>(s.MONTH_PRICE="month_price",s.QUARTER_PRICE="quarter_price",s.HALF_YEAR_PRICE="half_year_price",s.YEAR_PRICE="year_price",s.TWO_YEAR_PRICE="two_year_price",s.THREE_YEAR_PRICE="three_year_price",s.ONETIME_PRICE="onetime_price",s.RESET_PRICE="reset_price",s))(Ie||{});const rm={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"};var ie=(s=>(s.Shadowsocks="shadowsocks",s.Vmess="vmess",s.Trojan="trojan",s.Hysteria="hysteria",s.Vless="vless",s.Tuic="tuic",s.Socks="socks",s.Naive="naive",s.Http="http",s.Mieru="mieru",s.AnyTLS="anytls",s))(ie||{});const cs=[{type:"shadowsocks",label:"Shadowsocks"},{type:"vmess",label:"VMess"},{type:"trojan",label:"Trojan"},{type:"hysteria",label:"Hysteria"},{type:"vless",label:"VLess"},{type:"tuic",label:"TUIC"},{type:"socks",label:"SOCKS"},{type:"naive",label:"Naive"},{type:"http",label:"HTTP"},{type:"mieru",label:"Mieru"},{type:"anytls",label:"AnyTLS"}],Ge={shadowsocks:"#489851",vmess:"#CB3180",trojan:"#EBB749",hysteria:"#5684e6",vless:"#1a1a1a",tuic:"#00C853",socks:"#2196F3",naive:"#9C27B0",http:"#FF5722",mieru:"#4CAF50",anytls:"#7E57C2"};var Ze=(s=>(s[s.AMOUNT=1]="AMOUNT",s[s.PERCENTAGE=2]="PERCENTAGE",s))(Ze||{});const im={1:"按金额优惠",2:"按比例优惠"};var Hs=(s=>(s[s.OPENING=0]="OPENING",s[s.CLOSED=1]="CLOSED",s))(Hs||{}),qe=(s=>(s[s.LOW=0]="LOW",s[s.MIDDLE=1]="MIDDLE",s[s.HIGH=2]="HIGH",s))(qe||{}),Ht=(s=>(s.MONTH="monthly",s.QUARTER="quarterly",s.HALF_YEAR="half_yearly",s.YEAR="yearly",s.TWO_YEAR="two_yearly",s.THREE_YEAR="three_yearly",s.ONETIME="onetime",s.RESET="reset_traffic",s))(Ht||{});function $s({title:s,value:a,icon:t,trend:l,description:n,onClick:r,highlight:o,className:c}){return e.jsxs(Ye,{className:y("transition-colors",r&&"cursor-pointer hover:bg-muted/50",o&&"border-primary/50",c),onClick:r,children:[e.jsxs(ts,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(Ns,{className:"text-sm font-medium",children:s}),t]}),e.jsxs(as,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),l?e.jsxs("div",{className:"flex items-center pt-1",children:[e.jsx(nc,{className:y("h-4 w-4",l.isPositive?"text-emerald-500":"text-red-500")}),e.jsxs("span",{className:y("ml-1 text-xs",l.isPositive?"text-emerald-500":"text-red-500"),children:[l.isPositive?"+":"-",Math.abs(l.value),"%"]}),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:l.label})]}):e.jsx("p",{className:"text-xs text-muted-foreground",children:n})]})]})}function om({className:s}){const a=Rs(),{t}=V(),{data:l,isLoading:n}=le({queryKey:["dashboardStats"],queryFn:async()=>(await ya.getStatsData()).data,refetchInterval:1e3*60*5});if(n||!l)return e.jsx(lm,{});const r=()=>{const o=new URLSearchParams;o.set("commission_status",be.PENDING.toString()),o.set("status",ne.COMPLETED.toString()),o.set("commission_balance","gt:0"),a(`/finance/order?${o.toString()}`)};return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2 lg:grid-cols-4",s),children:[e.jsx($s,{title:t("dashboard:stats.todayIncome"),value:Js(l.todayIncome),icon:e.jsx(ec,{className:"h-4 w-4 text-emerald-500"}),trend:{value:l.dayIncomeGrowth,label:t("dashboard:stats.vsYesterday"),isPositive:l.dayIncomeGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.monthlyIncome"),value:Js(l.currentMonthIncome),icon:e.jsx(Gl,{className:"h-4 w-4 text-blue-500"}),trend:{value:l.monthIncomeGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:l.monthIncomeGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.pendingTickets"),value:l.ticketPendingTotal,icon:e.jsx(sc,{className:y("h-4 w-4",l.ticketPendingTotal>0?"text-orange-500":"text-muted-foreground")}),description:l.ticketPendingTotal>0?t("dashboard:stats.hasPendingTickets"):t("dashboard:stats.noPendingTickets"),onClick:()=>a("/user/ticket"),highlight:l.ticketPendingTotal>0}),e.jsx($s,{title:t("dashboard:stats.pendingCommission"),value:l.commissionPendingTotal,icon:e.jsx(tc,{className:y("h-4 w-4",l.commissionPendingTotal>0?"text-blue-500":"text-muted-foreground")}),description:l.commissionPendingTotal>0?t("dashboard:stats.hasPendingCommission"):t("dashboard:stats.noPendingCommission"),onClick:r,highlight:l.commissionPendingTotal>0}),e.jsx($s,{title:t("dashboard:stats.monthlyNewUsers"),value:l.currentMonthNewUsers,icon:e.jsx(sn,{className:"h-4 w-4 text-blue-500"}),trend:{value:l.userGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:l.userGrowth>0}}),e.jsx($s,{title:t("dashboard:stats.totalUsers"),value:l.totalUsers,icon:e.jsx(sn,{className:"h-4 w-4 text-muted-foreground"}),description:t("dashboard:stats.activeUsers",{count:l.activeUsers})}),e.jsx($s,{title:t("dashboard:stats.monthlyUpload"),value:Oe(l.monthTraffic.upload),icon:e.jsx(Kt,{className:"h-4 w-4 text-emerald-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(l.todayTraffic.upload)})}),e.jsx($s,{title:t("dashboard:stats.monthlyDownload"),value:Oe(l.monthTraffic.download),icon:e.jsx(ac,{className:"h-4 w-4 text-blue-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(l.todayTraffic.download)})})]})}const _t=m.forwardRef(({className:s,children:a,...t},l)=>e.jsxs(Wl,{ref:l,className:y("relative overflow-hidden",s),...t,children:[e.jsx(lc,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(_a,{}),e.jsx(rc,{})]}));_t.displayName=Wl.displayName;const _a=m.forwardRef(({className:s,orientation:a="vertical",...t},l)=>e.jsx(Yl,{ref:l,orientation:a,className:y("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...t,children:e.jsx(ic,{className:"relative flex-1 rounded-full bg-border"})}));_a.displayName=Yl.displayName;const dn={today:{getValue:()=>{const s=cc();return{start:s,end:dc(s,1)}}},last7days:{getValue:()=>{const s=new Date;return{start:ps(s,7),end:s}}},last30days:{getValue:()=>{const s=new Date;return{start:ps(s,30),end:s}}},custom:{getValue:()=>null}};function tl({selectedRange:s,customDateRange:a,onRangeChange:t,onCustomRangeChange:l}){const{t:n}=V(),r={today:n("dashboard:trafficRank.today"),last7days:n("dashboard:trafficRank.last7days"),last30days:n("dashboard:trafficRank.last30days"),custom:n("dashboard:trafficRank.customRange")};return e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[e.jsxs(J,{value:s,onValueChange:t,children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:n("dashboard:trafficRank.selectTimeRange")})}),e.jsx(Y,{position:"popper",className:"z-50",children:Object.entries(dn).map(([o])=>e.jsx(A,{value:o,children:r[o]},o))})]}),s==="custom"&&e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(K,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(Ct,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:a?.from?a.to?e.jsxs(e.Fragment,{children:[hs(a.from,"yyyy-MM-dd")," -"," ",hs(a.to,"yyyy-MM-dd")]}):hs(a.from,"yyyy-MM-dd"):e.jsx("span",{children:n("dashboard:trafficRank.selectDateRange")})})]})}),e.jsx(bs,{className:"w-auto p-0",align:"end",children:e.jsx(ct,{mode:"range",defaultMonth:a?.from,selected:{from:a?.from,to:a?.to},onSelect:o=>{o?.from&&o?.to&&l({from:o.from,to:o.to})},numberOfMonths:2})})]})]})}const ht=s=>`${(s/1024/1024/1024).toFixed(2)} GB`;function cm({className:s}){const{t:a}=V(),[t,l]=m.useState("today"),[n,r]=m.useState({from:ps(new Date,7),to:new Date}),[o,c]=m.useState("today"),[u,i]=m.useState({from:ps(new Date,7),to:new Date}),d=m.useMemo(()=>t==="custom"?{start:n.from,end:n.to}:dn[t].getValue(),[t,n]),h=m.useMemo(()=>o==="custom"?{start:u.from,end:u.to}:dn[o].getValue(),[o,u]),{data:k}=le({queryKey:["nodeTrafficRank",d.start,d.end],queryFn:()=>ya.getNodeTrafficData({type:"node",start_time:ke.round(d.start.getTime()/1e3),end_time:ke.round(d.end.getTime()/1e3)}),refetchInterval:3e4}),{data:C}=le({queryKey:["userTrafficRank",h.start,h.end],queryFn:()=>ya.getNodeTrafficData({type:"user",start_time:ke.round(h.start.getTime()/1e3),end_time:ke.round(h.end.getTime()/1e3)}),refetchInterval:3e4});return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2",s),children:[e.jsxs(Ye,{children:[e.jsx(ts,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ns,{className:"flex items-center text-base font-medium",children:[e.jsx(oc,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.nodeTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(tl,{selectedRange:t,customDateRange:n,onRangeChange:l,onCustomRangeChange:r}),e.jsx(Bn,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(as,{className:"flex-1",children:k?.data?e.jsxs(_t,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:k.data.map(S=>e.jsx(ye,{delayDuration:200,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(tn,{className:"mr-1 h-3 w-3"}):e.jsx(an,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/k.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:ht(S.value)})]})]})})}),e.jsx(xe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:ht(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:ht(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(_a,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]}),e.jsxs(Ye,{children:[e.jsx(ts,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ns,{className:"flex items-center text-base font-medium",children:[e.jsx(sn,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.userTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(tl,{selectedRange:o,customDateRange:u,onRangeChange:c,onCustomRangeChange:i}),e.jsx(Bn,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(as,{className:"flex-1",children:C?.data?e.jsxs(_t,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:C.data.map(S=>e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(tn,{className:"mr-1 h-3 w-3"}):e.jsx(an,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/C.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:ht(S.value)})]})]})})}),e.jsx(xe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:ht(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:ht(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(_a,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]})]})}const dm=tt("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/10",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function G({className:s,variant:a,...t}){return e.jsx("div",{className:y(dm({variant:a}),s),...t})}const ua=m.forwardRef(({className:s,value:a,...t},l)=>e.jsx(Jl,{ref:l,className:y("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...t,children:e.jsx(mc,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));ua.displayName=Jl.displayName;const Nn=m.forwardRef(({className:s,...a},t)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:t,className:y("w-full caption-bottom text-sm",s),...a})}));Nn.displayName="Table";const _n=m.forwardRef(({className:s,...a},t)=>e.jsx("thead",{ref:t,className:y("[&_tr]:border-b",s),...a}));_n.displayName="TableHeader";const wn=m.forwardRef(({className:s,...a},t)=>e.jsx("tbody",{ref:t,className:y("[&_tr:last-child]:border-0",s),...a}));wn.displayName="TableBody";const mm=m.forwardRef(({className:s,...a},t)=>e.jsx("tfoot",{ref:t,className:y("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...a}));mm.displayName="TableFooter";const As=m.forwardRef(({className:s,...a},t)=>e.jsx("tr",{ref:t,className:y("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",s),...a}));As.displayName="TableRow";const Cn=m.forwardRef(({className:s,...a},t)=>e.jsx("th",{ref:t,className:y("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));Cn.displayName="TableHead";const vt=m.forwardRef(({className:s,...a},t)=>e.jsx("td",{ref:t,className:y("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));vt.displayName="TableCell";const um=m.forwardRef(({className:s,...a},t)=>e.jsx("caption",{ref:t,className:y("mt-4 text-sm text-muted-foreground",s),...a}));um.displayName="TableCaption";function Sn({table:s}){const[a,t]=m.useState(""),{t:l}=V("common");m.useEffect(()=>{t((s.getState().pagination.pageIndex+1).toString())},[s.getState().pagination.pageIndex]);const n=r=>{const o=parseInt(r);!isNaN(o)&&o>=1&&o<=s.getPageCount()?s.setPageIndex(o-1):t((s.getState().pagination.pageIndex+1).toString())};return e.jsxs("div",{className:"flex flex-col-reverse gap-4 px-2 py-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("div",{className:"flex-1 text-sm text-muted-foreground",children:l("table.pagination.selected",{selected:s.getFilteredSelectedRowModel().rows.length,total:s.getFilteredRowModel().rows.length})}),e.jsxs("div",{className:"flex flex-col-reverse items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:l("table.pagination.itemsPerPage")}),e.jsxs(J,{value:`${s.getState().pagination.pageSize}`,onValueChange:r=>{s.setPageSize(Number(r))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:s.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50,100,500].map(r=>e.jsx(A,{value:`${r}`,children:r},r))})]})]}),e.jsxs("div",{className:"flex items-center justify-center space-x-2 text-sm font-medium",children:[e.jsx("span",{children:l("table.pagination.page")}),e.jsx(D,{type:"text",value:a,onChange:r=>t(r.target.value),onBlur:r=>n(r.target.value),onKeyDown:r=>{r.key==="Enter"&&n(r.currentTarget.value)},className:"h-8 w-[50px] text-center"}),e.jsx("span",{children:l("table.pagination.pageOf",{total:s.getPageCount()})})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.firstPage")}),e.jsx(uc,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.previousPage")}),e.jsx(Kl,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.nextPage")}),e.jsx(pn,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:l("table.pagination.lastPage")}),e.jsx(xc,{className:"h-4 w-4"})]})]})]})]})}function os({table:s,toolbar:a,draggable:t=!1,onDragStart:l,onDragEnd:n,onDragOver:r,onDragLeave:o,onDrop:c,showPagination:u=!0,isLoading:i=!1}){const{t:d}=V("common"),h=m.useRef(null),k=s.getAllColumns().filter(N=>N.getIsPinned()==="left"),C=s.getAllColumns().filter(N=>N.getIsPinned()==="right"),S=N=>k.slice(0,N).reduce((g,T)=>g+(T.getSize()??0),0),w=N=>C.slice(N+1).reduce((g,T)=>g+(T.getSize()??0),0);return e.jsxs("div",{className:"space-y-4",children:[typeof a=="function"?a(s):a,e.jsx("div",{ref:h,className:"relative overflow-auto rounded-md border bg-card",children:e.jsx("div",{className:"overflow-auto",children:e.jsxs(Nn,{children:[e.jsx(_n,{children:s.getHeaderGroups().map(N=>e.jsx(As,{className:"hover:bg-transparent",children:N.headers.map((g,T)=>{const E=g.column.getIsPinned()==="left",p=g.column.getIsPinned()==="right",_=E?S(k.indexOf(g.column)):void 0,I=p?w(C.indexOf(g.column)):void 0;return e.jsx(Cn,{colSpan:g.colSpan,style:{width:g.getSize(),...E&&{left:_},...p&&{right:I}},className:y("h-11 bg-card px-4 text-muted-foreground",(E||p)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",E&&"before:right-0",p&&"before:left-0"]),children:g.isPlaceholder?null:ga(g.column.columnDef.header,g.getContext())},g.id)})},N.id))}),e.jsx(wn,{children:s.getRowModel().rows?.length?s.getRowModel().rows.map((N,g)=>e.jsx(As,{"data-state":N.getIsSelected()&&"selected",className:"hover:bg-muted/50",draggable:t,onDragStart:T=>l?.(T,g),onDragEnd:n,onDragOver:r,onDragLeave:o,onDrop:T=>c?.(T,g),children:N.getVisibleCells().map((T,E)=>{const p=T.column.getIsPinned()==="left",_=T.column.getIsPinned()==="right",I=p?S(k.indexOf(T.column)):void 0,H=_?w(C.indexOf(T.column)):void 0;return e.jsx(vt,{style:{width:T.column.getSize(),...p&&{left:I},..._&&{right:H}},className:y("bg-card",(p||_)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",p&&"before:right-0",_&&"before:left-0"]),children:ga(T.column.columnDef.cell,T.getContext())},T.id)})},N.id)):e.jsx(As,{children:e.jsx(vt,{colSpan:s.getAllColumns().length,className:"h-24 text-center",children:d("table.noData")})})})]})})}),u&&e.jsx(Sn,{table:s})]})}const xa=s=>{if(!s)return"";let a;if(typeof s=="string"){if(a=parseInt(s),isNaN(a))return s}else a=s;return(a.toString().length===10?new Date(a*1e3):new Date(a)).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})},Ft=Ql(),Mt=Ql();function ra({data:s,isLoading:a,searchKeyword:t,selectedLevel:l,total:n,currentPage:r,pageSize:o,onViewDetail:c,onPageChange:u}){const{t:i}=V(),d=C=>{switch(C.toLowerCase()){case"info":return e.jsx($t,{className:"h-4 w-4 text-blue-500"});case"warning":return e.jsx(ma,{className:"h-4 w-4 text-yellow-500"});case"error":return e.jsx(ln,{className:"h-4 w-4 text-red-500"});default:return e.jsx($t,{className:"h-4 w-4 text-slate-500"})}},h=m.useMemo(()=>[Ft.accessor("level",{id:"level",header:()=>i("dashboard:systemLog.level","级别"),size:80,cell:({getValue:C,row:S})=>{const w=C();return e.jsxs("div",{className:"flex items-center gap-1",children:[d(w),e.jsx("span",{className:y(w.toLowerCase()==="error"&&"text-red-600",w.toLowerCase()==="warning"&&"text-yellow-600",w.toLowerCase()==="info"&&"text-blue-600"),children:w})]})}}),Ft.accessor("created_at",{id:"created_at",header:()=>i("dashboard:systemLog.time","时间"),size:160,cell:({getValue:C})=>xa(C())}),Ft.accessor(C=>C.title||C.message||"",{id:"title",header:()=>i("dashboard:systemLog.logTitle","标题"),cell:({getValue:C})=>e.jsx("span",{className:"inline-block max-w-[300px] truncate",children:C()})}),Ft.accessor("method",{id:"method",header:()=>i("dashboard:systemLog.method","请求方法"),size:100,cell:({getValue:C})=>{const S=C();return S?e.jsx(G,{variant:"outline",className:y(S==="GET"&&"border-blue-200 bg-blue-50 text-blue-700",S==="POST"&&"border-green-200 bg-green-50 text-green-700",S==="PUT"&&"border-amber-200 bg-amber-50 text-amber-700",S==="DELETE"&&"border-red-200 bg-red-50 text-red-700"),children:S}):null}}),Ft.display({id:"actions",header:()=>i("dashboard:systemLog.action","操作"),size:80,cell:({row:C})=>e.jsx(K,{variant:"ghost",size:"sm",onClick:()=>c(C.original),"aria-label":i("dashboard:systemLog.viewDetail","查看详情"),children:e.jsx(nn,{className:"h-4 w-4"})})})],[i,c]),k=Je({data:s,columns:h,getCoreRowModel:Qe(),getPaginationRowModel:rs(),pageCount:Math.ceil(n/o),manualPagination:!0,state:{pagination:{pageIndex:r-1,pageSize:o}},onPaginationChange:C=>{if(typeof C=="function"){const S=C({pageIndex:r-1,pageSize:o});u(S.pageIndex+1)}else u(C.pageIndex+1)}});return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(os,{table:k,showPagination:!1,isLoading:a}),e.jsx(Sn,{table:k}),(t||l&&l!=="all")&&e.jsx("div",{className:"text-center text-sm text-muted-foreground",children:t&&l&&l!=="all"?`筛选结果: 包含"${t}"且级别为"${l}"的日志共 ${n} 条`:t?`搜索结果: 包含"${t}"的日志共 ${n} 条`:`筛选结果: 级别为"${l}"的日志共 ${n} 条`})]})}function xm(){const{t:s}=V(),[a,t]=m.useState(0),[l,n]=m.useState(!1),[r,o]=m.useState(1),[c]=m.useState(10),[u,i]=m.useState(null),[d,h]=m.useState(!1),[k,C]=m.useState(!1),[S,w]=m.useState(1),[N]=m.useState(10),[g,T]=m.useState(null),[E,p]=m.useState(!1),[_,I]=m.useState(""),[H,O]=m.useState(""),[B,ce]=m.useState("all"),[ee,te]=m.useState(!1),[q,R]=m.useState(30),[X,ms]=m.useState("all"),[Te,re]=m.useState(1e3),[us,Ts]=m.useState(!1),[Bs,Dt]=m.useState(null),[Jt,Pt]=m.useState(!1);m.useEffect(()=>{const U=setTimeout(()=>{O(_),_!==H&&w(1)},500);return()=>clearTimeout(U)},[_]);const{data:Ms,isLoading:qa,refetch:se,isRefetching:de}=le({queryKey:["systemStatus",a],queryFn:async()=>(await oe.getSystemStatus()).data,refetchInterval:3e4}),{data:ae,isLoading:Gs,refetch:ep,isRefetching:Fn}=le({queryKey:["queueStats",a],queryFn:async()=>(await oe.getQueueStats()).data,refetchInterval:3e4}),{data:Mn,isLoading:ui,refetch:xi}=le({queryKey:["failedJobs",r,c],queryFn:async()=>{const U=await oe.getHorizonFailedJobs({current:r,page_size:c});return{data:U.data,total:U.total||0}},enabled:l}),{data:On,isLoading:Qt,refetch:hi}=le({queryKey:["systemLogs",S,N,B,H],queryFn:async()=>{const U={current:S,page_size:N};B&&B!=="all"&&(U.level=B),H.trim()&&(U.keyword=H.trim());const Os=await oe.getSystemLog(U);return{data:Os.data,total:Os.total||0}},enabled:k}),zn=Mn?.data||[],pi=Mn?.total||0,Xt=On?.data||[],Zt=On?.total||0,gi=m.useMemo(()=>[Mt.display({id:"failed_at",header:()=>s("dashboard:queue.details.time","时间"),cell:({row:U})=>xa(U.original.failed_at)}),Mt.display({id:"queue",header:()=>s("dashboard:queue.details.queue","队列"),cell:({row:U})=>U.original.queue}),Mt.display({id:"name",header:()=>s("dashboard:queue.details.name","任务名称"),cell:({row:U})=>e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[150px] truncate",children:U.original.name})}),e.jsx(xe,{children:e.jsx("span",{children:U.original.name})})]})})}),Mt.display({id:"exception",header:()=>s("dashboard:queue.details.exception","异常信息"),cell:({row:U})=>e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[200px] truncate",children:U.original.exception.split(` +`)[0]})}),e.jsx(xe,{className:"max-w-[300px] whitespace-pre-wrap",children:e.jsx("span",{children:U.original.exception})})]})})}),Mt.display({id:"actions",header:()=>s("dashboard:queue.details.action","操作"),size:80,cell:({row:U})=>e.jsx(K,{variant:"ghost",size:"sm",onClick:()=>bi(U.original),"aria-label":s("dashboard:queue.details.viewDetail","查看详情"),children:e.jsx(nn,{className:"h-4 w-4"})})})],[s]),$n=Je({data:zn,columns:gi,getCoreRowModel:Qe(),getPaginationRowModel:rs(),pageCount:Math.ceil(pi/c),manualPagination:!0,state:{pagination:{pageIndex:r-1,pageSize:c}},onPaginationChange:U=>{if(typeof U=="function"){const Os=U({pageIndex:r-1,pageSize:c});An(Os.pageIndex+1)}else An(U.pageIndex+1)}}),fi=()=>{t(U=>U+1)},An=U=>{o(U)},ea=U=>{w(U)},ji=U=>{ce(U),w(1)},vi=()=>{I(""),O(""),ce("all"),w(1)},sa=U=>{T(U),p(!0)},bi=U=>{i(U),h(!0)},yi=async()=>{try{const U=await oe.getLogClearStats({days:q,level:X==="all"?void 0:X});Dt(U.data),Pt(!0)}catch(U){console.error("获取清理统计失败:",U),$.error("获取清理统计失败")}},Ni=async()=>{Ts(!0);try{const U=await oe.clearSystemLog({days:q,level:X==="all"?void 0:X,limit:Te});U.data.status==="success"?($.success(`清理完成!已清理 ${U.data.cleared_count} 条日志`),te(!1),Pt(!1),Dt(null),se()):$.error(U.data.message||"清理失败")}catch(U){console.error("清理日志失败:",U),$.error("清理日志失败")}finally{Ts(!1)}};if(qa||Gs)return e.jsx("div",{className:"flex items-center justify-center p-6",children:e.jsx(fa,{className:"h-6 w-6 animate-spin"})});const _i=U=>U?e.jsx(Xl,{className:"h-5 w-5 text-green-500"}):e.jsx(Zl,{className:"h-5 w-5 text-red-500"});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(Ye,{children:[e.jsxs(ts,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ns,{className:"flex items-center gap-2",children:[e.jsx(hc,{className:"h-5 w-5"}),s("dashboard:queue.title")]}),e.jsx(st,{children:s("dashboard:queue.status.description")})]}),e.jsx(K,{variant:"outline",size:"icon",onClick:fi,disabled:de||Fn,children:e.jsx(Ha,{className:y("h-4 w-4",(de||Fn)&&"animate-spin")})})]}),e.jsx(as,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[_i(ae?.status||!1),e.jsx("span",{className:"font-medium",children:s("dashboard:queue.status.running")})]}),e.jsx(G,{variant:ae?.status?"secondary":"destructive",children:ae?.status?s("dashboard:queue.status.normal"):s("dashboard:queue.status.abnormal")})]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.status.waitTime",{seconds:ae?.wait?.default||0})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.recentJobs")}),e.jsx("p",{className:"text-2xl font-bold",children:ae?.recentJobs||0}),e.jsx(ua,{value:(ae?.recentJobs||0)/(ae?.periods?.recentJobs||1)*100,className:"h-1"})]})}),e.jsx(xe,{children:e.jsx("p",{children:s("dashboard:queue.details.statisticsPeriod",{hours:ae?.periods?.recentJobs||0})})})]})}),e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.jobsPerMinute")}),e.jsx("p",{className:"text-2xl font-bold",children:ae?.jobsPerMinute||0}),e.jsx(ua,{value:(ae?.jobsPerMinute||0)/(ae?.queueWithMaxThroughput?.throughput||1)*100,className:"h-1"})]})}),e.jsx(xe,{children:e.jsx("p",{children:s("dashboard:queue.details.maxThroughput",{value:ae?.queueWithMaxThroughput?.throughput||0})})})]})})]})]})})]}),e.jsxs(Ye,{children:[e.jsxs(ts,{children:[e.jsxs(Ns,{className:"flex items-center gap-2",children:[e.jsx(pc,{className:"h-5 w-5"}),s("dashboard:queue.jobDetails")]}),e.jsx(st,{children:s("dashboard:queue.details.description")})]}),e.jsx(as,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.failedJobs7Days")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cursor-pointer text-2xl font-bold text-destructive hover:underline",title:s("dashboard:queue.details.viewFailedJobs"),onClick:()=>n(!0),style:{userSelect:"none"},children:ae?.failedJobs||0}),e.jsx(nn,{className:"h-4 w-4 cursor-pointer text-muted-foreground hover:text-destructive",onClick:()=>n(!0),"aria-label":s("dashboard:queue.details.viewFailedJobs")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("dashboard:queue.details.retentionPeriod",{hours:ae?.periods?.failedJobs||0})})]}),e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.longestRunningQueue")}),e.jsxs("p",{className:"text-2xl font-bold",children:[ae?.queueWithMaxRuntime?.runtime||0,"s"]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:ae?.queueWithMaxRuntime?.name||"N/A"})]})]}),e.jsxs("div",{className:"rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.activeProcesses")}),e.jsxs("span",{className:"font-medium",children:[ae?.processes||0," /"," ",(ae?.processes||0)+(ae?.pausedMasters||0)]})]}),e.jsx(ua,{value:(ae?.processes||0)/((ae?.processes||0)+(ae?.pausedMasters||0))*100,className:"mt-2 h-1"})]})]})})]})]}),e.jsxs(Ye,{children:[e.jsxs(ts,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ns,{className:"flex items-center gap-2",children:[e.jsx(Gn,{className:"h-5 w-5"}),s("dashboard:systemLog.title","系统日志")]}),e.jsx(st,{children:s("dashboard:systemLog.description","查看系统运行日志记录")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(K,{variant:"outline",onClick:()=>C(!0),children:s("dashboard:systemLog.viewAll","查看全部")}),e.jsxs(K,{variant:"outline",onClick:()=>te(!0),className:"text-destructive hover:text-destructive",children:[e.jsx(We,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.clearLogs","清理日志")]})]})]}),e.jsx(as,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-900 dark:bg-blue-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx($t,{className:"h-5 w-5 text-blue-500"}),e.jsx("p",{className:"font-medium text-blue-700 dark:text-blue-300",children:s("dashboard:systemLog.tabs.info","信息")})]}),e.jsx("p",{className:"text-2xl font-bold text-blue-700 dark:text-blue-300",children:Ms?.logs?.info||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-900 dark:bg-yellow-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ma,{className:"h-5 w-5 text-yellow-500"}),e.jsx("p",{className:"font-medium text-yellow-700 dark:text-yellow-300",children:s("dashboard:systemLog.tabs.warning","警告")})]}),e.jsx("p",{className:"text-2xl font-bold text-yellow-700 dark:text-yellow-300",children:Ms?.logs?.warning||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-900 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ln,{className:"h-5 w-5 text-red-500"}),e.jsx("p",{className:"font-medium text-red-700 dark:text-red-300",children:s("dashboard:systemLog.tabs.error","错误")})]}),e.jsx("p",{className:"text-2xl font-bold text-red-700 dark:text-red-300",children:Ms?.logs?.error||0})]})]}),Ms?.logs&&Ms.logs.total>0&&e.jsxs("div",{className:"mt-3 text-center text-sm text-muted-foreground",children:[s("dashboard:systemLog.totalLogs","总日志数"),":"," ",Ms.logs.total]})]})})]}),e.jsx(he,{open:l,onOpenChange:n,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(je,{children:e.jsx(pe,{children:s("dashboard:queue.details.failedJobsDetailTitle","失败任务详情")})}),e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(os,{table:$n,showPagination:!1,isLoading:ui}),e.jsx(Sn,{table:$n}),zn.length===0&&e.jsx("div",{className:"py-8 text-center text-muted-foreground",children:s("dashboard:queue.details.noFailedJobs","暂无失败任务")})]}),e.jsxs(Le,{children:[e.jsxs(K,{variant:"outline",onClick:()=>xi(),children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh","刷新")]}),e.jsx(qs,{asChild:!0,children:e.jsx(K,{variant:"outline",children:s("common.close","关闭")})})]})]})}),e.jsx(he,{open:d,onOpenChange:h,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(je,{children:e.jsx(pe,{children:s("dashboard:queue.details.jobDetailTitle","任务详情")})}),u&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.id","任务ID")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.id})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.time","时间")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.failed_at})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.queue","队列")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.queue})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.connection","连接")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.connection})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.name","任务名称")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.exception","异常信息")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-red-700 dark:text-red-300",children:u.exception})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.payload","任务数据")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(u.payload),null,2)}catch{return u.payload}})()})})]})]}),e.jsx(Le,{children:e.jsx(K,{variant:"outline",onClick:()=>h(!1),children:s("common.close","关闭")})})]})}),e.jsx(he,{open:k,onOpenChange:C,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(je,{children:e.jsx(pe,{children:s("dashboard:systemLog.title","系统日志")})}),e.jsxs(Yt,{value:B,onValueChange:ji,className:"w-full overflow-x-auto",children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 p-1 md:flex-row md:items-center md:justify-between",children:[e.jsxs(kt,{className:"grid w-auto grid-cols-4",children:[e.jsxs(es,{value:"all",className:"flex items-center gap-2",children:[e.jsx(Gn,{className:"h-4 w-4"}),s("dashboard:systemLog.tabs.all","全部")]}),e.jsxs(es,{value:"info",className:"flex items-center gap-2",children:[e.jsx($t,{className:"h-4 w-4 text-blue-500"}),s("dashboard:systemLog.tabs.info","信息")]}),e.jsxs(es,{value:"warning",className:"flex items-center gap-2",children:[e.jsx(ma,{className:"h-4 w-4 text-yellow-500"}),s("dashboard:systemLog.tabs.warning","警告")]}),e.jsxs(es,{value:"error",className:"flex items-center gap-2",children:[e.jsx(ln,{className:"h-4 w-4 text-red-500"}),s("dashboard:systemLog.tabs.error","错误")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(fn,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(D,{placeholder:s("dashboard:systemLog.search","搜索日志内容..."),value:_,onChange:U=>I(U.target.value),className:"w-full md:w-64"})]})]}),e.jsx(Ls,{value:"all",className:"mt-0",children:e.jsx(ra,{data:Xt,isLoading:Qt,searchKeyword:H,selectedLevel:B,total:Zt,currentPage:S,pageSize:N,onViewDetail:sa,onPageChange:ea})}),e.jsx(Ls,{value:"info",className:"mt-0 overflow-x-auto",children:e.jsx(ra,{data:Xt,isLoading:Qt,searchKeyword:H,selectedLevel:B,total:Zt,currentPage:S,pageSize:N,onViewDetail:sa,onPageChange:ea})}),e.jsx(Ls,{value:"warning",className:"mt-0",children:e.jsx(ra,{data:Xt,isLoading:Qt,searchKeyword:H,selectedLevel:B,total:Zt,currentPage:S,pageSize:N,onViewDetail:sa,onPageChange:ea})}),e.jsx(Ls,{value:"error",className:"mt-0",children:e.jsx(ra,{data:Xt,isLoading:Qt,searchKeyword:H,selectedLevel:B,total:Zt,currentPage:S,pageSize:N,onViewDetail:sa,onPageChange:ea})})]}),e.jsxs(Le,{children:[e.jsxs(K,{variant:"outline",onClick:()=>hi(),children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh","刷新")]}),e.jsx(K,{variant:"outline",onClick:vi,children:s("dashboard:systemLog.filter.reset","重置筛选")}),e.jsx(qs,{asChild:!0,children:e.jsx(K,{variant:"outline",children:s("common.close","关闭")})})]})]})}),e.jsx(he,{open:E,onOpenChange:p,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(je,{children:e.jsx(pe,{children:s("dashboard:systemLog.detailTitle","日志详情")})}),g&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.level","级别")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx($t,{className:"h-4 w-4"}),e.jsx("p",{className:"font-medium",children:g.level})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.time","时间")}),e.jsx("p",{children:xa(g.created_at)||xa(g.updated_at)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.logTitle","标题")}),e.jsx("div",{className:"whitespace-pre-wrap rounded-md bg-muted/50 p-3",children:g.title||g.message||""})]}),(g.host||g.ip)&&e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.host&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.host","主机")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:g.host})]}),g.ip&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.ip","IP地址")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:g.ip})]})]}),g.uri&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.uri","URI")}),e.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 p-3",children:e.jsx("code",{className:"text-sm",children:g.uri})})]}),g.method&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.method","请求方法")}),e.jsx("div",{children:e.jsx(G,{variant:"outline",className:"text-base font-medium",children:g.method})})]}),g.data&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.requestData","请求数据")}),e.jsx("div",{className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(g.data),null,2)}catch{return g.data}})()})})]}),g.context&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.exception","异常信息")}),e.jsx("div",{className:"max-h-[250px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs text-red-700 dark:text-red-300",children:(()=>{try{const U=JSON.parse(g.context);if(U.exception){const Os=U.exception,wi=Os["\0*\0message"]||"",Ci=Os["\0*\0file"]||"",Si=Os["\0*\0line"]||"";return`${wi} -File: ${oi} -Line: ${ci}`}return JSON.stringify(Q,null,2)}catch{return g.context}})()})})]})]}),e.jsx(Re,{children:e.jsx(qs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common.close","关闭")})})})]})})]})}function Xd(){const{t:s}=V();return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("dashboard:title")})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Xe,{}),e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsx(Ae,{children:e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"grid gap-6",children:[e.jsx(Bd,{}),e.jsx(Ad,{}),e.jsx(Gd,{}),e.jsx(Qd,{})]})})})]})}const Zd=Object.freeze(Object.defineProperty({__proto__:null,default:Xd},Symbol.toStringTag,{value:"Module"}));function em({className:s,items:a,...t}){const{pathname:l}=cn(),n=Is(),[o,r]=m.useState(l??"/settings"),c=i=>{r(i),n(i)},{t:u}=V("settings");return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-1 md:hidden",children:e.jsxs(X,{value:o,onValueChange:c,children:[e.jsx(Y,{className:"h-12 sm:w-48",children:e.jsx(Z,{placeholder:"Theme"})}),e.jsx(J,{children:a.map(i=>e.jsx($,{value:i.href,children:e.jsxs("div",{className:"flex gap-x-4 px-2 py-1",children:[e.jsx("span",{className:"scale-125",children:i.icon}),e.jsx("span",{className:"text-md",children:u(i.title)})]})},i.href))})]})}),e.jsx("div",{className:"hidden w-full overflow-x-auto bg-background px-1 py-2 md:block",children:e.jsx("nav",{className:y("flex space-x-2 lg:flex-col lg:space-x-0 lg:space-y-1",s),...t,children:a.map(i=>e.jsxs(st,{to:i.href,className:y(wt({variant:"ghost"}),l===i.href?"bg-muted hover:bg-muted":"hover:bg-transparent hover:underline","justify-start"),children:[e.jsx("span",{className:"mr-2",children:i.icon}),u(i.title)]},i.href))})})]})}const sm=[{title:"site.title",key:"site",icon:e.jsx(Zo,{size:18}),href:"/config/system",description:"site.description"},{title:"safe.title",key:"safe",icon:e.jsx(wl,{size:18}),href:"/config/system/safe",description:"safe.description"},{title:"subscribe.title",key:"subscribe",icon:e.jsx(Cl,{size:18}),href:"/config/system/subscribe",description:"subscribe.description"},{title:"invite.title",key:"invite",icon:e.jsx(ec,{size:18}),href:"/config/system/invite",description:"invite.description"},{title:"server.title",key:"server",icon:e.jsx(_l,{size:18}),href:"/config/system/server",description:"server.description"},{title:"email.title",key:"email",icon:e.jsx(sc,{size:18}),href:"/config/system/email",description:"email.description"},{title:"telegram.title",key:"telegram",icon:e.jsx(tc,{size:18}),href:"/config/system/telegram",description:"telegram.description"},{title:"app.title",key:"app",icon:e.jsx(Nl,{size:18}),href:"/config/system/app",description:"app.description"},{title:"subscribe_template.title",key:"subscribe_template",icon:e.jsx(ac,{size:18}),href:"/config/system/subscribe-template",description:"subscribe_template.description"}];function tm(){const{t:s}=V("settings");return e.jsxs(Ve,{fadedBelow:!0,fixedHeight:!0,children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("title")}),e.jsx("div",{className:"text-muted-foreground",children:s("description")})]}),e.jsx(ke,{className:"my-6"}),e.jsxs("div",{className:"flex flex-1 flex-col space-y-8 overflow-auto lg:flex-row lg:space-x-12 lg:space-y-0",children:[e.jsx("aside",{className:"sticky top-0 lg:w-1/5",children:e.jsx(em,{items:sm})}),e.jsx("div",{className:"flex-1 w-full p-1 pr-4",children:e.jsx("div",{className:"pb-16",children:e.jsx(dn,{})})})]})]})]})}const am=Object.freeze(Object.defineProperty({__proto__:null,default:tm},Symbol.toStringTag,{value:"Module"})),ee=m.forwardRef(({className:s,...a},t)=>e.jsx(Ul,{className:y("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...a,ref:t,children:e.jsx(nc,{className:y("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));ee.displayName=Ul.displayName;const Ts=m.forwardRef(({className:s,...a},t)=>e.jsx("textarea",{className:y("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}));Ts.displayName="Textarea";const nm=x.object({logo:x.string().nullable().default(""),force_https:x.number().nullable().default(0),stop_register:x.number().nullable().default(0),app_name:x.string().nullable().default(""),app_description:x.string().nullable().default(""),app_url:x.string().nullable().default(""),subscribe_url:x.string().nullable().default(""),try_out_plan_id:x.number().nullable().default(0),try_out_hour:x.coerce.number().nullable().default(0),tos_url:x.string().nullable().default(""),currency:x.string().nullable().default(""),currency_symbol:x.string().nullable().default("")});function lm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),{data:n}=ne({queryKey:["settings","site"],queryFn:()=>me.getSettings("site")}),{data:o}=ne({queryKey:["plans"],queryFn:()=>es.getList()}),r=ye({resolver:_e(nm),defaultValues:{},mode:"onBlur"}),{mutateAsync:c}=gs({mutationFn:me.saveSettings,onSuccess:d=>{d.data&&A.success(s("common.autoSaved"))}});m.useEffect(()=>{if(n?.data?.site){const d=n?.data?.site;Object.entries(d).forEach(([h,_])=>{r.setValue(h,_)}),l.current=d}},[n]);const u=m.useCallback(Se.debounce(async d=>{if(!Se.isEqual(d,l.current)){t(!0);try{const h=Object.entries(d).reduce((_,[T,S])=>(_[T]=S===null?"":S,_),{});await c(h),l.current=d}finally{t(!1)}}},1e3),[c]),i=m.useCallback(d=>{u(d)},[u]);return m.useEffect(()=>{const d=r.watch(h=>{i(h)});return()=>d.unsubscribe()},[r.watch,i]),e.jsx(we,{...r,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:r.control,name:"app_name",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteName.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteName.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.siteName.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"app_description",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteDescription.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteDescription.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.siteDescription.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"app_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteUrl.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.siteUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"force_https",render:({field:d})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.forceHttps.label")}),e.jsx(F,{children:s("site.form.forceHttps.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:!!d.value,onCheckedChange:h=>{d.onChange(Number(h)),i(r.getValues())}})})]})}),e.jsx(v,{control:r.control,name:"logo",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.logo.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.logo.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.logo.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"subscribe_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.subscribeUrl.label")}),e.jsx(b,{children:e.jsx(Ts,{placeholder:s("site.form.subscribeUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.subscribeUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"tos_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tosUrl.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.tosUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.tosUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"stop_register",render:({field:d})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.stopRegister.label")}),e.jsx(F,{children:s("site.form.stopRegister.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:!!d.value,onCheckedChange:h=>{d.onChange(Number(h)),i(r.getValues())}})})]})}),e.jsx(v,{control:r.control,name:"try_out_plan_id",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tryOut.label")}),e.jsx(b,{children:e.jsxs(X,{value:d.value?.toString(),onValueChange:h=>{d.onChange(Number(h)),i(r.getValues())},children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:s("site.form.tryOut.placeholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("site.form.tryOut.placeholder")}),o?.data?.map(h=>e.jsx($,{value:h.id.toString(),children:h.name},h.id.toString()))]})]})}),e.jsx(F,{children:s("site.form.tryOut.description")}),e.jsx(P,{})]})}),!!r.watch("try_out_plan_id")&&e.jsx(v,{control:r.control,name:"try_out_hour",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"",children:s("site.form.tryOut.duration.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.tryOut.duration.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.tryOut.duration.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"currency",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currency.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.currency.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.currency.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"currency_symbol",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currencySymbol.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.currencySymbol.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(r.getValues())}})}),e.jsx(F,{children:s("site.form.currencySymbol.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("site.form.saving")})]})})}function rm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("site.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("site.description")})]}),e.jsx(ke,{}),e.jsx(lm,{})]})}const im=Object.freeze(Object.defineProperty({__proto__:null,default:rm},Symbol.toStringTag,{value:"Module"})),om=x.object({email_verify:x.boolean().nullable(),safe_mode_enable:x.boolean().nullable(),secure_path:x.string().nullable(),email_whitelist_enable:x.boolean().nullable(),email_whitelist_suffix:x.array(x.string().nullable()).nullable(),email_gmail_limit_enable:x.boolean().nullable(),recaptcha_enable:x.boolean().nullable(),recaptcha_key:x.string().nullable(),recaptcha_site_key:x.string().nullable(),register_limit_by_ip_enable:x.boolean().nullable(),register_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),register_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_enable:x.boolean().nullable(),password_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable()}),cm={email_verify:!1,safe_mode_enable:!1,secure_path:"",email_whitelist_enable:!1,email_whitelist_suffix:[],email_gmail_limit_enable:!1,recaptcha_enable:!1,recaptcha_key:"",recaptcha_site_key:"",register_limit_by_ip_enable:!1,register_limit_count:"",register_limit_expire:"",password_limit_enable:!1,password_limit_count:"",password_limit_expire:""};function dm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(om),defaultValues:cm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","safe"],queryFn:()=>me.getSettings("safe")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:i=>{i.data&&A.success(s("common.autoSaved"))}});m.useEffect(()=>{if(o?.data.safe){const i=o.data.safe;Object.entries(i).forEach(([d,h])=>{typeof h=="number"?n.setValue(d,String(h)):n.setValue(d,h)}),l.current=i}},[o]);const c=m.useCallback(Se.debounce(async i=>{if(!Se.isEqual(i,l.current)){t(!0);try{await r(i),l.current=i}finally{t(!1)}}},1e3),[r]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(we,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"email_verify",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailVerify.label")}),e.jsx(F,{children:s("safe.form.emailVerify.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"email_gmail_limit_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.gmailLimit.label")}),e.jsx(F,{children:s("safe.form.gmailLimit.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"safe_mode_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.safeMode.label")}),e.jsx(F,{children:s("safe.form.safeMode.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"secure_path",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.securePath.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.securePath.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.securePath.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"email_whitelist_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.label")}),e.jsx(F,{children:s("safe.form.emailWhitelist.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("email_whitelist_enable")&&e.jsx(v,{control:n.control,name:"email_whitelist_suffix",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.suffixes.label")}),e.jsx(b,{children:e.jsx(Ts,{placeholder:s("safe.form.emailWhitelist.suffixes.placeholder"),...i,value:(i.value||[]).join(` +File: ${Ci} +Line: ${Si}`}return JSON.stringify(U,null,2)}catch{return g.context}})()})})]})]}),e.jsx(Le,{children:e.jsx(qs,{asChild:!0,children:e.jsx(K,{variant:"outline",children:s("common.close","关闭")})})})]})}),e.jsx(he,{open:ee,onOpenChange:te,children:e.jsxs(ue,{className:"max-w-2xl",children:[e.jsx(je,{children:e.jsxs(pe,{className:"flex items-center gap-2",children:[e.jsx(We,{className:"h-5 w-5 text-destructive"}),s("dashboard:systemLog.clearLogs","清理日志")]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Xs,{htmlFor:"clearDays",children:s("dashboard:systemLog.clearDays","清理天数")}),e.jsx(D,{id:"clearDays",type:"number",min:"1",max:"365",value:q,onChange:U=>R(parseInt(U.target.value)||30),placeholder:"30"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearDaysDesc","清理多少天前的日志 (1-365天)")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Xs,{htmlFor:"clearLevel",children:s("dashboard:systemLog.clearLevel","日志级别")}),e.jsxs(J,{value:X,onValueChange:ms,children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:s("dashboard:systemLog.tabs.all","全部")}),e.jsx(A,{value:"info",children:s("dashboard:systemLog.tabs.info","信息")}),e.jsx(A,{value:"warning",children:s("dashboard:systemLog.tabs.warning","警告")}),e.jsx(A,{value:"error",children:s("dashboard:systemLog.tabs.error","错误")})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Xs,{htmlFor:"clearLimit",children:s("dashboard:systemLog.clearLimit","单次限制")}),e.jsx(D,{id:"clearLimit",type:"number",min:"100",max:"10000",value:Te,onChange:U=>re(parseInt(U.target.value)||1e3),placeholder:"1000"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearLimitDesc","单次清理数量限制 (100-10000条)")})]})]}),e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4 dark:border-amber-900 dark:bg-amber-950/30",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Gl,{className:"h-5 w-5 text-amber-600"}),e.jsx("span",{className:"font-medium text-amber-800 dark:text-amber-200",children:s("dashboard:systemLog.clearPreview","清理预览")})]}),e.jsxs(K,{variant:"outline",size:"sm",onClick:yi,disabled:us,children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.getStats","获取统计")]})]}),Jt&&Bs&&e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.cutoffDate","截止日期")}),e.jsx("p",{className:"font-mono text-sm",children:Bs.cutoff_date})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.totalLogs","总日志数")}),e.jsx("p",{className:"font-mono text-sm font-medium",children:Bs.total_logs.toLocaleString()})]})]}),e.jsxs("div",{className:"rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ma,{className:"h-4 w-4 text-red-600"}),e.jsxs("span",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:[s("dashboard:systemLog.willClear","将要清理"),":",e.jsx("span",{className:"ml-1 font-bold",children:Bs.logs_to_clear.toLocaleString()}),s("dashboard:systemLog.logsUnit"," 条日志")]})]}),e.jsx("p",{className:"mt-1 text-xs text-red-600 dark:text-red-300",children:s("dashboard:systemLog.clearWarning","此操作不可撤销,请谨慎操作!")})]})]})]})]}),e.jsxs(Le,{children:[e.jsx(K,{variant:"outline",onClick:()=>{te(!1),Pt(!1),Dt(null)},children:s("common.cancel","取消")}),e.jsx(K,{variant:"destructive",onClick:Ni,disabled:us||!Jt||!Bs,children:us?e.jsxs(e.Fragment,{children:[e.jsx(fa,{className:"mr-2 h-4 w-4 animate-spin"}),s("dashboard:systemLog.clearing","清理中...")]}):e.jsxs(e.Fragment,{children:[e.jsx(We,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.confirmClear","确认清理")]})})]})]})})]})}function hm(){const{t:s}=V();return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("dashboard:title")})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Xe,{}),e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsx(Ae,{children:e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"grid gap-6",children:[e.jsx(om,{}),e.jsx(am,{}),e.jsx(cm,{}),e.jsx(xm,{})]})})})]})}const pm=Object.freeze(Object.defineProperty({__proto__:null,default:hm},Symbol.toStringTag,{value:"Module"}));function gm({className:s,items:a,...t}){const{pathname:l}=un(),n=Rs(),[r,o]=m.useState(l??"/settings"),c=i=>{o(i),n(i)},{t:u}=V("settings");return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-1 md:hidden",children:e.jsxs(J,{value:r,onValueChange:c,children:[e.jsx(W,{className:"h-12 sm:w-48",children:e.jsx(Q,{placeholder:"Theme"})}),e.jsx(Y,{children:a.map(i=>e.jsx(A,{value:i.href,children:e.jsxs("div",{className:"flex gap-x-4 px-2 py-1",children:[e.jsx("span",{className:"scale-125",children:i.icon}),e.jsx("span",{className:"text-md",children:u(i.title)})]})},i.href))})]})}),e.jsx("div",{className:"hidden w-full overflow-x-auto bg-background px-1 py-2 md:block",children:e.jsx("nav",{className:y("flex space-x-2 lg:flex-col lg:space-x-0 lg:space-y-1",s),...t,children:a.map(i=>e.jsxs(nt,{to:i.href,className:y(St({variant:"ghost"}),l===i.href?"bg-muted hover:bg-muted":"hover:bg-transparent hover:underline","justify-start"),children:[e.jsx("span",{className:"mr-2",children:i.icon}),u(i.title)]},i.href))})})]})}const fm=[{title:"site.title",key:"site",icon:e.jsx(gc,{size:18}),href:"/config/system",description:"site.description"},{title:"safe.title",key:"safe",icon:e.jsx(Il,{size:18}),href:"/config/system/safe",description:"safe.description"},{title:"subscribe.title",key:"subscribe",icon:e.jsx(Rl,{size:18}),href:"/config/system/subscribe",description:"subscribe.description"},{title:"invite.title",key:"invite",icon:e.jsx(fc,{size:18}),href:"/config/system/invite",description:"invite.description"},{title:"server.title",key:"server",icon:e.jsx(El,{size:18}),href:"/config/system/server",description:"server.description"},{title:"email.title",key:"email",icon:e.jsx(jc,{size:18}),href:"/config/system/email",description:"email.description"},{title:"telegram.title",key:"telegram",icon:e.jsx(vc,{size:18}),href:"/config/system/telegram",description:"telegram.description"},{title:"app.title",key:"app",icon:e.jsx(Ll,{size:18}),href:"/config/system/app",description:"app.description"},{title:"subscribe_template.title",key:"subscribe_template",icon:e.jsx(bc,{size:18}),href:"/config/system/subscribe-template",description:"subscribe_template.description"}];function jm(){const{t:s}=V("settings");return e.jsxs(Ve,{fadedBelow:!0,fixedHeight:!0,children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("title")}),e.jsx("div",{className:"text-muted-foreground",children:s("description")})]}),e.jsx(De,{className:"my-6"}),e.jsxs("div",{className:"flex flex-1 flex-col space-y-8 overflow-auto lg:flex-row lg:space-x-12 lg:space-y-0",children:[e.jsx("aside",{className:"sticky top-0 lg:w-1/5",children:e.jsx(gm,{items:fm})}),e.jsx("div",{className:"flex-1 w-full p-1 pr-4",children:e.jsx("div",{className:"pb-16",children:e.jsx(xn,{})})})]})]})]})}const vm=Object.freeze(Object.defineProperty({__proto__:null,default:jm},Symbol.toStringTag,{value:"Module"})),Z=m.forwardRef(({className:s,...a},t)=>e.jsx(er,{className:y("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...a,ref:t,children:e.jsx(yc,{className:y("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Z.displayName=er.displayName;const ks=m.forwardRef(({className:s,...a},t)=>e.jsx("textarea",{className:y("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}));ks.displayName="Textarea";const bm=x.object({logo:x.string().nullable().default(""),force_https:x.number().nullable().default(0),stop_register:x.number().nullable().default(0),app_name:x.string().nullable().default(""),app_description:x.string().nullable().default(""),app_url:x.string().nullable().default(""),subscribe_url:x.string().nullable().default(""),try_out_plan_id:x.number().nullable().default(0),try_out_hour:x.coerce.number().nullable().default(0),tos_url:x.string().nullable().default(""),currency:x.string().nullable().default(""),currency_symbol:x.string().nullable().default("")});function ym(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),{data:n}=le({queryKey:["settings","site"],queryFn:()=>oe.getSettings("site")}),{data:r}=le({queryKey:["plans"],queryFn:()=>ss.getList()}),o=Ne({resolver:we(bm),defaultValues:{},mode:"onBlur"}),{mutateAsync:c}=fs({mutationFn:oe.saveSettings,onSuccess:d=>{d.data&&$.success(s("common.autoSaved"))}});m.useEffect(()=>{if(n?.data?.site){const d=n?.data?.site;Object.entries(d).forEach(([h,k])=>{o.setValue(h,k)}),l.current=d}},[n]);const u=m.useCallback(ke.debounce(async d=>{if(!ke.isEqual(d,l.current)){t(!0);try{const h=Object.entries(d).reduce((k,[C,S])=>(k[C]=S===null?"":S,k),{});await c(h),l.current=d}finally{t(!1)}}},1e3),[c]),i=m.useCallback(d=>{u(d)},[u]);return m.useEffect(()=>{const d=o.watch(h=>{i(h)});return()=>d.unsubscribe()},[o.watch,i]),e.jsx(Ce,{...o,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:o.control,name:"app_name",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteName.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteName.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.siteName.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"app_description",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteDescription.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteDescription.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.siteDescription.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"app_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteUrl.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.siteUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.siteUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"force_https",render:({field:d})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.forceHttps.label")}),e.jsx(M,{children:s("site.form.forceHttps.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:!!d.value,onCheckedChange:h=>{d.onChange(Number(h)),i(o.getValues())}})})]})}),e.jsx(v,{control:o.control,name:"logo",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.logo.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.logo.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.logo.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"subscribe_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.subscribeUrl.label")}),e.jsx(b,{children:e.jsx(ks,{placeholder:s("site.form.subscribeUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.subscribeUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"tos_url",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tosUrl.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.tosUrl.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.tosUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"stop_register",render:({field:d})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.stopRegister.label")}),e.jsx(M,{children:s("site.form.stopRegister.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:!!d.value,onCheckedChange:h=>{d.onChange(Number(h)),i(o.getValues())}})})]})}),e.jsx(v,{control:o.control,name:"try_out_plan_id",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tryOut.label")}),e.jsx(b,{children:e.jsxs(J,{value:d.value?.toString(),onValueChange:h=>{d.onChange(Number(h)),i(o.getValues())},children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("site.form.tryOut.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("site.form.tryOut.placeholder")}),r?.data?.map(h=>e.jsx(A,{value:h.id.toString(),children:h.name},h.id.toString()))]})]})}),e.jsx(M,{children:s("site.form.tryOut.description")}),e.jsx(P,{})]})}),!!o.watch("try_out_plan_id")&&e.jsx(v,{control:o.control,name:"try_out_hour",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"",children:s("site.form.tryOut.duration.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.tryOut.duration.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.tryOut.duration.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"currency",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currency.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.currency.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.currency.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"currency_symbol",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currencySymbol.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("site.form.currencySymbol.placeholder"),...d,value:d.value||"",onChange:h=>{d.onChange(h),i(o.getValues())}})}),e.jsx(M,{children:s("site.form.currencySymbol.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("site.form.saving")})]})})}function Nm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("site.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("site.description")})]}),e.jsx(De,{}),e.jsx(ym,{})]})}const _m=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),wm=x.object({email_verify:x.boolean().nullable(),safe_mode_enable:x.boolean().nullable(),secure_path:x.string().nullable(),email_whitelist_enable:x.boolean().nullable(),email_whitelist_suffix:x.array(x.string().nullable()).nullable(),email_gmail_limit_enable:x.boolean().nullable(),recaptcha_enable:x.boolean().nullable(),recaptcha_key:x.string().nullable(),recaptcha_site_key:x.string().nullable(),register_limit_by_ip_enable:x.boolean().nullable(),register_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),register_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_enable:x.boolean().nullable(),password_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable()}),Cm={email_verify:!1,safe_mode_enable:!1,secure_path:"",email_whitelist_enable:!1,email_whitelist_suffix:[],email_gmail_limit_enable:!1,recaptcha_enable:!1,recaptcha_key:"",recaptcha_site_key:"",register_limit_by_ip_enable:!1,register_limit_count:"",register_limit_expire:"",password_limit_enable:!1,password_limit_count:"",password_limit_expire:""};function Sm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(wm),defaultValues:Cm,mode:"onBlur"}),{data:r}=le({queryKey:["settings","safe"],queryFn:()=>oe.getSettings("safe")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:i=>{i.data&&$.success(s("common.autoSaved"))}});m.useEffect(()=>{if(r?.data.safe){const i=r.data.safe;Object.entries(i).forEach(([d,h])=>{typeof h=="number"?n.setValue(d,String(h)):n.setValue(d,h)}),l.current=i}},[r]);const c=m.useCallback(ke.debounce(async i=>{if(!ke.isEqual(i,l.current)){t(!0);try{await o(i),l.current=i}finally{t(!1)}}},1e3),[o]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(Ce,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"email_verify",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailVerify.label")}),e.jsx(M,{children:s("safe.form.emailVerify.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"email_gmail_limit_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.gmailLimit.label")}),e.jsx(M,{children:s("safe.form.gmailLimit.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"safe_mode_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.safeMode.label")}),e.jsx(M,{children:s("safe.form.safeMode.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"secure_path",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.securePath.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.securePath.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.securePath.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"email_whitelist_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.label")}),e.jsx(M,{children:s("safe.form.emailWhitelist.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("email_whitelist_enable")&&e.jsx(v,{control:n.control,name:"email_whitelist_suffix",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.suffixes.label")}),e.jsx(b,{children:e.jsx(ks,{placeholder:s("safe.form.emailWhitelist.suffixes.placeholder"),...i,value:(i.value||[]).join(` `),onChange:d=>{const h=d.target.value.split(` -`).filter(Boolean);i.onChange(h),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.emailWhitelist.suffixes.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"recaptcha_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.enable.label")}),e.jsx(F,{children:s("safe.form.recaptcha.enable.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("recaptcha_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"recaptcha_site_key",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.siteKey.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.siteKey.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.recaptcha.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"recaptcha_key",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.key.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.key.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.recaptcha.key.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:n.control,name:"register_limit_by_ip_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.enable.label")}),e.jsx(F,{children:s("safe.form.registerLimit.enable.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("register_limit_by_ip_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"register_limit_count",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.count.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.count.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.registerLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"register_limit_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.expire.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.expire.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.registerLimit.expire.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:n.control,name:"password_limit_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.enable.label")}),e.jsx(F,{children:s("safe.form.passwordLimit.enable.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("password_limit_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"password_limit_count",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.count.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.count.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.passwordLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"password_limit_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.expire.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.expire.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(F,{children:s("safe.form.passwordLimit.expire.description")}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("safe.form.saving")})]})})}function mm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("safe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("safe.description")})]}),e.jsx(ke,{}),e.jsx(dm,{})]})}const um=Object.freeze(Object.defineProperty({__proto__:null,default:mm},Symbol.toStringTag,{value:"Module"})),xm=x.object({plan_change_enable:x.boolean().nullable().default(!1),reset_traffic_method:x.coerce.number().nullable().default(0),surplus_enable:x.boolean().nullable().default(!1),new_order_event_id:x.coerce.number().nullable().default(0),renew_order_event_id:x.coerce.number().nullable().default(0),change_order_event_id:x.coerce.number().nullable().default(0),show_info_to_server_enable:x.boolean().nullable().default(!1),show_protocol_to_server_enable:x.boolean().nullable().default(!1),default_remind_expire:x.boolean().nullable().default(!1),default_remind_traffic:x.boolean().nullable().default(!1),subscribe_path:x.string().nullable().default("s")}),hm={plan_change_enable:!1,reset_traffic_method:0,surplus_enable:!1,new_order_event_id:0,renew_order_event_id:0,change_order_event_id:0,show_info_to_server_enable:!1,show_protocol_to_server_enable:!1,default_remind_expire:!1,default_remind_traffic:!1,subscribe_path:"s"};function pm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(xm),defaultValues:hm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","subscribe"],queryFn:()=>me.getSettings("subscribe")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:i=>{i.data&&A.success(s("common.autoSaved"))}});m.useEffect(()=>{if(o?.data?.subscribe){const i=o?.data?.subscribe;Object.entries(i).forEach(([d,h])=>{n.setValue(d,h)}),l.current=i}},[o]);const c=m.useCallback(Se.debounce(async i=>{if(!Se.isEqual(i,l.current)){t(!0);try{await r(i),l.current=i}finally{t(!1)}}},1e3),[r]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(we,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"plan_change_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.plan_change_enable.title")}),e.jsx(F,{children:s("subscribe.plan_change_enable.description")}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"reset_traffic_method",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.reset_traffic_method.title")}),e.jsxs(X,{onValueChange:i.onChange,value:i.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:"请选择重置方式"})})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("subscribe.reset_traffic_method.options.monthly_first")}),e.jsx($,{value:"1",children:s("subscribe.reset_traffic_method.options.monthly_reset")}),e.jsx($,{value:"2",children:s("subscribe.reset_traffic_method.options.no_reset")}),e.jsx($,{value:"3",children:s("subscribe.reset_traffic_method.options.yearly_first")}),e.jsx($,{value:"4",children:s("subscribe.reset_traffic_method.options.yearly_reset")})]})]}),e.jsx(F,{children:s("subscribe.reset_traffic_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"surplus_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.surplus_enable.title")}),e.jsx(F,{children:s("subscribe.surplus_enable.description")}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"new_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.new_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(X,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:"请选择"})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("subscribe.new_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.new_order_event.options.reset_traffic")})]})]})})}),e.jsx(F,{children:s("subscribe.new_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"renew_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.renew_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(X,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:"请选择"})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("subscribe.renew_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.renew_order_event.options.reset_traffic")})]})]})})}),e.jsx(F,{children:s("subscribe.renew_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"change_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.change_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(X,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:"请选择"})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("subscribe.change_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.change_order_event.options.reset_traffic")})]})]})})}),e.jsx(F,{children:s("subscribe.change_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"subscribe_path",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.subscribe_path.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:"subscribe",...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:[s("subscribe.subscribe_path.description"),e.jsx("br",{}),s("subscribe.subscribe_path.current_format",{path:i.value||"s"})]}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"show_info_to_server_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_info_to_server.title")}),e.jsx(F,{children:s("subscribe.show_info_to_server.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"show_protocol_to_server_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_protocol_to_server.title")}),e.jsx(F,{children:s("subscribe.show_protocol_to_server.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function gm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe.description")})]}),e.jsx(ke,{}),e.jsx(pm,{})]})}const fm=Object.freeze(Object.defineProperty({__proto__:null,default:gm},Symbol.toStringTag,{value:"Module"})),jm=x.object({invite_force:x.boolean().default(!1),invite_commission:x.coerce.string().default("0"),invite_gen_limit:x.coerce.string().default("0"),invite_never_expire:x.boolean().default(!1),commission_first_time_enable:x.boolean().default(!1),commission_auto_check_enable:x.boolean().default(!1),commission_withdraw_limit:x.coerce.string().default("0"),commission_withdraw_method:x.array(x.string()).default(["支付宝","USDT","Paypal"]),withdraw_close_enable:x.boolean().default(!1),commission_distribution_enable:x.boolean().default(!1),commission_distribution_l1:x.coerce.number().default(0),commission_distribution_l2:x.coerce.number().default(0),commission_distribution_l3:x.coerce.number().default(0)}),vm={invite_force:!1,invite_commission:"0",invite_gen_limit:"0",invite_never_expire:!1,commission_first_time_enable:!1,commission_auto_check_enable:!1,commission_withdraw_limit:"0",commission_withdraw_method:["支付宝","USDT","Paypal"],withdraw_close_enable:!1,commission_distribution_enable:!1,commission_distribution_l1:0,commission_distribution_l2:0,commission_distribution_l3:0};function bm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(jm),defaultValues:vm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","invite"],queryFn:()=>me.getSettings("invite")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:i=>{i.data&&A.success(s("common.autoSaved"))}});m.useEffect(()=>{if(o?.data?.invite){const i=o?.data?.invite;Object.entries(i).forEach(([d,h])=>{typeof h=="number"?n.setValue(d,String(h)):n.setValue(d,h)}),l.current=i}},[o]);const c=m.useCallback(Se.debounce(async i=>{if(!Se.isEqual(i,l.current)){t(!0);try{await r(i),l.current=i}finally{t(!1)}}},1e3),[r]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(we,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"invite_force",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_force.title")}),e.jsx(F,{children:s("invite.invite_force.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"invite_commission",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_commission.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.invite_commission.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("invite.invite_commission.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"invite_gen_limit",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_gen_limit.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.invite_gen_limit.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("invite.invite_gen_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"invite_never_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_never_expire.title")}),e.jsx(F,{children:s("invite.invite_never_expire.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_first_time_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_first_time.title")}),e.jsx(F,{children:s("invite.commission_first_time.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_auto_check_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_auto_check.title")}),e.jsx(F,{children:s("invite.commission_auto_check.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_withdraw_limit",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_limit.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_limit.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("invite.commission_withdraw_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_withdraw_method",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_method.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_method.placeholder"),...i,value:Array.isArray(i.value)?i.value.join(","):"",onChange:d=>{const h=d.target.value.split(",").filter(Boolean);i.onChange(h),u(n.getValues())}})}),e.jsx(F,{children:s("invite.commission_withdraw_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"withdraw_close_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.withdraw_close.title")}),e.jsx(F,{children:s("invite.withdraw_close.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_distribution.title")}),e.jsx(F,{children:s("invite.commission_distribution.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("commission_distribution_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"commission_distribution_l1",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l1")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_l2",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l2")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_l3",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l3")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("invite.saving")})]})})}function ym(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("invite.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("invite.description")})]}),e.jsx(ke,{}),e.jsx(bm,{})]})}const Nm=Object.freeze(Object.defineProperty({__proto__:null,default:ym},Symbol.toStringTag,{value:"Module"})),_m=x.object({frontend_theme:x.string().nullable(),frontend_theme_sidebar:x.string().nullable(),frontend_theme_header:x.string().nullable(),frontend_theme_color:x.string().nullable(),frontend_background_url:x.string().url().nullable()}),wm={frontend_theme:"",frontend_theme_sidebar:"",frontend_theme_header:"",frontend_theme_color:"",frontend_background_url:""};function Cm(){const{data:s}=ne({queryKey:["settings","frontend"],queryFn:()=>me.getSettings("frontend")}),a=ye({resolver:_e(_m),defaultValues:wm,mode:"onChange"});m.useEffect(()=>{if(s?.data?.frontend){const l=s?.data?.frontend;Object.entries(l).forEach(([n,o])=>{a.setValue(n,o)})}},[s]);function t(l){me.saveSettings(l).then(({data:n})=>{n&&A.success("更新成功")})}return e.jsx(we,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(t),className:"space-y-8",children:[e.jsx(v,{control:a.control,name:"frontend_theme_sidebar",render:({field:l})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"边栏风格"}),e.jsx(F,{children:"边栏风格"})]}),e.jsx(b,{children:e.jsx(ee,{checked:l.value,onCheckedChange:l.onChange})})]})}),e.jsx(v,{control:a.control,name:"frontend_theme_header",render:({field:l})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"头部风格"}),e.jsx(F,{children:"边栏风格"})]}),e.jsx(b,{children:e.jsx(ee,{checked:l.value,onCheckedChange:l.onChange})})]})}),e.jsx(v,{control:a.control,name:"frontend_theme_color",render:({field:l})=>e.jsxs(f,{children:[e.jsx(j,{children:"主题色"}),e.jsxs("div",{className:"relative w-max",children:[e.jsx(b,{children:e.jsxs("select",{className:y(wt({variant:"outline"}),"w-[200px] appearance-none font-normal"),...l,children:[e.jsx("option",{value:"default",children:"默认"}),e.jsx("option",{value:"black",children:"黑色"}),e.jsx("option",{value:"blackblue",children:"暗蓝色"}),e.jsx("option",{value:"green",children:"奶绿色"})]})}),e.jsx(pn,{className:"absolute right-3 top-2.5 h-4 w-4 opacity-50"})]}),e.jsx(F,{children:"主题色"}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"frontend_background_url",render:({field:l})=>e.jsxs(f,{children:[e.jsx(j,{children:"背景"}),e.jsx(b,{children:e.jsx(D,{placeholder:"请输入图片地址",...l})}),e.jsx(F,{children:"将会在后台登录页面进行展示。"}),e.jsx(P,{})]})}),e.jsx(E,{type:"submit",children:"保存设置"})]})})}function Sm(){return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:"个性化设置"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"自定义系统界面外观,包括主题风格、布局、颜色方案、背景图等个性化选项。"})]}),e.jsx(ke,{}),e.jsx(Cm,{})]})}const km=Object.freeze(Object.defineProperty({__proto__:null,default:Sm},Symbol.toStringTag,{value:"Module"})),Tm=x.object({server_pull_interval:x.coerce.number().nullable(),server_push_interval:x.coerce.number().nullable(),server_token:x.string().nullable(),device_limit_mode:x.coerce.number().nullable()}),Dm={server_pull_interval:0,server_push_interval:0,server_token:"",device_limit_mode:0};function Pm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(Tm),defaultValues:Dm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","server"],queryFn:()=>me.getSettings("server")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:d=>{d.data&&A.success(s("common.AutoSaved"))}});m.useEffect(()=>{if(o?.data.server){const d=o.data.server;Object.entries(d).forEach(([h,_])=>{n.setValue(h,_)}),l.current=d}},[o]);const c=m.useCallback(Se.debounce(async d=>{if(!Se.isEqual(d,l.current)){t(!0);try{await r(d),l.current=d}finally{t(!1)}}},1e3),[r]),u=m.useCallback(d=>{c(d)},[c]);m.useEffect(()=>{const d=n.watch(h=>{u(h)});return()=>d.unsubscribe()},[n.watch,u]);const i=()=>{const d=Math.floor(Math.random()*17)+16,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let _="";for(let T=0;Te.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_token.title")}),e.jsx(b,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{placeholder:s("server.server_token.placeholder"),...d,value:d.value||"",className:"pr-10"}),e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2",onClick:h=>{h.preventDefault(),i()},children:e.jsx(lc,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"})})}),e.jsx(de,{children:e.jsx("p",{children:s("server.server_token.generate_tooltip")})})]})})]})}),e.jsx(F,{children:s("server.server_token.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"server_pull_interval",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_pull_interval.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("server.server_pull_interval.placeholder"),...d,value:d.value||"",onChange:h=>{const _=h.target.value?Number(h.target.value):null;d.onChange(_)}})}),e.jsx(F,{children:s("server.server_pull_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"server_push_interval",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_push_interval.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("server.server_push_interval.placeholder"),...d,value:d.value||"",onChange:h=>{const _=h.target.value?Number(h.target.value):null;d.onChange(_)}})}),e.jsx(F,{children:s("server.server_push_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"device_limit_mode",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.device_limit_mode.title")}),e.jsxs(X,{onValueChange:d.onChange,value:d.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:s("server.device_limit_mode.placeholder")})})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("server.device_limit_mode.strict")}),e.jsx($,{value:"1",children:s("server.device_limit_mode.relaxed")})]})]}),e.jsx(F,{children:s("server.device_limit_mode.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("server.saving")})]})})}function Em(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("server.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("server.description")})]}),e.jsx(ke,{}),e.jsx(Pm,{})]})}const Rm=Object.freeze(Object.defineProperty({__proto__:null,default:Em},Symbol.toStringTag,{value:"Module"}));function Im({open:s,onOpenChange:a,result:t}){const l=!t.error;return e.jsx(pe,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l?e.jsx(ql,{className:"h-5 w-5 text-green-500"}):e.jsx(Hl,{className:"h-5 w-5 text-destructive"}),e.jsx(ge,{children:l?"邮件发送成功":"邮件发送失败"})]}),e.jsx(Le,{children:l?"测试邮件已成功发送,请检查收件箱":"发送测试邮件时遇到错误"})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"发送详情"}),e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2 text-sm",children:[e.jsx("div",{className:"text-muted-foreground",children:"收件地址"}),e.jsx("div",{children:t.email}),e.jsx("div",{className:"text-muted-foreground",children:"邮件主题"}),e.jsx("div",{children:t.subject}),e.jsx("div",{className:"text-muted-foreground",children:"模板名称"}),e.jsx("div",{children:t.template_name})]})]}),t.error&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium text-destructive",children:"错误信息"}),e.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive break-all",children:t.error})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"配置信息"}),e.jsx(Nt,{className:"h-[200px] rounded-md border p-4",children:e.jsx("div",{className:"grid gap-2 text-sm",children:e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2",children:[e.jsx("div",{className:"text-muted-foreground",children:"驱动"}),e.jsx("div",{children:t.config.driver}),e.jsx("div",{className:"text-muted-foreground",children:"服务器"}),e.jsx("div",{children:t.config.host}),e.jsx("div",{className:"text-muted-foreground",children:"端口"}),e.jsx("div",{children:t.config.port}),e.jsx("div",{className:"text-muted-foreground",children:"加密方式"}),e.jsx("div",{children:t.config.encryption||"无"}),e.jsx("div",{className:"text-muted-foreground",children:"发件人"}),e.jsx("div",{children:t.config.from.address?`${t.config.from.address}${t.config.from.name?` (${t.config.from.name})`:""}`:"未设置"}),e.jsx("div",{className:"text-muted-foreground",children:"用户名"}),e.jsx("div",{children:t.config.username||"未设置"})]})})})]})]})]})})}const Lm=x.object({email_template:x.string().nullable().default("classic"),email_host:x.string().nullable().default(""),email_port:x.coerce.number().nullable().default(465),email_username:x.string().nullable().default(""),email_password:x.string().nullable().default(""),email_encryption:x.string().nullable().default(""),email_from_address:x.string().email().nullable().default(""),remind_mail_enable:x.boolean().nullable().default(!1)});function Vm(){const{t:s}=V("settings"),[a,t]=m.useState(null),[l,n]=m.useState(!1),o=m.useRef(null),[r,c]=m.useState(!1),u=ye({resolver:_e(Lm),defaultValues:{},mode:"onBlur"}),{data:i}=ne({queryKey:["settings","email"],queryFn:()=>me.getSettings("email")}),{data:d}=ne({queryKey:["emailTemplate"],queryFn:()=>me.getEmailTemplate()}),{mutateAsync:h}=gs({mutationFn:me.saveSettings,onSuccess:N=>{N.data&&A.success(s("common.autoSaved"))}}),{mutate:_,isPending:T}=gs({mutationFn:me.sendTestMail,onMutate:()=>{t(null),n(!1)},onSuccess:N=>{t(N.data),n(!0),N.data.error?A.error(s("email.test.error")):A.success(s("email.test.success"))}});m.useEffect(()=>{if(i?.data.email){const N=i.data.email;Object.entries(N).forEach(([g,k])=>{u.setValue(g,k)}),o.current=N}},[i]);const S=m.useCallback(Se.debounce(async N=>{if(!Se.isEqual(N,o.current)){c(!0);try{await h(N),o.current=N}finally{c(!1)}}},1e3),[h]),C=m.useCallback(N=>{S(N)},[S]);return m.useEffect(()=>{const N=u.watch(g=>{C(g)});return()=>N.unsubscribe()},[u.watch,C]),e.jsxs(e.Fragment,{children:[e.jsx(we,{...u,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"email_host",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_host.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(F,{children:s("email.email_host.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_port",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_port.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("common.placeholder"),...N,value:N.value||"",onChange:g=>{const k=g.target.value?Number(g.target.value):null;N.onChange(k)}})}),e.jsx(F,{children:s("email.email_port.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_encryption",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_encryption.title")}),e.jsxs(X,{onValueChange:g=>{const k=g==="none"?"":g;N.onChange(k)},value:N.value===""||N.value===null||N.value===void 0?"none":N.value,children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:"请选择加密方式"})})}),e.jsxs(J,{children:[e.jsx($,{value:"none",children:s("email.email_encryption.none")}),e.jsx($,{value:"ssl",children:s("email.email_encryption.ssl")}),e.jsx($,{value:"tls",children:s("email.email_encryption.tls")})]})]}),e.jsx(F,{children:s("email.email_encryption.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_username",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_username.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(F,{children:s("email.email_username.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_password",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_password.title")}),e.jsx(b,{children:e.jsx(D,{type:"password",placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(F,{children:s("email.email_password.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_from_address",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_from.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(F,{children:s("email.email_from.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_template",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_template.title")}),e.jsxs(X,{onValueChange:g=>{N.onChange(g),C(u.getValues())},value:N.value||void 0,children:[e.jsx(b,{children:e.jsx(Y,{className:"w-[200px]",children:e.jsx(Z,{placeholder:s("email.email_template.placeholder")})})}),e.jsx(J,{children:d?.data?.map(g=>e.jsx($,{value:g,children:g},g))})]}),e.jsx(F,{children:s("email.email_template.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"remind_mail_enable",render:({field:N})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("email.remind_mail.title")}),e.jsx(F,{children:s("email.remind_mail.description")})]}),e.jsx(b,{children:e.jsx(ee,{checked:N.value||!1,onCheckedChange:g=>{N.onChange(g),C(u.getValues())}})})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(E,{onClick:()=>_(),loading:T,disabled:T,children:s(T?"email.test.sending":"email.test.title")})})]})}),r&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("saving")}),a&&e.jsx(Im,{open:l,onOpenChange:n,result:a})]})}function Fm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("email.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("email.description")})]}),e.jsx(ke,{}),e.jsx(Vm,{})]})}const Mm=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"})),Om=x.object({telegram_bot_enable:x.boolean().nullable(),telegram_bot_token:x.string().nullable(),telegram_discuss_link:x.string().nullable()}),zm={telegram_bot_enable:!1,telegram_bot_token:"",telegram_discuss_link:""};function $m(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(Om),defaultValues:zm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","telegram"],queryFn:()=>me.getSettings("telegram")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:h=>{h.data&&A.success(s("common.autoSaved"))}}),{mutate:c,isPending:u}=gs({mutationFn:me.setTelegramWebhook,onSuccess:h=>{h.data&&A.success(s("telegram.webhook.success"))}});m.useEffect(()=>{if(o?.data.telegram){const h=o.data.telegram;Object.entries(h).forEach(([_,T])=>{n.setValue(_,T)}),l.current=h}},[o]);const i=m.useCallback(Se.debounce(async h=>{if(!Se.isEqual(h,l.current)){t(!0);try{await r(h),l.current=h}finally{t(!1)}}},1e3),[r]),d=m.useCallback(h=>{i(h)},[i]);return m.useEffect(()=>{const h=n.watch(_=>{d(_)});return()=>h.unsubscribe()},[n.watch,d]),e.jsx(we,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"telegram_bot_token",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_token.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("telegram.bot_token.placeholder"),...h,value:h.value||""})}),e.jsx(F,{children:s("telegram.bot_token.description")}),e.jsx(P,{})]})}),n.watch("telegram_bot_token")&&e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.webhook.title")}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(E,{loading:u,disabled:u,onClick:()=>c(),children:s(u?"telegram.webhook.setting":"telegram.webhook.button")}),a&&e.jsx("span",{className:"text-sm text-muted-foreground",children:s("common.saving")})]}),e.jsx(F,{children:s("telegram.webhook.description")}),e.jsx(P,{})]}),e.jsx(v,{control:n.control,name:"telegram_bot_enable",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_enable.title")}),e.jsx(F,{children:s("telegram.bot_enable.description")}),e.jsx(b,{children:e.jsx(ee,{checked:h.value||!1,onCheckedChange:_=>{h.onChange(_),d(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"telegram_discuss_link",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.discuss_link.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("telegram.discuss_link.placeholder"),...h,value:h.value||""})}),e.jsx(F,{children:s("telegram.discuss_link.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function Am(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("telegram.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("telegram.description")})]}),e.jsx(ke,{}),e.jsx($m,{})]})}const qm=Object.freeze(Object.defineProperty({__proto__:null,default:Am},Symbol.toStringTag,{value:"Module"})),Hm=x.object({windows_version:x.string().nullable(),windows_download_url:x.string().nullable(),macos_version:x.string().nullable(),macos_download_url:x.string().nullable(),android_version:x.string().nullable(),android_download_url:x.string().nullable()}),Um={windows_version:"",windows_download_url:"",macos_version:"",macos_download_url:"",android_version:"",android_download_url:""};function Km(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=ye({resolver:_e(Hm),defaultValues:Um,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","app"],queryFn:()=>me.getSettings("app")}),{mutateAsync:r}=gs({mutationFn:me.saveSettings,onSuccess:i=>{i.data&&A.success(s("app.save_success"))}});m.useEffect(()=>{if(o?.data.app){const i=o.data.app;Object.entries(i).forEach(([d,h])=>{n.setValue(d,h)}),l.current=i}},[o]);const c=m.useCallback(Se.debounce(async i=>{if(!Se.isEqual(i,l.current)){t(!0);try{await r(i),l.current=i}finally{t(!1)}}},1e3),[r]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(we,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"windows_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.windows.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"windows_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.windows.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"macos_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.macos.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"macos_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.macos.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"android_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.android.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.android.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"android_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.android.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(F,{children:s("app.android.download.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function Bm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("app.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("app.description")})]}),e.jsx(ke,{}),e.jsx(Km,{})]})}const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Bm},Symbol.toStringTag,{value:"Module"})),Wm=s=>x.object({id:x.number().nullable(),name:x.string().min(2,s("form.validation.name.min")).max(30,s("form.validation.name.max")),icon:x.string().optional().nullable(),notify_domain:x.string().refine(t=>!t||/^https?:\/\/\S+/.test(t),s("form.validation.notify_domain.url")).optional().nullable(),handling_fee_fixed:x.coerce.number().min(0).optional().nullable(),handling_fee_percent:x.coerce.number().min(0).max(100).optional().nullable(),payment:x.string().min(1,s("form.validation.payment.required")),config:x.record(x.string(),x.string())}),Wn={id:null,name:"",icon:"",notify_domain:"",handling_fee_fixed:0,handling_fee_percent:0,payment:"",config:{}};function kr({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:l=Wn}){const{t:n}=V("payment"),[o,r]=m.useState(!1),[c,u]=m.useState(!1),[i,d]=m.useState([]),[h,_]=m.useState([]),T=Wm(n),S=ye({resolver:_e(T),defaultValues:l,mode:"onChange"}),C=S.watch("payment");m.useEffect(()=>{o&&(async()=>{const{data:k}=await Qs.getMethodList();d(k)})()},[o]),m.useEffect(()=>{if(!C||!o)return;(async()=>{const k={payment:C,...t==="edit"&&{id:Number(S.getValues("id"))}};Qs.getMethodForm(k).then(({data:R})=>{_(R);const p=R.reduce((w,I)=>(I.field_name&&(w[I.field_name]=I.value??""),w),{});S.setValue("config",p)})})()},[C,o,S,t]);const N=async g=>{u(!0);try{(await Qs.save(g)).data&&(A.success(n("form.messages.success")),S.reset(Wn),s(),r(!1))}finally{u(!1)}};return e.jsxs(pe,{open:o,onOpenChange:r,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(ve,{children:e.jsx(ge,{children:n(t==="add"?"form.add.title":"form.edit.title")})}),e.jsx(we,{...S,children:e.jsxs("form",{onSubmit:S.handleSubmit(N),className:"space-y-4",children:[e.jsx(v,{control:S.control,name:"name",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:n("form.fields.name.placeholder"),...g})}),e.jsx(F,{children:n("form.fields.name.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"icon",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.icon.label")}),e.jsx(b,{children:e.jsx(D,{...g,value:g.value||"",placeholder:n("form.fields.icon.placeholder")})}),e.jsx(F,{children:n("form.fields.icon.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"notify_domain",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.notify_domain.label")}),e.jsx(b,{children:e.jsx(D,{...g,value:g.value||"",placeholder:n("form.fields.notify_domain.placeholder")})}),e.jsx(F,{children:n("form.fields.notify_domain.description")}),e.jsx(P,{})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(v,{control:S.control,name:"handling_fee_percent",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.handling_fee_percent.label")}),e.jsx(b,{children:e.jsx(D,{type:"number",...g,value:g.value||"",placeholder:n("form.fields.handling_fee_percent.placeholder")})}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"handling_fee_fixed",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.handling_fee_fixed.label")}),e.jsx(b,{children:e.jsx(D,{type:"number",...g,value:g.value||"",placeholder:n("form.fields.handling_fee_fixed.placeholder")})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:S.control,name:"payment",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.payment.label")}),e.jsxs(X,{onValueChange:g.onChange,defaultValue:g.value,children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:n("form.fields.payment.placeholder")})})}),e.jsx(J,{children:i.map(k=>e.jsx($,{value:k,children:k},k))})]}),e.jsx(F,{children:n("form.fields.payment.description")}),e.jsx(P,{})]})}),h.length>0&&e.jsx("div",{className:"space-y-4",children:h.map(g=>e.jsx(v,{control:S.control,name:`config.${g.field_name}`,render:({field:k})=>e.jsxs(f,{children:[e.jsx(j,{children:g.label}),e.jsx(b,{children:e.jsx(D,{...k,value:k.value||""})}),e.jsx(P,{})]})},g.field_name))}),e.jsxs(Re,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(E,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(E,{type:"submit",disabled:c,children:n("form.buttons.submit")})]})]})})]})]})}function z({column:s,title:a,tooltip:t,className:l}){return s.getCanSort()?e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(E,{variant:"ghost",size:"default",className:y("-ml-3 flex h-8 items-center gap-2 text-nowrap font-medium hover:bg-muted/60",l),onClick:()=>s.toggleSorting(s.getIsSorted()==="asc"),children:[e.jsx("span",{children:a}),t&&e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(An,{className:"h-4 w-4 cursor-pointer text-muted-foreground"})}),e.jsx(de,{children:t})]})}),s.getIsSorted()==="asc"?e.jsx(Xa,{className:"h-4 w-4 text-foreground/70"}):s.getIsSorted()==="desc"?e.jsx(Za,{className:"h-4 w-4 text-foreground/70"}):e.jsx(rc,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-foreground/70"})]})})}):e.jsxs("div",{className:y("flex items-center space-x-1 text-nowrap py-2 font-medium text-muted-foreground",l),children:[e.jsx("span",{children:a}),t&&e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{children:e.jsx(An,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(de,{children:t})]})})]})}const Cn=ic,Tr=oc,Ym=cc,Dr=m.forwardRef(({className:s,...a},t)=>e.jsx(Kl,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));Dr.displayName=Kl.displayName;const Ta=m.forwardRef(({className:s,...a},t)=>e.jsxs(Ym,{children:[e.jsx(Dr,{}),e.jsx(Bl,{ref:t,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...a})]}));Ta.displayName=Bl.displayName;const Da=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...a});Da.displayName="AlertDialogHeader";const Pa=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Pa.displayName="AlertDialogFooter";const Ea=m.forwardRef(({className:s,...a},t)=>e.jsx(Gl,{ref:t,className:y("text-lg font-semibold",s),...a}));Ea.displayName=Gl.displayName;const Ra=m.forwardRef(({className:s,...a},t)=>e.jsx(Wl,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Ra.displayName=Wl.displayName;const Ia=m.forwardRef(({className:s,...a},t)=>e.jsx(Yl,{ref:t,className:y(bt(),s),...a}));Ia.displayName=Yl.displayName;const La=m.forwardRef(({className:s,...a},t)=>e.jsx(Jl,{ref:t,className:y(bt({variant:"outline"}),"mt-2 sm:mt-0",s),...a}));La.displayName=Jl.displayName;function ns({onConfirm:s,children:a,title:t="确认操作",description:l="确定要执行此操作吗?",cancelText:n="取消",confirmText:o="确认",variant:r="default",className:c}){return e.jsxs(Cn,{children:[e.jsx(Tr,{asChild:!0,children:a}),e.jsxs(Ta,{className:y("sm:max-w-[425px]",c),children:[e.jsxs(Da,{children:[e.jsx(Ea,{children:t}),e.jsx(Ra,{children:l})]}),e.jsxs(Pa,{children:[e.jsx(La,{asChild:!0,children:e.jsx(E,{variant:"outline",children:n})}),e.jsx(Ia,{asChild:!0,children:e.jsx(E,{variant:r,onClick:s,children:o})})]})]})]})}const Pr=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M11.29 15.29a2 2 0 0 0-.12.15a.8.8 0 0 0-.09.18a.6.6 0 0 0-.06.18a1.4 1.4 0 0 0 0 .2a.84.84 0 0 0 .08.38a.9.9 0 0 0 .54.54a.94.94 0 0 0 .76 0a.9.9 0 0 0 .54-.54A1 1 0 0 0 13 16a1 1 0 0 0-.29-.71a1 1 0 0 0-1.42 0M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8 8 0 0 1-8 8m0-13a3 3 0 0 0-2.6 1.5a1 1 0 1 0 1.73 1A1 1 0 0 1 12 9a1 1 0 0 1 0 2a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-.18A3 3 0 0 0 12 7"})}),Jm=({refetch:s,isSortMode:a=!1})=>{const{t}=V("payment");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Na,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.id")}),cell:({row:l})=>e.jsx(B,{variant:"outline",children:l.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"enable",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.enable")}),cell:({row:l})=>e.jsx(ee,{defaultChecked:l.getValue("enable"),onCheckedChange:async()=>{const{data:n}=await Qs.updateStatus({id:l.original.id});n||s()}}),enableSorting:!1,size:100},{accessorKey:"name",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.name")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:l.getValue("name")})}),enableSorting:!1,size:200},{accessorKey:"payment",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.payment")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:l.getValue("payment")})}),enableSorting:!1,size:200},{accessorKey:"notify_url",header:({column:l})=>e.jsxs("div",{className:"flex items-center",children:[e.jsx(z,{column:l,title:t("table.columns.notify_url")}),e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{className:"ml-1",children:e.jsx(Pr,{className:"h-4 w-4"})}),e.jsx(de,{children:t("table.columns.notify_url_tooltip")})]})})]}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[300px] truncate font-medium",children:l.getValue("notify_url")})}),enableSorting:!1,size:3e3},{id:"actions",header:({column:l})=>e.jsx(z,{className:"justify-end",column:l,title:t("table.columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(kr,{refetch:s,dialogTrigger:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("table.actions.edit")})]}),type:"edit",defaultFormValues:l.original}),e.jsx(ns,{title:t("table.actions.delete.title"),description:t("table.actions.delete.description"),onConfirm:async()=>{const{data:n}=await Qs.drop({id:l.original.id});n&&s()},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-destructive/10",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-destructive"}),e.jsx("span",{className:"sr-only",children:t("table.actions.delete.title")})]})})]}),size:100}]};function Qm({table:s,refetch:a,saveOrder:t,isSortMode:l}){const{t:n}=V("payment"),o=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between",children:[l?e.jsx("p",{className:"text-sm text-muted-foreground",children:n("table.toolbar.sort.hint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(kr,{refetch:a}),e.jsx(D,{placeholder:n("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:r=>s.getColumn("name")?.setFilterValue(r.target.value),className:"h-8 w-[250px]"}),o&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[n("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(E,{variant:l?"default":"outline",onClick:t,size:"sm",children:n(l?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}function Xm(){const[s,a]=m.useState([]),[t,l]=m.useState([]),[n,o]=m.useState(!1),[r,c]=m.useState([]),[u,i]=m.useState({"drag-handle":!1}),[d,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:_}=ne({queryKey:["paymentList"],queryFn:async()=>{const{data:g}=await Qs.getList();return c(g?.map(k=>({...k,enable:!!k.enable}))||[]),g}});m.useEffect(()=>{i({"drag-handle":n,actions:!n}),h({pageSize:n?99999:10,pageIndex:0})},[n]);const T=(g,k)=>{n&&(g.dataTransfer.setData("text/plain",k.toString()),g.currentTarget.classList.add("opacity-50"))},S=(g,k)=>{if(!n)return;g.preventDefault(),g.currentTarget.classList.remove("bg-muted");const R=parseInt(g.dataTransfer.getData("text/plain"));if(R===k)return;const p=[...r],[w]=p.splice(R,1);p.splice(k,0,w),c(p)},C=async()=>{n?Qs.sort({ids:r.map(g=>g.id)}).then(()=>{_(),o(!1),A.success("排序保存成功")}):o(!0)},N=Je({data:r,columns:Jm({refetch:_,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:d},onSortingChange:l,onColumnFiltersChange:a,onColumnVisibilityChange:i,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),initialState:{columnPinning:{right:["actions"]}},pageCount:n?1:void 0});return e.jsx(is,{table:N,toolbar:g=>e.jsx(Qm,{table:g,refetch:_,saveOrder:C,isSortMode:n}),draggable:n,onDragStart:T,onDragEnd:g=>g.currentTarget.classList.remove("opacity-50"),onDragOver:g=>{g.preventDefault(),g.currentTarget.classList.add("bg-muted")},onDragLeave:g=>g.currentTarget.classList.remove("bg-muted"),onDrop:S,showPagination:!n})}function Zm(){const{t:s}=V("payment");return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{children:[e.jsx("header",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("section",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Xm,{})})]})]})}const eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zm},Symbol.toStringTag,{value:"Module"}));function su({pluginName:s,onClose:a,onSuccess:t}){const{t:l}=V("plugin"),[n,o]=m.useState(!0),[r,c]=m.useState(!1),[u,i]=m.useState(null),d=dc({config:mc(uc())}),h=ye({resolver:_e(d),defaultValues:{config:{}}});m.useEffect(()=>{(async()=>{try{const{data:C}=await Ps.getPluginConfig(s);i(C),h.reset({config:Object.fromEntries(Object.entries(C).map(([N,g])=>[N,g.value]))})}catch{A.error(l("messages.configLoadError"))}finally{o(!1)}})()},[s]);const _=async S=>{c(!0);try{await Ps.updatePluginConfig(s,S.config),A.success(l("messages.configSaveSuccess")),t()}catch{A.error(l("messages.configSaveError"))}finally{c(!1)}},T=(S,C)=>{switch(C.type){case"string":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:C.label||C.description}),e.jsx(b,{children:e.jsx(D,{placeholder:C.placeholder,...N})}),C.description&&C.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:C.description}),e.jsx(P,{})]})},S);case"number":case"percentage":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:C.label||C.description}),e.jsx(b,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{type:"number",placeholder:C.placeholder,...N,onChange:g=>{const k=Number(g.target.value);C.type==="percentage"?N.onChange(Math.min(100,Math.max(0,k))):N.onChange(k)},className:C.type==="percentage"?"pr-8":"",min:C.type==="percentage"?0:void 0,max:C.type==="percentage"?100:void 0,step:C.type==="percentage"?1:void 0}),C.type==="percentage"&&e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:e.jsx(xc,{className:"h-4 w-4 text-muted-foreground"})})]})}),C.description&&C.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:C.description}),e.jsx(P,{})]})},S);case"select":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:C.label||C.description}),e.jsxs(X,{onValueChange:N.onChange,defaultValue:N.value,children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:C.placeholder})})}),e.jsx(J,{children:C.options?.map(g=>e.jsx($,{value:g.value,children:g.label},g.value))})]}),C.description&&C.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:C.description}),e.jsx(P,{})]})},S);case"boolean":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:C.label||C.description}),C.description&&C.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:C.description})]}),e.jsx(b,{children:e.jsx(ee,{checked:N.value,onCheckedChange:N.onChange})})]})},S);case"text":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:C.label||C.description}),e.jsx(b,{children:e.jsx(Ts,{placeholder:C.placeholder,...N})}),C.description&&C.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:C.description}),e.jsx(P,{})]})},S);default:return null}};return n?e.jsxs("div",{className:"space-y-4",children:[e.jsx(ce,{className:"h-4 w-[200px]"}),e.jsx(ce,{className:"h-10 w-full"}),e.jsx(ce,{className:"h-4 w-[200px]"}),e.jsx(ce,{className:"h-10 w-full"})]}):e.jsx(we,{...h,children:e.jsxs("form",{onSubmit:h.handleSubmit(_),className:"space-y-4",children:[u&&Object.entries(u).map(([S,C])=>T(S,C)),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(E,{type:"button",variant:"outline",onClick:a,disabled:r,children:l("config.cancel")}),e.jsx(E,{type:"submit",loading:r,disabled:r,children:l("config.save")})]})]})})}function tu(){const{t:s}=V("plugin"),[a,t]=m.useState(null),[l,n]=m.useState(!1),[o,r]=m.useState(null),[c,u]=m.useState(""),[i,d]=m.useState("all"),[h,_]=m.useState(!1),[T,S]=m.useState(!1),[C,N]=m.useState(!1),g=m.useRef(null),{data:k,isLoading:R,refetch:p}=ne({queryKey:["pluginList"],queryFn:async()=>{const{data:L}=await Ps.getPluginList();return L}});k&&[...new Set(k.map(L=>L.category||"other"))];const w=k?.filter(L=>{const U=L.name.toLowerCase().includes(c.toLowerCase())||L.description.toLowerCase().includes(c.toLowerCase())||L.code.toLowerCase().includes(c.toLowerCase()),ms=i==="all"||L.category===i;return U&&ms}),I=async L=>{t(L),Ps.installPlugin(L).then(()=>{A.success(s("messages.installSuccess")),p()}).catch(U=>{A.error(U.message||s("messages.installError"))}).finally(()=>{t(null)})},H=async L=>{t(L),Ps.uninstallPlugin(L).then(()=>{A.success(s("messages.uninstallSuccess")),p()}).catch(U=>{A.error(U.message||s("messages.uninstallError"))}).finally(()=>{t(null)})},O=async(L,U)=>{t(L),(U?Ps.disablePlugin:Ps.enablePlugin)(L).then(()=>{A.success(s(U?"messages.disableSuccess":"messages.enableSuccess")),p()}).catch(De=>{A.error(De.message||s(U?"messages.disableError":"messages.enableError"))}).finally(()=>{t(null)})},K=L=>{k?.find(U=>U.code===L),r(L),n(!0)},oe=async L=>{if(!L.name.endsWith(".zip")){A.error(s("upload.error.format"));return}_(!0),Ps.uploadPlugin(L).then(()=>{A.success(s("messages.uploadSuccess")),S(!1),p()}).catch(U=>{A.error(U.message||s("messages.uploadError"))}).finally(()=>{_(!1),g.current&&(g.current.value="")})},W=L=>{L.preventDefault(),L.stopPropagation(),L.type==="dragenter"||L.type==="dragover"?N(!0):L.type==="dragleave"&&N(!1)},te=L=>{L.preventDefault(),L.stopPropagation(),N(!1),L.dataTransfer.files&&L.dataTransfer.files[0]&&oe(L.dataTransfer.files[0])},q=async L=>{t(L),Ps.deletePlugin(L).then(()=>{A.success(s("messages.deleteSuccess")),p()}).catch(U=>{A.error(U.message||s("messages.deleteError"))}).finally(()=>{t(null)})};return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(xn,{className:"h-6 w-6"}),e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{children:[e.jsxs("div",{className:"mb-8 space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"relative max-w-sm flex-1",children:[e.jsx(hn,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(D,{placeholder:s("search.placeholder"),value:c,onChange:L=>u(L.target.value),className:"pl-9"})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs(E,{onClick:()=>S(!0),variant:"outline",className:"shrink-0",size:"sm",children:[e.jsx(At,{className:"mr-2 h-4 w-4"}),s("upload.button")]})})]}),e.jsxs(Bt,{defaultValue:"all",className:"w-full",children:[e.jsxs(Ct,{children:[e.jsx(Ee,{value:"all",children:s("tabs.all")}),e.jsx(Ee,{value:"installed",children:s("tabs.installed")}),e.jsx(Ee,{value:"available",children:s("tabs.available")})]}),e.jsx(We,{value:"all",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:R?e.jsxs(e.Fragment,{children:[e.jsx(Ka,{}),e.jsx(Ka,{}),e.jsx(Ka,{})]}):w?.map(L=>e.jsx(Ua,{plugin:L,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:K,onDelete:q,isLoading:a===L.name},L.name))})}),e.jsx(We,{value:"installed",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:w?.filter(L=>L.is_installed).map(L=>e.jsx(Ua,{plugin:L,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:K,onDelete:q,isLoading:a===L.name},L.name))})}),e.jsx(We,{value:"available",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:w?.filter(L=>!L.is_installed).map(L=>e.jsx(Ua,{plugin:L,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:K,onDelete:q,isLoading:a===L.name},L.code))})})]})]}),e.jsx(pe,{open:l,onOpenChange:n,children:e.jsxs(ue,{className:"sm:max-w-lg",children:[e.jsxs(ve,{children:[e.jsxs(ge,{children:[k?.find(L=>L.code===o)?.name," ",s("config.title")]}),e.jsx(Le,{children:s("config.description")})]}),o&&e.jsx(su,{pluginName:o,onClose:()=>n(!1),onSuccess:()=>{n(!1),p()}})]})}),e.jsx(pe,{open:T,onOpenChange:S,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:s("upload.title")}),e.jsx(Le,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",C&&"border-primary/50 bg-muted/50"),onDragEnter:W,onDragLeave:W,onDragOver:W,onDrop:te,children:[e.jsx("input",{type:"file",ref:g,className:"hidden",accept:".zip",onChange:L=>{const U=L.target.files?.[0];U&&oe(U)}}),h?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(At,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>g.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})})]})]})}function Ua({plugin:s,onInstall:a,onUninstall:t,onToggleEnable:l,onOpenConfig:n,onDelete:o,isLoading:r}){const{t:c}=V("plugin");return e.jsxs(Ye,{className:"group relative overflow-hidden transition-all hover:shadow-md",children:[e.jsxs(ss,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_s,{children:s.name}),s.is_installed&&e.jsx(B,{variant:s.is_enabled?"success":"secondary",children:s.is_enabled?c("status.enabled"):c("status.disabled")})]}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(xn,{className:"h-4 w-4"}),e.jsx("code",{className:"rounded bg-muted px-1 py-0.5",children:s.code})]}),e.jsxs("div",{children:["v",s.version]})]})]})}),e.jsx(Xs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"mt-2",children:s.description}),e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:e.jsxs("div",{className:"flex items-center gap-1",children:[c("author"),": ",s.author]})})]})})]}),e.jsx(ts,{children:e.jsx("div",{className:"flex items-center justify-end space-x-2",children:s.is_installed?e.jsxs(e.Fragment,{children:[e.jsxs(E,{variant:"outline",size:"sm",onClick:()=>n(s.code),disabled:!s.is_enabled||r,children:[e.jsx(hc,{className:"mr-2 h-4 w-4"}),c("button.config")]}),e.jsxs(E,{variant:s.is_enabled?"destructive":"default",size:"sm",onClick:()=>l(s.code,s.is_enabled),disabled:r,children:[e.jsx(pc,{className:"mr-2 h-4 w-4"}),s.is_enabled?c("button.disable"):c("button.enable")]}),e.jsx(ns,{title:c("uninstall.title"),description:c("uninstall.description"),cancelText:c("common:cancel"),confirmText:c("uninstall.button"),variant:"destructive",onConfirm:()=>t(s.code),children:e.jsxs(E,{variant:"outline",size:"sm",className:"text-muted-foreground hover:text-destructive",disabled:r,children:[e.jsx(fs,{className:"mr-2 h-4 w-4"}),c("button.uninstall")]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(E,{onClick:()=>a(s.code),disabled:r,loading:r,children:c("button.install")}),e.jsx(ns,{title:c("delete.title"),description:c("delete.description"),cancelText:c("common:cancel"),confirmText:c("delete.button"),variant:"destructive",onConfirm:()=>o(s.code),children:e.jsx(E,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",disabled:r,children:e.jsx(fs,{className:"h-4 w-4"})})})]})})})]})}function Ka(){return e.jsxs(Ye,{children:[e.jsxs(ss,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ce,{className:"h-6 w-[200px]"}),e.jsx(ce,{className:"h-6 w-[80px]"})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(ce,{className:"h-5 w-[120px]"}),e.jsx(ce,{className:"h-5 w-[60px]"})]})]})}),e.jsxs("div",{className:"space-y-2 pt-2",children:[e.jsx(ce,{className:"h-4 w-[300px]"}),e.jsx(ce,{className:"h-4 w-[150px]"})]})]}),e.jsx(ts,{children:e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(ce,{className:"h-9 w-[100px]"}),e.jsx(ce,{className:"h-9 w-[100px]"}),e.jsx(ce,{className:"h-8 w-8"})]})})]})}const au=Object.freeze(Object.defineProperty({__proto__:null,default:tu},Symbol.toStringTag,{value:"Module"})),nu=(s,a)=>{let t=null;switch(s.field_type){case"input":t=e.jsx(D,{placeholder:s.placeholder,...a});break;case"textarea":t=e.jsx(Ts,{placeholder:s.placeholder,...a});break;case"select":t=e.jsx("select",{className:y(bt({variant:"outline"}),"w-full appearance-none font-normal"),...a,children:s.select_options&&Object.keys(s.select_options).map(l=>e.jsx("option",{value:l,children:s.select_options?.[l]},l))});break;default:t=null;break}return t};function lu({themeKey:s,themeInfo:a}){const{t}=V("theme"),[l,n]=m.useState(!1),[o,r]=m.useState(!1),[c,u]=m.useState(!1),i=ye({defaultValues:a.configs.reduce((_,T)=>(_[T.field_name]="",_),{})}),d=async()=>{r(!0),Mt.getConfig(s).then(({data:_})=>{Object.entries(_).forEach(([T,S])=>{i.setValue(T,S)})}).finally(()=>{r(!1)})},h=async _=>{u(!0),Mt.updateConfig(s,_).then(()=>{A.success(t("config.success")),n(!1)}).finally(()=>{u(!1)})};return e.jsxs(pe,{open:l,onOpenChange:_=>{n(_),_?d():i.reset()},children:[e.jsx(rs,{asChild:!0,children:e.jsx(E,{variant:"outline",children:t("card.configureTheme")})}),e.jsxs(ue,{className:"max-h-[90vh] overflow-auto sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:t("config.title",{name:a.name})}),e.jsx(Le,{children:t("config.description")})]}),o?e.jsx("div",{className:"flex h-40 items-center justify-center",children:e.jsx(gn,{className:"h-6 w-6 animate-spin"})}):e.jsx(we,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(h),className:"space-y-4",children:[a.configs.map(_=>e.jsx(v,{control:i.control,name:_.field_name,render:({field:T})=>e.jsxs(f,{children:[e.jsx(j,{children:_.label}),e.jsx(b,{children:nu(_,T)}),e.jsx(P,{})]})},_.field_name)),e.jsxs(Re,{className:"mt-6 gap-2",children:[e.jsx(E,{type:"button",variant:"secondary",onClick:()=>n(!1),children:t("config.cancel")}),e.jsx(E,{type:"submit",loading:c,children:t("config.save")})]})]})})]})]})}function ru(){const{t:s}=V("theme"),[a,t]=m.useState(null),[l,n]=m.useState(!1),[o,r]=m.useState(!1),[c,u]=m.useState(!1),[i,d]=m.useState(null),h=m.useRef(null),[_,T]=m.useState(0),{data:S,isLoading:C,refetch:N}=ne({queryKey:["themeList"],queryFn:async()=>{const{data:O}=await Mt.getList();return O}}),g=async O=>{t(O),me.updateSystemConfig({frontend_theme:O}).then(()=>{A.success("主题切换成功"),N()}).finally(()=>{t(null)})},k=async O=>{if(!O.name.endsWith(".zip")){A.error(s("upload.error.format"));return}n(!0),Mt.upload(O).then(()=>{A.success("主题上传成功"),r(!1),N()}).finally(()=>{n(!1),h.current&&(h.current.value="")})},R=O=>{O.preventDefault(),O.stopPropagation(),O.type==="dragenter"||O.type==="dragover"?u(!0):O.type==="dragleave"&&u(!1)},p=O=>{O.preventDefault(),O.stopPropagation(),u(!1),O.dataTransfer.files&&O.dataTransfer.files[0]&&k(O.dataTransfer.files[0])},w=()=>{i&&T(O=>O===0?i.images.length-1:O-1)},I=()=>{i&&T(O=>O===i.images.length-1?0:O+1)},H=(O,K)=>{T(0),d({name:O,images:K})};return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("div",{className:"mb-2",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-muted-foreground",children:s("description")}),e.jsxs(E,{onClick:()=>r(!0),variant:"outline",className:"ml-4 shrink-0",size:"sm",children:[e.jsx(At,{className:"mr-2 h-4 w-4"}),s("upload.button")]})]})]}),e.jsx("section",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3",children:C?e.jsxs(e.Fragment,{children:[e.jsx(Yn,{}),e.jsx(Yn,{})]}):S?.themes&&Object.entries(S.themes).map(([O,K])=>e.jsx(Ye,{className:"group relative overflow-hidden transition-all hover:shadow-md",style:{backgroundImage:K.background_url?`url(${K.background_url})`:"none",backgroundSize:"cover",backgroundPosition:"center"},children:e.jsxs("div",{className:y("relative z-10 h-full transition-colors",K.background_url?"group-hover:from-background/98 bg-gradient-to-t from-background/95 via-background/80 to-background/60 backdrop-blur-[1px] group-hover:via-background/90 group-hover:to-background/70":"bg-background"),children:[!!K.can_delete&&e.jsx("div",{className:"absolute right-2 top-2",children:e.jsx(ns,{title:s("card.delete.title"),description:s("card.delete.description"),confirmText:s("card.delete.button"),variant:"destructive",onConfirm:async()=>{if(O===S?.active){A.error(s("card.delete.error.active"));return}t(O),Mt.drop(O).then(()=>{A.success("主题删除成功"),N()}).finally(()=>{t(null)})},children:e.jsx(E,{disabled:a===O,loading:a===O,variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",children:e.jsx(fs,{className:"h-4 w-4"})})})}),e.jsxs(ss,{children:[e.jsx(_s,{children:K.name}),e.jsx(Xs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{children:K.description}),K.version&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("card.version",{version:K.version})})]})})]}),e.jsxs(ts,{className:"flex items-center justify-end space-x-3",children:[K.images&&Array.isArray(K.images)&&K.images.length>0&&e.jsx(E,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>H(K.name,K.images),children:e.jsx(gc,{className:"h-4 w-4"})}),e.jsx(lu,{themeKey:O,themeInfo:K}),e.jsx(E,{onClick:()=>g(O),disabled:a===O||O===S.active,loading:a===O,variant:O===S.active?"secondary":"default",children:O===S.active?s("card.currentTheme"):s("card.activateTheme")})]})]})},O))}),e.jsx(pe,{open:o,onOpenChange:r,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:s("upload.title")}),e.jsx(Le,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",c&&"border-primary/50 bg-muted/50"),onDragEnter:R,onDragLeave:R,onDragOver:R,onDrop:p,children:[e.jsx("input",{type:"file",ref:h,className:"hidden",accept:".zip",onChange:O=>{const K=O.target.files?.[0];K&&k(K)}}),l?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(At,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>h.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})}),e.jsx(pe,{open:!!i,onOpenChange:O=>{O||(d(null),T(0))},children:e.jsxs(ue,{className:"max-w-4xl",children:[e.jsxs(ve,{children:[e.jsxs(ge,{children:[i?.name," ",s("preview.title")]}),e.jsx(Le,{className:"text-center",children:i&&s("preview.imageCount",{current:_+1,total:i.images.length})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-lg border bg-muted",children:i?.images[_]&&e.jsx("img",{src:i.images[_],alt:`${i.name} 预览图 ${_+1}`,className:"h-full w-full object-contain"})}),i&&i.images.length>1&&e.jsxs(e.Fragment,{children:[e.jsx(E,{variant:"outline",size:"icon",className:"absolute left-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:w,children:e.jsx(fc,{className:"h-4 w-4"})}),e.jsx(E,{variant:"outline",size:"icon",className:"absolute right-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:I,children:e.jsx(jc,{className:"h-4 w-4"})})]})]}),i&&i.images.length>1&&e.jsx("div",{className:"mt-4 flex gap-2 overflow-x-auto pb-2",children:i.images.map((O,K)=>e.jsx("button",{onClick:()=>T(K),className:y("relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-md border-2",_===K?"border-primary":"border-transparent"),children:e.jsx("img",{src:O,alt:`缩略图 ${K+1}`,className:"h-full w-full object-cover"})},K))})]})})]})]})}function Yn(){return e.jsxs(Ye,{children:[e.jsxs(ss,{children:[e.jsx(ce,{className:"h-6 w-[200px]"}),e.jsx(ce,{className:"h-4 w-[300px]"})]}),e.jsxs(ts,{className:"flex items-center justify-end space-x-3",children:[e.jsx(ce,{className:"h-10 w-[100px]"}),e.jsx(ce,{className:"h-10 w-[100px]"})]})]})}const iu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"})),Sn=m.forwardRef(({className:s,value:a,onChange:t,...l},n)=>{const[o,r]=m.useState("");m.useEffect(()=>{if(o.includes(",")){const u=new Set([...a,...o.split(",").map(i=>i.trim())]);t(Array.from(u)),r("")}},[o,t,a]);const c=()=>{if(o){const u=new Set([...a,o]);t(Array.from(u)),r("")}};return e.jsxs("div",{className:y(" has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-neutral-950 dark:has-[:focus-visible]:ring-neutral-300 flex w-full flex-wrap gap-2 rounded-md border border-input shadow-sm px-3 py-2 text-sm ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",s),children:[a.map(u=>e.jsxs(B,{variant:"secondary",children:[u,e.jsx(G,{variant:"ghost",size:"icon",className:"ml-2 h-3 w-3",onClick:()=>{t(a.filter(i=>i!==u))},children:e.jsx(an,{className:"w-3"})})]},u)),e.jsx("input",{className:"flex-1 outline-none placeholder:text-muted-foreground bg-transparent",value:o,onChange:u=>r(u.target.value),onKeyDown:u=>{u.key==="Enter"||u.key===","?(u.preventDefault(),c()):u.key==="Backspace"&&o.length===0&&a.length>0&&(u.preventDefault(),t(a.slice(0,-1)))},...l,ref:n})]})});Sn.displayName="InputTags";const ou=x.object({id:x.number().nullable(),title:x.string().min(1).max(250),content:x.string().min(1),show:x.boolean(),tags:x.array(x.string()),img_url:x.string().nullable()}),cu={id:null,show:!1,tags:[],img_url:"",title:"",content:""};function Er({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:l=cu}){const{t:n}=V("notice"),[o,r]=m.useState(!1),c=ye({resolver:_e(ou),defaultValues:l,mode:"onChange",shouldFocusError:!0}),u=new fn({html:!0});return e.jsx(we,{...c,children:e.jsxs(pe,{onOpenChange:r,open:o,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:n(t==="add"?"form.add.title":"form.edit.title")}),e.jsx(Le,{})]}),e.jsx(v,{control:c.control,name:"title",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.title.label")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.fields.title.placeholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"content",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.content.label")}),e.jsx(b,{children:e.jsx(jn,{style:{height:"500px"},value:i.value,renderHTML:d=>u.render(d),onChange:({text:d})=>{i.onChange(d)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"img_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.img_url.label")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.fields.img_url.placeholder"),...i,value:i.value||""})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"show",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.show.label")}),e.jsx("div",{className:"relative py-2",children:e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:i.onChange})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"tags",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.tags.label")}),e.jsx(b,{children:e.jsx(Sn,{value:i.value,onChange:i.onChange,placeholder:n("form.fields.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsxs(Re,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(E,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(E,{type:"submit",onClick:i=>{i.preventDefault(),c.handleSubmit(async d=>{Ht.save(d).then(({data:h})=>{h&&(A.success(n("form.buttons.success")),s(),r(!1))})})()},children:n("form.buttons.submit")})]})]})]})})}function du({table:s,refetch:a,saveOrder:t,isSortMode:l}){const{t:n}=V("notice"),o=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between space-x-2 ",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[!l&&e.jsx(Er,{refetch:a}),!l&&e.jsx(D,{placeholder:n("table.toolbar.search"),value:s.getColumn("title")?.getFilterValue()??"",onChange:r=>s.getColumn("title")?.setFilterValue(r.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),o&&!l&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-9 px-2 lg:px-3",children:[n("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(E,{variant:l?"default":"outline",onClick:t,className:"h-8",size:"sm",children:n(l?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}const mu=s=>{const{t:a}=V("notice");return[{id:"drag-handle",header:"",cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(vc,{className:"h-4 w-4 cursor-move text-muted-foreground"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(B,{variant:"outline",className:"font-mono",children:t.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(ee,{defaultChecked:t.getValue("show"),onCheckedChange:async()=>{const{data:l}=await Ht.updateStatus(t.original.id);l||s()}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.title")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[500px] items-center",children:e.jsx("span",{className:"truncate font-medium",children:t.getValue("title")})}),enableSorting:!1,size:6e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Er,{refetch:s,dialogTrigger:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),type:"edit",defaultFormValues:t.original}),e.jsx(ns,{title:a("table.actions.delete.title"),description:a("table.actions.delete.description"),onConfirm:async()=>{Ht.drop(t.original.id).then(()=>{A.success(a("table.actions.delete.success")),s()})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete.title")})]})})]}),size:100}]};function uu(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,o]=m.useState([]),[r,c]=m.useState([]),[u,i]=m.useState(!1),[d,h]=m.useState({}),[_,T]=m.useState({pageSize:50,pageIndex:0}),[S,C]=m.useState([]),{refetch:N}=ne({queryKey:["notices"],queryFn:async()=>{const{data:w}=await Ht.getList();return C(w),w}});m.useEffect(()=>{l({"drag-handle":u,content:!u,created_at:!u,actions:!u}),T({pageSize:u?99999:50,pageIndex:0})},[u]);const g=(w,I)=>{u&&(w.dataTransfer.setData("text/plain",I.toString()),w.currentTarget.classList.add("opacity-50"))},k=(w,I)=>{if(!u)return;w.preventDefault(),w.currentTarget.classList.remove("bg-muted");const H=parseInt(w.dataTransfer.getData("text/plain"));if(H===I)return;const O=[...S],[K]=O.splice(H,1);O.splice(I,0,K),C(O)},R=async()=>{if(!u){i(!0);return}Ht.sort(S.map(w=>w.id)).then(()=>{A.success("排序保存成功"),i(!1),N()}).finally(()=>{i(!1)})},p=Je({data:S??[],columns:mu(N),state:{sorting:r,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:d,pagination:_},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:o,onColumnVisibilityChange:l,onColumnSizingChange:h,onPaginationChange:T,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx("div",{className:"space-y-4",children:e.jsx(is,{table:p,toolbar:w=>e.jsx(du,{table:w,refetch:N,saveOrder:R,isSortMode:u}),draggable:u,onDragStart:g,onDragEnd:w=>w.currentTarget.classList.remove("opacity-50"),onDragOver:w=>{w.preventDefault(),w.currentTarget.classList.add("bg-muted")},onDragLeave:w=>w.currentTarget.classList.remove("bg-muted"),onDrop:k,showPagination:!u})})}function xu(){const{t:s}=V("notice");return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(uu,{})})]})]})}const hu=Object.freeze(Object.defineProperty({__proto__:null,default:xu},Symbol.toStringTag,{value:"Module"})),pu=x.object({id:x.number().nullable(),language:x.string().max(250),category:x.string().max(250),title:x.string().min(1).max(250),body:x.string().min(1),show:x.boolean()}),gu={id:null,language:"zh-CN",category:"",title:"",body:"",show:!1};function Rr({refreshData:s,dialogTrigger:a,type:t="add",defaultFormValues:l=gu}){const{t:n}=V("knowledge"),[o,r]=m.useState(!1),c=ye({resolver:_e(pu),defaultValues:l,mode:"onChange",shouldFocusError:!0}),u=new fn({html:!0});return m.useEffect(()=>{o&&l.id&&vt.getInfo(l.id).then(({data:i})=>{c.reset(i)})},[l.id,c,o]),e.jsxs(pe,{onOpenChange:r,open:o,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:n(t==="add"?"form.add":"form.edit")}),e.jsx(Le,{})]}),e.jsxs(we,{...c,children:[e.jsx(v,{control:c.control,name:"title",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.title")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.titlePlaceholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"category",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.category")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.categoryPlaceholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"language",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.language")}),e.jsx(b,{children:e.jsxs(X,{value:i.value,onValueChange:i.onChange,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:n("form.languagePlaceholder")})}),e.jsx(J,{children:[{value:"en-US"},{value:"ja-JP"},{value:"ko-KR"},{value:"vi-VN"},{value:"zh-CN"},{value:"zh-TW"}].map(d=>e.jsx($,{value:d.value,className:"cursor-pointer",children:n(`languages.${d.value}`)},d.value))})]})})]})}),e.jsx(v,{control:c.control,name:"body",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.content")}),e.jsx(b,{children:e.jsx(jn,{style:{height:"500px"},value:i.value,renderHTML:d=>u.render(d),onChange:({text:d})=>{i.onChange(d)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"show",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.show")}),e.jsx("div",{className:"relative py-2",children:e.jsx(b,{children:e.jsx(ee,{checked:i.value,onCheckedChange:i.onChange})})}),e.jsx(P,{})]})}),e.jsxs(Re,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(E,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsx(E,{type:"submit",onClick:()=>{c.handleSubmit(i=>{vt.save(i).then(({data:d})=>{d&&(c.reset(),A.success(n("messages.operationSuccess")),r(!1),s())})})()},children:n("form.submit")})]})]})]})]})}function fu({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(o=>n.has(o.value)).map(o=>e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:o.label},o.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(nt,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(lt,{children:"No results found."}),e.jsx(as,{children:t.map(o=>{const r=n.has(o.value);return e.jsxs($e,{onSelect:()=>{r?n.delete(o.value):n.add(o.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",r?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(et,{className:y("h-4 w-4")})}),o.icon&&e.jsx(o.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:o.label}),l?.get(o.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(o.value)})]},o.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(St,{}),e.jsx(as,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}function ju({table:s,refetch:a,saveOrder:t,isSortMode:l}){const n=s.getState().columnFilters.length>0,{t:o}=V("knowledge");return e.jsxs("div",{className:"flex items-center justify-between",children:[l?e.jsx("p",{className:"text-sm text-muted-foreground",children:o("toolbar.sortModeHint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Rr,{refreshData:a}),e.jsx(D,{placeholder:o("toolbar.searchPlaceholder"),value:s.getColumn("title")?.getFilterValue()??"",onChange:r=>s.getColumn("title")?.setFilterValue(r.target.value),className:"h-8 w-[250px]"}),s.getColumn("category")&&e.jsx(fu,{column:s.getColumn("category"),title:o("columns.category"),options:Array.from(new Set(s.getCoreRowModel().rows.map(r=>r.getValue("category")))).map(r=>({label:r,value:r}))}),n&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[o("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(E,{variant:l?"default":"outline",onClick:t,size:"sm",children:o(l?"toolbar.saveSort":"toolbar.editSort")})})]})}const vu=({refetch:s,isSortMode:a=!1})=>{const{t}=V("knowledge");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Na,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.id")}),cell:({row:l})=>e.jsx(B,{variant:"outline",className:"justify-center",children:l.getValue("id")}),enableSorting:!0,size:70},{accessorKey:"show",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.status")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx(ee,{defaultChecked:l.getValue("show"),onCheckedChange:async()=>{vt.updateStatus({id:l.original.id}).then(({data:n})=>{n||s()})}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.title")}),cell:({row:l})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"line-clamp-2 font-medium",children:l.getValue("title")})}),enableSorting:!0,size:600},{accessorKey:"category",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.category")}),cell:({row:l})=>e.jsx(B,{variant:"secondary",className:"max-w-[180px] truncate",children:l.getValue("category")}),enableSorting:!0,size:1800},{id:"actions",header:({column:l})=>e.jsx(z,{className:"justify-end",column:l,title:t("columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[e.jsx(Rr,{refreshData:s,dialogTrigger:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("form.edit")})]}),type:"edit",defaultFormValues:l.original}),e.jsx(ns,{title:t("messages.deleteConfirm"),description:t("messages.deleteDescription"),confirmText:t("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{vt.drop({id:l.original.id}).then(({data:n})=>{n&&(A.success(t("messages.operationSuccess")),s())})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:t("messages.deleteButton")})]})})]}),size:100}]};function bu(){const[s,a]=m.useState([]),[t,l]=m.useState([]),[n,o]=m.useState(!1),[r,c]=m.useState([]),[u,i]=m.useState({"drag-handle":!1}),[d,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:_,isLoading:T,data:S}=ne({queryKey:["knowledge"],queryFn:async()=>{const{data:R}=await vt.getList();return c(R||[]),R}});m.useEffect(()=>{i({"drag-handle":n,actions:!n}),h({pageSize:n?99999:10,pageIndex:0})},[n]);const C=(R,p)=>{n&&(R.dataTransfer.setData("text/plain",p.toString()),R.currentTarget.classList.add("opacity-50"))},N=(R,p)=>{if(!n)return;R.preventDefault(),R.currentTarget.classList.remove("bg-muted");const w=parseInt(R.dataTransfer.getData("text/plain"));if(w===p)return;const I=[...r],[H]=I.splice(w,1);I.splice(p,0,H),c(I)},g=async()=>{n?vt.sort({ids:r.map(R=>R.id)}).then(()=>{_(),o(!1),A.success("排序保存成功")}):o(!0)},k=Je({data:r,columns:vu({refetch:_,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:d},onSortingChange:l,onColumnFiltersChange:a,onColumnVisibilityChange:i,onPaginationChange:h,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(is,{table:k,toolbar:R=>e.jsx(ju,{table:R,refetch:_,saveOrder:g,isSortMode:n}),draggable:n,onDragStart:C,onDragEnd:R=>R.currentTarget.classList.remove("opacity-50"),onDragOver:R=>{R.preventDefault(),R.currentTarget.classList.add("bg-muted")},onDragLeave:R=>R.currentTarget.classList.remove("bg-muted"),onDrop:N,showPagination:!n})}function yu(){const{t:s}=V("knowledge");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2",children:s("title")}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(bu,{})})]})]})}const Nu=Object.freeze(Object.defineProperty({__proto__:null,default:yu},Symbol.toStringTag,{value:"Module"}));function _u(s,a){const[t,l]=m.useState(s);return m.useEffect(()=>{const n=setTimeout(()=>l(s),a);return()=>{clearTimeout(n)}},[s,a]),t}function Ba(s,a){if(s.length===0)return{};if(!a)return{"":s};const t={};return s.forEach(l=>{const n=l[a]||"";t[n]||(t[n]=[]),t[n].push(l)}),t}function wu(s,a){const t=JSON.parse(JSON.stringify(s));for(const[l,n]of Object.entries(t))t[l]=n.filter(o=>!a.find(r=>r.value===o.value));return t}function Cu(s,a){for(const[,t]of Object.entries(s))if(t.some(l=>a.find(n=>n.value===l.value)))return!0;return!1}const Ir=m.forwardRef(({className:s,...a},t)=>bc(n=>n.filtered.count===0)?e.jsx("div",{ref:t,className:y("py-6 text-center text-sm",s),"cmdk-empty":"",role:"presentation",...a}):null);Ir.displayName="CommandEmpty";const _t=m.forwardRef(({value:s,onChange:a,placeholder:t,defaultOptions:l=[],options:n,delay:o,onSearch:r,loadingIndicator:c,emptyIndicator:u,maxSelected:i=Number.MAX_SAFE_INTEGER,onMaxSelected:d,hidePlaceholderWhenSelected:h,disabled:_,groupBy:T,className:S,badgeClassName:C,selectFirstItem:N=!0,creatable:g=!1,triggerSearchOnFocus:k=!1,commandProps:R,inputProps:p,hideClearAllButton:w=!1},I)=>{const H=m.useRef(null),[O,K]=m.useState(!1),oe=m.useRef(!1),[W,te]=m.useState(!1),[q,L]=m.useState(s||[]),[U,ms]=m.useState(Ba(l,T)),[De,le]=m.useState(""),ys=_u(De,o||500);m.useImperativeHandle(I,()=>({selectedValue:[...q],input:H.current,focus:()=>H.current?.focus()}),[q]);const Fs=m.useCallback(se=>{const ie=q.filter(Me=>Me.value!==se.value);L(ie),a?.(ie)},[a,q]),Fa=m.useCallback(se=>{const ie=H.current;ie&&((se.key==="Delete"||se.key==="Backspace")&&ie.value===""&&q.length>0&&(q[q.length-1].fixed||Fs(q[q.length-1])),se.key==="Escape"&&ie.blur())},[Fs,q]);m.useEffect(()=>{s&&L(s)},[s]),m.useEffect(()=>{if(!n||r)return;const se=Ba(n||[],T);JSON.stringify(se)!==JSON.stringify(U)&&ms(se)},[l,n,T,r,U]),m.useEffect(()=>{const se=async()=>{te(!0);const Me=await r?.(ys);ms(Ba(Me||[],T)),te(!1)};(async()=>{!r||!O||(k&&await se(),ys&&await se())})()},[ys,T,O,k]);const Gt=()=>{if(!g||Cu(U,[{value:De,label:De}])||q.find(ie=>ie.value===De))return;const se=e.jsx($e,{value:De,className:"cursor-pointer",onMouseDown:ie=>{ie.preventDefault(),ie.stopPropagation()},onSelect:ie=>{if(q.length>=i){d?.(q.length);return}le("");const Me=[...q,{value:ie,label:ie}];L(Me),a?.(Me)},children:`Create "${De}"`});if(!r&&De.length>0||r&&ys.length>0&&!W)return se},it=m.useCallback(()=>{if(u)return r&&!g&&Object.keys(U).length===0?e.jsx($e,{value:"-",disabled:!0,children:u}):e.jsx(Ir,{children:u})},[g,u,r,U]),Ma=m.useMemo(()=>wu(U,q),[U,q]),Wt=m.useCallback(()=>{if(R?.filter)return R.filter;if(g)return(se,ie)=>se.toLowerCase().includes(ie.toLowerCase())?1:-1},[g,R?.filter]),Oa=m.useCallback(()=>{const se=q.filter(ie=>ie.fixed);L(se),a?.(se)},[a,q]);return e.jsxs(Us,{...R,onKeyDown:se=>{Fa(se),R?.onKeyDown?.(se)},className:y("h-auto overflow-visible bg-transparent",R?.className),shouldFilter:R?.shouldFilter!==void 0?R.shouldFilter:!r,filter:Wt(),children:[e.jsx("div",{className:y("rounded-md border border-input text-sm ring-offset-background focus-within:ring-1 focus-within:ring-ring ",{"px-3 py-2":q.length!==0,"cursor-text":!_&&q.length!==0},S),onClick:()=>{_||H.current?.focus()},children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[q.map(se=>e.jsxs(B,{className:y("data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground","data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",C),"data-fixed":se.fixed,"data-disabled":_||void 0,children:[se.label,e.jsx("button",{className:y("ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",(_||se.fixed)&&"hidden"),onKeyDown:ie=>{ie.key==="Enter"&&Fs(se)},onMouseDown:ie=>{ie.preventDefault(),ie.stopPropagation()},onClick:()=>Fs(se),children:e.jsx(an,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},se.value)),e.jsx(He.Input,{...p,ref:H,value:De,disabled:_,onValueChange:se=>{le(se),p?.onValueChange?.(se)},onBlur:se=>{oe.current===!1&&K(!1),p?.onBlur?.(se)},onFocus:se=>{K(!0),k&&r?.(ys),p?.onFocus?.(se)},placeholder:h&&q.length!==0?"":t,className:y("flex-1 bg-transparent outline-none placeholder:text-muted-foreground",{"w-full":h,"px-3 py-2":q.length===0,"ml-1":q.length!==0},p?.className)}),e.jsx("button",{type:"button",onClick:Oa,className:y((w||_||q.length<1||q.filter(se=>se.fixed).length===q.length)&&"hidden"),children:e.jsx(an,{})})]})}),e.jsx("div",{className:"relative",children:O&&e.jsx(Ks,{className:"absolute top-1 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",onMouseLeave:()=>{oe.current=!1},onMouseEnter:()=>{oe.current=!0},onMouseUp:()=>{H.current?.focus()},children:W?e.jsx(e.Fragment,{children:c}):e.jsxs(e.Fragment,{children:[it(),Gt(),!N&&e.jsx($e,{value:"-",className:"hidden"}),Object.entries(Ma).map(([se,ie])=>e.jsx(as,{heading:se,className:"h-full overflow-auto",children:e.jsx(e.Fragment,{children:ie.map(Me=>e.jsx($e,{value:Me.value,disabled:Me.disable,onMouseDown:Ms=>{Ms.preventDefault(),Ms.stopPropagation()},onSelect:()=>{if(q.length>=i){d?.(q.length);return}le("");const Ms=[...q,Me];L(Ms),a?.(Ms)},className:y("cursor-pointer",Me.disable&&"cursor-default text-muted-foreground"),children:Me.label},Me.value))})},se))]})})})]})});_t.displayName="MultipleSelector";const Su=s=>x.object({id:x.number().optional(),name:x.string().min(2,s("messages.nameValidation.min")).max(50,s("messages.nameValidation.max")).regex(/^[a-zA-Z0-9\u4e00-\u9fa5_-]+$/,s("messages.nameValidation.pattern"))});function Va({refetch:s,dialogTrigger:a,defaultValues:t={name:""},type:l="add"}){const{t:n}=V("group"),o=ye({resolver:_e(Su(n)),defaultValues:t,mode:"onChange"}),[r,c]=m.useState(!1),[u,i]=m.useState(!1),d=async h=>{i(!0),at.save(h).then(()=>{A.success(n(l==="edit"?"messages.updateSuccess":"messages.createSuccess")),s&&s(),o.reset(),c(!1)}).finally(()=>{i(!1)})};return e.jsxs(pe,{open:r,onOpenChange:c,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("span",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:n(l==="edit"?"form.edit":"form.create")}),e.jsx(Le,{children:n(l==="edit"?"form.editDescription":"form.createDescription")})]}),e.jsx(we,{...o,children:e.jsxs("form",{onSubmit:o.handleSubmit(d),className:"space-y-4",children:[e.jsx(v,{control:o.control,name:"name",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.name")}),e.jsx(b,{children:e.jsx(D,{placeholder:n("form.namePlaceholder"),...h,className:"w-full"})}),e.jsx(F,{children:n("form.nameDescription")}),e.jsx(P,{})]})}),e.jsxs(Re,{className:"gap-2",children:[e.jsx(qs,{asChild:!0,children:e.jsx(E,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsxs(E,{type:"submit",disabled:u||!o.formState.isValid,children:[u&&e.jsx(gn,{className:"mr-2 h-4 w-4 animate-spin"}),n(l==="edit"?"form.update":"form.create")]})]})]})})]})]})}const Lr=m.createContext(void 0);function ku({children:s,refetch:a}){const[t,l]=m.useState(!1),[n,o]=m.useState(null),[r,c]=m.useState(re.Shadowsocks);return e.jsx(Lr.Provider,{value:{isOpen:t,setIsOpen:l,editingServer:n,setEditingServer:o,serverType:r,setServerType:c,refetch:a},children:s})}function Vr(){const s=m.useContext(Lr);if(s===void 0)throw new Error("useServerEdit must be used within a ServerEditProvider");return s}function Ga({dialogTrigger:s,value:a,setValue:t,templateType:l}){const{t:n}=V("server");m.useEffect(()=>{console.log(a)},[a]);const[o,r]=m.useState(!1),[c,u]=m.useState(()=>{if(!a||Object.keys(a).length===0)return"";try{return JSON.stringify(a,null,2)}catch{return""}}),[i,d]=m.useState(null),h=g=>{if(!g)return null;try{const k=JSON.parse(g);return typeof k!="object"||k===null?n("network_settings.validation.must_be_object"):null}catch{return n("network_settings.validation.invalid_json")}},_={tcp:{label:"TCP",content:{acceptProxyProtocol:!1,header:{type:"none"}}},"tcp-http":{label:"TCP + HTTP",content:{acceptProxyProtocol:!1,header:{type:"http",request:{version:"1.1",method:"GET",path:["/"],headers:{Host:["www.example.com"]}},response:{version:"1.1",status:"200",reason:"OK"}}}},grpc:{label:"gRPC",content:{serviceName:"GunService"}},ws:{label:"WebSocket",content:{path:"/",headers:{Host:"v2ray.com"}}},httpupgrade:{label:"HttpUpgrade",content:{acceptProxyProtocol:!1,path:"/",host:"xray.com",headers:{key:"value"}}},xhttp:{label:"XHTTP",content:{host:"example.com",path:"/yourpath",mode:"auto",extra:{headers:{},xPaddingBytes:"100-1000",noGRPCHeader:!1,noSSEHeader:!1,scMaxEachPostBytes:1e6,scMinPostsIntervalMs:30,scMaxBufferedPosts:30,xmux:{maxConcurrency:"16-32",maxConnections:0,cMaxReuseTimes:"64-128",cMaxLifetimeMs:0,hMaxRequestTimes:"800-900",hKeepAlivePeriod:0},downloadSettings:{address:"",port:443,network:"xhttp",security:"tls",tlsSettings:{},xhttpSettings:{path:"/yourpath"},sockopt:{}}}}}},T=()=>{switch(l){case"tcp":return["tcp","tcp-http"];case"grpc":return["grpc"];case"ws":return["ws"];case"httpupgrade":return["httpupgrade"];case"xhttp":return["xhttp"];default:return[]}},S=()=>{const g=h(c||"");if(g){A.error(g);return}try{if(!c){t(null),r(!1);return}t(JSON.parse(c)),r(!1)}catch{A.error(n("network_settings.errors.save_failed"))}},C=g=>{u(g),d(h(g))},N=g=>{const k=_[g];if(k){const R=JSON.stringify(k.content,null,2);u(R),d(null)}};return m.useEffect(()=>{o&&console.log(a)},[o,a]),m.useEffect(()=>{o&&a&&Object.keys(a).length>0&&u(JSON.stringify(a,null,2))},[o,a]),e.jsxs(pe,{open:o,onOpenChange:g=>{!g&&o&&S(),r(g)},children:[e.jsx(rs,{asChild:!0,children:s??e.jsx(G,{variant:"link",children:n("network_settings.edit_protocol")})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(ve,{children:e.jsx(ge,{children:n("network_settings.edit_protocol_config")})}),e.jsxs("div",{className:"space-y-4",children:[T().length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:T().map(g=>e.jsx(G,{variant:"outline",size:"sm",onClick:()=>N(g),children:n("network_settings.use_template",{template:_[g].label})},g))}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ts,{className:`min-h-[200px] font-mono text-sm ${i?"border-red-500 focus-visible:ring-red-500":""}`,value:c,placeholder:T().length>0?n("network_settings.json_config_placeholder_with_template"):n("network_settings.json_config_placeholder"),onChange:g=>C(g.target.value)}),i&&e.jsx("p",{className:"text-sm text-red-500",children:i})]})]}),e.jsxs(Re,{className:"gap-2",children:[e.jsx(G,{variant:"outline",onClick:()=>r(!1),children:n("common.cancel")}),e.jsx(G,{onClick:S,disabled:!!i,children:n("common.confirm")})]})]})]})}function qh(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const Tu={},Du=Object.freeze(Object.defineProperty({__proto__:null,default:Tu},Symbol.toStringTag,{value:"Module"})),Hh=Lc(Du),Jn=s=>s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Pu=()=>{try{const s=yc.box.keyPair(),a=Jn(qn.encodeBase64(s.secretKey)),t=Jn(qn.encodeBase64(s.publicKey));return{privateKey:a,publicKey:t}}catch(s){throw console.error("Error generating x25519 key pair:",s),s}},Eu=()=>{try{return Pu()}catch(s){throw console.error("Error generating key pair:",s),s}},Ru=s=>{const a=new Uint8Array(Math.ceil(s/2));return window.crypto.getRandomValues(a),Array.from(a).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,s)},Iu=()=>{const s=Math.floor(Math.random()*8)*2+2;return Ru(s)},Lu=x.object({cipher:x.string().default("aes-128-gcm"),plugin:x.string().optional().default(""),plugin_opts:x.string().optional().default(""),client_fingerprint:x.string().optional().default("chrome")}),Vu=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),Fu=x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),Mu=x.object({version:x.coerce.number().default(2),alpn:x.string().default("h2"),obfs:x.object({open:x.coerce.boolean().default(!1),type:x.string().default("salamander"),password:x.string().default("")}).default({}),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),bandwidth:x.object({up:x.string().default(""),down:x.string().default("")}).default({}),hop_interval:x.number().optional(),port_range:x.string().optional()}),Ou=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),reality_settings:x.object({server_port:x.coerce.number().default(443),server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),public_key:x.string().default(""),private_key:x.string().default(""),short_id:x.string().default("")}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({}),flow:x.string().default("")}),zu=x.object({version:x.coerce.number().default(5),congestion_control:x.string().default("bbr"),alpn:x.array(x.string()).default(["h3"]),udp_relay_mode:x.string().default("native"),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),$u=x.object({}),Au=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),qu=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),Hu=x.object({transport:x.string().default("tcp"),multiplexing:x.string().default("MULTIPLEXING_LOW")}),Uu=x.object({padding_scheme:x.array(x.string()).optional().default([]),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),Te={shadowsocks:{schema:Lu,ciphers:["aes-128-gcm","aes-192-gcm","aes-256-gcm","chacha20-ietf-poly1305","2022-blake3-aes-128-gcm","2022-blake3-aes-256-gcm"],plugins:[{value:"none",label:"None"},{value:"obfs",label:"Simple Obfs"},{value:"v2ray-plugin",label:"V2Ray Plugin"}],clientFingerprints:[{value:"chrome",label:"Chrome"},{value:"firefox",label:"Firefox"},{value:"safari",label:"Safari"},{value:"ios",label:"iOS"}]},vmess:{schema:Vu,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},trojan:{schema:Fu,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},hysteria:{schema:Mu,versions:["1","2"],alpnOptions:["hysteria","http/1.1","h2","h3"]},vless:{schema:Ou,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"},{value:"kcp",label:"mKCP"},{value:"httpupgrade",label:"HttpUpgrade"},{value:"xhttp",label:"XHTTP"}],flowOptions:["none","xtls-rprx-direct","xtls-rprx-splice","xtls-rprx-vision"]},tuic:{schema:zu,versions:["5","4"],congestionControls:["bbr","cubic","new_reno"],alpnOptions:[{value:"h3",label:"HTTP/3"},{value:"h2",label:"HTTP/2"},{value:"http/1.1",label:"HTTP/1.1"}],udpRelayModes:[{value:"native",label:"Native"},{value:"quic",label:"QUIC"}]},socks:{schema:$u},naive:{schema:qu},http:{schema:Au},mieru:{schema:Hu,transportOptions:[{value:"tcp",label:"TCP"},{value:"udp",label:"UDP"}],multiplexingOptions:[{value:"MULTIPLEXING_OFF",label:"Off"},{value:"MULTIPLEXING_LOW",label:"Low"},{value:"MULTIPLEXING_MIDDLE",label:"Middle"},{value:"MULTIPLEXING_HIGH",label:"High"}]},anytls:{schema:Uu,defaultPaddingScheme:["stop=8","0=30-30","1=100-400","2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000","3=9-9,500-1000","4=500-1000","5=500-1000","6=500-1000","7=500-1000"]}},Ku=({serverType:s,value:a,onChange:t})=>{const{t:l}=V("server"),n=s?Te[s]:null,o=n?.schema||x.record(x.any()),r=s?o.parse({}):{},c=ye({resolver:_e(o),defaultValues:r,mode:"onChange"});if(m.useEffect(()=>{if(!a||Object.keys(a).length===0){if(s){const p=o.parse({});c.reset(p)}}else c.reset(a)},[s,a,t,c,o]),m.useEffect(()=>{const p=c.watch(w=>{t(w)});return()=>p.unsubscribe()},[c,t]),!s||!n)return null;const R={shadowsocks:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"cipher",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.cipher.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.shadowsocks.cipher.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.shadowsocks.ciphers.map(w=>e.jsx($,{value:w,children:w},w))})})]})})]})}),e.jsx(v,{control:c.control,name:"plugin",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.plugin.label","插件")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:w=>p.onChange(w==="none"?"":w),value:p.value===""?"none":p.value||"none",children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.shadowsocks.plugin.placeholder","选择插件")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.shadowsocks.plugins.map(w=>e.jsx($,{value:w.value,children:w.label},w.value))})})]})}),e.jsx(F,{children:p.value&&p.value!=="none"&&p.value!==""&&e.jsxs(e.Fragment,{children:[p.value==="obfs"&&l("dynamic_form.shadowsocks.plugin.obfs_hint","提示:配置格式如 obfs=http;obfs-host=www.bing.com;path=/"),p.value==="v2ray-plugin"&&l("dynamic_form.shadowsocks.plugin.v2ray_hint","提示:WebSocket模式格式为 mode=websocket;host=mydomain.me;path=/;tls=true,QUIC模式格式为 mode=quic;host=mydomain.me")]})})]})}),c.watch("plugin")&&c.watch("plugin")!=="none"&&c.watch("plugin")!==""&&e.jsx(v,{control:c.control,name:"plugin_opts",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.plugin_opts.label","插件选项")}),e.jsx(F,{children:l("dynamic_form.shadowsocks.plugin_opts.description","按照 key=value;key2=value2 格式输入插件选项")}),e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:l("dynamic_form.shadowsocks.plugin_opts.placeholder","例如: mode=tls;host=bing.com"),...p})})]})}),(c.watch("plugin")==="shadow-tls"||c.watch("plugin")==="restls")&&e.jsx(v,{control:c.control,name:"client_fingerprint",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.client_fingerprint","客户端指纹")}),e.jsx(b,{children:e.jsxs(X,{value:p.value||"chrome",onValueChange:p.onChange,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.shadowsocks.client_fingerprint_placeholder","选择客户端指纹")})}),e.jsx(J,{children:Te.shadowsocks.clientFingerprints.map(w=>e.jsx($,{value:w.value,children:w.label},w.value))})]})}),e.jsx(F,{children:l("dynamic_form.shadowsocks.client_fingerprint_description","客户端伪装指纹,用于降低被识别风险")})]})})]}),vmess:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vmess.tls.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value?.toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.vmess.tls.placeholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:l("dynamic_form.vmess.tls.disabled")}),e.jsx($,{value:"1",children:l("dynamic_form.vmess.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vmess.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vmess.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vmess.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.vmess.network.label"),e.jsx(Ga,{value:c.watch("network_settings"),setValue:w=>c.setValue("network_settings",w),templateType:c.watch("network")})]}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.vmess.network.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.vmess.networkOptions.map(w=>e.jsx($,{value:w.value,className:"cursor-pointer",children:w.label},w.value))})})]})})]})})]}),trojan:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.trojan.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.trojan.server_name.placeholder"),...p,value:p.value||""})})]})}),e.jsx(v,{control:c.control,name:"allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.trojan.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.trojan.network.label"),e.jsx(Ga,{value:c.watch("network_settings")||{},setValue:w=>c.setValue("network_settings",w),templateType:c.watch("network")||"tcp"})]}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value||"tcp",children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.trojan.network.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.trojan.networkOptions.map(w=>e.jsx($,{value:w.value,className:"cursor-pointer",children:w.label},w.value))})})]})})]})})]}),hysteria:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"version",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.hysteria.version.label")}),e.jsx(b,{children:e.jsxs(X,{value:(p.value||2).toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.hysteria.version.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.hysteria.versions.map(w=>e.jsxs($,{value:w,className:"cursor-pointer",children:["V",w]},w))})})]})})]})}),c.watch("version")==1&&e.jsx(v,{control:c.control,name:"alpn",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.alpn.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value||"h2",onValueChange:p.onChange,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.hysteria.alpn.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.hysteria.alpnOptions.map(w=>e.jsx($,{value:w,children:w},w))})})]})})]})})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"obfs.open",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.label")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})}),!!c.watch("obfs.open")&&e.jsxs(e.Fragment,{children:[c.watch("version")=="2"&&e.jsx(v,{control:c.control,name:"obfs.type",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.type.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value||"salamander",onValueChange:p.onChange,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.hysteria.obfs.type.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:e.jsx($,{value:"salamander",children:l("dynamic_form.hysteria.obfs.type.salamander")})})})]})})]})}),e.jsx(v,{control:c.control,name:"obfs.password",render:({field:p})=>e.jsxs(f,{className:c.watch("version")==2?"w-full":"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.password.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.hysteria.obfs.password.placeholder"),...p,value:p.value||"",className:"pr-9"})}),e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",I=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(H=>w[H%w.length]).join("");c.setValue("obfs.password",I),A.success(l("dynamic_form.hysteria.obfs.password.generate_success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})]})]})})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.tls.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.hysteria.tls.server_name.placeholder"),...p,value:p.value||""})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"bandwidth.up",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.bandwidth.up.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.bandwidth.up.placeholder")+(c.watch("version")==2?l("dynamic_form.hysteria.bandwidth.up.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...p,value:p.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:l("dynamic_form.hysteria.bandwidth.up.suffix")})})]})]})}),e.jsx(v,{control:c.control,name:"bandwidth.down",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.bandwidth.down.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.bandwidth.down.placeholder")+(c.watch("version")==2?l("dynamic_form.hysteria.bandwidth.down.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...p,value:p.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:l("dynamic_form.hysteria.bandwidth.down.suffix")})})]})]})}),e.jsx(e.Fragment,{children:e.jsx(v,{control:c.control,name:"hop_interval",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.hop_interval.label","Hop 间隔 (秒)")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.hop_interval.placeholder","例如: 30"),...p,value:p.value||"",onChange:w=>{const I=w.target.value?parseInt(w.target.value):void 0;p.onChange(I)}})}),e.jsx(F,{children:l("dynamic_form.hysteria.hop_interval.description","Hop 间隔时间,单位为秒")})]})})})]}),vless:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.tls.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value?.toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.vless.tls.placeholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:l("dynamic_form.vless.tls.none")}),e.jsx($,{value:"1",children:l("dynamic_form.vless.tls.tls")}),e.jsx($,{value:"2",children:l("dynamic_form.vless.tls.reality")})]})]})})]})}),c.watch("tls")=="1"&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vless.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),c.watch("tls")==2&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"reality_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.reality_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.server_port",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.server_port.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.reality_settings.server_port.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx("div",{className:"flex items-end gap-2",children:e.jsx(v,{control:c.control,name:"reality_settings.private_key",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.private_key.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{...p,className:"pr-9"})}),e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{try{const w=Eu();c.setValue("reality_settings.private_key",w.privateKey),c.setValue("reality_settings.public_key",w.publicKey),A.success(l("dynamic_form.vless.reality_settings.key_pair.success"))}catch{A.error(l("dynamic_form.vless.reality_settings.key_pair.error"))}},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:key-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(ma,{children:e.jsx(de,{children:e.jsx("p",{children:l("dynamic_form.vless.reality_settings.key_pair.generate")})})})]})]})]})})}),e.jsx(v,{control:c.control,name:"reality_settings.public_key",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.public_key.label")}),e.jsx(b,{children:e.jsx(D,{...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.short_id",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.short_id.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{...p,className:"pr-9",placeholder:l("dynamic_form.vless.reality_settings.short_id.placeholder")})}),e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const w=Iu();c.setValue("reality_settings.short_id",w),A.success(l("dynamic_form.vless.reality_settings.short_id.success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(ma,{children:e.jsx(de,{children:e.jsx("p",{children:l("dynamic_form.vless.reality_settings.short_id.generate")})})})]})]}),e.jsx(F,{className:"text-xs text-muted-foreground",children:l("dynamic_form.vless.reality_settings.short_id.description")})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.vless.network.label"),e.jsx(Ga,{value:c.watch("network_settings"),setValue:w=>c.setValue("network_settings",w),templateType:c.watch("network")})]}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.vless.network.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.vless.networkOptions.map(w=>e.jsx($,{value:w.value,className:"cursor-pointer",children:w.label},w.value))})})]})})]})}),e.jsx(v,{control:c.control,name:"flow",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.flow.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:w=>p.onChange(w==="none"?null:w),value:p.value||"none",children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.vless.flow.placeholder")})}),e.jsx(J,{children:Te.vless.flowOptions.map(w=>e.jsx($,{value:w,children:w},w))})]})})]})})]}),tuic:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"version",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.version.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value?.toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.tuic.version.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.tuic.versions.map(w=>e.jsxs($,{value:w,children:["V",w]},w))})})]})})]})}),e.jsx(v,{control:c.control,name:"congestion_control",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.congestion_control.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.tuic.congestion_control.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.tuic.congestionControls.map(w=>e.jsx($,{value:w,children:w.toUpperCase()},w))})})]})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.tuic.tls.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"alpn",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.alpn.label")}),e.jsx(b,{children:e.jsx(_t,{options:Te.tuic.alpnOptions,onChange:w=>p.onChange(w.map(I=>I.value)),value:Te.tuic.alpnOptions.filter(w=>p.value?.includes(w.value)),placeholder:l("dynamic_form.tuic.tls.alpn.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:l("dynamic_form.tuic.tls.alpn.empty")})})})]})}),e.jsx(v,{control:c.control,name:"udp_relay_mode",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.udp_relay_mode.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.tuic.udp_relay_mode.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.tuic.udpRelayModes.map(w=>e.jsx($,{value:w.value,children:w.label},w.value))})})]})})]})})]}),socks:()=>e.jsx(e.Fragment,{}),naive:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.naive.tls.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value?.toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.naive.tls.placeholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:l("dynamic_form.naive.tls.disabled")}),e.jsx($,{value:"1",children:l("dynamic_form.naive.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.naive.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.naive.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.naive.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]}),http:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.http.tls.label")}),e.jsx(b,{children:e.jsxs(X,{value:p.value?.toString(),onValueChange:w=>p.onChange(Number(w)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.http.tls.placeholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:l("dynamic_form.http.tls.disabled")}),e.jsx($,{value:"1",children:l("dynamic_form.http.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.http.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.http.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.http.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]}),mieru:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"transport",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.mieru.transport.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.mieru.transport.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.mieru.transportOptions.map(w=>e.jsx($,{value:w.value,children:w.label},w.value))})})]})})]})}),e.jsx(v,{control:c.control,name:"multiplexing",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.mieru.multiplexing.label")}),e.jsx(b,{children:e.jsxs(X,{onValueChange:p.onChange,value:p.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dynamic_form.mieru.multiplexing.placeholder")})}),e.jsx(J,{children:e.jsx(Be,{children:Te.mieru.multiplexingOptions.map(w=>e.jsx($,{value:w.value,children:w.label},w.value))})})]})})]})})]}),anytls:()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:c.control,name:"padding_scheme",render:({field:p})=>e.jsxs(f,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(j,{children:l("dynamic_form.anytls.padding_scheme.label","AnyTLS 填充方案")}),e.jsx(G,{type:"button",variant:"outline",size:"sm",onClick:()=>{c.setValue("padding_scheme",Te.anytls.defaultPaddingScheme),A.success(l("dynamic_form.anytls.padding_scheme.default_success","已设置默认填充方案"))},className:"h-7 px-2",children:l("dynamic_form.anytls.padding_scheme.use_default","使用默认方案")})]}),e.jsx(F,{children:l("dynamic_form.anytls.padding_scheme.description","每行一个填充规则,格式如: stop=8, 0=30-30")}),e.jsx(b,{children:e.jsx("textarea",{className:"flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",placeholder:l("dynamic_form.anytls.padding_scheme.placeholder",`例如: +`).filter(Boolean);i.onChange(h),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.emailWhitelist.suffixes.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"recaptcha_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.enable.label")}),e.jsx(M,{children:s("safe.form.recaptcha.enable.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("recaptcha_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"recaptcha_site_key",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.siteKey.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.siteKey.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.recaptcha.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"recaptcha_key",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.key.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.key.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.recaptcha.key.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:n.control,name:"register_limit_by_ip_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.enable.label")}),e.jsx(M,{children:s("safe.form.registerLimit.enable.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("register_limit_by_ip_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"register_limit_count",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.count.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.count.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.registerLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"register_limit_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.expire.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.expire.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.registerLimit.expire.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:n.control,name:"password_limit_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.enable.label")}),e.jsx(M,{children:s("safe.form.passwordLimit.enable.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("password_limit_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"password_limit_count",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.count.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.count.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.passwordLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"password_limit_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.expire.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.expire.placeholder"),...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(M,{children:s("safe.form.passwordLimit.expire.description")}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("safe.form.saving")})]})})}function km(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("safe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("safe.description")})]}),e.jsx(De,{}),e.jsx(Sm,{})]})}const Tm=Object.freeze(Object.defineProperty({__proto__:null,default:km},Symbol.toStringTag,{value:"Module"})),Dm=x.object({plan_change_enable:x.boolean().nullable().default(!1),reset_traffic_method:x.coerce.number().nullable().default(0),surplus_enable:x.boolean().nullable().default(!1),new_order_event_id:x.coerce.number().nullable().default(0),renew_order_event_id:x.coerce.number().nullable().default(0),change_order_event_id:x.coerce.number().nullable().default(0),show_info_to_server_enable:x.boolean().nullable().default(!1),show_protocol_to_server_enable:x.boolean().nullable().default(!1),default_remind_expire:x.boolean().nullable().default(!1),default_remind_traffic:x.boolean().nullable().default(!1),subscribe_path:x.string().nullable().default("s")}),Pm={plan_change_enable:!1,reset_traffic_method:0,surplus_enable:!1,new_order_event_id:0,renew_order_event_id:0,change_order_event_id:0,show_info_to_server_enable:!1,show_protocol_to_server_enable:!1,default_remind_expire:!1,default_remind_traffic:!1,subscribe_path:"s"};function Lm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(Dm),defaultValues:Pm,mode:"onBlur"}),{data:r}=le({queryKey:["settings","subscribe"],queryFn:()=>oe.getSettings("subscribe")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:i=>{i.data&&$.success(s("common.autoSaved"))}});m.useEffect(()=>{if(r?.data?.subscribe){const i=r?.data?.subscribe;Object.entries(i).forEach(([d,h])=>{n.setValue(d,h)}),l.current=i}},[r]);const c=m.useCallback(ke.debounce(async i=>{if(!ke.isEqual(i,l.current)){t(!0);try{await o(i),l.current=i}finally{t(!1)}}},1e3),[o]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(Ce,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"plan_change_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.plan_change_enable.title")}),e.jsx(M,{children:s("subscribe.plan_change_enable.description")}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"reset_traffic_method",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.reset_traffic_method.title")}),e.jsxs(J,{onValueChange:i.onChange,value:i.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择重置方式"})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.reset_traffic_method.options.monthly_first")}),e.jsx(A,{value:"1",children:s("subscribe.reset_traffic_method.options.monthly_reset")}),e.jsx(A,{value:"2",children:s("subscribe.reset_traffic_method.options.no_reset")}),e.jsx(A,{value:"3",children:s("subscribe.reset_traffic_method.options.yearly_first")}),e.jsx(A,{value:"4",children:s("subscribe.reset_traffic_method.options.yearly_reset")})]})]}),e.jsx(M,{children:s("subscribe.reset_traffic_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"surplus_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.surplus_enable.title")}),e.jsx(M,{children:s("subscribe.surplus_enable.description")}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"new_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.new_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(J,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.new_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.new_order_event.options.reset_traffic")})]})]})})}),e.jsx(M,{children:s("subscribe.new_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"renew_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.renew_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(J,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.renew_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.renew_order_event.options.reset_traffic")})]})]})})}),e.jsx(M,{children:s("subscribe.renew_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"change_order_event_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.change_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(b,{children:e.jsxs(J,{onValueChange:i.onChange,value:i.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.change_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.change_order_event.options.reset_traffic")})]})]})})}),e.jsx(M,{children:s("subscribe.change_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"subscribe_path",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.subscribe_path.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:"subscribe",...i,value:i.value||"",onChange:d=>{i.onChange(d),u(n.getValues())}})}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:[s("subscribe.subscribe_path.description"),e.jsx("br",{}),s("subscribe.subscribe_path.current_format",{path:i.value||"s"})]}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"show_info_to_server_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_info_to_server.title")}),e.jsx(M,{children:s("subscribe.show_info_to_server.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"show_protocol_to_server_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_protocol_to_server.title")}),e.jsx(M,{children:s("subscribe.show_protocol_to_server.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value||!1,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function Em(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe.description")})]}),e.jsx(De,{}),e.jsx(Lm,{})]})}const Im=Object.freeze(Object.defineProperty({__proto__:null,default:Em},Symbol.toStringTag,{value:"Module"})),Rm=x.object({invite_force:x.boolean().default(!1),invite_commission:x.coerce.string().default("0"),invite_gen_limit:x.coerce.string().default("0"),invite_never_expire:x.boolean().default(!1),commission_first_time_enable:x.boolean().default(!1),commission_auto_check_enable:x.boolean().default(!1),commission_withdraw_limit:x.coerce.string().default("0"),commission_withdraw_method:x.array(x.string()).default(["支付宝","USDT","Paypal"]),withdraw_close_enable:x.boolean().default(!1),commission_distribution_enable:x.boolean().default(!1),commission_distribution_l1:x.coerce.number().default(0),commission_distribution_l2:x.coerce.number().default(0),commission_distribution_l3:x.coerce.number().default(0)}),Vm={invite_force:!1,invite_commission:"0",invite_gen_limit:"0",invite_never_expire:!1,commission_first_time_enable:!1,commission_auto_check_enable:!1,commission_withdraw_limit:"0",commission_withdraw_method:["支付宝","USDT","Paypal"],withdraw_close_enable:!1,commission_distribution_enable:!1,commission_distribution_l1:0,commission_distribution_l2:0,commission_distribution_l3:0};function Fm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(Rm),defaultValues:Vm,mode:"onBlur"}),{data:r}=le({queryKey:["settings","invite"],queryFn:()=>oe.getSettings("invite")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:i=>{i.data&&$.success(s("common.autoSaved"))}});m.useEffect(()=>{if(r?.data?.invite){const i=r?.data?.invite;Object.entries(i).forEach(([d,h])=>{typeof h=="number"?n.setValue(d,String(h)):n.setValue(d,h)}),l.current=i}},[r]);const c=m.useCallback(ke.debounce(async i=>{if(!ke.isEqual(i,l.current)){t(!0);try{await o(i),l.current=i}finally{t(!1)}}},1e3),[o]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(Ce,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"invite_force",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_force.title")}),e.jsx(M,{children:s("invite.invite_force.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"invite_commission",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_commission.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.invite_commission.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("invite.invite_commission.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"invite_gen_limit",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_gen_limit.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.invite_gen_limit.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("invite.invite_gen_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"invite_never_expire",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_never_expire.title")}),e.jsx(M,{children:s("invite.invite_never_expire.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_first_time_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_first_time.title")}),e.jsx(M,{children:s("invite.commission_first_time.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_auto_check_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_auto_check.title")}),e.jsx(M,{children:s("invite.commission_auto_check.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_withdraw_limit",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_limit.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_limit.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("invite.commission_withdraw_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_withdraw_method",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_method.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_method.placeholder"),...i,value:Array.isArray(i.value)?i.value.join(","):"",onChange:d=>{const h=d.target.value.split(",").filter(Boolean);i.onChange(h),u(n.getValues())}})}),e.jsx(M,{children:s("invite.commission_withdraw_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"withdraw_close_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.withdraw_close.title")}),e.jsx(M,{children:s("invite.withdraw_close.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_enable",render:({field:i})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_distribution.title")}),e.jsx(M,{children:s("invite.commission_distribution.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:d=>{i.onChange(d),u(n.getValues())}})})]})}),n.watch("commission_distribution_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:n.control,name:"commission_distribution_l1",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l1")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_l2",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l2")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"commission_distribution_l3",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:s("invite.commission_distribution.l3")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...i,value:i.value||"",onChange:d=>{const h=d.target.value?Number(d.target.value):0;i.onChange(h),u(n.getValues())}})}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("invite.saving")})]})})}function Mm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("invite.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("invite.description")})]}),e.jsx(De,{}),e.jsx(Fm,{})]})}const Om=Object.freeze(Object.defineProperty({__proto__:null,default:Mm},Symbol.toStringTag,{value:"Module"})),zm=x.object({frontend_theme:x.string().nullable(),frontend_theme_sidebar:x.string().nullable(),frontend_theme_header:x.string().nullable(),frontend_theme_color:x.string().nullable(),frontend_background_url:x.string().url().nullable()}),$m={frontend_theme:"",frontend_theme_sidebar:"",frontend_theme_header:"",frontend_theme_color:"",frontend_background_url:""};function Am(){const{data:s}=le({queryKey:["settings","frontend"],queryFn:()=>oe.getSettings("frontend")}),a=Ne({resolver:we(zm),defaultValues:$m,mode:"onChange"});m.useEffect(()=>{if(s?.data?.frontend){const l=s?.data?.frontend;Object.entries(l).forEach(([n,r])=>{a.setValue(n,r)})}},[s]);function t(l){oe.saveSettings(l).then(({data:n})=>{n&&$.success("更新成功")})}return e.jsx(Ce,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(t),className:"space-y-8",children:[e.jsx(v,{control:a.control,name:"frontend_theme_sidebar",render:({field:l})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"边栏风格"}),e.jsx(M,{children:"边栏风格"})]}),e.jsx(b,{children:e.jsx(Z,{checked:l.value,onCheckedChange:l.onChange})})]})}),e.jsx(v,{control:a.control,name:"frontend_theme_header",render:({field:l})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"头部风格"}),e.jsx(M,{children:"边栏风格"})]}),e.jsx(b,{children:e.jsx(Z,{checked:l.value,onCheckedChange:l.onChange})})]})}),e.jsx(v,{control:a.control,name:"frontend_theme_color",render:({field:l})=>e.jsxs(f,{children:[e.jsx(j,{children:"主题色"}),e.jsxs("div",{className:"relative w-max",children:[e.jsx(b,{children:e.jsxs("select",{className:y(St({variant:"outline"}),"w-[200px] appearance-none font-normal"),...l,children:[e.jsx("option",{value:"default",children:"默认"}),e.jsx("option",{value:"black",children:"黑色"}),e.jsx("option",{value:"blackblue",children:"暗蓝色"}),e.jsx("option",{value:"green",children:"奶绿色"})]})}),e.jsx(jn,{className:"absolute right-3 top-2.5 h-4 w-4 opacity-50"})]}),e.jsx(M,{children:"主题色"}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"frontend_background_url",render:({field:l})=>e.jsxs(f,{children:[e.jsx(j,{children:"背景"}),e.jsx(b,{children:e.jsx(D,{placeholder:"请输入图片地址",...l})}),e.jsx(M,{children:"将会在后台登录页面进行展示。"}),e.jsx(P,{})]})}),e.jsx(L,{type:"submit",children:"保存设置"})]})})}function qm(){return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:"个性化设置"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"自定义系统界面外观,包括主题风格、布局、颜色方案、背景图等个性化选项。"})]}),e.jsx(De,{}),e.jsx(Am,{})]})}const Hm=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"})),Um=x.object({server_pull_interval:x.coerce.number().nullable(),server_push_interval:x.coerce.number().nullable(),server_token:x.string().nullable(),device_limit_mode:x.coerce.number().nullable()}),Km={server_pull_interval:0,server_push_interval:0,server_token:"",device_limit_mode:0};function Bm(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(Um),defaultValues:Km,mode:"onBlur"}),{data:r}=le({queryKey:["settings","server"],queryFn:()=>oe.getSettings("server")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:d=>{d.data&&$.success(s("common.AutoSaved"))}});m.useEffect(()=>{if(r?.data.server){const d=r.data.server;Object.entries(d).forEach(([h,k])=>{n.setValue(h,k)}),l.current=d}},[r]);const c=m.useCallback(ke.debounce(async d=>{if(!ke.isEqual(d,l.current)){t(!0);try{await o(d),l.current=d}finally{t(!1)}}},1e3),[o]),u=m.useCallback(d=>{c(d)},[c]);m.useEffect(()=>{const d=n.watch(h=>{u(h)});return()=>d.unsubscribe()},[n.watch,u]);const i=()=>{const d=Math.floor(Math.random()*17)+16,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let k="";for(let C=0;Ce.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_token.title")}),e.jsx(b,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{placeholder:s("server.server_token.placeholder"),...d,value:d.value||"",className:"pr-10"}),e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(K,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2",onClick:h=>{h.preventDefault(),i()},children:e.jsx(Nc,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"})})}),e.jsx(xe,{children:e.jsx("p",{children:s("server.server_token.generate_tooltip")})})]})})]})}),e.jsx(M,{children:s("server.server_token.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"server_pull_interval",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_pull_interval.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("server.server_pull_interval.placeholder"),...d,value:d.value||"",onChange:h=>{const k=h.target.value?Number(h.target.value):null;d.onChange(k)}})}),e.jsx(M,{children:s("server.server_pull_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"server_push_interval",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.server_push_interval.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("server.server_push_interval.placeholder"),...d,value:d.value||"",onChange:h=>{const k=h.target.value?Number(h.target.value):null;d.onChange(k)}})}),e.jsx(M,{children:s("server.server_push_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"device_limit_mode",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("server.device_limit_mode.title")}),e.jsxs(J,{onValueChange:d.onChange,value:d.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("server.device_limit_mode.placeholder")})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("server.device_limit_mode.strict")}),e.jsx(A,{value:"1",children:s("server.device_limit_mode.relaxed")})]})]}),e.jsx(M,{children:s("server.device_limit_mode.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("server.saving")})]})})}function Gm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("server.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("server.description")})]}),e.jsx(De,{}),e.jsx(Bm,{})]})}const Wm=Object.freeze(Object.defineProperty({__proto__:null,default:Gm},Symbol.toStringTag,{value:"Module"}));function Ym({open:s,onOpenChange:a,result:t}){const l=!t.error;return e.jsx(he,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l?e.jsx(Xl,{className:"h-5 w-5 text-green-500"}):e.jsx(Zl,{className:"h-5 w-5 text-destructive"}),e.jsx(pe,{children:l?"邮件发送成功":"邮件发送失败"})]}),e.jsx(Re,{children:l?"测试邮件已成功发送,请检查收件箱":"发送测试邮件时遇到错误"})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"发送详情"}),e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2 text-sm",children:[e.jsx("div",{className:"text-muted-foreground",children:"收件地址"}),e.jsx("div",{children:t.email}),e.jsx("div",{className:"text-muted-foreground",children:"邮件主题"}),e.jsx("div",{children:t.subject}),e.jsx("div",{className:"text-muted-foreground",children:"模板名称"}),e.jsx("div",{children:t.template_name})]})]}),t.error&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium text-destructive",children:"错误信息"}),e.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive break-all",children:t.error})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"配置信息"}),e.jsx(_t,{className:"h-[200px] rounded-md border p-4",children:e.jsx("div",{className:"grid gap-2 text-sm",children:e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2",children:[e.jsx("div",{className:"text-muted-foreground",children:"驱动"}),e.jsx("div",{children:t.config.driver}),e.jsx("div",{className:"text-muted-foreground",children:"服务器"}),e.jsx("div",{children:t.config.host}),e.jsx("div",{className:"text-muted-foreground",children:"端口"}),e.jsx("div",{children:t.config.port}),e.jsx("div",{className:"text-muted-foreground",children:"加密方式"}),e.jsx("div",{children:t.config.encryption||"无"}),e.jsx("div",{className:"text-muted-foreground",children:"发件人"}),e.jsx("div",{children:t.config.from.address?`${t.config.from.address}${t.config.from.name?` (${t.config.from.name})`:""}`:"未设置"}),e.jsx("div",{className:"text-muted-foreground",children:"用户名"}),e.jsx("div",{children:t.config.username||"未设置"})]})})})]})]})]})})}const Jm=x.object({email_template:x.string().nullable().default("classic"),email_host:x.string().nullable().default(""),email_port:x.coerce.number().nullable().default(465),email_username:x.string().nullable().default(""),email_password:x.string().nullable().default(""),email_encryption:x.string().nullable().default(""),email_from_address:x.string().email().nullable().default(""),remind_mail_enable:x.boolean().nullable().default(!1)});function Qm(){const{t:s}=V("settings"),[a,t]=m.useState(null),[l,n]=m.useState(!1),r=m.useRef(null),[o,c]=m.useState(!1),u=Ne({resolver:we(Jm),defaultValues:{},mode:"onBlur"}),{data:i}=le({queryKey:["settings","email"],queryFn:()=>oe.getSettings("email")}),{data:d}=le({queryKey:["emailTemplate"],queryFn:()=>oe.getEmailTemplate()}),{mutateAsync:h}=fs({mutationFn:oe.saveSettings,onSuccess:N=>{N.data&&$.success(s("common.autoSaved"))}}),{mutate:k,isPending:C}=fs({mutationFn:oe.sendTestMail,onMutate:()=>{t(null),n(!1)},onSuccess:N=>{t(N.data),n(!0),N.data.error?$.error(s("email.test.error")):$.success(s("email.test.success"))}});m.useEffect(()=>{if(i?.data.email){const N=i.data.email;Object.entries(N).forEach(([g,T])=>{u.setValue(g,T)}),r.current=N}},[i]);const S=m.useCallback(ke.debounce(async N=>{if(!ke.isEqual(N,r.current)){c(!0);try{await h(N),r.current=N}finally{c(!1)}}},1e3),[h]),w=m.useCallback(N=>{S(N)},[S]);return m.useEffect(()=>{const N=u.watch(g=>{w(g)});return()=>N.unsubscribe()},[u.watch,w]),e.jsxs(e.Fragment,{children:[e.jsx(Ce,{...u,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"email_host",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_host.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(M,{children:s("email.email_host.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_port",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_port.title")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:s("common.placeholder"),...N,value:N.value||"",onChange:g=>{const T=g.target.value?Number(g.target.value):null;N.onChange(T)}})}),e.jsx(M,{children:s("email.email_port.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_encryption",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_encryption.title")}),e.jsxs(J,{onValueChange:g=>{const T=g==="none"?"":g;N.onChange(T)},value:N.value===""||N.value===null||N.value===void 0?"none":N.value,children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择加密方式"})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"none",children:s("email.email_encryption.none")}),e.jsx(A,{value:"ssl",children:s("email.email_encryption.ssl")}),e.jsx(A,{value:"tls",children:s("email.email_encryption.tls")})]})]}),e.jsx(M,{children:s("email.email_encryption.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_username",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_username.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(M,{children:s("email.email_username.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_password",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_password.title")}),e.jsx(b,{children:e.jsx(D,{type:"password",placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(M,{children:s("email.email_password.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_from_address",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_from.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...N,value:N.value||""})}),e.jsx(M,{children:s("email.email_from.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_template",render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("email.email_template.title")}),e.jsxs(J,{onValueChange:g=>{N.onChange(g),w(u.getValues())},value:N.value||void 0,children:[e.jsx(b,{children:e.jsx(W,{className:"w-[200px]",children:e.jsx(Q,{placeholder:s("email.email_template.placeholder")})})}),e.jsx(Y,{children:d?.data?.map(g=>e.jsx(A,{value:g,children:g},g))})]}),e.jsx(M,{children:s("email.email_template.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"remind_mail_enable",render:({field:N})=>e.jsxs(f,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("email.remind_mail.title")}),e.jsx(M,{children:s("email.remind_mail.description")})]}),e.jsx(b,{children:e.jsx(Z,{checked:N.value||!1,onCheckedChange:g=>{N.onChange(g),w(u.getValues())}})})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{onClick:()=>k(),loading:C,disabled:C,children:s(C?"email.test.sending":"email.test.title")})})]})}),o&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("saving")}),a&&e.jsx(Ym,{open:l,onOpenChange:n,result:a})]})}function Xm(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("email.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("email.description")})]}),e.jsx(De,{}),e.jsx(Qm,{})]})}const Zm=Object.freeze(Object.defineProperty({__proto__:null,default:Xm},Symbol.toStringTag,{value:"Module"})),eu=x.object({telegram_bot_enable:x.boolean().nullable(),telegram_bot_token:x.string().nullable(),telegram_discuss_link:x.string().nullable()}),su={telegram_bot_enable:!1,telegram_bot_token:"",telegram_discuss_link:""};function tu(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(eu),defaultValues:su,mode:"onBlur"}),{data:r}=le({queryKey:["settings","telegram"],queryFn:()=>oe.getSettings("telegram")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:h=>{h.data&&$.success(s("common.autoSaved"))}}),{mutate:c,isPending:u}=fs({mutationFn:oe.setTelegramWebhook,onSuccess:h=>{h.data&&$.success(s("telegram.webhook.success"))}});m.useEffect(()=>{if(r?.data.telegram){const h=r.data.telegram;Object.entries(h).forEach(([k,C])=>{n.setValue(k,C)}),l.current=h}},[r]);const i=m.useCallback(ke.debounce(async h=>{if(!ke.isEqual(h,l.current)){t(!0);try{await o(h),l.current=h}finally{t(!1)}}},1e3),[o]),d=m.useCallback(h=>{i(h)},[i]);return m.useEffect(()=>{const h=n.watch(k=>{d(k)});return()=>h.unsubscribe()},[n.watch,d]),e.jsx(Ce,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"telegram_bot_token",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_token.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("telegram.bot_token.placeholder"),...h,value:h.value||""})}),e.jsx(M,{children:s("telegram.bot_token.description")}),e.jsx(P,{})]})}),n.watch("telegram_bot_token")&&e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.webhook.title")}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(L,{loading:u,disabled:u,onClick:()=>c(),children:s(u?"telegram.webhook.setting":"telegram.webhook.button")}),a&&e.jsx("span",{className:"text-sm text-muted-foreground",children:s("common.saving")})]}),e.jsx(M,{children:s("telegram.webhook.description")}),e.jsx(P,{})]}),e.jsx(v,{control:n.control,name:"telegram_bot_enable",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_enable.title")}),e.jsx(M,{children:s("telegram.bot_enable.description")}),e.jsx(b,{children:e.jsx(Z,{checked:h.value||!1,onCheckedChange:k=>{h.onChange(k),d(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"telegram_discuss_link",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("telegram.discuss_link.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("telegram.discuss_link.placeholder"),...h,value:h.value||""})}),e.jsx(M,{children:s("telegram.discuss_link.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function au(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("telegram.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("telegram.description")})]}),e.jsx(De,{}),e.jsx(tu,{})]})}const nu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),lu=x.object({windows_version:x.string().nullable(),windows_download_url:x.string().nullable(),macos_version:x.string().nullable(),macos_download_url:x.string().nullable(),android_version:x.string().nullable(),android_download_url:x.string().nullable()}),ru={windows_version:"",windows_download_url:"",macos_version:"",macos_download_url:"",android_version:"",android_download_url:""};function iu(){const{t:s}=V("settings"),[a,t]=m.useState(!1),l=m.useRef(null),n=Ne({resolver:we(lu),defaultValues:ru,mode:"onBlur"}),{data:r}=le({queryKey:["settings","app"],queryFn:()=>oe.getSettings("app")}),{mutateAsync:o}=fs({mutationFn:oe.saveSettings,onSuccess:i=>{i.data&&$.success(s("app.save_success"))}});m.useEffect(()=>{if(r?.data.app){const i=r.data.app;Object.entries(i).forEach(([d,h])=>{n.setValue(d,h)}),l.current=i}},[r]);const c=m.useCallback(ke.debounce(async i=>{if(!ke.isEqual(i,l.current)){t(!0);try{await o(i),l.current=i}finally{t(!1)}}},1e3),[o]),u=m.useCallback(i=>{c(i)},[c]);return m.useEffect(()=>{const i=n.watch(d=>{u(d)});return()=>i.unsubscribe()},[n.watch,u]),e.jsx(Ce,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:n.control,name:"windows_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.windows.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"windows_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.windows.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"macos_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.macos.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"macos_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.macos.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"android_version",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.android.version.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.android.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"android_download_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{className:"text-base",children:s("app.android.download.title")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("common.placeholder"),...i,value:i.value||""})}),e.jsx(M,{children:s("app.android.download.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function ou(){const{t:s}=V("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("app.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("app.description")})]}),e.jsx(De,{}),e.jsx(iu,{})]})}const cu=Object.freeze(Object.defineProperty({__proto__:null,default:ou},Symbol.toStringTag,{value:"Module"})),du=s=>x.object({id:x.number().nullable(),name:x.string().min(2,s("form.validation.name.min")).max(30,s("form.validation.name.max")),icon:x.string().optional().nullable(),notify_domain:x.string().refine(t=>!t||/^https?:\/\/\S+/.test(t),s("form.validation.notify_domain.url")).optional().nullable(),handling_fee_fixed:x.coerce.number().min(0).optional().nullable(),handling_fee_percent:x.coerce.number().min(0).max(100).optional().nullable(),payment:x.string().min(1,s("form.validation.payment.required")),config:x.record(x.string(),x.string())}),al={id:null,name:"",icon:"",notify_domain:"",handling_fee_fixed:0,handling_fee_percent:0,payment:"",config:{}};function Mr({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:l=al}){const{t:n}=V("payment"),[r,o]=m.useState(!1),[c,u]=m.useState(!1),[i,d]=m.useState([]),[h,k]=m.useState([]),C=du(n),S=Ne({resolver:we(C),defaultValues:l,mode:"onChange"}),w=S.watch("payment");m.useEffect(()=>{r&&(async()=>{const{data:T}=await et.getMethodList();d(T)})()},[r]),m.useEffect(()=>{if(!w||!r)return;(async()=>{const T={payment:w,...t==="edit"&&{id:Number(S.getValues("id"))}};et.getMethodForm(T).then(({data:E})=>{k(E);const p=E.reduce((_,I)=>(I.field_name&&(_[I.field_name]=I.value??""),_),{});S.setValue("config",p)})})()},[w,r,S,t]);const N=async g=>{u(!0);try{(await et.save(g)).data&&($.success(n("form.messages.success")),S.reset(al),s(),o(!1))}finally{u(!1)}};return e.jsxs(he,{open:r,onOpenChange:o,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(je,{children:e.jsx(pe,{children:n(t==="add"?"form.add.title":"form.edit.title")})}),e.jsx(Ce,{...S,children:e.jsxs("form",{onSubmit:S.handleSubmit(N),className:"space-y-4",children:[e.jsx(v,{control:S.control,name:"name",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:n("form.fields.name.placeholder"),...g})}),e.jsx(M,{children:n("form.fields.name.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"icon",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.icon.label")}),e.jsx(b,{children:e.jsx(D,{...g,value:g.value||"",placeholder:n("form.fields.icon.placeholder")})}),e.jsx(M,{children:n("form.fields.icon.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"notify_domain",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.notify_domain.label")}),e.jsx(b,{children:e.jsx(D,{...g,value:g.value||"",placeholder:n("form.fields.notify_domain.placeholder")})}),e.jsx(M,{children:n("form.fields.notify_domain.description")}),e.jsx(P,{})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(v,{control:S.control,name:"handling_fee_percent",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.handling_fee_percent.label")}),e.jsx(b,{children:e.jsx(D,{type:"number",...g,value:g.value||"",placeholder:n("form.fields.handling_fee_percent.placeholder")})}),e.jsx(P,{})]})}),e.jsx(v,{control:S.control,name:"handling_fee_fixed",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.handling_fee_fixed.label")}),e.jsx(b,{children:e.jsx(D,{type:"number",...g,value:g.value||"",placeholder:n("form.fields.handling_fee_fixed.placeholder")})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:S.control,name:"payment",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.payment.label")}),e.jsxs(J,{onValueChange:g.onChange,defaultValue:g.value,children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.fields.payment.placeholder")})})}),e.jsx(Y,{children:i.map(T=>e.jsx(A,{value:T,children:T},T))})]}),e.jsx(M,{children:n("form.fields.payment.description")}),e.jsx(P,{})]})}),h.length>0&&e.jsx("div",{className:"space-y-4",children:h.map(g=>e.jsx(v,{control:S.control,name:`config.${g.field_name}`,render:({field:T})=>e.jsxs(f,{children:[e.jsx(j,{children:g.label}),e.jsx(b,{children:e.jsx(D,{...T,value:T.value||""})}),e.jsx(P,{})]})},g.field_name))}),e.jsxs(Le,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(L,{type:"submit",disabled:c,children:n("form.buttons.submit")})]})]})})]})]})}function z({column:s,title:a,tooltip:t,className:l}){return s.getCanSort()?e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(L,{variant:"ghost",size:"default",className:y("-ml-3 flex h-8 items-center gap-2 text-nowrap font-medium hover:bg-muted/60",l),onClick:()=>s.toggleSorting(s.getIsSorted()==="asc"),children:[e.jsx("span",{children:a}),t&&e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(Wn,{className:"h-4 w-4 cursor-pointer text-muted-foreground"})}),e.jsx(xe,{children:t})]})}),s.getIsSorted()==="asc"?e.jsx(tn,{className:"h-4 w-4 text-foreground/70"}):s.getIsSorted()==="desc"?e.jsx(an,{className:"h-4 w-4 text-foreground/70"}):e.jsx(_c,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-foreground/70"})]})})}):e.jsxs("div",{className:y("flex items-center space-x-1 text-nowrap py-2 font-medium text-muted-foreground",l),children:[e.jsx("span",{children:a}),t&&e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{children:e.jsx(Wn,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(xe,{children:t})]})})]})}const kn=wc,Or=Cc,mu=Sc,zr=m.forwardRef(({className:s,...a},t)=>e.jsx(sr,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));zr.displayName=sr.displayName;const Ra=m.forwardRef(({className:s,...a},t)=>e.jsxs(mu,{children:[e.jsx(zr,{}),e.jsx(tr,{ref:t,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...a})]}));Ra.displayName=tr.displayName;const Va=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...a});Va.displayName="AlertDialogHeader";const Fa=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Fa.displayName="AlertDialogFooter";const Ma=m.forwardRef(({className:s,...a},t)=>e.jsx(ar,{ref:t,className:y("text-lg font-semibold",s),...a}));Ma.displayName=ar.displayName;const Oa=m.forwardRef(({className:s,...a},t)=>e.jsx(nr,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Oa.displayName=nr.displayName;const za=m.forwardRef(({className:s,...a},t)=>e.jsx(lr,{ref:t,className:y(yt(),s),...a}));za.displayName=lr.displayName;const $a=m.forwardRef(({className:s,...a},t)=>e.jsx(rr,{ref:t,className:y(yt({variant:"outline"}),"mt-2 sm:mt-0",s),...a}));$a.displayName=rr.displayName;function ls({onConfirm:s,children:a,title:t="确认操作",description:l="确定要执行此操作吗?",cancelText:n="取消",confirmText:r="确认",variant:o="default",className:c}){return e.jsxs(kn,{children:[e.jsx(Or,{asChild:!0,children:a}),e.jsxs(Ra,{className:y("sm:max-w-[425px]",c),children:[e.jsxs(Va,{children:[e.jsx(Ma,{children:t}),e.jsx(Oa,{children:l})]}),e.jsxs(Fa,{children:[e.jsx($a,{asChild:!0,children:e.jsx(L,{variant:"outline",children:n})}),e.jsx(za,{asChild:!0,children:e.jsx(L,{variant:o,onClick:s,children:r})})]})]})]})}const $r=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M11.29 15.29a2 2 0 0 0-.12.15a.8.8 0 0 0-.09.18a.6.6 0 0 0-.06.18a1.4 1.4 0 0 0 0 .2a.84.84 0 0 0 .08.38a.9.9 0 0 0 .54.54a.94.94 0 0 0 .76 0a.9.9 0 0 0 .54-.54A1 1 0 0 0 13 16a1 1 0 0 0-.29-.71a1 1 0 0 0-1.42 0M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8 8 0 0 1-8 8m0-13a3 3 0 0 0-2.6 1.5a1 1 0 1 0 1.73 1A1 1 0 0 1 12 9a1 1 0 0 1 0 2a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-.18A3 3 0 0 0 12 7"})}),uu=({refetch:s,isSortMode:a=!1})=>{const{t}=V("payment");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Ta,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.id")}),cell:({row:l})=>e.jsx(G,{variant:"outline",children:l.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"enable",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.enable")}),cell:({row:l})=>e.jsx(Z,{defaultChecked:l.getValue("enable"),onCheckedChange:async()=>{const{data:n}=await et.updateStatus({id:l.original.id});n||s()}}),enableSorting:!1,size:100},{accessorKey:"name",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.name")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:l.getValue("name")})}),enableSorting:!1,size:200},{accessorKey:"payment",header:({column:l})=>e.jsx(z,{column:l,title:t("table.columns.payment")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:l.getValue("payment")})}),enableSorting:!1,size:200},{accessorKey:"notify_url",header:({column:l})=>e.jsxs("div",{className:"flex items-center",children:[e.jsx(z,{column:l,title:t("table.columns.notify_url")}),e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{className:"ml-1",children:e.jsx($r,{className:"h-4 w-4"})}),e.jsx(xe,{children:t("table.columns.notify_url_tooltip")})]})})]}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[300px] truncate font-medium",children:l.getValue("notify_url")})}),enableSorting:!1,size:3e3},{id:"actions",header:({column:l})=>e.jsx(z,{className:"justify-end",column:l,title:t("table.columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Mr,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("table.actions.edit")})]}),type:"edit",defaultFormValues:l.original}),e.jsx(ls,{title:t("table.actions.delete.title"),description:t("table.actions.delete.description"),onConfirm:async()=>{const{data:n}=await et.drop({id:l.original.id});n&&s()},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-destructive/10",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-destructive"}),e.jsx("span",{className:"sr-only",children:t("table.actions.delete.title")})]})})]}),size:100}]};function xu({table:s,refetch:a,saveOrder:t,isSortMode:l}){const{t:n}=V("payment"),r=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between",children:[l?e.jsx("p",{className:"text-sm text-muted-foreground",children:n("table.toolbar.sort.hint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Mr,{refetch:a}),e.jsx(D,{placeholder:n("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:o=>s.getColumn("name")?.setFilterValue(o.target.value),className:"h-8 w-[250px]"}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[n("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:l?"default":"outline",onClick:t,size:"sm",children:n(l?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}function hu(){const[s,a]=m.useState([]),[t,l]=m.useState([]),[n,r]=m.useState(!1),[o,c]=m.useState([]),[u,i]=m.useState({"drag-handle":!1}),[d,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:k}=le({queryKey:["paymentList"],queryFn:async()=>{const{data:g}=await et.getList();return c(g?.map(T=>({...T,enable:!!T.enable}))||[]),g}});m.useEffect(()=>{i({"drag-handle":n,actions:!n}),h({pageSize:n?99999:10,pageIndex:0})},[n]);const C=(g,T)=>{n&&(g.dataTransfer.setData("text/plain",T.toString()),g.currentTarget.classList.add("opacity-50"))},S=(g,T)=>{if(!n)return;g.preventDefault(),g.currentTarget.classList.remove("bg-muted");const E=parseInt(g.dataTransfer.getData("text/plain"));if(E===T)return;const p=[...o],[_]=p.splice(E,1);p.splice(T,0,_),c(p)},w=async()=>{n?et.sort({ids:o.map(g=>g.id)}).then(()=>{k(),r(!1),$.success("排序保存成功")}):r(!0)},N=Je({data:o,columns:uu({refetch:k,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:d},onSortingChange:l,onColumnFiltersChange:a,onColumnVisibilityChange:i,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),initialState:{columnPinning:{right:["actions"]}},pageCount:n?1:void 0});return e.jsx(os,{table:N,toolbar:g=>e.jsx(xu,{table:g,refetch:k,saveOrder:w,isSortMode:n}),draggable:n,onDragStart:C,onDragEnd:g=>g.currentTarget.classList.remove("opacity-50"),onDragOver:g=>{g.preventDefault(),g.currentTarget.classList.add("bg-muted")},onDragLeave:g=>g.currentTarget.classList.remove("bg-muted"),onDrop:S,showPagination:!n})}function pu(){const{t:s}=V("payment");return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{children:[e.jsx("header",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("section",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(hu,{})})]})]})}const gu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"}));function fu({pluginName:s,onClose:a,onSuccess:t}){const{t:l}=V("plugin"),[n,r]=m.useState(!0),[o,c]=m.useState(!1),[u,i]=m.useState(null),d=kc({config:Tc(Dc())}),h=Ne({resolver:we(d),defaultValues:{config:{}}});m.useEffect(()=>{(async()=>{try{const{data:w}=await Ps.getPluginConfig(s);i(w),h.reset({config:Object.fromEntries(Object.entries(w).map(([N,g])=>[N,g.value]))})}catch{$.error(l("messages.configLoadError"))}finally{r(!1)}})()},[s]);const k=async S=>{c(!0);try{await Ps.updatePluginConfig(s,S.config),$.success(l("messages.configSaveSuccess")),t()}catch{$.error(l("messages.configSaveError"))}finally{c(!1)}},C=(S,w)=>{switch(w.type){case"string":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:w.label||w.description}),e.jsx(b,{children:e.jsx(D,{placeholder:w.placeholder,...N})}),w.description&&w.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),e.jsx(P,{})]})},S);case"number":case"percentage":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:w.label||w.description}),e.jsx(b,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{type:"number",placeholder:w.placeholder,...N,onChange:g=>{const T=Number(g.target.value);w.type==="percentage"?N.onChange(Math.min(100,Math.max(0,T))):N.onChange(T)},className:w.type==="percentage"?"pr-8":"",min:w.type==="percentage"?0:void 0,max:w.type==="percentage"?100:void 0,step:w.type==="percentage"?1:void 0}),w.type==="percentage"&&e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:e.jsx(Pc,{className:"h-4 w-4 text-muted-foreground"})})]})}),w.description&&w.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),e.jsx(P,{})]})},S);case"select":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:w.label||w.description}),e.jsxs(J,{onValueChange:N.onChange,defaultValue:N.value,children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:w.placeholder})})}),e.jsx(Y,{children:w.options?.map(g=>e.jsx(A,{value:g.value,children:g.label},g.value))})]}),w.description&&w.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),e.jsx(P,{})]})},S);case"boolean":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:w.label||w.description}),w.description&&w.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:w.description})]}),e.jsx(b,{children:e.jsx(Z,{checked:N.value,onCheckedChange:N.onChange})})]})},S);case"text":return e.jsx(v,{control:h.control,name:`config.${S}`,render:({field:N})=>e.jsxs(f,{children:[e.jsx(j,{children:w.label||w.description}),e.jsx(b,{children:e.jsx(ks,{placeholder:w.placeholder,...N})}),w.description&&w.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),e.jsx(P,{})]})},S);default:return null}};return n?e.jsxs("div",{className:"space-y-4",children:[e.jsx(me,{className:"h-4 w-[200px]"}),e.jsx(me,{className:"h-10 w-full"}),e.jsx(me,{className:"h-4 w-[200px]"}),e.jsx(me,{className:"h-10 w-full"})]}):e.jsx(Ce,{...h,children:e.jsxs("form",{onSubmit:h.handleSubmit(k),className:"space-y-4",children:[u&&Object.entries(u).map(([S,w])=>C(S,w)),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:a,disabled:o,children:l("config.cancel")}),e.jsx(L,{type:"submit",loading:o,disabled:o,children:l("config.save")})]})]})})}function ju(){const{t:s}=V("plugin"),[a,t]=m.useState(null),[l,n]=m.useState(!1),[r,o]=m.useState(null),[c,u]=m.useState(""),[i,d]=m.useState("all"),[h,k]=m.useState(!1),[C,S]=m.useState(!1),[w,N]=m.useState(!1),g=m.useRef(null),{data:T,isLoading:E,refetch:p}=le({queryKey:["pluginList"],queryFn:async()=>{const{data:R}=await Ps.getPluginList();return R}});T&&[...new Set(T.map(R=>R.category||"other"))];const _=T?.filter(R=>{const X=R.name.toLowerCase().includes(c.toLowerCase())||R.description.toLowerCase().includes(c.toLowerCase())||R.code.toLowerCase().includes(c.toLowerCase()),ms=i==="all"||R.category===i;return X&&ms}),I=async R=>{t(R),Ps.installPlugin(R).then(()=>{$.success(s("messages.installSuccess")),p()}).catch(X=>{$.error(X.message||s("messages.installError"))}).finally(()=>{t(null)})},H=async R=>{t(R),Ps.uninstallPlugin(R).then(()=>{$.success(s("messages.uninstallSuccess")),p()}).catch(X=>{$.error(X.message||s("messages.uninstallError"))}).finally(()=>{t(null)})},O=async(R,X)=>{t(R),(X?Ps.disablePlugin:Ps.enablePlugin)(R).then(()=>{$.success(s(X?"messages.disableSuccess":"messages.enableSuccess")),p()}).catch(Te=>{$.error(Te.message||s(X?"messages.disableError":"messages.enableError"))}).finally(()=>{t(null)})},B=R=>{T?.find(X=>X.code===R),o(R),n(!0)},ce=async R=>{if(!R.name.endsWith(".zip")){$.error(s("upload.error.format"));return}k(!0),Ps.uploadPlugin(R).then(()=>{$.success(s("messages.uploadSuccess")),S(!1),p()}).catch(X=>{$.error(X.message||s("messages.uploadError"))}).finally(()=>{k(!1),g.current&&(g.current.value="")})},ee=R=>{R.preventDefault(),R.stopPropagation(),R.type==="dragenter"||R.type==="dragover"?N(!0):R.type==="dragleave"&&N(!1)},te=R=>{R.preventDefault(),R.stopPropagation(),N(!1),R.dataTransfer.files&&R.dataTransfer.files[0]&&ce(R.dataTransfer.files[0])},q=async R=>{t(R),Ps.deletePlugin(R).then(()=>{$.success(s("messages.deleteSuccess")),p()}).catch(X=>{$.error(X.message||s("messages.deleteError"))}).finally(()=>{t(null)})};return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(gn,{className:"h-6 w-6"}),e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{children:[e.jsxs("div",{className:"mb-8 space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"relative max-w-sm flex-1",children:[e.jsx(fn,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(D,{placeholder:s("search.placeholder"),value:c,onChange:R=>u(R.target.value),className:"pl-9"})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs(L,{onClick:()=>S(!0),variant:"outline",className:"shrink-0",size:"sm",children:[e.jsx(Kt,{className:"mr-2 h-4 w-4"}),s("upload.button")]})})]}),e.jsxs(Yt,{defaultValue:"all",className:"w-full",children:[e.jsxs(kt,{children:[e.jsx(es,{value:"all",children:s("tabs.all")}),e.jsx(es,{value:"installed",children:s("tabs.installed")}),e.jsx(es,{value:"available",children:s("tabs.available")})]}),e.jsx(Ls,{value:"all",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:E?e.jsxs(e.Fragment,{children:[e.jsx(Ya,{}),e.jsx(Ya,{}),e.jsx(Ya,{})]}):_?.map(R=>e.jsx(Wa,{plugin:R,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:B,onDelete:q,isLoading:a===R.name},R.name))})}),e.jsx(Ls,{value:"installed",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:_?.filter(R=>R.is_installed).map(R=>e.jsx(Wa,{plugin:R,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:B,onDelete:q,isLoading:a===R.name},R.name))})}),e.jsx(Ls,{value:"available",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:_?.filter(R=>!R.is_installed).map(R=>e.jsx(Wa,{plugin:R,onInstall:I,onUninstall:H,onToggleEnable:O,onOpenConfig:B,onDelete:q,isLoading:a===R.name},R.code))})})]})]}),e.jsx(he,{open:l,onOpenChange:n,children:e.jsxs(ue,{className:"sm:max-w-lg",children:[e.jsxs(je,{children:[e.jsxs(pe,{children:[T?.find(R=>R.code===r)?.name," ",s("config.title")]}),e.jsx(Re,{children:s("config.description")})]}),r&&e.jsx(fu,{pluginName:r,onClose:()=>n(!1),onSuccess:()=>{n(!1),p()}})]})}),e.jsx(he,{open:C,onOpenChange:S,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(je,{children:[e.jsx(pe,{children:s("upload.title")}),e.jsx(Re,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",w&&"border-primary/50 bg-muted/50"),onDragEnter:ee,onDragLeave:ee,onDragOver:ee,onDrop:te,children:[e.jsx("input",{type:"file",ref:g,className:"hidden",accept:".zip",onChange:R=>{const X=R.target.files?.[0];X&&ce(X)}}),h?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Kt,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>g.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})})]})]})}function Wa({plugin:s,onInstall:a,onUninstall:t,onToggleEnable:l,onOpenConfig:n,onDelete:r,isLoading:o}){const{t:c}=V("plugin");return e.jsxs(Ye,{className:"group relative overflow-hidden transition-all hover:shadow-md",children:[e.jsxs(ts,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ns,{children:s.name}),s.is_installed&&e.jsx(G,{variant:s.is_enabled?"success":"secondary",children:s.is_enabled?c("status.enabled"):c("status.disabled")})]}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(gn,{className:"h-4 w-4"}),e.jsx("code",{className:"rounded bg-muted px-1 py-0.5",children:s.code})]}),e.jsxs("div",{children:["v",s.version]})]})]})}),e.jsx(st,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"mt-2",children:s.description}),e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:e.jsxs("div",{className:"flex items-center gap-1",children:[c("author"),": ",s.author]})})]})})]}),e.jsx(as,{children:e.jsx("div",{className:"flex items-center justify-end space-x-2",children:s.is_installed?e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:"outline",size:"sm",onClick:()=>n(s.code),disabled:!s.is_enabled||o,children:[e.jsx(Lc,{className:"mr-2 h-4 w-4"}),c("button.config")]}),e.jsxs(L,{variant:s.is_enabled?"destructive":"default",size:"sm",onClick:()=>l(s.code,s.is_enabled),disabled:o,children:[e.jsx(Ec,{className:"mr-2 h-4 w-4"}),s.is_enabled?c("button.disable"):c("button.enable")]}),e.jsx(ls,{title:c("uninstall.title"),description:c("uninstall.description"),cancelText:c("common:cancel"),confirmText:c("uninstall.button"),variant:"destructive",onConfirm:()=>t(s.code),children:e.jsxs(L,{variant:"outline",size:"sm",className:"text-muted-foreground hover:text-destructive",disabled:o,children:[e.jsx(We,{className:"mr-2 h-4 w-4"}),c("button.uninstall")]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{onClick:()=>a(s.code),disabled:o,loading:o,children:c("button.install")}),e.jsx(ls,{title:c("delete.title"),description:c("delete.description"),cancelText:c("common:cancel"),confirmText:c("delete.button"),variant:"destructive",onConfirm:()=>r(s.code),children:e.jsx(L,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",disabled:o,children:e.jsx(We,{className:"h-4 w-4"})})})]})})})]})}function Ya(){return e.jsxs(Ye,{children:[e.jsxs(ts,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-6 w-[200px]"}),e.jsx(me,{className:"h-6 w-[80px]"})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(me,{className:"h-5 w-[120px]"}),e.jsx(me,{className:"h-5 w-[60px]"})]})]})}),e.jsxs("div",{className:"space-y-2 pt-2",children:[e.jsx(me,{className:"h-4 w-[300px]"}),e.jsx(me,{className:"h-4 w-[150px]"})]})]}),e.jsx(as,{children:e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(me,{className:"h-9 w-[100px]"}),e.jsx(me,{className:"h-9 w-[100px]"}),e.jsx(me,{className:"h-8 w-8"})]})})]})}const vu=Object.freeze(Object.defineProperty({__proto__:null,default:ju},Symbol.toStringTag,{value:"Module"})),bu=(s,a)=>{let t=null;switch(s.field_type){case"input":t=e.jsx(D,{placeholder:s.placeholder,...a});break;case"textarea":t=e.jsx(ks,{placeholder:s.placeholder,...a});break;case"select":t=e.jsx("select",{className:y(yt({variant:"outline"}),"w-full appearance-none font-normal"),...a,children:s.select_options&&Object.keys(s.select_options).map(l=>e.jsx("option",{value:l,children:s.select_options?.[l]},l))});break;default:t=null;break}return t};function yu({themeKey:s,themeInfo:a}){const{t}=V("theme"),[l,n]=m.useState(!1),[r,o]=m.useState(!1),[c,u]=m.useState(!1),i=Ne({defaultValues:a.configs.reduce((k,C)=>(k[C.field_name]="",k),{})}),d=async()=>{o(!0),At.getConfig(s).then(({data:k})=>{Object.entries(k).forEach(([C,S])=>{i.setValue(C,S)})}).finally(()=>{o(!1)})},h=async k=>{u(!0),At.updateConfig(s,k).then(()=>{$.success(t("config.success")),n(!1)}).finally(()=>{u(!1)})};return e.jsxs(he,{open:l,onOpenChange:k=>{n(k),k?d():i.reset()},children:[e.jsx(is,{asChild:!0,children:e.jsx(L,{variant:"outline",children:t("card.configureTheme")})}),e.jsxs(ue,{className:"max-h-[90vh] overflow-auto sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:t("config.title",{name:a.name})}),e.jsx(Re,{children:t("config.description")})]}),r?e.jsx("div",{className:"flex h-40 items-center justify-center",children:e.jsx(fa,{className:"h-6 w-6 animate-spin"})}):e.jsx(Ce,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(h),className:"space-y-4",children:[a.configs.map(k=>e.jsx(v,{control:i.control,name:k.field_name,render:({field:C})=>e.jsxs(f,{children:[e.jsx(j,{children:k.label}),e.jsx(b,{children:bu(k,C)}),e.jsx(P,{})]})},k.field_name)),e.jsxs(Le,{className:"mt-6 gap-2",children:[e.jsx(L,{type:"button",variant:"secondary",onClick:()=>n(!1),children:t("config.cancel")}),e.jsx(L,{type:"submit",loading:c,children:t("config.save")})]})]})})]})]})}function Nu(){const{t:s}=V("theme"),[a,t]=m.useState(null),[l,n]=m.useState(!1),[r,o]=m.useState(!1),[c,u]=m.useState(!1),[i,d]=m.useState(null),h=m.useRef(null),[k,C]=m.useState(0),{data:S,isLoading:w,refetch:N}=le({queryKey:["themeList"],queryFn:async()=>{const{data:O}=await At.getList();return O}}),g=async O=>{t(O),oe.updateSystemConfig({frontend_theme:O}).then(()=>{$.success("主题切换成功"),N()}).finally(()=>{t(null)})},T=async O=>{if(!O.name.endsWith(".zip")){$.error(s("upload.error.format"));return}n(!0),At.upload(O).then(()=>{$.success("主题上传成功"),o(!1),N()}).finally(()=>{n(!1),h.current&&(h.current.value="")})},E=O=>{O.preventDefault(),O.stopPropagation(),O.type==="dragenter"||O.type==="dragover"?u(!0):O.type==="dragleave"&&u(!1)},p=O=>{O.preventDefault(),O.stopPropagation(),u(!1),O.dataTransfer.files&&O.dataTransfer.files[0]&&T(O.dataTransfer.files[0])},_=()=>{i&&C(O=>O===0?i.images.length-1:O-1)},I=()=>{i&&C(O=>O===i.images.length-1?0:O+1)},H=(O,B)=>{C(0),d({name:O,images:B})};return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("div",{className:"mb-2",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-muted-foreground",children:s("description")}),e.jsxs(L,{onClick:()=>o(!0),variant:"outline",className:"ml-4 shrink-0",size:"sm",children:[e.jsx(Kt,{className:"mr-2 h-4 w-4"}),s("upload.button")]})]})]}),e.jsx("section",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3",children:w?e.jsxs(e.Fragment,{children:[e.jsx(nl,{}),e.jsx(nl,{})]}):S?.themes&&Object.entries(S.themes).map(([O,B])=>e.jsx(Ye,{className:"group relative overflow-hidden transition-all hover:shadow-md",style:{backgroundImage:B.background_url?`url(${B.background_url})`:"none",backgroundSize:"cover",backgroundPosition:"center"},children:e.jsxs("div",{className:y("relative z-10 h-full transition-colors",B.background_url?"group-hover:from-background/98 bg-gradient-to-t from-background/95 via-background/80 to-background/60 backdrop-blur-[1px] group-hover:via-background/90 group-hover:to-background/70":"bg-background"),children:[!!B.can_delete&&e.jsx("div",{className:"absolute right-2 top-2",children:e.jsx(ls,{title:s("card.delete.title"),description:s("card.delete.description"),confirmText:s("card.delete.button"),variant:"destructive",onConfirm:async()=>{if(O===S?.active){$.error(s("card.delete.error.active"));return}t(O),At.drop(O).then(()=>{$.success("主题删除成功"),N()}).finally(()=>{t(null)})},children:e.jsx(L,{disabled:a===O,loading:a===O,variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",children:e.jsx(We,{className:"h-4 w-4"})})})}),e.jsxs(ts,{children:[e.jsx(Ns,{children:B.name}),e.jsx(st,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{children:B.description}),B.version&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("card.version",{version:B.version})})]})})]}),e.jsxs(as,{className:"flex items-center justify-end space-x-3",children:[B.images&&Array.isArray(B.images)&&B.images.length>0&&e.jsx(L,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>H(B.name,B.images),children:e.jsx(Ic,{className:"h-4 w-4"})}),e.jsx(yu,{themeKey:O,themeInfo:B}),e.jsx(L,{onClick:()=>g(O),disabled:a===O||O===S.active,loading:a===O,variant:O===S.active?"secondary":"default",children:O===S.active?s("card.currentTheme"):s("card.activateTheme")})]})]})},O))}),e.jsx(he,{open:r,onOpenChange:o,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(je,{children:[e.jsx(pe,{children:s("upload.title")}),e.jsx(Re,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",c&&"border-primary/50 bg-muted/50"),onDragEnter:E,onDragLeave:E,onDragOver:E,onDrop:p,children:[e.jsx("input",{type:"file",ref:h,className:"hidden",accept:".zip",onChange:O=>{const B=O.target.files?.[0];B&&T(B)}}),l?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Kt,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>h.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})}),e.jsx(he,{open:!!i,onOpenChange:O=>{O||(d(null),C(0))},children:e.jsxs(ue,{className:"max-w-4xl",children:[e.jsxs(je,{children:[e.jsxs(pe,{children:[i?.name," ",s("preview.title")]}),e.jsx(Re,{className:"text-center",children:i&&s("preview.imageCount",{current:k+1,total:i.images.length})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-lg border bg-muted",children:i?.images[k]&&e.jsx("img",{src:i.images[k],alt:`${i.name} 预览图 ${k+1}`,className:"h-full w-full object-contain"})}),i&&i.images.length>1&&e.jsxs(e.Fragment,{children:[e.jsx(L,{variant:"outline",size:"icon",className:"absolute left-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:_,children:e.jsx(Rc,{className:"h-4 w-4"})}),e.jsx(L,{variant:"outline",size:"icon",className:"absolute right-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:I,children:e.jsx(Vc,{className:"h-4 w-4"})})]})]}),i&&i.images.length>1&&e.jsx("div",{className:"mt-4 flex gap-2 overflow-x-auto pb-2",children:i.images.map((O,B)=>e.jsx("button",{onClick:()=>C(B),className:y("relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-md border-2",k===B?"border-primary":"border-transparent"),children:e.jsx("img",{src:O,alt:`缩略图 ${B+1}`,className:"h-full w-full object-cover"})},B))})]})})]})]})}function nl(){return e.jsxs(Ye,{children:[e.jsxs(ts,{children:[e.jsx(me,{className:"h-6 w-[200px]"}),e.jsx(me,{className:"h-4 w-[300px]"})]}),e.jsxs(as,{className:"flex items-center justify-end space-x-3",children:[e.jsx(me,{className:"h-10 w-[100px]"}),e.jsx(me,{className:"h-10 w-[100px]"})]})]})}const _u=Object.freeze(Object.defineProperty({__proto__:null,default:Nu},Symbol.toStringTag,{value:"Module"})),Tn=m.forwardRef(({className:s,value:a,onChange:t,...l},n)=>{const[r,o]=m.useState("");m.useEffect(()=>{if(r.includes(",")){const u=new Set([...a,...r.split(",").map(i=>i.trim())]);t(Array.from(u)),o("")}},[r,t,a]);const c=()=>{if(r){const u=new Set([...a,r]);t(Array.from(u)),o("")}};return e.jsxs("div",{className:y(" has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-neutral-950 dark:has-[:focus-visible]:ring-neutral-300 flex w-full flex-wrap gap-2 rounded-md border border-input shadow-sm px-3 py-2 text-sm ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",s),children:[a.map(u=>e.jsxs(G,{variant:"secondary",children:[u,e.jsx(K,{variant:"ghost",size:"icon",className:"ml-2 h-3 w-3",onClick:()=>{t(a.filter(i=>i!==u))},children:e.jsx(rn,{className:"w-3"})})]},u)),e.jsx("input",{className:"flex-1 outline-none placeholder:text-muted-foreground bg-transparent",value:r,onChange:u=>o(u.target.value),onKeyDown:u=>{u.key==="Enter"||u.key===","?(u.preventDefault(),c()):u.key==="Backspace"&&r.length===0&&a.length>0&&(u.preventDefault(),t(a.slice(0,-1)))},...l,ref:n})]})});Tn.displayName="InputTags";const wu=x.object({id:x.number().nullable(),title:x.string().min(1).max(250),content:x.string().min(1),show:x.boolean(),tags:x.array(x.string()),img_url:x.string().nullable()}),Cu={id:null,show:!1,tags:[],img_url:"",title:"",content:""};function Ar({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:l=Cu}){const{t:n}=V("notice"),[r,o]=m.useState(!1),c=Ne({resolver:we(wu),defaultValues:l,mode:"onChange",shouldFocusError:!0}),u=new vn({html:!0});return e.jsx(Ce,{...c,children:e.jsxs(he,{onOpenChange:o,open:r,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:n(t==="add"?"form.add.title":"form.edit.title")}),e.jsx(Re,{})]}),e.jsx(v,{control:c.control,name:"title",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.title.label")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.fields.title.placeholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"content",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.content.label")}),e.jsx(b,{children:e.jsx(bn,{style:{height:"500px"},value:i.value,renderHTML:d=>u.render(d),onChange:({text:d})=>{i.onChange(d)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"img_url",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.img_url.label")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.fields.img_url.placeholder"),...i,value:i.value||""})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"show",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.show.label")}),e.jsx("div",{className:"relative py-2",children:e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:i.onChange})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"tags",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.fields.tags.label")}),e.jsx(b,{children:e.jsx(Tn,{value:i.value,onChange:i.onChange,placeholder:n("form.fields.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsxs(Le,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(L,{type:"submit",onClick:i=>{i.preventDefault(),c.handleSubmit(async d=>{Gt.save(d).then(({data:h})=>{h&&($.success(n("form.buttons.success")),s(),o(!1))})})()},children:n("form.buttons.submit")})]})]})]})})}function Su({table:s,refetch:a,saveOrder:t,isSortMode:l}){const{t:n}=V("notice"),r=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between space-x-2 ",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[!l&&e.jsx(Ar,{refetch:a}),!l&&e.jsx(D,{placeholder:n("table.toolbar.search"),value:s.getColumn("title")?.getFilterValue()??"",onChange:o=>s.getColumn("title")?.setFilterValue(o.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),r&&!l&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-9 px-2 lg:px-3",children:[n("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(L,{variant:l?"default":"outline",onClick:t,className:"h-8",size:"sm",children:n(l?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}const ku=s=>{const{t:a}=V("notice");return[{id:"drag-handle",header:"",cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Fc,{className:"h-4 w-4 cursor-move text-muted-foreground"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(G,{variant:"outline",className:"font-mono",children:t.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:async()=>{const{data:l}=await Gt.updateStatus(t.original.id);l||s()}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.title")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[500px] items-center",children:e.jsx("span",{className:"truncate font-medium",children:t.getValue("title")})}),enableSorting:!1,size:6e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Ar,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),type:"edit",defaultFormValues:t.original}),e.jsx(ls,{title:a("table.actions.delete.title"),description:a("table.actions.delete.description"),onConfirm:async()=>{Gt.drop(t.original.id).then(()=>{$.success(a("table.actions.delete.success")),s()})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete.title")})]})})]}),size:100}]};function Tu(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,r]=m.useState([]),[o,c]=m.useState([]),[u,i]=m.useState(!1),[d,h]=m.useState({}),[k,C]=m.useState({pageSize:50,pageIndex:0}),[S,w]=m.useState([]),{refetch:N}=le({queryKey:["notices"],queryFn:async()=>{const{data:_}=await Gt.getList();return w(_),_}});m.useEffect(()=>{l({"drag-handle":u,content:!u,created_at:!u,actions:!u}),C({pageSize:u?99999:50,pageIndex:0})},[u]);const g=(_,I)=>{u&&(_.dataTransfer.setData("text/plain",I.toString()),_.currentTarget.classList.add("opacity-50"))},T=(_,I)=>{if(!u)return;_.preventDefault(),_.currentTarget.classList.remove("bg-muted");const H=parseInt(_.dataTransfer.getData("text/plain"));if(H===I)return;const O=[...S],[B]=O.splice(H,1);O.splice(I,0,B),w(O)},E=async()=>{if(!u){i(!0);return}Gt.sort(S.map(_=>_.id)).then(()=>{$.success("排序保存成功"),i(!1),N()}).finally(()=>{i(!1)})},p=Je({data:S??[],columns:ku(N),state:{sorting:o,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:d,pagination:k},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:r,onColumnVisibilityChange:l,onColumnSizingChange:h,onPaginationChange:C,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx("div",{className:"space-y-4",children:e.jsx(os,{table:p,toolbar:_=>e.jsx(Su,{table:_,refetch:N,saveOrder:E,isSortMode:u}),draggable:u,onDragStart:g,onDragEnd:_=>_.currentTarget.classList.remove("opacity-50"),onDragOver:_=>{_.preventDefault(),_.currentTarget.classList.add("bg-muted")},onDragLeave:_=>_.currentTarget.classList.remove("bg-muted"),onDrop:T,showPagination:!u})})}function Du(){const{t:s}=V("notice");return e.jsxs(Ve,{children:[e.jsxs(Fe,{className:"flex items-center justify-between",children:[e.jsx(Xe,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Tu,{})})]})]})}const Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Du},Symbol.toStringTag,{value:"Module"})),Lu=x.object({id:x.number().nullable(),language:x.string().max(250),category:x.string().max(250),title:x.string().min(1).max(250),body:x.string().min(1),show:x.boolean()}),Eu={id:null,language:"zh-CN",category:"",title:"",body:"",show:!1};function qr({refreshData:s,dialogTrigger:a,type:t="add",defaultFormValues:l=Eu}){const{t:n}=V("knowledge"),[r,o]=m.useState(!1),c=Ne({resolver:we(Lu),defaultValues:l,mode:"onChange",shouldFocusError:!0}),u=new vn({html:!0});return m.useEffect(()=>{r&&l.id&&bt.getInfo(l.id).then(({data:i})=>{c.reset(i)})},[l.id,c,r]),e.jsxs(he,{onOpenChange:o,open:r,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:n(t==="add"?"form.add":"form.edit")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...c,children:[e.jsx(v,{control:c.control,name:"title",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.title")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.titlePlaceholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"category",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.category")}),e.jsx("div",{className:"relative ",children:e.jsx(b,{children:e.jsx(D,{placeholder:n("form.categoryPlaceholder"),...i})})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"language",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.language")}),e.jsx(b,{children:e.jsxs(J,{value:i.value,onValueChange:i.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.languagePlaceholder")})}),e.jsx(Y,{children:[{value:"en-US"},{value:"ja-JP"},{value:"ko-KR"},{value:"vi-VN"},{value:"zh-CN"},{value:"zh-TW"}].map(d=>e.jsx(A,{value:d.value,className:"cursor-pointer",children:n(`languages.${d.value}`)},d.value))})]})})]})}),e.jsx(v,{control:c.control,name:"body",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.content")}),e.jsx(b,{children:e.jsx(bn,{style:{height:"500px"},value:i.value,renderHTML:d=>u.render(d),onChange:({text:d})=>{i.onChange(d)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:c.control,name:"show",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.show")}),e.jsx("div",{className:"relative py-2",children:e.jsx(b,{children:e.jsx(Z,{checked:i.value,onCheckedChange:i.onChange})})}),e.jsx(P,{})]})}),e.jsxs(Le,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{c.handleSubmit(i=>{bt.save(i).then(({data:d})=>{d&&(c.reset(),$.success(n("messages.operationSuccess")),o(!1),s())})})()},children:n("form.submit")})]})]})]})]})}function Iu({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Da,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(De,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(r=>n.has(r.value)).map(r=>e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:r.label},r.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(it,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(ot,{children:"No results found."}),e.jsx(ns,{children:t.map(r=>{const o=n.has(r.value);return e.jsxs($e,{onSelect:()=>{o?n.delete(r.value):n.add(r.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",o?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(at,{className:y("h-4 w-4")})}),r.icon&&e.jsx(r.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:r.label}),l?.get(r.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(r.value)})]},r.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Tt,{}),e.jsx(ns,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}function Ru({table:s,refetch:a,saveOrder:t,isSortMode:l}){const n=s.getState().columnFilters.length>0,{t:r}=V("knowledge");return e.jsxs("div",{className:"flex items-center justify-between",children:[l?e.jsx("p",{className:"text-sm text-muted-foreground",children:r("toolbar.sortModeHint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(qr,{refreshData:a}),e.jsx(D,{placeholder:r("toolbar.searchPlaceholder"),value:s.getColumn("title")?.getFilterValue()??"",onChange:o=>s.getColumn("title")?.setFilterValue(o.target.value),className:"h-8 w-[250px]"}),s.getColumn("category")&&e.jsx(Iu,{column:s.getColumn("category"),title:r("columns.category"),options:Array.from(new Set(s.getCoreRowModel().rows.map(o=>o.getValue("category")))).map(o=>({label:o,value:o}))}),n&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[r("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:l?"default":"outline",onClick:t,size:"sm",children:r(l?"toolbar.saveSort":"toolbar.editSort")})})]})}const Vu=({refetch:s,isSortMode:a=!1})=>{const{t}=V("knowledge");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Ta,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.id")}),cell:({row:l})=>e.jsx(G,{variant:"outline",className:"justify-center",children:l.getValue("id")}),enableSorting:!0,size:70},{accessorKey:"show",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.status")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:l.getValue("show"),onCheckedChange:async()=>{bt.updateStatus({id:l.original.id}).then(({data:n})=>{n||s()})}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.title")}),cell:({row:l})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"line-clamp-2 font-medium",children:l.getValue("title")})}),enableSorting:!0,size:600},{accessorKey:"category",header:({column:l})=>e.jsx(z,{column:l,title:t("columns.category")}),cell:({row:l})=>e.jsx(G,{variant:"secondary",className:"max-w-[180px] truncate",children:l.getValue("category")}),enableSorting:!0,size:1800},{id:"actions",header:({column:l})=>e.jsx(z,{className:"justify-end",column:l,title:t("columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[e.jsx(qr,{refreshData:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("form.edit")})]}),type:"edit",defaultFormValues:l.original}),e.jsx(ls,{title:t("messages.deleteConfirm"),description:t("messages.deleteDescription"),confirmText:t("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{bt.drop({id:l.original.id}).then(({data:n})=>{n&&($.success(t("messages.operationSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:t("messages.deleteButton")})]})})]}),size:100}]};function Fu(){const[s,a]=m.useState([]),[t,l]=m.useState([]),[n,r]=m.useState(!1),[o,c]=m.useState([]),[u,i]=m.useState({"drag-handle":!1}),[d,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:k,isLoading:C,data:S}=le({queryKey:["knowledge"],queryFn:async()=>{const{data:E}=await bt.getList();return c(E||[]),E}});m.useEffect(()=>{i({"drag-handle":n,actions:!n}),h({pageSize:n?99999:10,pageIndex:0})},[n]);const w=(E,p)=>{n&&(E.dataTransfer.setData("text/plain",p.toString()),E.currentTarget.classList.add("opacity-50"))},N=(E,p)=>{if(!n)return;E.preventDefault(),E.currentTarget.classList.remove("bg-muted");const _=parseInt(E.dataTransfer.getData("text/plain"));if(_===p)return;const I=[...o],[H]=I.splice(_,1);I.splice(p,0,H),c(I)},g=async()=>{n?bt.sort({ids:o.map(E=>E.id)}).then(()=>{k(),r(!1),$.success("排序保存成功")}):r(!0)},T=Je({data:o,columns:Vu({refetch:k,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:d},onSortingChange:l,onColumnFiltersChange:a,onColumnVisibilityChange:i,onPaginationChange:h,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(os,{table:T,toolbar:E=>e.jsx(Ru,{table:E,refetch:k,saveOrder:g,isSortMode:n}),draggable:n,onDragStart:w,onDragEnd:E=>E.currentTarget.classList.remove("opacity-50"),onDragOver:E=>{E.preventDefault(),E.currentTarget.classList.add("bg-muted")},onDragLeave:E=>E.currentTarget.classList.remove("bg-muted"),onDrop:N,showPagination:!n})}function Mu(){const{t:s}=V("knowledge");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2",children:s("title")}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Fu,{})})]})]})}const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Mu},Symbol.toStringTag,{value:"Module"}));function zu(s,a){const[t,l]=m.useState(s);return m.useEffect(()=>{const n=setTimeout(()=>l(s),a);return()=>{clearTimeout(n)}},[s,a]),t}function Ja(s,a){if(s.length===0)return{};if(!a)return{"":s};const t={};return s.forEach(l=>{const n=l[a]||"";t[n]||(t[n]=[]),t[n].push(l)}),t}function $u(s,a){const t=JSON.parse(JSON.stringify(s));for(const[l,n]of Object.entries(t))t[l]=n.filter(r=>!a.find(o=>o.value===r.value));return t}function Au(s,a){for(const[,t]of Object.entries(s))if(t.some(l=>a.find(n=>n.value===l.value)))return!0;return!1}const Hr=m.forwardRef(({className:s,...a},t)=>Mc(n=>n.filtered.count===0)?e.jsx("div",{ref:t,className:y("py-6 text-center text-sm",s),"cmdk-empty":"",role:"presentation",...a}):null);Hr.displayName="CommandEmpty";const wt=m.forwardRef(({value:s,onChange:a,placeholder:t,defaultOptions:l=[],options:n,delay:r,onSearch:o,loadingIndicator:c,emptyIndicator:u,maxSelected:i=Number.MAX_SAFE_INTEGER,onMaxSelected:d,hidePlaceholderWhenSelected:h,disabled:k,groupBy:C,className:S,badgeClassName:w,selectFirstItem:N=!0,creatable:g=!1,triggerSearchOnFocus:T=!1,commandProps:E,inputProps:p,hideClearAllButton:_=!1},I)=>{const H=m.useRef(null),[O,B]=m.useState(!1),ce=m.useRef(!1),[ee,te]=m.useState(!1),[q,R]=m.useState(s||[]),[X,ms]=m.useState(Ja(l,C)),[Te,re]=m.useState(""),us=zu(Te,r||500);m.useImperativeHandle(I,()=>({selectedValue:[...q],input:H.current,focus:()=>H.current?.focus()}),[q]);const Ts=m.useCallback(se=>{const de=q.filter(ae=>ae.value!==se.value);R(de),a?.(de)},[a,q]),Bs=m.useCallback(se=>{const de=H.current;de&&((se.key==="Delete"||se.key==="Backspace")&&de.value===""&&q.length>0&&(q[q.length-1].fixed||Ts(q[q.length-1])),se.key==="Escape"&&de.blur())},[Ts,q]);m.useEffect(()=>{s&&R(s)},[s]),m.useEffect(()=>{if(!n||o)return;const se=Ja(n||[],C);JSON.stringify(se)!==JSON.stringify(X)&&ms(se)},[l,n,C,o,X]),m.useEffect(()=>{const se=async()=>{te(!0);const ae=await o?.(us);ms(Ja(ae||[],C)),te(!1)};(async()=>{!o||!O||(T&&await se(),us&&await se())})()},[us,C,O,T]);const Dt=()=>{if(!g||Au(X,[{value:Te,label:Te}])||q.find(de=>de.value===Te))return;const se=e.jsx($e,{value:Te,className:"cursor-pointer",onMouseDown:de=>{de.preventDefault(),de.stopPropagation()},onSelect:de=>{if(q.length>=i){d?.(q.length);return}re("");const ae=[...q,{value:de,label:de}];R(ae),a?.(ae)},children:`Create "${Te}"`});if(!o&&Te.length>0||o&&us.length>0&&!ee)return se},Jt=m.useCallback(()=>{if(u)return o&&!g&&Object.keys(X).length===0?e.jsx($e,{value:"-",disabled:!0,children:u}):e.jsx(Hr,{children:u})},[g,u,o,X]),Pt=m.useMemo(()=>$u(X,q),[X,q]),Ms=m.useCallback(()=>{if(E?.filter)return E.filter;if(g)return(se,de)=>se.toLowerCase().includes(de.toLowerCase())?1:-1},[g,E?.filter]),qa=m.useCallback(()=>{const se=q.filter(de=>de.fixed);R(se),a?.(se)},[a,q]);return e.jsxs(Us,{...E,onKeyDown:se=>{Bs(se),E?.onKeyDown?.(se)},className:y("h-auto overflow-visible bg-transparent",E?.className),shouldFilter:E?.shouldFilter!==void 0?E.shouldFilter:!o,filter:Ms(),children:[e.jsx("div",{className:y("rounded-md border border-input text-sm ring-offset-background focus-within:ring-1 focus-within:ring-ring ",{"px-3 py-2":q.length!==0,"cursor-text":!k&&q.length!==0},S),onClick:()=>{k||H.current?.focus()},children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[q.map(se=>e.jsxs(G,{className:y("data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground","data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",w),"data-fixed":se.fixed,"data-disabled":k||void 0,children:[se.label,e.jsx("button",{className:y("ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",(k||se.fixed)&&"hidden"),onKeyDown:de=>{de.key==="Enter"&&Ts(se)},onMouseDown:de=>{de.preventDefault(),de.stopPropagation()},onClick:()=>Ts(se),children:e.jsx(rn,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},se.value)),e.jsx(He.Input,{...p,ref:H,value:Te,disabled:k,onValueChange:se=>{re(se),p?.onValueChange?.(se)},onBlur:se=>{ce.current===!1&&B(!1),p?.onBlur?.(se)},onFocus:se=>{B(!0),T&&o?.(us),p?.onFocus?.(se)},placeholder:h&&q.length!==0?"":t,className:y("flex-1 bg-transparent outline-none placeholder:text-muted-foreground",{"w-full":h,"px-3 py-2":q.length===0,"ml-1":q.length!==0},p?.className)}),e.jsx("button",{type:"button",onClick:qa,className:y((_||k||q.length<1||q.filter(se=>se.fixed).length===q.length)&&"hidden"),children:e.jsx(rn,{})})]})}),e.jsx("div",{className:"relative",children:O&&e.jsx(Ks,{className:"absolute top-1 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",onMouseLeave:()=>{ce.current=!1},onMouseEnter:()=>{ce.current=!0},onMouseUp:()=>{H.current?.focus()},children:ee?e.jsx(e.Fragment,{children:c}):e.jsxs(e.Fragment,{children:[Jt(),Dt(),!N&&e.jsx($e,{value:"-",className:"hidden"}),Object.entries(Pt).map(([se,de])=>e.jsx(ns,{heading:se,className:"h-full overflow-auto",children:e.jsx(e.Fragment,{children:de.map(ae=>e.jsx($e,{value:ae.value,disabled:ae.disable,onMouseDown:Gs=>{Gs.preventDefault(),Gs.stopPropagation()},onSelect:()=>{if(q.length>=i){d?.(q.length);return}re("");const Gs=[...q,ae];R(Gs),a?.(Gs)},className:y("cursor-pointer",ae.disable&&"cursor-default text-muted-foreground"),children:ae.label},ae.value))})},se))]})})})]})});wt.displayName="MultipleSelector";const qu=s=>x.object({id:x.number().optional(),name:x.string().min(2,s("messages.nameValidation.min")).max(50,s("messages.nameValidation.max")).regex(/^[a-zA-Z0-9\u4e00-\u9fa5_-]+$/,s("messages.nameValidation.pattern"))});function Aa({refetch:s,dialogTrigger:a,defaultValues:t={name:""},type:l="add"}){const{t:n}=V("group"),r=Ne({resolver:we(qu(n)),defaultValues:t,mode:"onChange"}),[o,c]=m.useState(!1),[u,i]=m.useState(!1),d=async h=>{i(!0),rt.save(h).then(()=>{$.success(n(l==="edit"?"messages.updateSuccess":"messages.createSuccess")),s&&s(),r.reset(),c(!1)}).finally(()=>{i(!1)})};return e.jsxs(he,{open:o,onOpenChange:c,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("span",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:n(l==="edit"?"form.edit":"form.create")}),e.jsx(Re,{children:n(l==="edit"?"form.editDescription":"form.createDescription")})]}),e.jsx(Ce,{...r,children:e.jsxs("form",{onSubmit:r.handleSubmit(d),className:"space-y-4",children:[e.jsx(v,{control:r.control,name:"name",render:({field:h})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.name")}),e.jsx(b,{children:e.jsx(D,{placeholder:n("form.namePlaceholder"),...h,className:"w-full"})}),e.jsx(M,{children:n("form.nameDescription")}),e.jsx(P,{})]})}),e.jsxs(Le,{className:"gap-2",children:[e.jsx(qs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsxs(L,{type:"submit",disabled:u||!r.formState.isValid,children:[u&&e.jsx(fa,{className:"mr-2 h-4 w-4 animate-spin"}),n(l==="edit"?"form.update":"form.create")]})]})]})})]})]})}const Ur=m.createContext(void 0);function Hu({children:s,refetch:a}){const[t,l]=m.useState(!1),[n,r]=m.useState(null),[o,c]=m.useState(ie.Shadowsocks);return e.jsx(Ur.Provider,{value:{isOpen:t,setIsOpen:l,editingServer:n,setEditingServer:r,serverType:o,setServerType:c,refetch:a},children:s})}function Kr(){const s=m.useContext(Ur);if(s===void 0)throw new Error("useServerEdit must be used within a ServerEditProvider");return s}function Qa({dialogTrigger:s,value:a,setValue:t,templateType:l}){const{t:n}=V("server");m.useEffect(()=>{console.log(a)},[a]);const[r,o]=m.useState(!1),[c,u]=m.useState(()=>{if(!a||Object.keys(a).length===0)return"";try{return JSON.stringify(a,null,2)}catch{return""}}),[i,d]=m.useState(null),h=g=>{if(!g)return null;try{const T=JSON.parse(g);return typeof T!="object"||T===null?n("network_settings.validation.must_be_object"):null}catch{return n("network_settings.validation.invalid_json")}},k={tcp:{label:"TCP",content:{acceptProxyProtocol:!1,header:{type:"none"}}},"tcp-http":{label:"TCP + HTTP",content:{acceptProxyProtocol:!1,header:{type:"http",request:{version:"1.1",method:"GET",path:["/"],headers:{Host:["www.example.com"]}},response:{version:"1.1",status:"200",reason:"OK"}}}},grpc:{label:"gRPC",content:{serviceName:"GunService"}},ws:{label:"WebSocket",content:{path:"/",headers:{Host:"v2ray.com"}}},httpupgrade:{label:"HttpUpgrade",content:{acceptProxyProtocol:!1,path:"/",host:"xray.com",headers:{key:"value"}}},xhttp:{label:"XHTTP",content:{host:"example.com",path:"/yourpath",mode:"auto",extra:{headers:{},xPaddingBytes:"100-1000",noGRPCHeader:!1,noSSEHeader:!1,scMaxEachPostBytes:1e6,scMinPostsIntervalMs:30,scMaxBufferedPosts:30,xmux:{maxConcurrency:"16-32",maxConnections:0,cMaxReuseTimes:"64-128",cMaxLifetimeMs:0,hMaxRequestTimes:"800-900",hKeepAlivePeriod:0},downloadSettings:{address:"",port:443,network:"xhttp",security:"tls",tlsSettings:{},xhttpSettings:{path:"/yourpath"},sockopt:{}}}}}},C=()=>{switch(l){case"tcp":return["tcp","tcp-http"];case"grpc":return["grpc"];case"ws":return["ws"];case"httpupgrade":return["httpupgrade"];case"xhttp":return["xhttp"];default:return[]}},S=()=>{const g=h(c||"");if(g){$.error(g);return}try{if(!c){t(null),o(!1);return}t(JSON.parse(c)),o(!1)}catch{$.error(n("network_settings.errors.save_failed"))}},w=g=>{u(g),d(h(g))},N=g=>{const T=k[g];if(T){const E=JSON.stringify(T.content,null,2);u(E),d(null)}};return m.useEffect(()=>{r&&console.log(a)},[r,a]),m.useEffect(()=>{r&&a&&Object.keys(a).length>0&&u(JSON.stringify(a,null,2))},[r,a]),e.jsxs(he,{open:r,onOpenChange:g=>{!g&&r&&S(),o(g)},children:[e.jsx(is,{asChild:!0,children:s??e.jsx(K,{variant:"link",children:n("network_settings.edit_protocol")})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(je,{children:e.jsx(pe,{children:n("network_settings.edit_protocol_config")})}),e.jsxs("div",{className:"space-y-4",children:[C().length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:C().map(g=>e.jsx(K,{variant:"outline",size:"sm",onClick:()=>N(g),children:n("network_settings.use_template",{template:k[g].label})},g))}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ks,{className:`min-h-[200px] font-mono text-sm ${i?"border-red-500 focus-visible:ring-red-500":""}`,value:c,placeholder:C().length>0?n("network_settings.json_config_placeholder_with_template"):n("network_settings.json_config_placeholder"),onChange:g=>w(g.target.value)}),i&&e.jsx("p",{className:"text-sm text-red-500",children:i})]})]}),e.jsxs(Le,{className:"gap-2",children:[e.jsx(K,{variant:"outline",onClick:()=>o(!1),children:n("common.cancel")}),e.jsx(K,{onClick:S,disabled:!!i,children:n("common.confirm")})]})]})]})}function lp(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const Uu={},Ku=Object.freeze(Object.defineProperty({__proto__:null,default:Uu},Symbol.toStringTag,{value:"Module"})),rp=Qc(Ku),ll=s=>s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Bu=()=>{try{const s=Oc.box.keyPair(),a=ll(Yn.encodeBase64(s.secretKey)),t=ll(Yn.encodeBase64(s.publicKey));return{privateKey:a,publicKey:t}}catch(s){throw console.error("Error generating x25519 key pair:",s),s}},Gu=()=>{try{return Bu()}catch(s){throw console.error("Error generating key pair:",s),s}},Wu=s=>{const a=new Uint8Array(Math.ceil(s/2));return window.crypto.getRandomValues(a),Array.from(a).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,s)},Yu=()=>{const s=Math.floor(Math.random()*8)*2+2;return Wu(s)},Ju=x.object({cipher:x.string().default("aes-128-gcm"),plugin:x.string().optional().default(""),plugin_opts:x.string().optional().default(""),client_fingerprint:x.string().optional().default("chrome")}),Qu=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),Xu=x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),Zu=x.object({version:x.coerce.number().default(2),alpn:x.string().default("h2"),obfs:x.object({open:x.coerce.boolean().default(!1),type:x.string().default("salamander"),password:x.string().default("")}).default({}),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),bandwidth:x.object({up:x.string().default(""),down:x.string().default("")}).default({}),hop_interval:x.number().optional(),port_range:x.string().optional()}),ex=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),reality_settings:x.object({server_port:x.coerce.number().default(443),server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),public_key:x.string().default(""),private_key:x.string().default(""),short_id:x.string().default("")}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({}),flow:x.string().default("")}),sx=x.object({version:x.coerce.number().default(5),congestion_control:x.string().default("bbr"),alpn:x.array(x.string()).default(["h3"]),udp_relay_mode:x.string().default("native"),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),tx=x.object({}),ax=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),nx=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),lx=x.object({transport:x.string().default("tcp"),multiplexing:x.string().default("MULTIPLEXING_LOW")}),rx=x.object({padding_scheme:x.array(x.string()).optional().default([]),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),Pe={shadowsocks:{schema:Ju,ciphers:["aes-128-gcm","aes-192-gcm","aes-256-gcm","chacha20-ietf-poly1305","2022-blake3-aes-128-gcm","2022-blake3-aes-256-gcm"],plugins:[{value:"none",label:"None"},{value:"obfs",label:"Simple Obfs"},{value:"v2ray-plugin",label:"V2Ray Plugin"}],clientFingerprints:[{value:"chrome",label:"Chrome"},{value:"firefox",label:"Firefox"},{value:"safari",label:"Safari"},{value:"ios",label:"iOS"}]},vmess:{schema:Qu,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},trojan:{schema:Xu,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},hysteria:{schema:Zu,versions:["1","2"],alpnOptions:["hysteria","http/1.1","h2","h3"]},vless:{schema:ex,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"},{value:"kcp",label:"mKCP"},{value:"httpupgrade",label:"HttpUpgrade"},{value:"xhttp",label:"XHTTP"}],flowOptions:["none","xtls-rprx-direct","xtls-rprx-splice","xtls-rprx-vision"]},tuic:{schema:sx,versions:["5","4"],congestionControls:["bbr","cubic","new_reno"],alpnOptions:[{value:"h3",label:"HTTP/3"},{value:"h2",label:"HTTP/2"},{value:"http/1.1",label:"HTTP/1.1"}],udpRelayModes:[{value:"native",label:"Native"},{value:"quic",label:"QUIC"}]},socks:{schema:tx},naive:{schema:nx},http:{schema:ax},mieru:{schema:lx,transportOptions:[{value:"tcp",label:"TCP"},{value:"udp",label:"UDP"}],multiplexingOptions:[{value:"MULTIPLEXING_OFF",label:"Off"},{value:"MULTIPLEXING_LOW",label:"Low"},{value:"MULTIPLEXING_MIDDLE",label:"Middle"},{value:"MULTIPLEXING_HIGH",label:"High"}]},anytls:{schema:rx,defaultPaddingScheme:["stop=8","0=30-30","1=100-400","2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000","3=9-9,500-1000","4=500-1000","5=500-1000","6=500-1000","7=500-1000"]}},ix=({serverType:s,value:a,onChange:t})=>{const{t:l}=V("server"),n=s?Pe[s]:null,r=n?.schema||x.record(x.any()),o=s?r.parse({}):{},c=Ne({resolver:we(r),defaultValues:o,mode:"onChange"});if(m.useEffect(()=>{if(!a||Object.keys(a).length===0){if(s){const p=r.parse({});c.reset(p)}}else c.reset(a)},[s,a,t,c,r]),m.useEffect(()=>{const p=c.watch(_=>{t(_)});return()=>p.unsubscribe()},[c,t]),!s||!n)return null;const E={shadowsocks:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"cipher",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.cipher.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.shadowsocks.cipher.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.shadowsocks.ciphers.map(_=>e.jsx(A,{value:_,children:_},_))})})]})})]})}),e.jsx(v,{control:c.control,name:"plugin",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.plugin.label","插件")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:_=>p.onChange(_==="none"?"":_),value:p.value===""?"none":p.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.shadowsocks.plugin.placeholder","选择插件")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.shadowsocks.plugins.map(_=>e.jsx(A,{value:_.value,children:_.label},_.value))})})]})}),e.jsx(M,{children:p.value&&p.value!=="none"&&p.value!==""&&e.jsxs(e.Fragment,{children:[p.value==="obfs"&&l("dynamic_form.shadowsocks.plugin.obfs_hint","提示:配置格式如 obfs=http;obfs-host=www.bing.com;path=/"),p.value==="v2ray-plugin"&&l("dynamic_form.shadowsocks.plugin.v2ray_hint","提示:WebSocket模式格式为 mode=websocket;host=mydomain.me;path=/;tls=true,QUIC模式格式为 mode=quic;host=mydomain.me")]})})]})}),c.watch("plugin")&&c.watch("plugin")!=="none"&&c.watch("plugin")!==""&&e.jsx(v,{control:c.control,name:"plugin_opts",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.plugin_opts.label","插件选项")}),e.jsx(M,{children:l("dynamic_form.shadowsocks.plugin_opts.description","按照 key=value;key2=value2 格式输入插件选项")}),e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:l("dynamic_form.shadowsocks.plugin_opts.placeholder","例如: mode=tls;host=bing.com"),...p})})]})}),(c.watch("plugin")==="shadow-tls"||c.watch("plugin")==="restls")&&e.jsx(v,{control:c.control,name:"client_fingerprint",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.shadowsocks.client_fingerprint","客户端指纹")}),e.jsx(b,{children:e.jsxs(J,{value:p.value||"chrome",onValueChange:p.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.shadowsocks.client_fingerprint_placeholder","选择客户端指纹")})}),e.jsx(Y,{children:Pe.shadowsocks.clientFingerprints.map(_=>e.jsx(A,{value:_.value,children:_.label},_.value))})]})}),e.jsx(M,{children:l("dynamic_form.shadowsocks.client_fingerprint_description","客户端伪装指纹,用于降低被识别风险")})]})})]}),vmess:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vmess.tls.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value?.toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.vmess.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:l("dynamic_form.vmess.tls.disabled")}),e.jsx(A,{value:"1",children:l("dynamic_form.vmess.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vmess.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vmess.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vmess.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.vmess.network.label"),e.jsx(Qa,{value:c.watch("network_settings"),setValue:_=>c.setValue("network_settings",_),templateType:c.watch("network")})]}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.vmess.network.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.vmess.networkOptions.map(_=>e.jsx(A,{value:_.value,className:"cursor-pointer",children:_.label},_.value))})})]})})]})})]}),trojan:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.trojan.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.trojan.server_name.placeholder"),...p,value:p.value||""})})]})}),e.jsx(v,{control:c.control,name:"allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.trojan.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.trojan.network.label"),e.jsx(Qa,{value:c.watch("network_settings")||{},setValue:_=>c.setValue("network_settings",_),templateType:c.watch("network")||"tcp"})]}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value||"tcp",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.trojan.network.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.trojan.networkOptions.map(_=>e.jsx(A,{value:_.value,className:"cursor-pointer",children:_.label},_.value))})})]})})]})})]}),hysteria:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"version",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.hysteria.version.label")}),e.jsx(b,{children:e.jsxs(J,{value:(p.value||2).toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.hysteria.version.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.hysteria.versions.map(_=>e.jsxs(A,{value:_,className:"cursor-pointer",children:["V",_]},_))})})]})})]})}),c.watch("version")==1&&e.jsx(v,{control:c.control,name:"alpn",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.alpn.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value||"h2",onValueChange:p.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.hysteria.alpn.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.hysteria.alpnOptions.map(_=>e.jsx(A,{value:_,children:_},_))})})]})})]})})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"obfs.open",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.label")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})}),!!c.watch("obfs.open")&&e.jsxs(e.Fragment,{children:[c.watch("version")=="2"&&e.jsx(v,{control:c.control,name:"obfs.type",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.type.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value||"salamander",onValueChange:p.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.hysteria.obfs.type.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:e.jsx(A,{value:"salamander",children:l("dynamic_form.hysteria.obfs.type.salamander")})})})]})})]})}),e.jsx(v,{control:c.control,name:"obfs.password",render:({field:p})=>e.jsxs(f,{className:c.watch("version")==2?"w-full":"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.obfs.password.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.hysteria.obfs.password.placeholder"),...p,value:p.value||"",className:"pr-9"})}),e.jsx(K,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",I=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(H=>_[H%_.length]).join("");c.setValue("obfs.password",I),$.success(l("dynamic_form.hysteria.obfs.password.generate_success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})]})]})})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.hysteria.tls.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.hysteria.tls.server_name.placeholder"),...p,value:p.value||""})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value||!1,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"bandwidth.up",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.bandwidth.up.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.bandwidth.up.placeholder")+(c.watch("version")==2?l("dynamic_form.hysteria.bandwidth.up.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...p,value:p.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:l("dynamic_form.hysteria.bandwidth.up.suffix")})})]})]})}),e.jsx(v,{control:c.control,name:"bandwidth.down",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.bandwidth.down.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.bandwidth.down.placeholder")+(c.watch("version")==2?l("dynamic_form.hysteria.bandwidth.down.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...p,value:p.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:l("dynamic_form.hysteria.bandwidth.down.suffix")})})]})]})}),e.jsx(e.Fragment,{children:e.jsx(v,{control:c.control,name:"hop_interval",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.hysteria.hop_interval.label","Hop 间隔 (秒)")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dynamic_form.hysteria.hop_interval.placeholder","例如: 30"),...p,value:p.value||"",onChange:_=>{const I=_.target.value?parseInt(_.target.value):void 0;p.onChange(I)}})}),e.jsx(M,{children:l("dynamic_form.hysteria.hop_interval.description","Hop 间隔时间,单位为秒")})]})})})]}),vless:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.tls.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value?.toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.vless.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:l("dynamic_form.vless.tls.none")}),e.jsx(A,{value:"1",children:l("dynamic_form.vless.tls.tls")}),e.jsx(A,{value:"2",children:l("dynamic_form.vless.tls.reality")})]})]})})]})}),c.watch("tls")=="1"&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vless.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),c.watch("tls")==2&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"reality_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.reality_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.server_port",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.server_port.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.vless.reality_settings.server_port.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx("div",{className:"flex items-end gap-2",children:e.jsx(v,{control:c.control,name:"reality_settings.private_key",render:({field:p})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.private_key.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{...p,className:"pr-9"})}),e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(K,{type:"button",variant:"ghost",size:"icon",onClick:()=>{try{const _=Gu();c.setValue("reality_settings.private_key",_.privateKey),c.setValue("reality_settings.public_key",_.publicKey),$.success(l("dynamic_form.vless.reality_settings.key_pair.success"))}catch{$.error(l("dynamic_form.vless.reality_settings.key_pair.error"))}},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:key-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(ja,{children:e.jsx(xe,{children:e.jsx("p",{children:l("dynamic_form.vless.reality_settings.key_pair.generate")})})})]})]})]})})}),e.jsx(v,{control:c.control,name:"reality_settings.public_key",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.public_key.label")}),e.jsx(b,{children:e.jsx(D,{...p})})]})}),e.jsx(v,{control:c.control,name:"reality_settings.short_id",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.reality_settings.short_id.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{children:e.jsx(D,{...p,className:"pr-9",placeholder:l("dynamic_form.vless.reality_settings.short_id.placeholder")})}),e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(K,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const _=Yu();c.setValue("reality_settings.short_id",_),$.success(l("dynamic_form.vless.reality_settings.short_id.success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(ze,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(ja,{children:e.jsx(xe,{children:e.jsx("p",{children:l("dynamic_form.vless.reality_settings.short_id.generate")})})})]})]}),e.jsx(M,{className:"text-xs text-muted-foreground",children:l("dynamic_form.vless.reality_settings.short_id.description")})]})})]}),e.jsx(v,{control:c.control,name:"network",render:({field:p})=>e.jsxs(f,{children:[e.jsxs(j,{children:[l("dynamic_form.vless.network.label"),e.jsx(Qa,{value:c.watch("network_settings"),setValue:_=>c.setValue("network_settings",_),templateType:c.watch("network")})]}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.vless.network.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.vless.networkOptions.map(_=>e.jsx(A,{value:_.value,className:"cursor-pointer",children:_.label},_.value))})})]})})]})}),e.jsx(v,{control:c.control,name:"flow",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.vless.flow.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:_=>p.onChange(_==="none"?null:_),value:p.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.vless.flow.placeholder")})}),e.jsx(Y,{children:Pe.vless.flowOptions.map(_=>e.jsx(A,{value:_,children:_},_))})]})})]})})]}),tuic:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"version",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.version.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value?.toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.tuic.version.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.tuic.versions.map(_=>e.jsxs(A,{value:_,children:["V",_]},_))})})]})})]})}),e.jsx(v,{control:c.control,name:"congestion_control",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.congestion_control.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.tuic.congestion_control.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.tuic.congestionControls.map(_=>e.jsx(A,{value:_,children:_.toUpperCase()},_))})})]})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.tuic.tls.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]}),e.jsx(v,{control:c.control,name:"alpn",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.tls.alpn.label")}),e.jsx(b,{children:e.jsx(wt,{options:Pe.tuic.alpnOptions,onChange:_=>p.onChange(_.map(I=>I.value)),value:Pe.tuic.alpnOptions.filter(_=>p.value?.includes(_.value)),placeholder:l("dynamic_form.tuic.tls.alpn.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:l("dynamic_form.tuic.tls.alpn.empty")})})})]})}),e.jsx(v,{control:c.control,name:"udp_relay_mode",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.tuic.udp_relay_mode.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.tuic.udp_relay_mode.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.tuic.udpRelayModes.map(_=>e.jsx(A,{value:_.value,children:_.label},_.value))})})]})})]})})]}),socks:()=>e.jsx(e.Fragment,{}),naive:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.naive.tls.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value?.toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.naive.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:l("dynamic_form.naive.tls.disabled")}),e.jsx(A,{value:"1",children:l("dynamic_form.naive.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.naive.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.naive.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.naive.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]}),http:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"tls",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.http.tls.label")}),e.jsx(b,{children:e.jsxs(J,{value:p.value?.toString(),onValueChange:_=>p.onChange(Number(_)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.http.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:l("dynamic_form.http.tls.disabled")}),e.jsx(A,{value:"1",children:l("dynamic_form.http.tls.enabled")})]})]})})]})}),c.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls_settings.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.http.tls_settings.server_name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.http.tls_settings.server_name.placeholder"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls_settings.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.http.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]}),mieru:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:c.control,name:"transport",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.mieru.transport.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.mieru.transport.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.mieru.transportOptions.map(_=>e.jsx(A,{value:_.value,children:_.label},_.value))})})]})})]})}),e.jsx(v,{control:c.control,name:"multiplexing",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.mieru.multiplexing.label")}),e.jsx(b,{children:e.jsxs(J,{onValueChange:p.onChange,value:p.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dynamic_form.mieru.multiplexing.placeholder")})}),e.jsx(Y,{children:e.jsx(Be,{children:Pe.mieru.multiplexingOptions.map(_=>e.jsx(A,{value:_.value,children:_.label},_.value))})})]})})]})})]}),anytls:()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:c.control,name:"padding_scheme",render:({field:p})=>e.jsxs(f,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(j,{children:l("dynamic_form.anytls.padding_scheme.label","AnyTLS 填充方案")}),e.jsx(K,{type:"button",variant:"outline",size:"sm",onClick:()=>{c.setValue("padding_scheme",Pe.anytls.defaultPaddingScheme),$.success(l("dynamic_form.anytls.padding_scheme.default_success","已设置默认填充方案"))},className:"h-7 px-2",children:l("dynamic_form.anytls.padding_scheme.use_default","使用默认方案")})]}),e.jsx(M,{children:l("dynamic_form.anytls.padding_scheme.description","每行一个填充规则,格式如: stop=8, 0=30-30")}),e.jsx(b,{children:e.jsx("textarea",{className:"flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",placeholder:l("dynamic_form.anytls.padding_scheme.placeholder",`例如: stop=8 0=30-30 1=100-400 2=400-500,c,500-1000`),...p,value:Array.isArray(p.value)?p.value.join(` -`):"",onChange:w=>{const H=w.target.value.split(` -`).filter(O=>O.trim()!=="");p.onChange(H)}})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.anytls.tls.server_name.label","SNI")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.anytls.tls.server_name.placeholder","服务器名称"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.anytls.tls.allow_insecure","允许不安全连接")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(ee,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]})})};return e.jsx(be,{children:R[s]?.()})};function Bu(){const{t:s}=V("server"),a=x.object({id:x.number().optional().nullable(),specific_key:x.string().optional().nullable(),code:x.string().optional(),show:x.boolean().optional().nullable(),name:x.string().min(1,s("form.name.error")),rate:x.string().min(1,s("form.rate.error")).refine(I=>!isNaN(parseFloat(I))&&isFinite(Number(I)),{message:s("form.rate.error_numeric")}).refine(I=>parseFloat(I)>=0,{message:s("form.rate.error_gte_zero")}),tags:x.array(x.string()).default([]),excludes:x.array(x.string()).default([]),ips:x.array(x.string()).default([]),group_ids:x.array(x.string()).default([]),host:x.string().min(1,s("form.host.error")),port:x.string().min(1,s("form.port.error")),server_port:x.string().min(1,s("form.server_port.error")),parent_id:x.string().default("0").nullable(),route_ids:x.array(x.string()).default([]),protocol_settings:x.record(x.any()).default({}).nullable()}),t={id:null,specific_key:null,code:"",show:!1,name:"",rate:"1",tags:[],excludes:[],ips:[],group_ids:[],host:"",port:"",server_port:"",parent_id:"0",route_ids:[],protocol_settings:null},{isOpen:l,setIsOpen:n,editingServer:o,setEditingServer:r,serverType:c,setServerType:u,refetch:i}=Vr(),[d,h]=m.useState([]),[_,T]=m.useState([]),[S,C]=m.useState([]),N=ye({resolver:_e(a),defaultValues:t,mode:"onChange"});m.useEffect(()=>{g()},[l]),m.useEffect(()=>{o?.type&&o.type!==c&&u(o.type)},[o,c,u]),m.useEffect(()=>{o?o.type===c&&N.reset({...t,...o}):N.reset({...t,protocol_settings:Te[c].schema.parse({})})},[o,N,c]);const g=async()=>{if(!l)return;const[I,H,O]=await Promise.all([at.getList(),Sa.getList(),Js.getList()]);h(I.data?.map(K=>({label:K.name,value:K.id.toString()}))||[]),T(H.data?.map(K=>({label:K.remarks,value:K.id.toString()}))||[]),C(O.data||[])},k=m.useMemo(()=>S?.filter(I=>(I.parent_id===0||I.parent_id===null)&&I.type===c&&I.id!==N.watch("id")),[c,S,N]),R=()=>e.jsxs(Es,{children:[e.jsx(Rs,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:s("form.add_node")})]})}),e.jsx(Cs,{align:"start",children:e.jsx(jd,{children:cs.map(({type:I,label:H})=>e.jsx(Ne,{onClick:()=>{u(I),n(!0)},className:"cursor-pointer",children:e.jsx(B,{variant:"outline",className:"text-white",style:{background:Ge[I]},children:H})},I))})})]}),p=()=>{n(!1),r(null),N.reset(t)},w=async()=>{const I=N.getValues();(await Js.save({...I,type:c})).data&&(p(),A.success(s("form.success")),i())};return e.jsxs(pe,{open:l,onOpenChange:p,children:[R(),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:s(o?"form.edit_node":"form.new_node")}),e.jsx(Le,{})]}),e.jsxs(we,{...N,children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:N.control,name:"name",render:({field:I})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:s("form.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.name.placeholder"),...I})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"rate",render:({field:I})=>e.jsxs(f,{className:"flex-[1]",children:[e.jsx(j,{children:s("form.rate.label")}),e.jsx("div",{className:"relative flex",children:e.jsx(b,{children:e.jsx(D,{type:"number",min:"0",step:"0.1",...I})})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:N.control,name:"code",render:({field:I})=>e.jsxs(f,{children:[e.jsxs(j,{children:[s("form.code.label"),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:s("form.code.optional")})]}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.code.placeholder"),...I,value:I.value||""})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"tags",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.tags.label")}),e.jsx(b,{children:e.jsx(Sn,{value:I.value,onChange:I.onChange,placeholder:s("form.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"group_ids",render:({field:I})=>e.jsxs(f,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[s("form.groups.label"),e.jsx(Va,{dialogTrigger:e.jsx(E,{variant:"link",children:s("form.groups.add")}),refetch:g})]}),e.jsx(b,{children:e.jsx(_t,{options:d,onChange:H=>I.onChange(H.map(O=>O.value)),value:d?.filter(H=>I.value.includes(H.value)),placeholder:s("form.groups.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.groups.empty")})})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:N.control,name:"host",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.host.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.host.placeholder"),...I})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(v,{control:N.control,name:"port",render:({field:I})=>e.jsxs(f,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.port.label"),e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(ze,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(ma,{children:e.jsx(de,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.port.tooltip")})})})]})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(b,{children:e.jsx(D,{placeholder:s("form.port.placeholder"),...I})}),e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(E,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0 text-muted-foreground/50 hover:text-muted-foreground",onClick:()=>{const H=I.value;H&&N.setValue("server_port",H)},children:e.jsx(ze,{icon:"tabler:arrows-right",className:"size-3"})})}),e.jsx(de,{side:"right",children:e.jsx("p",{children:s("form.port.sync")})})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"server_port",render:({field:I})=>e.jsxs(f,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.server_port.label"),e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(ze,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(ma,{children:e.jsx(de,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.server_port.tooltip")})})})]})})]}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.server_port.placeholder"),...I})}),e.jsx(P,{})]})})]})]}),l&&e.jsx(Ku,{serverType:c,value:N.watch("protocol_settings"),onChange:I=>N.setValue("protocol_settings",I,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}),e.jsx(v,{control:N.control,name:"parent_id",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.parent.label")}),e.jsxs(X,{onValueChange:I.onChange,value:I.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:s("form.parent.placeholder")})})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("form.parent.none")}),k?.map(H=>e.jsx($,{value:H.id.toString(),className:"cursor-pointer",children:H.name},H.id))]})]}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"route_ids",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.route.label")}),e.jsx(b,{children:e.jsx(_t,{options:_,onChange:H=>I.onChange(H.map(O=>O.value)),value:_?.filter(H=>I.value.includes(H.value)),placeholder:s("form.route.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.route.empty")})})}),e.jsx(P,{})]})})]}),e.jsxs(Re,{className:"mt-6 flex flex-col sm:flex-row gap-2 sm:gap-0",children:[e.jsx(E,{type:"button",variant:"outline",onClick:p,className:"w-full sm:w-auto",children:s("form.cancel")}),e.jsx(E,{type:"submit",onClick:w,className:"w-full sm:w-auto",children:s("form.submit")})]})]})]})]})}function Qn({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(o=>n.has(o.value)).map(o=>e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:o.label},o.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(nt,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(lt,{children:"No results found."}),e.jsx(as,{children:t.map(o=>{const r=n.has(o.value);return e.jsxs($e,{onSelect:()=>{r?n.delete(o.value):n.add(o.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},className:"cursor-pointer",children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",r?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(et,{className:y("h-4 w-4")})}),o.icon&&e.jsx(o.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${o.color}`}),e.jsx("span",{children:o.label}),l?.get(o.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(o.value)})]},o.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(St,{}),e.jsx(as,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center cursor-pointer",children:"Clear filters"})})]})]})]})})]})}const Gu=[{value:re.Shadowsocks,label:cs.find(s=>s.type===re.Shadowsocks)?.label,color:Ge[re.Shadowsocks]},{value:re.Vmess,label:cs.find(s=>s.type===re.Vmess)?.label,color:Ge[re.Vmess]},{value:re.Trojan,label:cs.find(s=>s.type===re.Trojan)?.label,color:Ge[re.Trojan]},{value:re.Hysteria,label:cs.find(s=>s.type===re.Hysteria)?.label,color:Ge[re.Hysteria]},{value:re.Vless,label:cs.find(s=>s.type===re.Vless)?.label,color:Ge[re.Vless]},{value:re.Tuic,label:cs.find(s=>s.type===re.Tuic)?.label,color:Ge[re.Tuic]},{value:re.Socks,label:cs.find(s=>s.type===re.Socks)?.label,color:Ge[re.Socks]},{value:re.Naive,label:cs.find(s=>s.type===re.Naive)?.label,color:Ge[re.Naive]},{value:re.Http,label:cs.find(s=>s.type===re.Http)?.label,color:Ge[re.Http]},{value:re.Mieru,label:cs.find(s=>s.type===re.Mieru)?.label,color:Ge[re.Mieru]}];function Wu({table:s,saveOrder:a,isSortMode:t,groups:l}){const n=s.getState().columnFilters.length>0,{t:o}=V("server");return e.jsxs("div",{className:"flex items-center justify-between ",children:[e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[!t&&e.jsxs(e.Fragment,{children:[e.jsx(Bu,{}),e.jsx(D,{placeholder:o("toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:r=>s.getColumn("name")?.setFilterValue(r.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex gap-x-2",children:[s.getColumn("type")&&e.jsx(Qn,{column:s.getColumn("type"),title:o("toolbar.type"),options:Gu}),s.getColumn("group_ids")&&e.jsx(Qn,{column:s.getColumn("group_ids"),title:o("columns.groups.title"),options:l.map(r=>({label:r.name,value:r.id.toString()}))})]}),n&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[o("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),t&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:o("toolbar.sort.tip")})})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(E,{variant:t?"default":"outline",onClick:a,size:"sm",children:o(t?"toolbar.sort.save":"toolbar.sort.edit")})})]})}const Ut=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19M12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4"})}),ta={0:"bg-destructive/80 shadow-sm shadow-destructive/50",1:"bg-yellow-500/80 shadow-sm shadow-yellow-500/50",2:"bg-emerald-500/80 shadow-sm shadow-emerald-500/50"},Pe=(s,a)=>a>0?Math.round(s/a*100):0,Yu=s=>{const{t:a}=V("server");return[{id:"drag-handle",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.sort")}),cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Na,{className:"size-4 cursor-move text-muted-foreground transition-colors hover:text-primary","aria-hidden":"true"})}),size:50},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.nodeId")}),cell:({row:t})=>{const l=t.getValue("id"),n=t.original.code;return e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs("div",{className:"group/id flex items-center space-x-2",children:[e.jsxs(B,{variant:"outline",className:y("border-2 font-medium transition-all duration-200 hover:opacity-80","flex items-center gap-1.5"),style:{borderColor:Ge[t.original.type]},children:[e.jsx(Ql,{className:"size-3"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"flex items-center gap-0.5",children:n??l}),t.original.parent?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground/30",children:"→"}),e.jsx("span",{children:t.original.parent?.code||t.original.parent?.id})]}):""]})]}),e.jsx(E,{variant:"ghost",size:"icon",className:"size-5 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:text-muted-foreground group-hover/id:opacity-100",onClick:o=>{o.stopPropagation(),ha(n||l.toString()).then(()=>{A.success(a("common:copy.success"))})},children:e.jsx(Hn,{className:"size-3"})})]})}),e.jsxs(de,{side:"top",className:"flex flex-col gap-1 p-3",children:[e.jsxs("p",{className:"font-medium",children:[cs.find(o=>o.type===t.original.type)?.label,t.original.parent?" (子节点)":""]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:n?"点击括号内容或复制按钮可复制节点代码":"点击复制按钮可复制节点ID"})]})]})})},size:50,enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.show")}),cell:({row:t})=>{const[l,n]=m.useState(!!t.getValue("show"));return e.jsx(ee,{checked:l,onCheckedChange:async o=>{n(o),Js.update({id:t.original.id,type:t.original.type,show:o?1:0}).catch(()=>{n(!o),s()})},style:{backgroundColor:l?Ge[t.original.type]:void 0}})},size:50,enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(z,{column:t,title:a("columns.node"),tooltip:e.jsxs("div",{className:"grid grid-cols-1 gap-3 p-2",children:[e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ta[0])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.0")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ta[1])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.1")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ta[2])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.2")})]})]})})}),cell:({row:t})=>e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{children:e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("size-2.5 flex-shrink-0 rounded-full transition-all duration-200",ta[t.original.available_status])}),e.jsx("span",{className:"text-left font-medium transition-colors hover:text-primary",children:t.getValue("name")})]})}),e.jsx(de,{children:e.jsxs("div",{className:" space-y-3",children:[e.jsx("p",{className:"font-medium",children:a(`columns.status.${t.original.available_status}`)}),t.original.load_status&&e.jsxs("div",{className:"border-t border-border/50 pt-3",children:[e.jsx("p",{className:"mb-3 text-sm font-medium",children:a("columns.loadStatus.details")}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsx("div",{children:e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.cpu"),":"]}),e.jsxs("div",{className:"ml-2 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",t.original.load_status.cpu>=90?"bg-destructive":t.original.load_status.cpu>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Math.min(100,t.original.load_status.cpu)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",t.original.load_status.cpu>=90?"text-destructive":t.original.load_status.cpu>=70?"text-yellow-600":"text-emerald-600"),children:[Math.round(t.original.load_status.cpu),"%"]})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.memory"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Pe(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"bg-destructive":Pe(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Pe(t.original.load_status.mem.used,t.original.load_status.mem.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Pe(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"text-destructive":Pe(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Pe(t.original.load_status.mem.used,t.original.load_status.mem.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.mem.used)," ","/"," ",Oe(t.original.load_status.mem.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.swap"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Pe(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"bg-destructive":Pe(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Pe(t.original.load_status.swap.used,t.original.load_status.swap.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Pe(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"text-destructive":Pe(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"text-yellow-600":"text-emerald-600"),children:[Pe(t.original.load_status.swap.used,t.original.load_status.swap.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.swap.used)," ","/"," ",Oe(t.original.load_status.swap.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.disk"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Pe(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"bg-destructive":Pe(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Pe(t.original.load_status.disk.used,t.original.load_status.disk.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Pe(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"text-destructive":Pe(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Pe(t.original.load_status.disk.used,t.original.load_status.disk.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.disk.used)," ","/"," ",Oe(t.original.load_status.disk.total)]})]})]})]})]})})]})}),enableSorting:!1,size:200},{accessorKey:"host",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.address")}),cell:({row:t})=>{const l=`${t.original.host}:${t.original.port}`,n=t.original.port!==t.original.server_port;return e.jsxs("div",{className:"group relative flex min-w-0 items-start",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1 gap-y-0.5 pr-7",children:[e.jsx("div",{className:"flex items-center ",children:e.jsxs("span",{className:"font-mono text-sm font-medium text-foreground/90",children:[t.original.host,":",t.original.port]})}),n&&e.jsxs("span",{className:"whitespace-nowrap text-[0.7rem] tracking-tight text-muted-foreground/40",children:["(",a("columns.internalPort")," ",t.original.server_port,")"]})]}),e.jsx("div",{className:"absolute right-0 top-0",children:e.jsx(be,{delayDuration:0,children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(E,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:bg-muted/50 hover:text-muted-foreground group-hover:opacity-100",onClick:o=>{o.stopPropagation(),ha(l).then(()=>{A.success(a("common:copy.success"))})},children:e.jsx(Hn,{className:"size-3"})})}),e.jsx(de,{side:"top",sideOffset:10,children:a("columns.copyAddress")})]})})})]})},enableSorting:!1,enableHiding:!0},{accessorKey:"online",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.onlineUsers.title"),tooltip:a("columns.onlineUsers.tooltip")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(Ut,{className:"size-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("online")})]}),size:80,enableSorting:!0,enableHiding:!0},{accessorKey:"rate",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.rate.title"),tooltip:a("columns.rate.tooltip")}),cell:({row:t})=>e.jsxs(B,{variant:"secondary",className:"font-medium",children:[t.getValue("rate")," x"]}),size:80,enableSorting:!1,enableHiding:!0},{accessorKey:"group_ids",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.groups.title"),tooltip:a("columns.groups.tooltip")}),cell:({row:t})=>{const l=t.original.groups||[];return e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[l.map((n,o)=>e.jsx(B,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:n.name},o)),l.length===0&&e.jsx("span",{className:"text-sm text-muted-foreground",children:a("columns.groups.empty")})]})},enableSorting:!1,filterFn:(t,l,n)=>{const o=t.getValue(l);return o?n.some(r=>o.includes(r)):!1}},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.type")}),cell:({row:t})=>{const l=t.getValue("type");return e.jsx(B,{variant:"outline",className:"border-2 font-medium transition-colors",style:{borderColor:Ge[l]},children:l})},enableSorting:!1,enableHiding:!0,enableColumnFilter:!1,size:8e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const{setIsOpen:l,setEditingServer:n,setServerType:o}=Vr();return e.jsx("div",{className:"flex justify-center",children:e.jsxs(Es,{modal:!1,children:[e.jsx(Rs,{asChild:!0,children:e.jsx(E,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":a("columns.actions"),children:e.jsx(ua,{className:"size-4"})})}),e.jsxs(Cs,{align:"end",className:"w-40",children:[e.jsx(Ne,{className:"cursor-pointer",onClick:()=>{o(t.original.type),n(t.original),l(!0)},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(Nc,{className:"mr-2 size-4"}),a("columns.actions_dropdown.edit")]})}),e.jsxs(Ne,{className:"cursor-pointer",onClick:async()=>{Js.copy({id:t.original.id}).then(({data:r})=>{r&&(A.success(a("columns.actions_dropdown.copy_success")),s())})},children:[e.jsx(_c,{className:"mr-2 size-4"}),a("columns.actions_dropdown.copy")]}),e.jsx(yt,{}),e.jsx(Ne,{className:"cursor-pointer text-destructive focus:text-destructive",onSelect:r=>r.preventDefault(),children:e.jsx(ns,{title:a("columns.actions_dropdown.delete.title"),description:a("columns.actions_dropdown.delete.description"),confirmText:a("columns.actions_dropdown.delete.confirm"),variant:"destructive",onConfirm:async()=>{Js.drop({id:t.original.id}).then(({data:r})=>{r&&(A.success(a("columns.actions_dropdown.delete_success")),s())})},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(fs,{className:"mr-2 size-4"}),a("columns.actions_dropdown.delete.confirm")]})})})]})]})})},size:50}]};function Ju(){const[s,a]=m.useState({}),[t,l]=m.useState({"drag-handle":!1}),[n,o]=m.useState([]),[r,c]=m.useState({pageSize:500,pageIndex:0}),[u,i]=m.useState([]),[d,h]=m.useState(!1),[_,T]=m.useState({}),[S,C]=m.useState([]),{refetch:N}=ne({queryKey:["nodeList"],queryFn:async()=>{const{data:I}=await Js.getList();return C(I),I}}),{data:g}=ne({queryKey:["groups"],queryFn:async()=>{const{data:I}=await at.getList();return I}});m.useEffect(()=>{l({"drag-handle":d,show:!d,host:!d,online:!d,rate:!d,groups:!d,type:!1,actions:!d}),T({name:d?2e3:200}),c({pageSize:d?99999:500,pageIndex:0})},[d]);const k=(I,H)=>{d&&(I.dataTransfer.setData("text/plain",H.toString()),I.currentTarget.classList.add("opacity-50"))},R=(I,H)=>{if(!d)return;I.preventDefault(),I.currentTarget.classList.remove("bg-muted");const O=parseInt(I.dataTransfer.getData("text/plain"));if(O===H)return;const K=[...S],[oe]=K.splice(O,1);K.splice(H,0,oe),C(K)},p=async()=>{if(!d){h(!0);return}const I=S?.map((H,O)=>({id:H.id,order:O+1}));Js.sort(I).then(()=>{A.success("排序保存成功"),h(!1),N()}).finally(()=>{h(!1)})},w=Je({data:S||[],columns:Yu(N),state:{sorting:u,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:_,pagination:r},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:i,onColumnFiltersChange:o,onColumnVisibilityChange:l,onColumnSizingChange:T,onPaginationChange:c,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(ku,{refetch:N,children:e.jsx("div",{className:"space-y-4",children:e.jsx(is,{table:w,toolbar:I=>e.jsx(Wu,{table:I,refetch:N,saveOrder:p,isSortMode:d,groups:g||[]}),draggable:d,onDragStart:k,onDragEnd:I=>I.currentTarget.classList.remove("opacity-50"),onDragOver:I=>{I.preventDefault(),I.currentTarget.classList.add("bg-muted")},onDragLeave:I=>I.currentTarget.classList.remove("bg-muted"),onDrop:R,showPagination:!d})})})}function Qu(){const{t:s}=V("server");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Ju,{})})]})]})}const Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Qu},Symbol.toStringTag,{value:"Module"}));function Zu({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("group");return e.jsx("div",{className:"flex items-center justify-between space-x-4",children:e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(Va,{refetch:a}),e.jsx(D,{placeholder:l("toolbar.searchPlaceholder"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:y("h-8 w-[150px] lg:w-[250px]",t&&"border-primary/50 ring-primary/20")}),t&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})})}const ex=s=>{const{t:a}=V("group");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(B,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium",children:t.getValue("name")})})},{accessorKey:"users_count",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.usersCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(Ut,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"server_count",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.serverCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(Ql,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("server_count")})]}),enableSorting:!0,size:8e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Va,{defaultValues:t.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ns,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{at.drop({id:t.original.id}).then(({data:l})=>{l&&(A.success(a("messages.updateSuccess")),s())})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function sx(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,o]=m.useState([]),[r,c]=m.useState([]),{data:u,refetch:i,isLoading:d}=ne({queryKey:["serverGroupList"],queryFn:async()=>{const{data:_}=await at.getList();return _}}),h=Je({data:u||[],columns:ex(i),state:{sorting:r,columnVisibility:t,rowSelection:s,columnFilters:n},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:o,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(is,{table:h,toolbar:_=>e.jsx(Zu,{table:_,refetch:i}),isLoading:d})}function tx(){const{t:s}=V("group");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(sx,{})})]})]})}const ax=Object.freeze(Object.defineProperty({__proto__:null,default:tx},Symbol.toStringTag,{value:"Module"})),nx=s=>x.object({remarks:x.string().min(1,s("form.validation.remarks")),match:x.array(x.string()),action:x.enum(["block","dns"]),action_value:x.string().optional()});function Fr({refetch:s,dialogTrigger:a,defaultValues:t={remarks:"",match:[],action:"block",action_value:""},type:l="add"}){const{t:n}=V("route"),o=ye({resolver:_e(nx(n)),defaultValues:t,mode:"onChange"}),[r,c]=m.useState(!1);return e.jsxs(pe,{open:r,onOpenChange:c,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:n(l==="edit"?"form.edit":"form.create")}),e.jsx(Le,{})]}),e.jsxs(we,{...o,children:[e.jsx(v,{control:o.control,name:"remarks",render:({field:u})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:n("form.remarks")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.remarksPlaceholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"match",render:({field:u})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:n("form.match")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(Ts,{className:"min-h-[120px]",placeholder:n("form.matchPlaceholder"),value:u.value.join(` +`):"",onChange:_=>{const H=_.target.value.split(` +`).filter(O=>O.trim()!=="");p.onChange(H)}})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:c.control,name:"tls.server_name",render:({field:p})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:l("dynamic_form.anytls.tls.server_name.label","SNI")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dynamic_form.anytls.tls.server_name.placeholder","服务器名称"),...p})})]})}),e.jsx(v,{control:c.control,name:"tls.allow_insecure",render:({field:p})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dynamic_form.anytls.tls.allow_insecure","允许不安全连接")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(b,{children:e.jsx(Z,{checked:p.value,onCheckedChange:p.onChange})})})]})})]})]})})};return e.jsx(ye,{children:E[s]?.()})};function ox(){const{t:s}=V("server"),a=x.object({id:x.number().optional().nullable(),specific_key:x.string().optional().nullable(),code:x.string().optional(),show:x.boolean().optional().nullable(),name:x.string().min(1,s("form.name.error")),rate:x.string().min(1,s("form.rate.error")).refine(I=>!isNaN(parseFloat(I))&&isFinite(Number(I)),{message:s("form.rate.error_numeric")}).refine(I=>parseFloat(I)>=0,{message:s("form.rate.error_gte_zero")}),tags:x.array(x.string()).default([]),excludes:x.array(x.string()).default([]),ips:x.array(x.string()).default([]),group_ids:x.array(x.string()).default([]),host:x.string().min(1,s("form.host.error")),port:x.string().min(1,s("form.port.error")),server_port:x.string().min(1,s("form.server_port.error")),parent_id:x.string().default("0").nullable(),route_ids:x.array(x.string()).default([]),protocol_settings:x.record(x.any()).default({}).nullable()}),t={id:null,specific_key:null,code:"",show:!1,name:"",rate:"1",tags:[],excludes:[],ips:[],group_ids:[],host:"",port:"",server_port:"",parent_id:"0",route_ids:[],protocol_settings:null},{isOpen:l,setIsOpen:n,editingServer:r,setEditingServer:o,serverType:c,setServerType:u,refetch:i}=Kr(),[d,h]=m.useState([]),[k,C]=m.useState([]),[S,w]=m.useState([]),N=Ne({resolver:we(a),defaultValues:t,mode:"onChange"});m.useEffect(()=>{g()},[l]),m.useEffect(()=>{r?.type&&r.type!==c&&u(r.type)},[r,c,u]),m.useEffect(()=>{r?r.type===c&&N.reset({...t,...r}):N.reset({...t,protocol_settings:Pe[c].schema.parse({})})},[r,N,c]);const g=async()=>{if(!l)return;const[I,H,O]=await Promise.all([rt.getList(),Ea.getList(),Zs.getList()]);h(I.data?.map(B=>({label:B.name,value:B.id.toString()}))||[]),C(H.data?.map(B=>({label:B.remarks,value:B.id.toString()}))||[]),w(O.data||[])},T=m.useMemo(()=>S?.filter(I=>(I.parent_id===0||I.parent_id===null)&&I.type===c&&I.id!==N.watch("id")),[c,S,N]),E=()=>e.jsxs(Es,{children:[e.jsx(Is,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:s("form.add_node")})]})}),e.jsx(ws,{align:"start",children:e.jsx(Rd,{children:cs.map(({type:I,label:H})=>e.jsx(_e,{onClick:()=>{u(I),n(!0)},className:"cursor-pointer",children:e.jsx(G,{variant:"outline",className:"text-white",style:{background:Ge[I]},children:H})},I))})})]}),p=()=>{n(!1),o(null),N.reset(t)},_=async()=>{const I=N.getValues();(await Zs.save({...I,type:c})).data&&(p(),$.success(s("form.success")),i())};return e.jsxs(he,{open:l,onOpenChange:p,children:[E(),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:s(r?"form.edit_node":"form.new_node")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...N,children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:N.control,name:"name",render:({field:I})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:s("form.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.name.placeholder"),...I})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"rate",render:({field:I})=>e.jsxs(f,{className:"flex-[1]",children:[e.jsx(j,{children:s("form.rate.label")}),e.jsx("div",{className:"relative flex",children:e.jsx(b,{children:e.jsx(D,{type:"number",min:"0",step:"0.1",...I})})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:N.control,name:"code",render:({field:I})=>e.jsxs(f,{children:[e.jsxs(j,{children:[s("form.code.label"),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:s("form.code.optional")})]}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.code.placeholder"),...I,value:I.value||""})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"tags",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.tags.label")}),e.jsx(b,{children:e.jsx(Tn,{value:I.value,onChange:I.onChange,placeholder:s("form.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"group_ids",render:({field:I})=>e.jsxs(f,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[s("form.groups.label"),e.jsx(Aa,{dialogTrigger:e.jsx(L,{variant:"link",children:s("form.groups.add")}),refetch:g})]}),e.jsx(b,{children:e.jsx(wt,{options:d,onChange:H=>I.onChange(H.map(O=>O.value)),value:d?.filter(H=>I.value.includes(H.value)),placeholder:s("form.groups.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.groups.empty")})})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:N.control,name:"host",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.host.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.host.placeholder"),...I})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(v,{control:N.control,name:"port",render:({field:I})=>e.jsxs(f,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.port.label"),e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(ze,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(ja,{children:e.jsx(xe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.port.tooltip")})})})]})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(b,{children:e.jsx(D,{placeholder:s("form.port.placeholder"),...I})}),e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(L,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0 text-muted-foreground/50 hover:text-muted-foreground",onClick:()=>{const H=I.value;H&&N.setValue("server_port",H)},children:e.jsx(ze,{icon:"tabler:arrows-right",className:"size-3"})})}),e.jsx(xe,{side:"right",children:e.jsx("p",{children:s("form.port.sync")})})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"server_port",render:({field:I})=>e.jsxs(f,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.server_port.label"),e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(ze,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(ja,{children:e.jsx(xe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.server_port.tooltip")})})})]})})]}),e.jsx(b,{children:e.jsx(D,{placeholder:s("form.server_port.placeholder"),...I})}),e.jsx(P,{})]})})]})]}),l&&e.jsx(ix,{serverType:c,value:N.watch("protocol_settings"),onChange:I=>N.setValue("protocol_settings",I,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}),e.jsx(v,{control:N.control,name:"parent_id",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.parent.label")}),e.jsxs(J,{onValueChange:I.onChange,value:I.value?.toString()||"0",children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("form.parent.placeholder")})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("form.parent.none")}),T?.map(H=>e.jsx(A,{value:H.id.toString(),className:"cursor-pointer",children:H.name},H.id))]})]}),e.jsx(P,{})]})}),e.jsx(v,{control:N.control,name:"route_ids",render:({field:I})=>e.jsxs(f,{children:[e.jsx(j,{children:s("form.route.label")}),e.jsx(b,{children:e.jsx(wt,{options:k,onChange:H=>I.onChange(H.map(O=>O.value)),value:k?.filter(H=>I.value.includes(H.value)),placeholder:s("form.route.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.route.empty")})})}),e.jsx(P,{})]})})]}),e.jsxs(Le,{className:"mt-6 flex flex-col sm:flex-row gap-2 sm:gap-0",children:[e.jsx(L,{type:"button",variant:"outline",onClick:p,className:"w-full sm:w-auto",children:s("form.cancel")}),e.jsx(L,{type:"submit",onClick:_,className:"w-full sm:w-auto",children:s("form.submit")})]})]})]})]})}function rl({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Da,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(De,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(r=>n.has(r.value)).map(r=>e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:r.label},r.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(it,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(ot,{children:"No results found."}),e.jsx(ns,{children:t.map(r=>{const o=n.has(r.value);return e.jsxs($e,{onSelect:()=>{o?n.delete(r.value):n.add(r.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},className:"cursor-pointer",children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",o?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(at,{className:y("h-4 w-4")})}),r.icon&&e.jsx(r.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${r.color}`}),e.jsx("span",{children:r.label}),l?.get(r.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(r.value)})]},r.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Tt,{}),e.jsx(ns,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center cursor-pointer",children:"Clear filters"})})]})]})]})})]})}const cx=[{value:ie.Shadowsocks,label:cs.find(s=>s.type===ie.Shadowsocks)?.label,color:Ge[ie.Shadowsocks]},{value:ie.Vmess,label:cs.find(s=>s.type===ie.Vmess)?.label,color:Ge[ie.Vmess]},{value:ie.Trojan,label:cs.find(s=>s.type===ie.Trojan)?.label,color:Ge[ie.Trojan]},{value:ie.Hysteria,label:cs.find(s=>s.type===ie.Hysteria)?.label,color:Ge[ie.Hysteria]},{value:ie.Vless,label:cs.find(s=>s.type===ie.Vless)?.label,color:Ge[ie.Vless]},{value:ie.Tuic,label:cs.find(s=>s.type===ie.Tuic)?.label,color:Ge[ie.Tuic]},{value:ie.Socks,label:cs.find(s=>s.type===ie.Socks)?.label,color:Ge[ie.Socks]},{value:ie.Naive,label:cs.find(s=>s.type===ie.Naive)?.label,color:Ge[ie.Naive]},{value:ie.Http,label:cs.find(s=>s.type===ie.Http)?.label,color:Ge[ie.Http]},{value:ie.Mieru,label:cs.find(s=>s.type===ie.Mieru)?.label,color:Ge[ie.Mieru]}];function dx({table:s,saveOrder:a,isSortMode:t,groups:l}){const n=s.getState().columnFilters.length>0,{t:r}=V("server");return e.jsxs("div",{className:"flex items-center justify-between ",children:[e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[!t&&e.jsxs(e.Fragment,{children:[e.jsx(ox,{}),e.jsx(D,{placeholder:r("toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:o=>s.getColumn("name")?.setFilterValue(o.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex gap-x-2",children:[s.getColumn("type")&&e.jsx(rl,{column:s.getColumn("type"),title:r("toolbar.type"),options:cx}),s.getColumn("group_ids")&&e.jsx(rl,{column:s.getColumn("group_ids"),title:r("columns.groups.title"),options:l.map(o=>({label:o.name,value:o.id.toString()}))})]}),n&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]}),t&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:r("toolbar.sort.tip")})})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:a,size:"sm",children:r(t?"toolbar.sort.save":"toolbar.sort.edit")})})]})}const Wt=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19M12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4"})}),ia={0:"bg-destructive/80 shadow-sm shadow-destructive/50",1:"bg-yellow-500/80 shadow-sm shadow-yellow-500/50",2:"bg-emerald-500/80 shadow-sm shadow-emerald-500/50"},Ee=(s,a)=>a>0?Math.round(s/a*100):0,mx=s=>{const{t:a}=V("server");return[{id:"drag-handle",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.sort")}),cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Ta,{className:"size-4 cursor-move text-muted-foreground transition-colors hover:text-primary","aria-hidden":"true"})}),size:50},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.nodeId")}),cell:({row:t})=>{const l=t.getValue("id"),n=t.original.code;return e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs("div",{className:"group/id flex items-center space-x-2",children:[e.jsxs(G,{variant:"outline",className:y("border-2 font-medium transition-all duration-200 hover:opacity-80","flex items-center gap-1.5"),style:{borderColor:Ge[t.original.type]},children:[e.jsx(ir,{className:"size-3"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"flex items-center gap-0.5",children:n??l}),t.original.parent?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground/30",children:"→"}),e.jsx("span",{children:t.original.parent?.code||t.original.parent?.id})]}):""]})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"size-5 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:text-muted-foreground group-hover/id:opacity-100",onClick:r=>{r.stopPropagation(),ba(n||l.toString()).then(()=>{$.success(a("common:copy.success"))})},children:e.jsx(Jn,{className:"size-3"})})]})}),e.jsxs(xe,{side:"top",className:"flex flex-col gap-1 p-3",children:[e.jsxs("p",{className:"font-medium",children:[cs.find(r=>r.type===t.original.type)?.label,t.original.parent?" (子节点)":""]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:n?"点击括号内容或复制按钮可复制节点代码":"点击复制按钮可复制节点ID"})]})]})})},size:50,enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.show")}),cell:({row:t})=>{const[l,n]=m.useState(!!t.getValue("show"));return e.jsx(Z,{checked:l,onCheckedChange:async r=>{n(r),Zs.update({id:t.original.id,type:t.original.type,show:r?1:0}).catch(()=>{n(!r),s()})},style:{backgroundColor:l?Ge[t.original.type]:void 0}})},size:50,enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(z,{column:t,title:a("columns.node"),tooltip:e.jsxs("div",{className:"grid grid-cols-1 gap-3 p-2",children:[e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ia[0])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.0")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ia[1])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.1")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ia[2])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.2")})]})]})})}),cell:({row:t})=>e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{children:e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("size-2.5 flex-shrink-0 rounded-full transition-all duration-200",ia[t.original.available_status])}),e.jsx("span",{className:"text-left font-medium transition-colors hover:text-primary",children:t.getValue("name")})]})}),e.jsx(xe,{children:e.jsxs("div",{className:" space-y-3",children:[e.jsx("p",{className:"font-medium",children:a(`columns.status.${t.original.available_status}`)}),t.original.load_status&&e.jsxs("div",{className:"border-t border-border/50 pt-3",children:[e.jsx("p",{className:"mb-3 text-sm font-medium",children:a("columns.loadStatus.details")}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsx("div",{children:e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.cpu"),":"]}),e.jsxs("div",{className:"ml-2 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",t.original.load_status.cpu>=90?"bg-destructive":t.original.load_status.cpu>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Math.min(100,t.original.load_status.cpu)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",t.original.load_status.cpu>=90?"text-destructive":t.original.load_status.cpu>=70?"text-yellow-600":"text-emerald-600"),children:[Math.round(t.original.load_status.cpu),"%"]})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.memory"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Ee(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"bg-destructive":Ee(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Ee(t.original.load_status.mem.used,t.original.load_status.mem.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Ee(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"text-destructive":Ee(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Ee(t.original.load_status.mem.used,t.original.load_status.mem.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.mem.used)," ","/"," ",Oe(t.original.load_status.mem.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.swap"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Ee(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"bg-destructive":Ee(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Ee(t.original.load_status.swap.used,t.original.load_status.swap.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Ee(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"text-destructive":Ee(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"text-yellow-600":"text-emerald-600"),children:[Ee(t.original.load_status.swap.used,t.original.load_status.swap.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.swap.used)," ","/"," ",Oe(t.original.load_status.swap.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.disk"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Ee(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"bg-destructive":Ee(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Ee(t.original.load_status.disk.used,t.original.load_status.disk.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Ee(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"text-destructive":Ee(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Ee(t.original.load_status.disk.used,t.original.load_status.disk.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.disk.used)," ","/"," ",Oe(t.original.load_status.disk.total)]})]})]})]})]})})]})}),enableSorting:!1,size:200},{accessorKey:"host",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.address")}),cell:({row:t})=>{const l=`${t.original.host}:${t.original.port}`,n=t.original.port!==t.original.server_port;return e.jsxs("div",{className:"group relative flex min-w-0 items-start",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1 gap-y-0.5 pr-7",children:[e.jsx("div",{className:"flex items-center ",children:e.jsxs("span",{className:"font-mono text-sm font-medium text-foreground/90",children:[t.original.host,":",t.original.port]})}),n&&e.jsxs("span",{className:"whitespace-nowrap text-[0.7rem] tracking-tight text-muted-foreground/40",children:["(",a("columns.internalPort")," ",t.original.server_port,")"]})]}),e.jsx("div",{className:"absolute right-0 top-0",children:e.jsx(ye,{delayDuration:0,children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:bg-muted/50 hover:text-muted-foreground group-hover:opacity-100",onClick:r=>{r.stopPropagation(),ba(l).then(()=>{$.success(a("common:copy.success"))})},children:e.jsx(Jn,{className:"size-3"})})}),e.jsx(xe,{side:"top",sideOffset:10,children:a("columns.copyAddress")})]})})})]})},enableSorting:!1,enableHiding:!0},{accessorKey:"online",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.onlineUsers.title"),tooltip:a("columns.onlineUsers.tooltip")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(Wt,{className:"size-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("online")})]}),size:80,enableSorting:!0,enableHiding:!0},{accessorKey:"rate",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.rate.title"),tooltip:a("columns.rate.tooltip")}),cell:({row:t})=>e.jsxs(G,{variant:"secondary",className:"font-medium",children:[t.getValue("rate")," x"]}),size:80,enableSorting:!1,enableHiding:!0},{accessorKey:"group_ids",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.groups.title"),tooltip:a("columns.groups.tooltip")}),cell:({row:t})=>{const l=t.original.groups||[];return e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[l.map((n,r)=>e.jsx(G,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:n.name},r)),l.length===0&&e.jsx("span",{className:"text-sm text-muted-foreground",children:a("columns.groups.empty")})]})},enableSorting:!1,filterFn:(t,l,n)=>{const r=t.getValue(l);return r?n.some(o=>r.includes(o)):!1}},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.type")}),cell:({row:t})=>{const l=t.getValue("type");return e.jsx(G,{variant:"outline",className:"border-2 font-medium transition-colors",style:{borderColor:Ge[l]},children:l})},enableSorting:!1,enableHiding:!0,enableColumnFilter:!1,size:8e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const{setIsOpen:l,setEditingServer:n,setServerType:r}=Kr();return e.jsx("div",{className:"flex justify-center",children:e.jsxs(Es,{modal:!1,children:[e.jsx(Is,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":a("columns.actions"),children:e.jsx(va,{className:"size-4"})})}),e.jsxs(ws,{align:"end",className:"w-40",children:[e.jsx(_e,{className:"cursor-pointer",onClick:()=>{r(t.original.type),n(t.original),l(!0)},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(zc,{className:"mr-2 size-4"}),a("columns.actions_dropdown.edit")]})}),e.jsxs(_e,{className:"cursor-pointer",onClick:async()=>{Zs.copy({id:t.original.id}).then(({data:o})=>{o&&($.success(a("columns.actions_dropdown.copy_success")),s())})},children:[e.jsx($c,{className:"mr-2 size-4"}),a("columns.actions_dropdown.copy")]}),e.jsx(Nt,{}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onSelect:o=>o.preventDefault(),children:e.jsx(ls,{title:a("columns.actions_dropdown.delete.title"),description:a("columns.actions_dropdown.delete.description"),confirmText:a("columns.actions_dropdown.delete.confirm"),variant:"destructive",onConfirm:async()=>{Zs.drop({id:t.original.id}).then(({data:o})=>{o&&($.success(a("columns.actions_dropdown.delete_success")),s())})},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(We,{className:"mr-2 size-4"}),a("columns.actions_dropdown.delete.confirm")]})})})]})]})})},size:50}]};function ux(){const[s,a]=m.useState({}),[t,l]=m.useState({"drag-handle":!1}),[n,r]=m.useState([]),[o,c]=m.useState({pageSize:500,pageIndex:0}),[u,i]=m.useState([]),[d,h]=m.useState(!1),[k,C]=m.useState({}),[S,w]=m.useState([]),{refetch:N}=le({queryKey:["nodeList"],queryFn:async()=>{const{data:I}=await Zs.getList();return w(I),I}}),{data:g}=le({queryKey:["groups"],queryFn:async()=>{const{data:I}=await rt.getList();return I}});m.useEffect(()=>{l({"drag-handle":d,show:!d,host:!d,online:!d,rate:!d,groups:!d,type:!1,actions:!d}),C({name:d?2e3:200}),c({pageSize:d?99999:500,pageIndex:0})},[d]);const T=(I,H)=>{d&&(I.dataTransfer.setData("text/plain",H.toString()),I.currentTarget.classList.add("opacity-50"))},E=(I,H)=>{if(!d)return;I.preventDefault(),I.currentTarget.classList.remove("bg-muted");const O=parseInt(I.dataTransfer.getData("text/plain"));if(O===H)return;const B=[...S],[ce]=B.splice(O,1);B.splice(H,0,ce),w(B)},p=async()=>{if(!d){h(!0);return}const I=S?.map((H,O)=>({id:H.id,order:O+1}));Zs.sort(I).then(()=>{$.success("排序保存成功"),h(!1),N()}).finally(()=>{h(!1)})},_=Je({data:S||[],columns:mx(N),state:{sorting:u,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:k,pagination:o},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:i,onColumnFiltersChange:r,onColumnVisibilityChange:l,onColumnSizingChange:C,onPaginationChange:c,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(Hu,{refetch:N,children:e.jsx("div",{className:"space-y-4",children:e.jsx(os,{table:_,toolbar:I=>e.jsx(dx,{table:I,refetch:N,saveOrder:p,isSortMode:d,groups:g||[]}),draggable:d,onDragStart:T,onDragEnd:I=>I.currentTarget.classList.remove("opacity-50"),onDragOver:I=>{I.preventDefault(),I.currentTarget.classList.add("bg-muted")},onDragLeave:I=>I.currentTarget.classList.remove("bg-muted"),onDrop:E,showPagination:!d})})})}function xx(){const{t:s}=V("server");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(ux,{})})]})]})}const hx=Object.freeze(Object.defineProperty({__proto__:null,default:xx},Symbol.toStringTag,{value:"Module"}));function px({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("group");return e.jsx("div",{className:"flex items-center justify-between space-x-4",children:e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(Aa,{refetch:a}),e.jsx(D,{placeholder:l("toolbar.searchPlaceholder"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:y("h-8 w-[150px] lg:w-[250px]",t&&"border-primary/50 ring-primary/20")}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})})}const gx=s=>{const{t:a}=V("group");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(G,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium",children:t.getValue("name")})})},{accessorKey:"users_count",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.usersCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(Wt,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"server_count",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.serverCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(ir,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("server_count")})]}),enableSorting:!0,size:8e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Aa,{defaultValues:t.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ls,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{rt.drop({id:t.original.id}).then(({data:l})=>{l&&($.success(a("messages.updateSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function fx(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,r]=m.useState([]),[o,c]=m.useState([]),{data:u,refetch:i,isLoading:d}=le({queryKey:["serverGroupList"],queryFn:async()=>{const{data:k}=await rt.getList();return k}}),h=Je({data:u||[],columns:gx(i),state:{sorting:o,columnVisibility:t,rowSelection:s,columnFilters:n},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:r,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(os,{table:h,toolbar:k=>e.jsx(px,{table:k,refetch:i}),isLoading:d})}function jx(){const{t:s}=V("group");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(fx,{})})]})]})}const vx=Object.freeze(Object.defineProperty({__proto__:null,default:jx},Symbol.toStringTag,{value:"Module"})),bx=s=>x.object({remarks:x.string().min(1,s("form.validation.remarks")),match:x.array(x.string()),action:x.enum(["block","dns"]),action_value:x.string().optional()});function Br({refetch:s,dialogTrigger:a,defaultValues:t={remarks:"",match:[],action:"block",action_value:""},type:l="add"}){const{t:n}=V("route"),r=Ne({resolver:we(bx(n)),defaultValues:t,mode:"onChange"}),[o,c]=m.useState(!1);return e.jsxs(he,{open:o,onOpenChange:c,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(ze,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:n(l==="edit"?"form.edit":"form.create")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...r,children:[e.jsx(v,{control:r.control,name:"remarks",render:({field:u})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:n("form.remarks")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.remarksPlaceholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"match",render:({field:u})=>e.jsxs(f,{className:"flex-[2]",children:[e.jsx(j,{children:n("form.match")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(ks,{className:"min-h-[120px]",placeholder:n("form.matchPlaceholder"),value:u.value.join(` `),onChange:i=>{u.onChange(i.target.value.split(` -`))}})})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"action",render:({field:u})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.action")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsxs(X,{onValueChange:u.onChange,defaultValue:u.value,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:n("form.actionPlaceholder")})}),e.jsxs(J,{children:[e.jsx($,{value:"block",children:n("actions.block")}),e.jsx($,{value:"dns",children:n("actions.dns")})]})]})})}),e.jsx(P,{})]})}),o.watch("action")==="dns"&&e.jsx(v,{control:o.control,name:"action_value",render:({field:u})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.dns")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.dnsPlaceholder"),...u})})})]})}),e.jsxs(Re,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(E,{variant:"outline",children:n("form.cancel")})}),e.jsx(E,{type:"submit",onClick:()=>{Sa.getList(o.getValues()).then(({data:u})=>{u&&(c(!1),s&&s(),A.success(n(l==="edit"?"messages.updateSuccess":"messages.createSuccess")),o.reset())})},children:n("form.submit")})]})]})]})]})}function lx({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("route");return e.jsx("div",{className:"flex items-center justify-between ",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[e.jsx(Fr,{refetch:a}),e.jsx(D,{placeholder:l("toolbar.searchPlaceholder"),value:s.getColumn("remarks")?.getFilterValue()??"",onChange:n=>s.getColumn("remarks")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),t&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})})}function rx({columns:s,data:a,refetch:t}){const[l,n]=m.useState({}),[o,r]=m.useState({}),[c,u]=m.useState([]),[i,d]=m.useState([]),h=Je({data:a,columns:s,state:{sorting:i,columnVisibility:o,rowSelection:l,columnFilters:c},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:u,onColumnVisibilityChange:r,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(is,{table:h,toolbar:_=>e.jsx(lx,{table:_,refetch:t})})}const ix=s=>{const{t:a}=V("route"),t={block:{icon:wc,variant:"destructive",className:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-400 hover:bg-red-200 dark:hover:bg-red-800"},dns:{icon:Cc,variant:"secondary",className:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800"}};return[{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.id")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(B,{variant:"outline",children:l.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"remarks",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.remarks")}),cell:({row:l})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:l.original.remarks})}),enableHiding:!1,enableSorting:!1},{accessorKey:"action_value",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.action_value.title")}),cell:({row:l})=>{const n=l.original.action,o=l.original.action_value,r=l.original.match?.length||0;return e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",children:n==="dns"&&o?a("columns.action_value.dns",{value:o}):n==="block"?e.jsx("span",{className:"text-destructive",children:a("columns.action_value.block")}):a("columns.action_value.direct")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("columns.matchRules",{count:r})})]})},enableHiding:!1,enableSorting:!1,size:300},{accessorKey:"action",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.action")}),cell:({row:l})=>{const n=l.getValue("action"),o=t[n]?.icon;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(B,{variant:t[n]?.variant||"default",className:y("flex items-center gap-1.5 px-3 py-1 capitalize",t[n]?.className),children:[o&&e.jsx(o,{className:"h-3.5 w-3.5"}),a(`actions.${n}`)]})})},enableSorting:!1,size:9e3},{id:"actions",header:()=>e.jsx("div",{className:"text-right",children:a("columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Fr,{defaultValues:l.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ns,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{Sa.drop({id:l.original.id}).then(({data:n})=>{n&&(A.success(a("messages.deleteSuccess")),s())})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function ox(){const{t:s}=V("route"),[a,t]=m.useState([]);function l(){Sa.getList().then(({data:n})=>{t(n)})}return m.useEffect(()=>{l()},[]),e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(rx,{data:a,columns:ix(l),refetch:l})})]})]})}const cx=Object.freeze(Object.defineProperty({__proto__:null,default:ox},Symbol.toStringTag,{value:"Module"})),Mr=m.createContext(void 0);function dx({children:s,refreshData:a}){const[t,l]=m.useState(!1),[n,o]=m.useState(null);return e.jsx(Mr.Provider,{value:{isOpen:t,setIsOpen:l,editingPlan:n,setEditingPlan:o,refreshData:a},children:s})}function kn(){const s=m.useContext(Mr);if(s===void 0)throw new Error("usePlanEdit must be used within a PlanEditProvider");return s}function mx({table:s,saveOrder:a,isSortMode:t}){const{setIsOpen:l}=kn(),{t:n}=V("subscribe");return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsxs(E,{variant:"outline",className:"space-x-2",size:"sm",onClick:()=>l(!0),children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:n("plan.add")})]}),e.jsx(D,{placeholder:n("plan.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:o=>s.getColumn("name")?.setFilterValue(o.target.value),className:"h-8 w-[150px] lg:w-[250px]"})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(E,{variant:t?"default":"outline",onClick:a,size:"sm",children:n(t?"plan.sort.save":"plan.sort.edit")})})]})}const Xn={monthly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},quarterly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},half_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},two_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},three_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},onetime:{color:"text-slate-700",bgColor:"bg-slate-100/80"},reset_traffic:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},ux=s=>{const{t:a}=V("subscribe");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:"cursor-move",children:e.jsx(Na,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(B,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.show")}),cell:({row:t})=>e.jsx(ee,{defaultChecked:t.getValue("show"),onCheckedChange:l=>{es.update({id:t.original.id,show:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"sell",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.sell")}),cell:({row:t})=>e.jsx(ee,{defaultChecked:t.getValue("sell"),onCheckedChange:l=>{es.update({id:t.original.id,sell:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"renew",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.renew"),tooltip:a("plan.columns.renew_tooltip")}),cell:({row:t})=>e.jsx(ee,{defaultChecked:t.getValue("renew"),onCheckedChange:l=>{es.update({id:t.original.id,renew:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("name")})}),enableSorting:!1,enableHiding:!1,size:900},{accessorKey:"users_count",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.stats")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-2",children:[e.jsx(Ut,{}),e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"group",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.group")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[600px] flex-wrap items-center gap-1.5 text-nowrap",children:e.jsx(B,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:t.getValue("group")?.name})}),enableSorting:!1,enableHiding:!1},{accessorKey:"prices",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.price")}),cell:({row:t})=>{const l=t.getValue("prices"),n=[{period:a("plan.columns.price_period.monthly"),key:"monthly",unit:a("plan.columns.price_period.unit.month")},{period:a("plan.columns.price_period.quarterly"),key:"quarterly",unit:a("plan.columns.price_period.unit.quarter")},{period:a("plan.columns.price_period.half_yearly"),key:"half_yearly",unit:a("plan.columns.price_period.unit.half_year")},{period:a("plan.columns.price_period.yearly"),key:"yearly",unit:a("plan.columns.price_period.unit.year")},{period:a("plan.columns.price_period.two_yearly"),key:"two_yearly",unit:a("plan.columns.price_period.unit.two_year")},{period:a("plan.columns.price_period.three_yearly"),key:"three_yearly",unit:a("plan.columns.price_period.unit.three_year")},{period:a("plan.columns.price_period.onetime"),key:"onetime",unit:""},{period:a("plan.columns.price_period.reset_traffic"),key:"reset_traffic",unit:a("plan.columns.price_period.unit.times")}];return e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:n.map(({period:o,key:r,unit:c})=>l[r]!=null&&e.jsxs(B,{variant:"secondary",className:y("px-2 py-0.5 font-medium transition-colors text-nowrap",Xn[r].color,Xn[r].bgColor,"border border-border/50","hover:bg-slate-200/80"),children:[o," ¥",l[r],c]},r))})},enableSorting:!1,size:9e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("plan.columns.actions")}),cell:({row:t})=>{const{setIsOpen:l,setEditingPlan:n}=kn();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>{n(t.original),l(!0)},children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.edit")})]}),e.jsx(ns,{title:a("plan.columns.delete_confirm.title"),description:a("plan.columns.delete_confirm.description"),confirmText:a("plan.columns.delete"),variant:"destructive",onConfirm:async()=>{es.drop({id:t.original.id}).then(({data:o})=>{o&&(A.success(a("plan.columns.delete_confirm.success")),s())})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.delete")})]})})]})}}]},xx=x.object({id:x.number().nullable(),group_id:x.union([x.number(),x.string()]).nullable().optional(),name:x.string().min(1).max(250),content:x.string().nullable().optional(),transfer_enable:x.union([x.number().min(0),x.string().min(1)]),prices:x.object({monthly:x.union([x.number(),x.string()]).nullable().optional(),quarterly:x.union([x.number(),x.string()]).nullable().optional(),half_yearly:x.union([x.number(),x.string()]).nullable().optional(),yearly:x.union([x.number(),x.string()]).nullable().optional(),two_yearly:x.union([x.number(),x.string()]).nullable().optional(),three_yearly:x.union([x.number(),x.string()]).nullable().optional(),onetime:x.union([x.number(),x.string()]).nullable().optional(),reset_traffic:x.union([x.number(),x.string()]).nullable().optional()}).default({}),speed_limit:x.union([x.number(),x.string()]).nullable().optional(),capacity_limit:x.union([x.number(),x.string()]).nullable().optional(),device_limit:x.union([x.number(),x.string()]).nullable().optional(),force_update:x.boolean().optional(),reset_traffic_method:x.number().nullable(),users_count:x.number().optional()}),Tn=m.forwardRef(({className:s,...a},t)=>e.jsx(Xl,{ref:t,className:y("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:e.jsx(Sc,{className:y("flex items-center justify-center text-current"),children:e.jsx(et,{className:"h-4 w-4"})})}));Tn.displayName=Xl.displayName;const aa={id:null,group_id:null,name:"",content:"",transfer_enable:"",prices:{monthly:"",quarterly:"",half_yearly:"",yearly:"",two_yearly:"",three_yearly:"",onetime:"",reset_traffic:""},speed_limit:"",capacity_limit:"",device_limit:"",force_update:!1,reset_traffic_method:null},na={monthly:{label:"月付",months:1,discount:1},quarterly:{label:"季付",months:3,discount:.95},half_yearly:{label:"半年付",months:6,discount:.9},yearly:{label:"年付",months:12,discount:.85},two_yearly:{label:"两年付",months:24,discount:.8},three_yearly:{label:"三年付",months:36,discount:.75},onetime:{label:"流量包",months:1,discount:1},reset_traffic:{label:"重置包",months:1,discount:1}},hx=[{value:null,label:"follow_system"},{value:0,label:"monthly_first"},{value:1,label:"monthly_reset"},{value:2,label:"no_reset"},{value:3,label:"yearly_first"},{value:4,label:"yearly_reset"}];function px(){const{isOpen:s,setIsOpen:a,editingPlan:t,setEditingPlan:l,refreshData:n}=kn(),[o,r]=m.useState(!1),{t:c}=V("subscribe"),u=ye({resolver:_e(xx),defaultValues:{...aa,...t||{}},mode:"onChange"});m.useEffect(()=>{t?u.reset({...aa,...t}):u.reset(aa)},[t,u]);const i=new fn({html:!0}),[d,h]=m.useState();async function _(){at.getList().then(({data:C})=>{h(C)})}m.useEffect(()=>{s&&_()},[s]);const T=C=>{if(isNaN(C))return;const N=Object.entries(na).reduce((g,[k,R])=>{const p=C*R.months*R.discount;return{...g,[k]:p.toFixed(2)}},{});u.setValue("prices",N,{shouldDirty:!0})},S=()=>{a(!1),l(null),u.reset(aa)};return e.jsx(pe,{open:s,onOpenChange:S,children:e.jsxs(ue,{children:[e.jsxs(ve,{children:[e.jsx(ge,{children:c(t?"plan.form.edit_title":"plan.form.add_title")}),e.jsx(Le,{})]}),e.jsxs(we,{...u,children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"name",render:({field:C})=>e.jsxs(f,{children:[e.jsx(j,{children:c("plan.form.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:c("plan.form.name.placeholder"),...C})}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"group_id",render:({field:C})=>e.jsxs(f,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[c("plan.form.group.label"),e.jsx(Va,{dialogTrigger:e.jsx(E,{variant:"link",children:c("plan.form.group.add")}),refetch:_})]}),e.jsxs(X,{value:C.value?.toString()??"",onValueChange:N=>C.onChange(N?Number(N):null),children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:c("plan.form.group.placeholder")})})}),e.jsx(J,{children:d?.map(N=>e.jsx($,{value:N.id.toString(),children:N.name},N.id))})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"transfer_enable",render:({field:C})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.transfer.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.transfer.placeholder"),className:"rounded-r-none",...C})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.transfer.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"speed_limit",render:({field:C})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.speed.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.speed.placeholder"),className:"rounded-r-none",...C,value:C.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.speed.unit")})]}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center",children:[e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"}),e.jsx("h3",{className:"mx-4 text-sm font-medium text-gray-500 dark:text-gray-400",children:c("plan.form.price.title")}),e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(D,{type:"number",placeholder:c("plan.form.price.base_price"),className:"h-7 w-32 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500",onChange:C=>{const N=parseFloat(C.target.value);T(N)}})]}),e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(E,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>{const C=Object.keys(na).reduce((N,g)=>({...N,[g]:""}),{});u.setValue("prices",C,{shouldDirty:!0})},children:c("plan.form.price.clear.button")})}),e.jsx(de,{side:"top",align:"end",children:e.jsx("p",{className:"text-xs",children:c("plan.form.price.clear.tooltip")})})]})})]})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-3",children:Object.entries(na).filter(([C])=>!["onetime","reset_traffic"].includes(C)).map(([C,N])=>e.jsx("div",{className:"group relative rounded-md bg-card p-2 ring-1 ring-gray-200 transition-all hover:ring-primary dark:ring-gray-800",children:e.jsx(v,{control:u.control,name:`prices.${C}`,render:({field:g})=>e.jsxs(f,{children:[e.jsxs(j,{className:"text-xs font-medium text-muted-foreground",children:[c(`plan.columns.price_period.${C}`),e.jsxs("span",{className:"ml-1 text-[10px] text-gray-400",children:["(",N.months===1?c("plan.form.price.period.monthly"):c("plan.form.price.period.months",{count:N.months}),")"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...g,value:g.value??"",onChange:k=>g.onChange(k.target.value),className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})},C))}),e.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Object.entries(na).filter(([C])=>["onetime","reset_traffic"].includes(C)).map(([C,N])=>e.jsx("div",{className:"rounded-md border border-dashed border-gray-200 bg-muted/30 p-3 dark:border-gray-700",children:e.jsx(v,{control:u.control,name:`prices.${C}`,render:({field:g})=>e.jsx(f,{children:e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-0",children:[e.jsx(j,{className:"text-xs font-medium",children:c(`plan.columns.price_period.${C}`)}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:c(C==="onetime"?"plan.form.price.onetime_desc":"plan.form.price.reset_desc")})]}),e.jsxs("div",{className:"relative w-full md:w-32",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...g,className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})})},C))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(v,{control:u.control,name:"device_limit",render:({field:C})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.device.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.device.placeholder"),className:"rounded-r-none",...C,value:C.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.device.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"capacity_limit",render:({field:C})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.capacity.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.capacity.placeholder"),className:"rounded-r-none",...C,value:C.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.capacity.unit")})]}),e.jsx(P,{})]})})]}),e.jsx(v,{control:u.control,name:"reset_traffic_method",render:({field:C})=>e.jsxs(f,{children:[e.jsx(j,{children:c("plan.form.reset_method.label")}),e.jsxs(X,{value:C.value?.toString()??"null",onValueChange:N=>C.onChange(N=="null"?null:Number(N)),children:[e.jsx(b,{children:e.jsx(Y,{children:e.jsx(Z,{placeholder:c("plan.form.reset_method.placeholder")})})}),e.jsx(J,{children:hx.map(N=>e.jsx($,{value:N.value?.toString()??"null",children:c(`plan.form.reset_method.options.${N.label}`)},N.value))})]}),e.jsx(F,{className:"text-xs",children:c("plan.form.reset_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"content",render:({field:C})=>{const[N,g]=m.useState(!1);return e.jsxs(f,{className:"space-y-2",children:[e.jsxs(j,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[c("plan.form.content.label"),e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(E,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>g(!N),children:N?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{d:"M10 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),e.jsx("path",{fillRule:"evenodd",d:"M.664 10.59a1.651 1.651 0 010-1.186A10.004 10.004 0 0110 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0110 17c-4.257 0-7.893-2.66-9.336-6.41zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{fillRule:"evenodd",d:"M3.28 2.22a.75.75 0 00-1.06 1.06l14.5 14.5a.75.75 0 101.06-1.06l-1.745-1.745a10.029 10.029 0 003.3-4.38 1.651 1.651 0 000-1.185A10.004 10.004 0 009.999 3a9.956 9.956 0 00-4.744 1.194L3.28 2.22zM7.752 6.69l1.092 1.092a2.5 2.5 0 013.374 3.373l1.091 1.092a4 4 0 00-5.557-5.557z",clipRule:"evenodd"}),e.jsx("path",{d:"M10.748 13.93l2.523 2.523a9.987 9.987 0 01-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 010-1.186A10.007 10.007 0 012.839 6.02L6.07 9.252a4 4 0 004.678 4.678z"})]})})}),e.jsx(de,{side:"top",children:e.jsx("p",{className:"text-xs",children:c(N?"plan.form.content.preview_button.hide":"plan.form.content.preview_button.show")})})]})})]}),e.jsx(be,{children:e.jsxs(xe,{children:[e.jsx(he,{asChild:!0,children:e.jsx(E,{variant:"outline",size:"sm",onClick:()=>{C.onChange(c("plan.form.content.template.content"))},children:c("plan.form.content.template.button")})}),e.jsx(de,{side:"left",align:"center",children:e.jsx("p",{className:"text-xs",children:c("plan.form.content.template.tooltip")})})]})})]}),e.jsxs("div",{className:`grid gap-4 ${N?"grid-cols-1 lg:grid-cols-2":"grid-cols-1"}`,children:[e.jsx("div",{className:"space-y-2",children:e.jsx(b,{children:e.jsx(jn,{style:{height:"400px"},value:C.value||"",renderHTML:k=>i.render(k),onChange:({text:k})=>C.onChange(k),config:{view:{menu:!0,md:!0,html:!1},canView:{menu:!0,md:!0,html:!1,fullScreen:!1,hideMenu:!1}},placeholder:c("plan.form.content.placeholder"),className:"rounded-md border"})})}),N&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:c("plan.form.content.preview")}),e.jsx("div",{className:"prose prose-sm dark:prose-invert h-[400px] max-w-none overflow-y-auto rounded-md border p-4",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:i.render(C.value||"")}})})]})]}),e.jsx(F,{className:"text-xs",children:c("plan.form.content.description")}),e.jsx(P,{})]})}})]}),e.jsx(Re,{className:"mt-6",children:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx("div",{className:"flex-shrink-0",children:t&&e.jsx(v,{control:u.control,name:"force_update",render:({field:C})=>e.jsxs(f,{className:"flex flex-row items-center space-x-2 space-y-0",children:[e.jsx(b,{children:e.jsx(Tn,{checked:C.value,onCheckedChange:C.onChange})}),e.jsx("div",{className:"",children:e.jsx(j,{className:"text-sm",children:c("plan.form.force_update.label")})})]})})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(E,{type:"button",variant:"outline",onClick:S,children:c("plan.form.submit.cancel")}),e.jsx(E,{type:"submit",disabled:o,onClick:()=>{u.handleSubmit(async C=>{r(!0),(await es.save(C)).data&&(A.success(c(t?"plan.form.submit.success.update":"plan.form.submit.success.add")),S(),n()),r(!1)})()},children:c(o?"plan.form.submit.submitting":"plan.form.submit.submit")})]})]})})]})]})})}function gx(){const[s,a]=m.useState({}),[t,l]=m.useState({"drag-handle":!1}),[n,o]=m.useState([]),[r,c]=m.useState([]),[u,i]=m.useState(!1),[d,h]=m.useState({pageSize:20,pageIndex:0}),[_,T]=m.useState([]),{refetch:S}=ne({queryKey:["planList"],queryFn:async()=>{const{data:R}=await es.getList();return T(R),R}});m.useEffect(()=>{l({"drag-handle":u}),h({pageSize:u?99999:10,pageIndex:0})},[u]);const C=(R,p)=>{u&&(R.dataTransfer.setData("text/plain",p.toString()),R.currentTarget.classList.add("opacity-50"))},N=(R,p)=>{if(!u)return;R.preventDefault(),R.currentTarget.classList.remove("bg-muted");const w=parseInt(R.dataTransfer.getData("text/plain"));if(w===p)return;const I=[..._],[H]=I.splice(w,1);I.splice(p,0,H),T(I)},g=async()=>{if(!u){i(!0);return}const R=_?.map(p=>p.id);es.sort(R).then(()=>{A.success("排序保存成功"),i(!1),S()}).finally(()=>{i(!1)})},k=Je({data:_||[],columns:ux(S),state:{sorting:r,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:d},enableRowSelection:!0,onPaginationChange:h,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:o,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}},pageCount:u?1:void 0});return e.jsx(dx,{refreshData:S,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(is,{table:k,toolbar:R=>e.jsx(mx,{table:R,refetch:S,saveOrder:g,isSortMode:u}),draggable:u,onDragStart:C,onDragEnd:R=>R.currentTarget.classList.remove("opacity-50"),onDragOver:R=>{R.preventDefault(),R.currentTarget.classList.add("bg-muted")},onDragLeave:R=>R.currentTarget.classList.remove("bg-muted"),onDrop:N,showPagination:!u}),e.jsx(px,{})]})})}function fx(){const{t:s}=V("subscribe");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("plan.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("plan.page.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(gx,{})})]})]})}const jx=Object.freeze(Object.defineProperty({__proto__:null,default:fx},Symbol.toStringTag,{value:"Module"})),ht=[{value:ae.PENDING,label:Pt[ae.PENDING],icon:kc,color:Et[ae.PENDING]},{value:ae.PROCESSING,label:Pt[ae.PROCESSING],icon:Zl,color:Et[ae.PROCESSING]},{value:ae.COMPLETED,label:Pt[ae.COMPLETED],icon:nn,color:Et[ae.COMPLETED]},{value:ae.CANCELLED,label:Pt[ae.CANCELLED],icon:er,color:Et[ae.CANCELLED]},{value:ae.DISCOUNTED,label:Pt[ae.DISCOUNTED],icon:nn,color:Et[ae.DISCOUNTED]}],Vt=[{value:je.PENDING,label:Zt[je.PENDING],icon:Tc,color:ea[je.PENDING]},{value:je.PROCESSING,label:Zt[je.PROCESSING],icon:Zl,color:ea[je.PROCESSING]},{value:je.VALID,label:Zt[je.VALID],icon:nn,color:ea[je.VALID]},{value:je.INVALID,label:Zt[je.INVALID],icon:er,color:ea[je.INVALID]}];function la({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=s?.getFilterValue(),o=Array.isArray(n)?new Set(n):n!==void 0?new Set([n]):new Set;return e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),a,o?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:o.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:o.size>2?e.jsxs(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[o.size," selected"]}):t.filter(r=>o.has(r.value)).map(r=>e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:r.label},r.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(nt,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(lt,{children:"No results found."}),e.jsx(as,{children:t.map(r=>{const c=o.has(r.value);return e.jsxs($e,{onSelect:()=>{const u=new Set(o);c?u.delete(r.value):u.add(r.value);const i=Array.from(u);s?.setFilterValue(i.length?i:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",c?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(et,{className:y("h-4 w-4")})}),r.icon&&e.jsx(r.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${r.color}`}),e.jsx("span",{children:r.label}),l?.get(r.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(r.value)})]},r.value)})}),o.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(St,{}),e.jsx(as,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const vx=x.object({email:x.string().min(1),plan_id:x.number(),period:x.string(),total_amount:x.number()}),bx={email:"",plan_id:0,total_amount:0,period:""};function Or({refetch:s,trigger:a,defaultValues:t}){const{t:l}=V("order"),[n,o]=m.useState(!1),r=ye({resolver:_e(vx),defaultValues:{...bx,...t},mode:"onChange"}),[c,u]=m.useState([]);return m.useEffect(()=>{n&&es.getList().then(({data:i})=>{u(i)})},[n]),e.jsxs(pe,{open:n,onOpenChange:o,children:[e.jsx(rs,{asChild:!0,children:a||e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:l("dialog.addOrder")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:l("dialog.assignOrder")}),e.jsx(Le,{})]}),e.jsxs(we,{...r,children:[e.jsx(v,{control:r.control,name:"email",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.userEmail")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dialog.placeholders.email"),...i})})]})}),e.jsx(v,{control:r.control,name:"plan_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.subscriptionPlan")}),e.jsx(b,{children:e.jsxs(X,{value:i.value?i.value?.toString():void 0,onValueChange:d=>i.onChange(parseInt(d)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dialog.placeholders.plan")})}),e.jsx(J,{children:c.map(d=>e.jsx($,{value:d.id.toString(),children:d.name},d.id))})]})})]})}),e.jsx(v,{control:r.control,name:"period",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.orderPeriod")}),e.jsx(b,{children:e.jsxs(X,{value:i.value,onValueChange:i.onChange,children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:l("dialog.placeholders.period")})}),e.jsx(J,{children:Object.keys(Ud).map(d=>e.jsx($,{value:d,children:l(`period.${d}`)},d))})]})})]})}),e.jsx(v,{control:r.control,name:"total_amount",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.paymentAmount")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dialog.placeholders.amount"),value:i.value/100,onChange:d=>i.onChange(parseFloat(d.currentTarget.value)*100)})}),e.jsx(P,{})]})}),e.jsxs(Re,{children:[e.jsx(E,{variant:"outline",onClick:()=>o(!1),children:l("dialog.actions.cancel")}),e.jsx(E,{type:"submit",onClick:()=>{r.handleSubmit(i=>{Ys.assign(i).then(({data:d})=>{d&&(s&&s(),r.reset(),o(!1),A.success(l("dialog.messages.addSuccess")))})})()},children:l("dialog.actions.confirm")})]})]})]})]})}function yx({table:s,refetch:a}){const{t}=V("order"),l=s.getState().columnFilters.length>0,n=Object.values(ps).filter(u=>typeof u=="number").map(u=>({label:t(`type.${ps[u]}`),value:u,color:u===ps.NEW?"green-500":u===ps.RENEWAL?"blue-500":u===ps.UPGRADE?"purple-500":"orange-500"})),o=Object.values(Ie).map(u=>({label:t(`period.${u}`),value:u,color:u===Ie.MONTH_PRICE?"slate-500":u===Ie.QUARTER_PRICE?"cyan-500":u===Ie.HALF_YEAR_PRICE?"indigo-500":u===Ie.YEAR_PRICE?"violet-500":u===Ie.TWO_YEAR_PRICE?"fuchsia-500":u===Ie.THREE_YEAR_PRICE?"pink-500":u===Ie.ONETIME_PRICE?"rose-500":"orange-500"})),r=Object.values(ae).filter(u=>typeof u=="number").map(u=>({label:t(`status.${ae[u]}`),value:u,icon:u===ae.PENDING?ht[0].icon:u===ae.PROCESSING?ht[1].icon:u===ae.COMPLETED?ht[2].icon:u===ae.CANCELLED?ht[3].icon:ht[4].icon,color:u===ae.PENDING?"yellow-500":u===ae.PROCESSING?"blue-500":u===ae.COMPLETED?"green-500":u===ae.CANCELLED?"red-500":"green-500"})),c=Object.values(je).filter(u=>typeof u=="number").map(u=>({label:t(`commission.${je[u]}`),value:u,icon:u===je.PENDING?Vt[0].icon:u===je.PROCESSING?Vt[1].icon:u===je.VALID?Vt[2].icon:Vt[3].icon,color:u===je.PENDING?"yellow-500":u===je.PROCESSING?"blue-500":u===je.VALID?"green-500":"red-500"}));return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Or,{refetch:a}),e.jsx(D,{placeholder:t("search.placeholder"),value:s.getColumn("trade_no")?.getFilterValue()??"",onChange:u=>s.getColumn("trade_no")?.setFilterValue(u.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex flex-wrap gap-x-2",children:[s.getColumn("type")&&e.jsx(la,{column:s.getColumn("type"),title:t("table.columns.type"),options:n}),s.getColumn("period")&&e.jsx(la,{column:s.getColumn("period"),title:t("table.columns.period"),options:o}),s.getColumn("status")&&e.jsx(la,{column:s.getColumn("status"),title:t("table.columns.status"),options:r}),s.getColumn("commission_status")&&e.jsx(la,{column:s.getColumn("commission_status"),title:t("table.columns.commissionStatus"),options:c})]}),l&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[t("actions.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})}function us({label:s,value:a,className:t,valueClassName:l}){return e.jsxs("div",{className:y("flex items-center py-1.5",t),children:[e.jsx("div",{className:"w-28 shrink-0 text-sm text-muted-foreground",children:s}),e.jsx("div",{className:y("text-sm",l),children:a||"-"})]})}function Nx({status:s}){const{t:a}=V("order"),t={[ae.PENDING]:"bg-yellow-100 text-yellow-800 hover:bg-yellow-100",[ae.PROCESSING]:"bg-blue-100 text-blue-800 hover:bg-blue-100",[ae.CANCELLED]:"bg-red-100 text-red-800 hover:bg-red-100",[ae.COMPLETED]:"bg-green-100 text-green-800 hover:bg-green-100",[ae.DISCOUNTED]:"bg-gray-100 text-gray-800 hover:bg-gray-100"};return e.jsx(B,{variant:"secondary",className:y("font-medium",t[s]),children:a(`status.${ae[s]}`)})}function _x({id:s,trigger:a}){const[t,l]=m.useState(!1),[n,o]=m.useState(),{t:r}=V("order");return m.useEffect(()=>{(async()=>{if(t){const{data:u}=await Ys.getInfo({id:s});o(u)}})()},[t,s]),e.jsxs(pe,{onOpenChange:l,open:t,children:[e.jsx(rs,{asChild:!0,children:a}),e.jsxs(ue,{className:"max-w-xl",children:[e.jsxs(ve,{className:"space-y-2",children:[e.jsx(ge,{className:"text-lg font-medium",children:r("dialog.title")}),e.jsx("div",{className:"flex items-center justify-between text-sm",children:e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("div",{className:"text-muted-foreground",children:[r("table.columns.tradeNo"),":",n?.trade_no]}),n?.status&&e.jsx(Nx,{status:n.status})]})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:r("dialog.basicInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(us,{label:r("dialog.fields.userEmail"),value:n?.user?.email?e.jsxs(st,{to:`/user/manage?email=${n.user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[n.user.email,e.jsx(sr,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]}):"-"}),e.jsx(us,{label:r("dialog.fields.orderPeriod"),value:n&&r(`period.${n.period}`)}),e.jsx(us,{label:r("dialog.fields.subscriptionPlan"),value:n?.plan?.name,valueClassName:"font-medium"}),e.jsx(us,{label:r("dialog.fields.callbackNo"),value:n?.callback_no,valueClassName:"font-mono text-xs"})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:r("dialog.amountInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(us,{label:r("dialog.fields.paymentAmount"),value:Ws(n?.total_amount||0),valueClassName:"font-medium text-primary"}),e.jsx(ke,{className:"my-2"}),e.jsx(us,{label:r("dialog.fields.balancePayment"),value:Ws(n?.balance_amount||0)}),e.jsx(us,{label:r("dialog.fields.discountAmount"),value:Ws(n?.discount_amount||0),valueClassName:"text-green-600"}),e.jsx(us,{label:r("dialog.fields.refundAmount"),value:Ws(n?.refund_amount||0),valueClassName:"text-red-600"}),e.jsx(us,{label:r("dialog.fields.deductionAmount"),value:Ws(n?.surplus_amount||0)})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:r("dialog.timeInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(us,{label:r("dialog.fields.createdAt"),value:Ce(n?.created_at),valueClassName:"font-mono text-xs"}),e.jsx(us,{label:r("dialog.fields.updatedAt"),value:Ce(n?.updated_at),valueClassName:"font-mono text-xs"})]})]})]})]})]})}const wx={[ps.NEW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[ps.RENEWAL]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[ps.UPGRADE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[ps.RESET_FLOW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Cx={[Ie.MONTH_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.QUARTER_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.HALF_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.TWO_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.THREE_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.ONETIME_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.RESET_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Sx=s=>ae[s],kx=s=>je[s],Tx=s=>ps[s],Dx=s=>{const{t:a}=V("order");return[{accessorKey:"trade_no",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.tradeNo")}),cell:({row:t})=>{const l=t.original.trade_no,n=l.length>6?`${l.slice(0,3)}...${l.slice(-3)}`:l;return e.jsx("div",{className:"flex items-center",children:e.jsx(_x,{trigger:e.jsxs(G,{variant:"ghost",size:"sm",className:"flex h-8 items-center gap-1.5 px-2 font-medium text-primary transition-colors hover:bg-primary/10 hover:text-primary/80",children:[e.jsx("span",{className:"font-mono",children:n}),e.jsx(sr,{className:"h-3.5 w-3.5 opacity-70"})]}),id:t.original.id})})},enableSorting:!1,enableHiding:!1},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.type")}),cell:({row:t})=>{const l=t.getValue("type"),n=wx[l];return e.jsx(B,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",n.color,n.bgColor,"border border-border/50","hover:bg-slate-200/80"),children:a(`type.${Tx(l)}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"plan.name",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.plan")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium text-foreground/90 sm:max-w-72 md:max-w-[31rem]",children:t.original.plan?.name||"-"})}),enableSorting:!1,enableHiding:!1},{accessorKey:"period",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.period")}),cell:({row:t})=>{const l=t.getValue("period"),n=Cx[l];return e.jsx(B,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",n?.color,n?.bgColor,"hover:bg-opacity-80"),children:a(`period.${l}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"total_amount",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.amount")}),cell:({row:t})=>{const l=t.getValue("total_amount"),n=typeof l=="number"?(l/100).toFixed(2):"N/A";return e.jsxs("div",{className:"flex items-center font-mono text-foreground/90",children:["¥",n]})},enableSorting:!0,enableHiding:!1},{accessorKey:"status",header:({column:t})=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(z,{column:t,title:a("table.columns.status")}),e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{children:e.jsx(Pr,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-muted-foreground"})}),e.jsx(de,{side:"top",className:"max-w-[200px] text-sm",children:a("status.tooltip")})]})})]}),cell:({row:t})=>{const l=ht.find(n=>n.value===t.getValue("status"));return l?e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l.icon&&e.jsx(l.icon,{className:`h-4 w-4 text-${l.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`status.${Sx(l.value)}`)})]}),l.value===ae.PENDING&&e.jsxs(Es,{modal:!0,children:[e.jsx(Rs,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(ua,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(Cs,{align:"end",className:"w-[140px]",children:[e.jsx(Ne,{className:"cursor-pointer",onClick:async()=>{await Ys.markPaid({trade_no:t.original.trade_no}),s()},children:a("actions.markAsPaid")}),e.jsx(Ne,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await Ys.makeCancel({trade_no:t.original.trade_no}),s()},children:a("actions.cancel")})]})]})]}):null},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_balance",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.commission")}),cell:({row:t})=>{const l=t.getValue("commission_balance"),n=l?(l/100).toFixed(2):"-";return e.jsx("div",{className:"flex items-center font-mono text-foreground/90",children:l?`¥${n}`:"-"})},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_status",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.commissionStatus")}),cell:({row:t})=>{const l=t.original.status,n=t.original.commission_balance,o=Vt.find(r=>r.value===t.getValue("commission_status"));return n==0||!o?e.jsx("span",{className:"text-muted-foreground",children:"-"}):e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[o.icon&&e.jsx(o.icon,{className:`h-4 w-4 text-${o.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`commission.${kx(o.value)}`)})]}),o.value===je.PENDING&&l===ae.COMPLETED&&e.jsxs(Es,{modal:!0,children:[e.jsx(Rs,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(ua,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(Cs,{align:"end",className:"w-[120px]",children:[e.jsx(Ne,{className:"cursor-pointer",onClick:async()=>{await Ys.update({trade_no:t.original.trade_no,commission_status:je.PROCESSING}),s()},children:a("commission.PROCESSING")}),e.jsx(Ne,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await Ys.update({trade_no:t.original.trade_no,commission_status:je.INVALID}),s()},children:a("commission.INVALID")})]})]})]})},enableSorting:!0,enableHiding:!1},{accessorKey:"created_at",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.createdAt")}),cell:({row:t})=>e.jsx("div",{className:"text-nowrap font-mono text-sm text-muted-foreground",children:Ce(t.getValue("created_at"),"YYYY/MM/DD HH:mm:ss")}),enableSorting:!0,enableHiding:!1}]};function Px(){const[s]=tr(),[a,t]=m.useState({}),[l,n]=m.useState({}),[o,r]=m.useState([]),[c,u]=m.useState([]),[i,d]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const N=Object.entries({user_id:"string",order_id:"string",commission_status:"number",status:"number",commission_balance:"string"}).map(([g,k])=>{const R=s.get(g);return R?{id:g,value:k==="number"?parseInt(R):R}:null}).filter(Boolean);N.length>0&&r(N)},[s]);const{refetch:h,data:_,isLoading:T}=ne({queryKey:["orderList",i,o,c],queryFn:()=>Ys.getList({pageSize:i.pageSize,current:i.pageIndex+1,filter:o,sort:c})}),S=Je({data:_?.data??[],columns:Dx(h),state:{sorting:c,columnVisibility:l,rowSelection:a,columnFilters:o,pagination:i},rowCount:_?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:t,onSortingChange:u,onColumnFiltersChange:r,onColumnVisibilityChange:n,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),onPaginationChange:d,getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(is,{table:S,toolbar:e.jsx(yx,{table:S,refetch:h}),showPagination:!0})}function Ex(){const{t:s}=V("order");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Px,{})})]})]})}const Rx=Object.freeze(Object.defineProperty({__proto__:null,default:Ex},Symbol.toStringTag,{value:"Module"}));function Ix({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(o=>n.has(o.value)).map(o=>e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:o.label},o.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(nt,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(lt,{children:"No results found."}),e.jsx(as,{children:t.map(o=>{const r=n.has(o.value);return e.jsxs($e,{onSelect:()=>{r?n.delete(o.value):n.add(o.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",r?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(et,{className:y("h-4 w-4")})}),o.icon&&e.jsx(o.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${o.color}`}),e.jsx("span",{children:o.label}),l?.get(o.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(o.value)})]},o.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(St,{}),e.jsx(as,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Lx=x.object({id:x.coerce.number().nullable().optional(),name:x.string().min(1,"请输入优惠券名称"),code:x.string().nullable(),type:x.coerce.number(),value:x.coerce.number(),started_at:x.coerce.number(),ended_at:x.coerce.number(),limit_use:x.union([x.string(),x.number()]).nullable(),limit_use_with_user:x.union([x.string(),x.number()]).nullable(),generate_count:x.coerce.number().nullable().optional(),limit_plan_ids:x.array(x.coerce.number()).default([]).nullable(),limit_period:x.array(x.nativeEnum(zt)).default([]).nullable()}).refine(s=>s.ended_at>s.started_at,{message:"结束时间必须晚于开始时间",path:["ended_at"]}),Zn={name:"",code:null,type:Ze.AMOUNT,value:0,started_at:Math.floor(Date.now()/1e3),ended_at:Math.floor(Date.now()/1e3)+7*24*60*60,limit_use:null,limit_use_with_user:null,limit_plan_ids:[],limit_period:[],generate_count:null};function zr({defaultValues:s,refetch:a,type:t="create",dialogTrigger:l=null,open:n,onOpenChange:o}){const{t:r}=V("coupon"),[c,u]=m.useState(!1),i=n??c,d=o??u,[h,_]=m.useState([]),T=ye({resolver:_e(Lx),defaultValues:s||Zn});m.useEffect(()=>{s&&T.reset(s)},[s,T]),m.useEffect(()=>{es.getList().then(({data:g})=>_(g))},[]);const S=g=>{if(!g)return;const k=(R,p)=>{const w=new Date(p*1e3);return R.setHours(w.getHours(),w.getMinutes(),w.getSeconds()),Math.floor(R.getTime()/1e3)};g.from&&T.setValue("started_at",k(g.from,T.watch("started_at"))),g.to&&T.setValue("ended_at",k(g.to,T.watch("ended_at")))},C=async g=>{const k=await ga.save(g);if(g.generate_count&&k){const R=new Blob([k],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a");p.href=window.URL.createObjectURL(R),p.download=`coupons_${new Date().getTime()}.csv`,p.click(),window.URL.revokeObjectURL(p.href)}d(!1),t==="create"&&T.reset(Zn),a()},N=(g,k)=>e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground",children:k}),e.jsx(D,{type:"datetime-local",step:"1",value:Ce(T.watch(g),"YYYY-MM-DDTHH:mm:ss"),onChange:R=>{const p=new Date(R.target.value);T.setValue(g,Math.floor(p.getTime()/1e3))},className:"h-8 [&::-webkit-calendar-picker-indicator]:hidden"})]});return e.jsxs(pe,{open:i,onOpenChange:d,children:[l&&e.jsx(rs,{asChild:!0,children:l}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(ve,{children:e.jsx(ge,{children:r(t==="create"?"form.add":"form.edit")})}),e.jsx(we,{...T,children:e.jsxs("form",{onSubmit:T.handleSubmit(C),className:"space-y-4",children:[e.jsx(v,{control:T.control,name:"name",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.name.label")}),e.jsx(D,{placeholder:r("form.name.placeholder"),...g}),e.jsx(P,{})]})}),t==="create"&&e.jsx(v,{control:T.control,name:"generate_count",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.generateCount.label")}),e.jsx(D,{type:"number",min:0,placeholder:r("form.generateCount.placeholder"),...g,value:g.value===void 0?"":g.value,onChange:k=>g.onChange(k.target.value===""?"":parseInt(k.target.value)),className:"h-9"}),e.jsx(F,{className:"text-xs",children:r("form.generateCount.description")}),e.jsx(P,{})]})}),(!T.watch("generate_count")||T.watch("generate_count")==null)&&e.jsx(v,{control:T.control,name:"code",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.code.label")}),e.jsx(D,{placeholder:r("form.code.placeholder"),...g,className:"h-9"}),e.jsx(F,{className:"text-xs",children:r("form.code.description")}),e.jsx(P,{})]})}),e.jsxs(f,{children:[e.jsx(j,{children:r("form.type.label")}),e.jsxs("div",{className:"flex",children:[e.jsx(v,{control:T.control,name:"type",render:({field:g})=>e.jsxs(X,{value:g.value.toString(),onValueChange:k=>{const R=g.value,p=parseInt(k);g.onChange(p);const w=T.getValues("value");w&&(R===Ze.AMOUNT&&p===Ze.PERCENTAGE?T.setValue("value",w/100):R===Ze.PERCENTAGE&&p===Ze.AMOUNT&&T.setValue("value",w*100))},children:[e.jsx(Y,{className:"flex-[1.2] rounded-r-none border-r-0 focus:z-10",children:e.jsx(Z,{placeholder:r("form.type.placeholder")})}),e.jsx(J,{children:Object.entries(Kd).map(([k,R])=>e.jsx($,{value:k,children:r(`table.toolbar.types.${k}`)},k))})]})}),e.jsx(v,{control:T.control,name:"value",render:({field:g})=>{const k=g.value==null?"":T.watch("type")===Ze.AMOUNT&&typeof g.value=="number"?(g.value/100).toString():g.value.toString();return e.jsx(D,{type:"number",placeholder:r("form.value.placeholder"),...g,value:k,onChange:R=>{const p=R.target.value;if(p===""){g.onChange("");return}const w=parseFloat(p);isNaN(w)||g.onChange(T.watch("type")===Ze.AMOUNT?Math.round(w*100):w)},step:"any",min:0,className:"flex-[2] rounded-none border-x-0 text-left"})}}),e.jsx("div",{className:"flex min-w-[40px] items-center justify-center rounded-md rounded-l-none border border-l-0 border-input bg-muted/50 px-3 font-medium text-muted-foreground",children:e.jsx("span",{children:T.watch("type")==Ze.AMOUNT?"¥":"%"})})]})]}),e.jsxs(f,{children:[e.jsx(j,{children:r("form.validity.label")}),e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(E,{variant:"outline",className:y("w-full justify-start text-left font-normal",!T.watch("started_at")&&"text-muted-foreground"),children:[e.jsx(Kt,{className:"mr-2 h-4 w-4"}),Ce(T.watch("started_at"),"YYYY-MM-DD HH:mm:ss")," ",r("form.validity.to")," ",Ce(T.watch("ended_at"),"YYYY-MM-DD HH:mm:ss")]})}),e.jsxs(bs,{className:"w-auto p-0",align:"start",children:[e.jsx("div",{className:"border-b border-border",children:e.jsx(rt,{mode:"range",selected:{from:new Date(T.watch("started_at")*1e3),to:new Date(T.watch("ended_at")*1e3)},onSelect:S,numberOfMonths:2})}),e.jsx("div",{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-4",children:[N("started_at",r("table.validity.startTime")),e.jsx("div",{className:"mt-6 text-sm text-muted-foreground",children:r("form.validity.to")}),N("ended_at",r("table.validity.endTime"))]})})]})]}),e.jsx(P,{})]}),e.jsx(v,{control:T.control,name:"limit_use",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.limitUse.label")}),e.jsx(D,{type:"number",min:0,placeholder:r("form.limitUse.placeholder"),...g,value:g.value===null?"":g.value,onChange:k=>g.onChange(k.target.value===""?null:parseInt(k.target.value)),className:"h-9"}),e.jsx(F,{className:"text-xs",children:r("form.limitUse.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:T.control,name:"limit_use_with_user",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.limitUseWithUser.label")}),e.jsx(D,{type:"number",min:0,placeholder:r("form.limitUseWithUser.placeholder"),...g,value:g.value===null?"":g.value,onChange:k=>g.onChange(k.target.value===""?null:parseInt(k.target.value)),className:"h-9"}),e.jsx(F,{className:"text-xs",children:r("form.limitUseWithUser.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:T.control,name:"limit_period",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.limitPeriod.label")}),e.jsx(_t,{options:Object.entries(zt).filter(([k])=>isNaN(Number(k))).map(([k,R])=>({label:r(`coupon:period.${R}`),value:k})),onChange:k=>{if(k.length===0){g.onChange([]);return}const R=k.map(p=>zt[p.value]);g.onChange(R)},value:(g.value||[]).map(k=>({label:r(`coupon:period.${k}`),value:Object.entries(zt).find(([R,p])=>p===k)?.[0]||""})),placeholder:r("form.limitPeriod.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:r("form.limitPeriod.empty")})}),e.jsx(F,{className:"text-xs",children:r("form.limitPeriod.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:T.control,name:"limit_plan_ids",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:r("form.limitPlan.label")}),e.jsx(_t,{options:h?.map(k=>({label:k.name,value:k.id.toString()}))||[],onChange:k=>g.onChange(k.map(R=>Number(R.value))),value:(h||[]).filter(k=>(g.value||[]).includes(k.id)).map(k=>({label:k.name,value:k.id.toString()})),placeholder:r("form.limitPlan.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:r("form.limitPlan.empty")})}),e.jsx(P,{})]})}),e.jsx(Re,{children:e.jsx(E,{type:"submit",disabled:T.formState.isSubmitting,children:T.formState.isSubmitting?r("form.submit.saving"):r("form.submit.save")})})]})})]})]})}function Vx({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("coupon");return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(zr,{refetch:a,dialogTrigger:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:l("form.add")})]})}),e.jsx(D,{placeholder:l("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),s.getColumn("type")&&e.jsx(Ix,{column:s.getColumn("type"),title:l("table.toolbar.type"),options:[{value:Ze.AMOUNT,label:l(`table.toolbar.types.${Ze.AMOUNT}`)},{value:Ze.PERCENTAGE,label:l(`table.toolbar.types.${Ze.PERCENTAGE}`)}]}),t&&e.jsxs(E,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})}const $r=m.createContext(void 0);function Fx({children:s,refetch:a}){const[t,l]=m.useState(!1),[n,o]=m.useState(null),r=u=>{o(u),l(!0)},c=()=>{l(!1),o(null)};return e.jsxs($r.Provider,{value:{isOpen:t,currentCoupon:n,openEdit:r,closeEdit:c},children:[s,n&&e.jsx(zr,{defaultValues:n,refetch:a,type:"edit",open:t,onOpenChange:l})]})}function Mx(){const s=m.useContext($r);if(s===void 0)throw new Error("useCouponEdit must be used within a CouponEditProvider");return s}const Ox=s=>{const{t:a}=V("coupon");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(B,{children:t.original.id}),enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx(ee,{defaultChecked:t.original.show,onCheckedChange:l=>{ga.update({id:t.original.id,show:l}).then(({data:n})=>!n&&s())}}),enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{children:t.original.name})}),enableSorting:!1,size:800},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.type")}),cell:({row:t})=>e.jsx(B,{variant:"outline",children:a(`table.toolbar.types.${t.original.type}`)}),enableSorting:!0},{accessorKey:"code",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.code")}),cell:({row:t})=>e.jsx(B,{variant:"secondary",children:t.original.code}),enableSorting:!0},{accessorKey:"limit_use",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.limitUse")}),cell:({row:t})=>e.jsx(B,{variant:"outline",children:t.original.limit_use===null?a("table.validity.unlimited"):t.original.limit_use}),enableSorting:!0},{accessorKey:"limit_use_with_user",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.limitUseWithUser")}),cell:({row:t})=>e.jsx(B,{variant:"outline",children:t.original.limit_use_with_user===null?a("table.validity.noLimit"):t.original.limit_use_with_user}),enableSorting:!0},{accessorKey:"#",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.validity")}),cell:({row:t})=>{const[l,n]=m.useState(!1),o=Date.now(),r=t.original.started_at*1e3,c=t.original.ended_at*1e3,u=o>c,i=oe.jsx(z,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>{const{openEdit:l}=Mx();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>l(t.original),children:[e.jsx(tt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),e.jsx(ns,{title:a("table.actions.deleteConfirm.title"),description:a("table.actions.deleteConfirm.description"),confirmText:a("table.actions.deleteConfirm.confirmText"),variant:"destructive",onConfirm:async()=>{ga.drop({id:t.original.id}).then(({data:n})=>{n&&(A.success("删除成功"),s())})},children:e.jsxs(E,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(fs,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete")})]})})]})}}]};function zx(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,o]=m.useState([]),[r,c]=m.useState([]),[u,i]=m.useState({pageIndex:0,pageSize:20}),{refetch:d,data:h}=ne({queryKey:["couponList",u,n,r],queryFn:()=>ga.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:n,sort:r})}),_=Je({data:h?.data??[],columns:Ox(d),state:{sorting:r,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:u},pageCount:Math.ceil((h?.total??0)/u.pageSize),rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:o,onColumnVisibilityChange:l,onPaginationChange:i,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(Fx,{refetch:d,children:e.jsx("div",{className:"space-y-4",children:e.jsx(is,{table:_,toolbar:e.jsx(Vx,{table:_,refetch:d})})})})}function $x(){const{t:s}=V("coupon");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(zx,{})})]})]})}const Ax=Object.freeze(Object.defineProperty({__proto__:null,default:$x},Symbol.toStringTag,{value:"Module"})),qx=1,Hx=1e6;let Wa=0;function Ux(){return Wa=(Wa+1)%Number.MAX_SAFE_INTEGER,Wa.toString()}const Ya=new Map,el=s=>{if(Ya.has(s))return;const a=setTimeout(()=>{Ya.delete(s),$t({type:"REMOVE_TOAST",toastId:s})},Hx);Ya.set(s,a)},Kx=(s,a)=>{switch(a.type){case"ADD_TOAST":return{...s,toasts:[a.toast,...s.toasts].slice(0,qx)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(t=>t.id===a.toast.id?{...t,...a.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?el(t):s.toasts.forEach(l=>{el(l.id)}),{...s,toasts:s.toasts.map(l=>l.id===t||t===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(t=>t.id!==a.toastId)}}},oa=[];let ca={toasts:[]};function $t(s){ca=Kx(ca,s),oa.forEach(a=>{a(ca)})}function Bx({...s}){const a=Ux(),t=n=>$t({type:"UPDATE_TOAST",toast:{...n,id:a}}),l=()=>$t({type:"DISMISS_TOAST",toastId:a});return $t({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:n=>{n||l()}}}),{id:a,dismiss:l,update:t}}function Ar(){const[s,a]=m.useState(ca);return m.useEffect(()=>(oa.push(a),()=>{const t=oa.indexOf(a);t>-1&&oa.splice(t,1)}),[s]),{...s,toast:Bx,dismiss:t=>$t({type:"DISMISS_TOAST",toastId:t})}}function Gx({open:s,onOpenChange:a,table:t}){const{t:l}=V("user"),{toast:n}=Ar(),[o,r]=m.useState(!1),[c,u]=m.useState(""),[i,d]=m.useState(""),h=async()=>{if(!c||!i){n({title:l("messages.error"),description:l("messages.send_mail.required_fields"),variant:"destructive"});return}try{r(!0),await ws.sendMail({subject:c,content:i,filter:t.getState().columnFilters,sort:t.getState().sorting[0]?.id,sort_type:t.getState().sorting[0]?.desc?"DESC":"ASC"}),n({title:l("messages.success"),description:l("messages.send_mail.success")}),a(!1),u(""),d("")}catch{n({title:l("messages.error"),description:l("messages.send_mail.failed"),variant:"destructive"})}finally{r(!1)}};return e.jsx(pe,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[500px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:l("send_mail.title")}),e.jsx(Le,{children:l("send_mail.description")})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"subject",className:"text-right",children:l("send_mail.subject")}),e.jsx(D,{id:"subject",value:c,onChange:_=>u(_.target.value),className:"col-span-3"})]}),e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"content",className:"text-right",children:l("send_mail.content")}),e.jsx(Ts,{id:"content",value:i,onChange:_=>d(_.target.value),className:"col-span-3",rows:6})]})]}),e.jsx(Re,{children:e.jsx(G,{type:"submit",onClick:h,disabled:o,children:l(o?"send_mail.sending":"send_mail.send")})})]})})}const Wx=x.object({email_prefix:x.string().optional(),email_suffix:x.string().min(1),password:x.string().optional(),expired_at:x.number().optional().nullable(),plan_id:x.number().nullable(),generate_count:x.number().optional().nullable(),download_csv:x.boolean().optional()}).refine(s=>s.generate_count===null?s.email_prefix!==void 0&&s.email_prefix!=="":!0,{message:"Email prefix is required when generate_count is null",path:["email_prefix"]}),Yx={email_prefix:"",email_suffix:"",password:"",expired_at:null,plan_id:null,generate_count:void 0,download_csv:!1};function Jx({refetch:s}){const{t:a}=V("user"),[t,l]=m.useState(!1),n=ye({resolver:_e(Wx),defaultValues:Yx,mode:"onChange"}),[o,r]=m.useState([]);return m.useEffect(()=>{t&&es.getList().then(({data:c})=>{c&&r(c)})},[t]),e.jsxs(pe,{open:t,onOpenChange:l,children:[e.jsx(rs,{asChild:!0,children:e.jsxs(G,{size:"sm",variant:"outline",className:"gap-0 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:a("generate.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(ve,{children:[e.jsx(ge,{children:a("generate.title")}),e.jsx(Le,{})]}),e.jsxs(we,{...n,children:[e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.email")}),e.jsxs("div",{className:"flex",children:[!n.watch("generate_count")&&e.jsx(v,{control:n.control,name:"email_prefix",render:({field:c})=>e.jsx(D,{className:"flex-[5] rounded-r-none",placeholder:a("generate.form.email_prefix"),...c})}),e.jsx("div",{className:`z-[-1] border border-r-0 border-input px-3 py-1 shadow-sm ${n.watch("generate_count")?"rounded-l-md":"border-l-0"}`,children:"@"}),e.jsx(v,{control:n.control,name:"email_suffix",render:({field:c})=>e.jsx(D,{className:"flex-[4] rounded-l-none",placeholder:a("generate.form.email_domain"),...c})})]})]}),e.jsx(v,{control:n.control,name:"password",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.password")}),e.jsx(D,{placeholder:a("generate.form.password_placeholder"),...c}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"expired_at",render:({field:c})=>e.jsxs(f,{className:"flex flex-col",children:[e.jsx(j,{children:a("generate.form.expire_time")}),e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsx(b,{children:e.jsxs(G,{variant:"outline",className:y("w-full pl-3 text-left font-normal",!c.value&&"text-muted-foreground"),children:[c.value?Ce(c.value):e.jsx("span",{children:a("generate.form.expire_time_placeholder")}),e.jsx(Kt,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsxs(bs,{className:"flex w-auto flex-col space-y-2 p-2",children:[e.jsx(Pc,{asChild:!0,children:e.jsx(G,{variant:"outline",className:"w-full",onClick:()=>{c.onChange(null)},children:a("generate.form.permanent")})}),e.jsx("div",{className:"rounded-md border",children:e.jsx(rt,{mode:"single",selected:c.value?new Date(c.value*1e3):void 0,onSelect:u=>{u&&c.onChange(u?.getTime()/1e3)}})})]})]})]})}),e.jsx(v,{control:n.control,name:"plan_id",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.subscription")}),e.jsx(b,{children:e.jsxs(X,{value:c.value?c.value.toString():"null",onValueChange:u=>c.onChange(u==="null"?null:parseInt(u)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:a("generate.form.subscription_none")})}),e.jsxs(J,{children:[e.jsx($,{value:"null",children:a("generate.form.subscription_none")}),o.map(u=>e.jsx($,{value:u.id.toString(),children:u.name},u.id))]})]})})]})}),!n.watch("email_prefix")&&e.jsx(v,{control:n.control,name:"generate_count",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.generate_count")}),e.jsx(D,{type:"number",placeholder:a("generate.form.generate_count_placeholder"),value:c.value||"",onChange:u=>c.onChange(u.target.value?parseInt(u.target.value):null)})]})}),n.watch("generate_count")&&e.jsx(v,{control:n.control,name:"download_csv",render:({field:c})=>e.jsxs(f,{className:"flex cursor-pointer flex-row items-center space-x-2 space-y-0",children:[e.jsx(b,{children:e.jsx(Tn,{checked:c.value,onCheckedChange:c.onChange})}),e.jsx(j,{children:a("generate.form.download_csv")})]})})]}),e.jsxs(Re,{children:[e.jsx(G,{variant:"outline",onClick:()=>l(!1),children:a("generate.form.cancel")}),e.jsx(G,{onClick:()=>n.handleSubmit(async c=>{if(c.download_csv){const u=await ws.generate(c);if(u&&u instanceof Blob){const i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.download=`users_${new Date().getTime()}.csv`,document.body.appendChild(d),d.click(),d.remove(),window.URL.revokeObjectURL(i),A.success(a("generate.form.success")),n.reset(),s(),l(!1)}}else{const{data:u}=await ws.generate(c);u&&(A.success(a("generate.form.success")),n.reset(),s(),l(!1))}})(),children:a("generate.form.submit")})]})]})]})}const qr=ol,Qx=cl,Xx=dl,Hr=m.forwardRef(({className:s,...a},t)=>e.jsx(ja,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));Hr.displayName=ja.displayName;const Zx=Zs("fixed overflow-y-scroll z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-md",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md"}},defaultVariants:{side:"right"}}),Dn=m.forwardRef(({side:s="right",className:a,children:t,...l},n)=>e.jsxs(Xx,{children:[e.jsx(Hr,{}),e.jsxs(va,{ref:n,className:y(Zx({side:s}),a),...l,children:[e.jsxs(mn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(ds,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),t]})]}));Dn.displayName=va.displayName;const Pn=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...a});Pn.displayName="SheetHeader";const Ur=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Ur.displayName="SheetFooter";const En=m.forwardRef(({className:s,...a},t)=>e.jsx(ba,{ref:t,className:y("text-lg font-semibold text-foreground",s),...a}));En.displayName=ba.displayName;const Rn=m.forwardRef(({className:s,...a},t)=>e.jsx(ya,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Rn.displayName=ya.displayName;function eh({table:s,refetch:a,permissionGroups:t=[],subscriptionPlans:l=[]}){const{t:n}=V("user"),{toast:o}=Ar(),r=s.getState().columnFilters.length>0,[c,u]=m.useState([]),[i,d]=m.useState(!1),[h,_]=m.useState(!1),[T,S]=m.useState(!1),[C,N]=m.useState(!1),g=async()=>{try{const W=await ws.dumpCSV({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),te=W;console.log(W);const q=new Blob([te],{type:"text/csv;charset=utf-8;"}),L=window.URL.createObjectURL(q),U=document.createElement("a");U.href=L,U.setAttribute("download",`users_${new Date().toISOString()}.csv`),document.body.appendChild(U),U.click(),U.remove(),window.URL.revokeObjectURL(L),o({title:n("messages.success"),description:n("messages.export.success")})}catch{o({title:n("messages.error"),description:n("messages.export.failed"),variant:"destructive"})}},k=async()=>{try{N(!0),await ws.batchBan({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),o({title:n("messages.success"),description:n("messages.batch_ban.success")}),a()}catch{o({title:n("messages.error"),description:n("messages.batch_ban.failed"),variant:"destructive"})}finally{N(!1),S(!1)}},R=[{label:n("filter.fields.email"),value:"email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.id"),value:"id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.plan_id"),value:"plan_id",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],useOptions:!0},{label:n("filter.fields.transfer_enable"),value:"transfer_enable",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.total_used"),value:"total_used",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.online_count"),value:"online_count",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"}]},{label:n("filter.fields.expired_at"),value:"expired_at",type:"date",operators:[{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.uuid"),value:"uuid",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.token"),value:"token",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.banned"),value:"banned",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],options:[{label:n("filter.status.normal"),value:"0"},{label:n("filter.status.banned"),value:"1"}]},{label:n("filter.fields.remark"),value:"remarks",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.inviter_email"),value:"invite_user.email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.invite_user_id"),value:"invite_user_id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_admin"),value:"is_admin",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_staff"),value:"is_staff",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]}],p=W=>W*1024*1024*1024,w=W=>W/(1024*1024*1024),I=()=>{u([...c,{field:"",operator:"",value:""}])},H=W=>{u(c.filter((te,q)=>q!==W))},O=(W,te,q)=>{const L=[...c];if(L[W]={...L[W],[te]:q},te==="field"){const U=R.find(ms=>ms.value===q);U&&(L[W].operator=U.operators[0].value,L[W].value=U.type==="boolean"?!1:"")}u(L)},K=(W,te)=>{const q=R.find(L=>L.value===W.field);if(!q)return null;switch(q.type){case"text":return e.jsx(D,{placeholder:n("filter.sheet.value"),value:W.value,onChange:L=>O(te,"value",L.target.value)});case"number":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{type:"number",placeholder:n("filter.sheet.value_number",{unit:q.unit}),value:q.unit==="GB"?w(W.value||0):W.value,onChange:L=>{const U=Number(L.target.value);O(te,"value",q.unit==="GB"?p(U):U)}}),q.unit&&e.jsx("span",{className:"text-sm text-muted-foreground",children:q.unit})]});case"date":return e.jsx(rt,{mode:"single",selected:W.value,onSelect:L=>O(te,"value",L),className:"flex flex-1 justify-center rounded-md border"});case"select":return e.jsxs(X,{value:W.value,onValueChange:L=>O(te,"value",L),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:n("filter.sheet.value")})}),e.jsx(J,{children:q.useOptions?l.map(L=>e.jsx($,{value:L.value.toString(),children:L.label},L.value)):q.options?.map(L=>e.jsx($,{value:L.value.toString(),children:L.label},L.value))})]});case"boolean":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ee,{checked:W.value,onCheckedChange:L=>O(te,"value",L)}),e.jsx(xa,{children:W.value?n("filter.boolean.true"):n("filter.boolean.false")})]});default:return null}},oe=()=>{const W=c.filter(te=>te.field&&te.operator&&te.value!=="").map(te=>{const q=R.find(U=>U.value===te.field);let L=te.value;return te.operator==="contains"?{id:te.field,value:L}:(q?.type==="date"&&L instanceof Date&&(L=Math.floor(L.getTime()/1e3)),q?.type==="boolean"&&(L=L?1:0),{id:te.field,value:`${te.operator}:${L}`})});s.setColumnFilters(W),d(!1)};return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[e.jsx(Jx,{refetch:a}),e.jsx(D,{placeholder:n("filter.email_search"),value:s.getColumn("email")?.getFilterValue()??"",onChange:W=>s.getColumn("email")?.setFilterValue(W.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(qr,{open:i,onOpenChange:d,children:[e.jsx(Qx,{asChild:!0,children:e.jsxs(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Ec,{className:"mr-2 h-4 w-4"}),n("filter.advanced"),c.length>0&&e.jsx(B,{variant:"secondary",className:"ml-2 rounded-sm px-1",children:c.length})]})}),e.jsxs(Dn,{className:"w-[400px] sm:w-[540px]",children:[e.jsxs(Pn,{children:[e.jsx(En,{children:n("filter.sheet.title")}),e.jsx(Rn,{children:n("filter.sheet.description")})]}),e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"font-medium",children:n("filter.sheet.conditions")}),e.jsx(E,{variant:"outline",size:"sm",onClick:I,children:n("filter.sheet.add")})]}),e.jsx(Nt,{className:"h-[calc(100vh-280px)] ",children:e.jsx("div",{className:"space-y-4",children:c.map((W,te)=>e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(xa,{children:n("filter.sheet.condition",{number:te+1})}),e.jsx(E,{variant:"ghost",size:"sm",onClick:()=>H(te),children:e.jsx(ds,{className:"h-4 w-4"})})]}),e.jsxs(X,{value:W.field,onValueChange:q=>O(te,"field",q),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:n("filter.sheet.field")})}),e.jsx(J,{children:e.jsx(Be,{children:R.map(q=>e.jsx($,{value:q.value,className:"cursor-pointer",children:q.label},q.value))})})]}),W.field&&e.jsxs(X,{value:W.operator,onValueChange:q=>O(te,"operator",q),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:n("filter.sheet.operator")})}),e.jsx(J,{children:R.find(q=>q.value===W.field)?.operators.map(q=>e.jsx($,{value:q.value,children:q.label},q.value))})]}),W.field&&W.operator&&K(W,te)]},te))})}),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(E,{variant:"outline",onClick:()=>{u([]),d(!1)},children:n("filter.sheet.reset")}),e.jsx(E,{onClick:oe,children:n("filter.sheet.apply")})]})]})]})]}),r&&e.jsxs(E,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),u([])},className:"h-8 px-2 lg:px-3",children:[n("filter.sheet.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]}),e.jsxs(Es,{modal:!1,children:[e.jsx(Rs,{asChild:!0,children:e.jsx(E,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:n("actions.title")})}),e.jsxs(Cs,{children:[e.jsx(Ne,{onClick:()=>_(!0),children:n("actions.send_email")}),e.jsx(Ne,{onClick:g,children:n("actions.export_csv")}),e.jsx(yt,{}),e.jsx(Ne,{onClick:()=>S(!0),className:"text-red-600 focus:text-red-600",children:n("actions.batch_ban")})]})]})]}),e.jsx(Gx,{open:h,onOpenChange:_,table:s}),e.jsx(Cn,{open:T,onOpenChange:S,children:e.jsxs(Ta,{children:[e.jsxs(Da,{children:[e.jsx(Ea,{children:n("actions.confirm_ban.title")}),e.jsx(Ra,{children:n(r?"actions.confirm_ban.filtered_description":"actions.confirm_ban.all_description")})]}),e.jsxs(Pa,{children:[e.jsx(La,{disabled:C,children:n("actions.confirm_ban.cancel")}),e.jsx(Ia,{onClick:k,disabled:C,className:"bg-red-600 hover:bg-red-700 focus:ring-red-600",children:n(C?"actions.confirm_ban.banning":"actions.confirm_ban.confirm")})]})]})})]})}const Kr=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m17.71 11.29l-5-5a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21l-5 5a1 1 0 0 0 1.42 1.42L11 9.41V17a1 1 0 0 0 2 0V9.41l3.29 3.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42"})}),Br=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.71 11.29a1 1 0 0 0-1.42 0L13 14.59V7a1 1 0 0 0-2 0v7.59l-3.29-3.3a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 .33.21a.94.94 0 0 0 .76 0a1 1 0 0 0 .33-.21l5-5a1 1 0 0 0 0-1.42"})}),sh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17 11H9.41l3.3-3.29a1 1 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33a1 1 0 0 0 0 .76a1 1 0 0 0 .21.33l5 5a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42L9.41 13H17a1 1 0 0 0 0-2"})}),th=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76"})}),Ja=[{accessorKey:"record_at",header:"时间",cell:({row:s})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("time",{className:"text-sm text-muted-foreground",children:Yc(s.original.record_at)})})},{accessorKey:"u",header:"上行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Kr,{className:"h-4 w-4 text-emerald-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.u)})]})},{accessorKey:"d",header:"下行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Br,{className:"h-4 w-4 text-blue-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.d)})]})},{accessorKey:"server_rate",header:"倍率",cell:({row:s})=>{const a=s.original.server_rate;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(B,{variant:"outline",className:"font-mono",children:[a,"x"]})})}},{id:"total",header:"总计",cell:({row:s})=>{const a=s.original.u+s.original.d;return e.jsx("div",{className:"flex items-center justify-end font-mono text-sm",children:Oe(a)})}}];function Gr({user_id:s,dialogTrigger:a}){const{t}=V(["traffic"]),[l,n]=m.useState(!1),[o,r]=m.useState({pageIndex:0,pageSize:20}),{data:c,isLoading:u}=ne({queryKey:["userStats",s,o,l],queryFn:()=>l?ws.getStats({user_id:s,pageSize:o.pageSize,page:o.pageIndex+1}):null}),i=Je({data:c?.data??[],columns:Ja,pageCount:Math.ceil((c?.total??0)/o.pageSize),state:{pagination:o},manualPagination:!0,getCoreRowModel:Qe(),onPaginationChange:r});return e.jsxs(pe,{open:l,onOpenChange:n,children:[e.jsx(rs,{asChild:!0,children:a}),e.jsxs(ue,{className:"sm:max-w-[700px]",children:[e.jsx(ve,{children:e.jsx(ge,{children:t("trafficRecord.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rounded-md border",children:e.jsxs(bn,{children:[e.jsx(yn,{children:i.getHeaderGroups().map(d=>e.jsx(As,{children:d.headers.map(h=>e.jsx(_n,{className:y("h-10 px-2 text-xs",h.id==="total"&&"text-right"),children:h.isPlaceholder?null:da(h.column.columnDef.header,h.getContext())},h.id))},d.id))}),e.jsx(Nn,{children:u?Array.from({length:o.pageSize}).map((d,h)=>e.jsx(As,{children:Array.from({length:Ja.length}).map((_,T)=>e.jsx(jt,{className:"p-2",children:e.jsx(ce,{className:"h-6 w-full"})},T))},h)):i.getRowModel().rows?.length?i.getRowModel().rows.map(d=>e.jsx(As,{"data-state":d.getIsSelected()&&"selected",className:"h-10",children:d.getVisibleCells().map(h=>e.jsx(jt,{className:"px-2",children:da(h.column.columnDef.cell,h.getContext())},h.id))},d.id)):e.jsx(As,{children:e.jsx(jt,{colSpan:Ja.length,className:"h-24 text-center",children:t("trafficRecord.noRecords")})})})]})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.perPage")}),e.jsxs(X,{value:`${i.getState().pagination.pageSize}`,onValueChange:d=>{i.setPageSize(Number(d))},children:[e.jsx(Y,{className:"h-8 w-[70px]",children:e.jsx(Z,{placeholder:i.getState().pagination.pageSize})}),e.jsx(J,{side:"top",children:[10,20,30,40,50].map(d=>e.jsx($,{value:`${d}`,children:d},d))})]}),e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.records")})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"flex w-[100px] items-center justify-center text-sm",children:t("trafficRecord.page",{current:i.getState().pagination.pageIndex+1,total:i.getPageCount()})}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>i.previousPage(),disabled:!i.getCanPreviousPage()||u,children:e.jsx(sh,{className:"h-4 w-4"})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>i.nextPage(),disabled:!i.getCanNextPage()||u,children:e.jsx(th,{className:"h-4 w-4"})})]})]})]})]})]})]})}function ah({onConfirm:s,children:a,title:t="确认操作",description:l="确定要执行此操作吗?",cancelText:n="取消",confirmText:o="确认",variant:r="default",className:c}){return e.jsxs(Cn,{children:[e.jsx(Tr,{asChild:!0,children:a}),e.jsxs(Ta,{className:y("sm:max-w-[425px]",c),children:[e.jsxs(Da,{children:[e.jsx(Ea,{children:t}),e.jsx(Ra,{children:l})]}),e.jsxs(Pa,{children:[e.jsx(La,{asChild:!0,children:e.jsx(E,{variant:"outline",children:n})}),e.jsx(Ia,{asChild:!0,children:e.jsx(E,{variant:r,onClick:s,children:o})})]})]})]})}const nh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M5 18h4.24a1 1 0 0 0 .71-.29l6.92-6.93L19.71 8a1 1 0 0 0 0-1.42l-4.24-4.29a1 1 0 0 0-1.42 0l-2.82 2.83l-6.94 6.93a1 1 0 0 0-.29.71V17a1 1 0 0 0 1 1m9.76-13.59l2.83 2.83l-1.42 1.42l-2.83-2.83ZM6 13.17l5.93-5.93l2.83 2.83L8.83 16H6ZM21 20H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2"})}),lh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2"})}),rh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 8.94a1.3 1.3 0 0 0-.06-.27v-.09a1 1 0 0 0-.19-.28l-6-6a1 1 0 0 0-.28-.19a.3.3 0 0 0-.09 0a.9.9 0 0 0-.33-.11H10a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-1h1a3 3 0 0 0 3-3zm-6-3.53L17.59 8H16a1 1 0 0 1-1-1ZM15 19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1v7a3 3 0 0 0 3 3h5Zm4-4a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3v3a3 3 0 0 0 3 3h3Z"})}),ih=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 11a1 1 0 0 0-1 1a8.05 8.05 0 1 1-2.22-5.5h-2.4a1 1 0 0 0 0 2h4.53a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1.77A10 10 0 1 0 22 12a1 1 0 0 0-1-1"})}),oh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9.5 10.5H12a1 1 0 0 0 0-2h-1V8a1 1 0 0 0-2 0v.55a2.5 2.5 0 0 0 .5 4.95h1a.5.5 0 0 1 0 1H8a1 1 0 0 0 0 2h1v.5a1 1 0 0 0 2 0v-.55a2.5 2.5 0 0 0-.5-4.95h-1a.5.5 0 0 1 0-1M21 12h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Z"})}),ch=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12.3 12.22A4.92 4.92 0 0 0 14 8.5a5 5 0 0 0-10 0a4.92 4.92 0 0 0 1.7 3.72A8 8 0 0 0 1 19.5a1 1 0 0 0 2 0a6 6 0 0 1 12 0a1 1 0 0 0 2 0a8 8 0 0 0-4.7-7.28M9 11.5a3 3 0 1 1 3-3a3 3 0 0 1-3 3m9.74.32A5 5 0 0 0 15 3.5a1 1 0 0 0 0 2a3 3 0 0 1 3 3a3 3 0 0 1-1.5 2.59a1 1 0 0 0-.5.84a1 1 0 0 0 .45.86l.39.26l.13.07a7 7 0 0 1 4 6.38a1 1 0 0 0 2 0a9 9 0 0 0-4.23-7.68"})}),dh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 0 0-6.88 2.77V3a1 1 0 0 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2h-2.4A8 8 0 1 1 4 12a1 1 0 0 0-2 0A10 10 0 1 0 12 2m0 6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2h-1V9a1 1 0 0 0-1-1"})}),mh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2M10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Z"})}),uh=(s,a,t,l)=>{const{t:n}=V("user");return[{accessorKey:"is_admin",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.is_admin")}),enableSorting:!1,enableHiding:!0,filterFn:(o,r,c)=>c.includes(o.getValue(r)),size:0},{accessorKey:"is_staff",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.is_staff")}),enableSorting:!1,enableHiding:!0,filterFn:(o,r,c)=>c.includes(o.getValue(r)),size:0},{accessorKey:"id",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.id")}),cell:({row:o})=>e.jsx(B,{variant:"outline",children:o.original.id}),enableSorting:!0,enableHiding:!1},{accessorKey:"email",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.email")}),cell:({row:o})=>{const r=o.original.t||0,c=Date.now()/1e3-r<120,u=Math.floor(Date.now()/1e3-r);let i=c?n("columns.online_status.online"):r===0?n("columns.online_status.never"):n("columns.online_status.last_online",{time:Ce(r)});if(!c&&r!==0){const d=Math.floor(u/60),h=Math.floor(d/60),_=Math.floor(h/24);_>0?i+=` -`+n("columns.online_status.offline_duration.days",{count:_}):h>0?i+=` +`))}})})}),e.jsx(P,{})]})}),e.jsx(v,{control:r.control,name:"action",render:({field:u})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.action")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsxs(J,{onValueChange:u.onChange,defaultValue:u.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.actionPlaceholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"block",children:n("actions.block")}),e.jsx(A,{value:"dns",children:n("actions.dns")})]})]})})}),e.jsx(P,{})]})}),r.watch("action")==="dns"&&e.jsx(v,{control:r.control,name:"action_value",render:({field:u})=>e.jsxs(f,{children:[e.jsx(j,{children:n("form.dns")}),e.jsx("div",{className:"relative",children:e.jsx(b,{children:e.jsx(D,{type:"text",placeholder:n("form.dnsPlaceholder"),...u})})})]})}),e.jsxs(Le,{children:[e.jsx(qs,{asChild:!0,children:e.jsx(L,{variant:"outline",children:n("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{Ea.save(r.getValues()).then(({data:u})=>{u&&(c(!1),s&&s(),$.success(n(l==="edit"?"messages.updateSuccess":"messages.createSuccess")),r.reset())})},children:n("form.submit")})]})]})]})]})}function yx({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("route");return e.jsx("div",{className:"flex items-center justify-between ",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[e.jsx(Br,{refetch:a}),e.jsx(D,{placeholder:l("toolbar.searchPlaceholder"),value:s.getColumn("remarks")?.getFilterValue()??"",onChange:n=>s.getColumn("remarks")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})})}function Nx({columns:s,data:a,refetch:t}){const[l,n]=m.useState({}),[r,o]=m.useState({}),[c,u]=m.useState([]),[i,d]=m.useState([]),h=Je({data:a,columns:s,state:{sorting:i,columnVisibility:r,rowSelection:l,columnFilters:c},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:u,onColumnVisibilityChange:o,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(os,{table:h,toolbar:k=>e.jsx(yx,{table:k,refetch:t})})}const _x=s=>{const{t:a}=V("route"),t={block:{icon:Ac,variant:"destructive",className:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-400 hover:bg-red-200 dark:hover:bg-red-800"},dns:{icon:qc,variant:"secondary",className:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800"}};return[{accessorKey:"id",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.id")}),cell:({row:l})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(G,{variant:"outline",children:l.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"remarks",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.remarks")}),cell:({row:l})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:l.original.remarks})}),enableHiding:!1,enableSorting:!1},{accessorKey:"action_value",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.action_value.title")}),cell:({row:l})=>{const n=l.original.action,r=l.original.action_value,o=l.original.match?.length||0;return e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",children:n==="dns"&&r?a("columns.action_value.dns",{value:r}):n==="block"?e.jsx("span",{className:"text-destructive",children:a("columns.action_value.block")}):a("columns.action_value.direct")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("columns.matchRules",{count:o})})]})},enableHiding:!1,enableSorting:!1,size:300},{accessorKey:"action",header:({column:l})=>e.jsx(z,{column:l,title:a("columns.action")}),cell:({row:l})=>{const n=l.getValue("action"),r=t[n]?.icon;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(G,{variant:t[n]?.variant||"default",className:y("flex items-center gap-1.5 px-3 py-1 capitalize",t[n]?.className),children:[r&&e.jsx(r,{className:"h-3.5 w-3.5"}),a(`actions.${n}`)]})})},enableSorting:!1,size:9e3},{id:"actions",header:()=>e.jsx("div",{className:"text-right",children:a("columns.actions")}),cell:({row:l})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Br,{defaultValues:l.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ls,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{Ea.drop({id:l.original.id}).then(({data:n})=>{n&&($.success(a("messages.deleteSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function wx(){const{t:s}=V("route"),[a,t]=m.useState([]);function l(){Ea.getList().then(({data:n})=>{t(n)})}return m.useEffect(()=>{l()},[]),e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Nx,{data:a,columns:_x(l),refetch:l})})]})]})}const Cx=Object.freeze(Object.defineProperty({__proto__:null,default:wx},Symbol.toStringTag,{value:"Module"})),Gr=m.createContext(void 0);function Sx({children:s,refreshData:a}){const[t,l]=m.useState(!1),[n,r]=m.useState(null);return e.jsx(Gr.Provider,{value:{isOpen:t,setIsOpen:l,editingPlan:n,setEditingPlan:r,refreshData:a},children:s})}function Dn(){const s=m.useContext(Gr);if(s===void 0)throw new Error("usePlanEdit must be used within a PlanEditProvider");return s}function kx({table:s,saveOrder:a,isSortMode:t}){const{setIsOpen:l}=Dn(),{t:n}=V("subscribe");return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"space-x-2",size:"sm",onClick:()=>l(!0),children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:n("plan.add")})]}),e.jsx(D,{placeholder:n("plan.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:r=>s.getColumn("name")?.setFilterValue(r.target.value),className:"h-8 w-[150px] lg:w-[250px]"})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:a,size:"sm",children:n(t?"plan.sort.save":"plan.sort.edit")})})]})}const il={monthly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},quarterly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},half_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},two_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},three_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},onetime:{color:"text-slate-700",bgColor:"bg-slate-100/80"},reset_traffic:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Tx=s=>{const{t:a}=V("subscribe");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:"cursor-move",children:e.jsx(Ta,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(G,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:l=>{ss.update({id:t.original.id,show:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"sell",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.sell")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("sell"),onCheckedChange:l=>{ss.update({id:t.original.id,sell:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"renew",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.renew"),tooltip:a("plan.columns.renew_tooltip")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("renew"),onCheckedChange:l=>{ss.update({id:t.original.id,renew:l}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("name")})}),enableSorting:!1,enableHiding:!1,size:900},{accessorKey:"users_count",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.stats")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-2",children:[e.jsx(Wt,{}),e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"group",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.group")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[600px] flex-wrap items-center gap-1.5 text-nowrap",children:e.jsx(G,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:t.getValue("group")?.name})}),enableSorting:!1,enableHiding:!1},{accessorKey:"prices",header:({column:t})=>e.jsx(z,{column:t,title:a("plan.columns.price")}),cell:({row:t})=>{const l=t.getValue("prices"),n=[{period:a("plan.columns.price_period.monthly"),key:"monthly",unit:a("plan.columns.price_period.unit.month")},{period:a("plan.columns.price_period.quarterly"),key:"quarterly",unit:a("plan.columns.price_period.unit.quarter")},{period:a("plan.columns.price_period.half_yearly"),key:"half_yearly",unit:a("plan.columns.price_period.unit.half_year")},{period:a("plan.columns.price_period.yearly"),key:"yearly",unit:a("plan.columns.price_period.unit.year")},{period:a("plan.columns.price_period.two_yearly"),key:"two_yearly",unit:a("plan.columns.price_period.unit.two_year")},{period:a("plan.columns.price_period.three_yearly"),key:"three_yearly",unit:a("plan.columns.price_period.unit.three_year")},{period:a("plan.columns.price_period.onetime"),key:"onetime",unit:""},{period:a("plan.columns.price_period.reset_traffic"),key:"reset_traffic",unit:a("plan.columns.price_period.unit.times")}];return e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:n.map(({period:r,key:o,unit:c})=>l[o]!=null&&e.jsxs(G,{variant:"secondary",className:y("px-2 py-0.5 font-medium transition-colors text-nowrap",il[o].color,il[o].bgColor,"border border-border/50","hover:bg-slate-200/80"),children:[r," ¥",l[o],c]},o))})},enableSorting:!1,size:9e3},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("plan.columns.actions")}),cell:({row:t})=>{const{setIsOpen:l,setEditingPlan:n}=Dn();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>{n(t.original),l(!0)},children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.edit")})]}),e.jsx(ls,{title:a("plan.columns.delete_confirm.title"),description:a("plan.columns.delete_confirm.description"),confirmText:a("plan.columns.delete"),variant:"destructive",onConfirm:async()=>{ss.drop({id:t.original.id}).then(({data:r})=>{r&&($.success(a("plan.columns.delete_confirm.success")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.delete")})]})})]})}}]},Dx=x.object({id:x.number().nullable(),group_id:x.union([x.number(),x.string()]).nullable().optional(),name:x.string().min(1).max(250),content:x.string().nullable().optional(),transfer_enable:x.union([x.number().min(0),x.string().min(1)]),prices:x.object({monthly:x.union([x.number(),x.string()]).nullable().optional(),quarterly:x.union([x.number(),x.string()]).nullable().optional(),half_yearly:x.union([x.number(),x.string()]).nullable().optional(),yearly:x.union([x.number(),x.string()]).nullable().optional(),two_yearly:x.union([x.number(),x.string()]).nullable().optional(),three_yearly:x.union([x.number(),x.string()]).nullable().optional(),onetime:x.union([x.number(),x.string()]).nullable().optional(),reset_traffic:x.union([x.number(),x.string()]).nullable().optional()}).default({}),speed_limit:x.union([x.number(),x.string()]).nullable().optional(),capacity_limit:x.union([x.number(),x.string()]).nullable().optional(),device_limit:x.union([x.number(),x.string()]).nullable().optional(),force_update:x.boolean().optional(),reset_traffic_method:x.number().nullable(),users_count:x.number().optional()}),Pn=m.forwardRef(({className:s,...a},t)=>e.jsx(or,{ref:t,className:y("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:e.jsx(Hc,{className:y("flex items-center justify-center text-current"),children:e.jsx(at,{className:"h-4 w-4"})})}));Pn.displayName=or.displayName;const oa={id:null,group_id:null,name:"",content:"",transfer_enable:"",prices:{monthly:"",quarterly:"",half_yearly:"",yearly:"",two_yearly:"",three_yearly:"",onetime:"",reset_traffic:""},speed_limit:"",capacity_limit:"",device_limit:"",force_update:!1,reset_traffic_method:null},ca={monthly:{label:"月付",months:1,discount:1},quarterly:{label:"季付",months:3,discount:.95},half_yearly:{label:"半年付",months:6,discount:.9},yearly:{label:"年付",months:12,discount:.85},two_yearly:{label:"两年付",months:24,discount:.8},three_yearly:{label:"三年付",months:36,discount:.75},onetime:{label:"流量包",months:1,discount:1},reset_traffic:{label:"重置包",months:1,discount:1}},Px=[{value:null,label:"follow_system"},{value:0,label:"monthly_first"},{value:1,label:"monthly_reset"},{value:2,label:"no_reset"},{value:3,label:"yearly_first"},{value:4,label:"yearly_reset"}];function Lx(){const{isOpen:s,setIsOpen:a,editingPlan:t,setEditingPlan:l,refreshData:n}=Dn(),[r,o]=m.useState(!1),{t:c}=V("subscribe"),u=Ne({resolver:we(Dx),defaultValues:{...oa,...t||{}},mode:"onChange"});m.useEffect(()=>{t?u.reset({...oa,...t}):u.reset(oa)},[t,u]);const i=new vn({html:!0}),[d,h]=m.useState();async function k(){rt.getList().then(({data:w})=>{h(w)})}m.useEffect(()=>{s&&k()},[s]);const C=w=>{if(isNaN(w))return;const N=Object.entries(ca).reduce((g,[T,E])=>{const p=w*E.months*E.discount;return{...g,[T]:p.toFixed(2)}},{});u.setValue("prices",N,{shouldDirty:!0})},S=()=>{a(!1),l(null),u.reset(oa)};return e.jsx(he,{open:s,onOpenChange:S,children:e.jsxs(ue,{children:[e.jsxs(je,{children:[e.jsx(pe,{children:c(t?"plan.form.edit_title":"plan.form.add_title")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...u,children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"name",render:({field:w})=>e.jsxs(f,{children:[e.jsx(j,{children:c("plan.form.name.label")}),e.jsx(b,{children:e.jsx(D,{placeholder:c("plan.form.name.placeholder"),...w})}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"group_id",render:({field:w})=>e.jsxs(f,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[c("plan.form.group.label"),e.jsx(Aa,{dialogTrigger:e.jsx(L,{variant:"link",children:c("plan.form.group.add")}),refetch:k})]}),e.jsxs(J,{value:w.value?.toString()??"",onValueChange:N=>w.onChange(N?Number(N):null),children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:c("plan.form.group.placeholder")})})}),e.jsx(Y,{children:d?.map(N=>e.jsx(A,{value:N.id.toString(),children:N.name},N.id))})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"transfer_enable",render:({field:w})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.transfer.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.transfer.placeholder"),className:"rounded-r-none",...w})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.transfer.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"speed_limit",render:({field:w})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.speed.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.speed.placeholder"),className:"rounded-r-none",...w,value:w.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.speed.unit")})]}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center",children:[e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"}),e.jsx("h3",{className:"mx-4 text-sm font-medium text-gray-500 dark:text-gray-400",children:c("plan.form.price.title")}),e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(D,{type:"number",placeholder:c("plan.form.price.base_price"),className:"h-7 w-32 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500",onChange:w=>{const N=parseFloat(w.target.value);C(N)}})]}),e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>{const w=Object.keys(ca).reduce((N,g)=>({...N,[g]:""}),{});u.setValue("prices",w,{shouldDirty:!0})},children:c("plan.form.price.clear.button")})}),e.jsx(xe,{side:"top",align:"end",children:e.jsx("p",{className:"text-xs",children:c("plan.form.price.clear.tooltip")})})]})})]})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-3",children:Object.entries(ca).filter(([w])=>!["onetime","reset_traffic"].includes(w)).map(([w,N])=>e.jsx("div",{className:"group relative rounded-md bg-card p-2 ring-1 ring-gray-200 transition-all hover:ring-primary dark:ring-gray-800",children:e.jsx(v,{control:u.control,name:`prices.${w}`,render:({field:g})=>e.jsxs(f,{children:[e.jsxs(j,{className:"text-xs font-medium text-muted-foreground",children:[c(`plan.columns.price_period.${w}`),e.jsxs("span",{className:"ml-1 text-[10px] text-gray-400",children:["(",N.months===1?c("plan.form.price.period.monthly"):c("plan.form.price.period.months",{count:N.months}),")"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...g,value:g.value??"",onChange:T=>g.onChange(T.target.value),className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})},w))}),e.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Object.entries(ca).filter(([w])=>["onetime","reset_traffic"].includes(w)).map(([w,N])=>e.jsx("div",{className:"rounded-md border border-dashed border-gray-200 bg-muted/30 p-3 dark:border-gray-700",children:e.jsx(v,{control:u.control,name:`prices.${w}`,render:({field:g})=>e.jsx(f,{children:e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-0",children:[e.jsx(j,{className:"text-xs font-medium",children:c(`plan.columns.price_period.${w}`)}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:c(w==="onetime"?"plan.form.price.onetime_desc":"plan.form.price.reset_desc")})]}),e.jsxs("div",{className:"relative w-full md:w-32",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...g,className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})})},w))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(v,{control:u.control,name:"device_limit",render:({field:w})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.device.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.device.placeholder"),className:"rounded-r-none",...w,value:w.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.device.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"capacity_limit",render:({field:w})=>e.jsxs(f,{className:"flex-1",children:[e.jsx(j,{children:c("plan.form.capacity.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(b,{children:e.jsx(D,{type:"number",min:0,placeholder:c("plan.form.capacity.placeholder"),className:"rounded-r-none",...w,value:w.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:c("plan.form.capacity.unit")})]}),e.jsx(P,{})]})})]}),e.jsx(v,{control:u.control,name:"reset_traffic_method",render:({field:w})=>e.jsxs(f,{children:[e.jsx(j,{children:c("plan.form.reset_method.label")}),e.jsxs(J,{value:w.value?.toString()??"null",onValueChange:N=>w.onChange(N=="null"?null:Number(N)),children:[e.jsx(b,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:c("plan.form.reset_method.placeholder")})})}),e.jsx(Y,{children:Px.map(N=>e.jsx(A,{value:N.value?.toString()??"null",children:c(`plan.form.reset_method.options.${N.label}`)},N.value))})]}),e.jsx(M,{className:"text-xs",children:c("plan.form.reset_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"content",render:({field:w})=>{const[N,g]=m.useState(!1);return e.jsxs(f,{className:"space-y-2",children:[e.jsxs(j,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[c("plan.form.content.label"),e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>g(!N),children:N?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{d:"M10 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),e.jsx("path",{fillRule:"evenodd",d:"M.664 10.59a1.651 1.651 0 010-1.186A10.004 10.004 0 0110 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0110 17c-4.257 0-7.893-2.66-9.336-6.41zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{fillRule:"evenodd",d:"M3.28 2.22a.75.75 0 00-1.06 1.06l14.5 14.5a.75.75 0 101.06-1.06l-1.745-1.745a10.029 10.029 0 003.3-4.38 1.651 1.651 0 000-1.185A10.004 10.004 0 009.999 3a9.956 9.956 0 00-4.744 1.194L3.28 2.22zM7.752 6.69l1.092 1.092a2.5 2.5 0 013.374 3.373l1.091 1.092a4 4 0 00-5.557-5.557z",clipRule:"evenodd"}),e.jsx("path",{d:"M10.748 13.93l2.523 2.523a9.987 9.987 0 01-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 010-1.186A10.007 10.007 0 012.839 6.02L6.07 9.252a4 4 0 004.678 4.678z"})]})})}),e.jsx(xe,{side:"top",children:e.jsx("p",{className:"text-xs",children:c(N?"plan.form.content.preview_button.hide":"plan.form.content.preview_button.show")})})]})})]}),e.jsx(ye,{children:e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",onClick:()=>{w.onChange(c("plan.form.content.template.content"))},children:c("plan.form.content.template.button")})}),e.jsx(xe,{side:"left",align:"center",children:e.jsx("p",{className:"text-xs",children:c("plan.form.content.template.tooltip")})})]})})]}),e.jsxs("div",{className:`grid gap-4 ${N?"grid-cols-1 lg:grid-cols-2":"grid-cols-1"}`,children:[e.jsx("div",{className:"space-y-2",children:e.jsx(b,{children:e.jsx(bn,{style:{height:"400px"},value:w.value||"",renderHTML:T=>i.render(T),onChange:({text:T})=>w.onChange(T),config:{view:{menu:!0,md:!0,html:!1},canView:{menu:!0,md:!0,html:!1,fullScreen:!1,hideMenu:!1}},placeholder:c("plan.form.content.placeholder"),className:"rounded-md border"})})}),N&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:c("plan.form.content.preview")}),e.jsx("div",{className:"prose prose-sm dark:prose-invert h-[400px] max-w-none overflow-y-auto rounded-md border p-4",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:i.render(w.value||"")}})})]})]}),e.jsx(M,{className:"text-xs",children:c("plan.form.content.description")}),e.jsx(P,{})]})}})]}),e.jsx(Le,{className:"mt-6",children:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx("div",{className:"flex-shrink-0",children:t&&e.jsx(v,{control:u.control,name:"force_update",render:({field:w})=>e.jsxs(f,{className:"flex flex-row items-center space-x-2 space-y-0",children:[e.jsx(b,{children:e.jsx(Pn,{checked:w.value,onCheckedChange:w.onChange})}),e.jsx("div",{className:"",children:e.jsx(j,{className:"text-sm",children:c("plan.form.force_update.label")})})]})})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:S,children:c("plan.form.submit.cancel")}),e.jsx(L,{type:"submit",disabled:r,onClick:()=>{u.handleSubmit(async w=>{o(!0),(await ss.save(w)).data&&($.success(c(t?"plan.form.submit.success.update":"plan.form.submit.success.add")),S(),n()),o(!1)})()},children:c(r?"plan.form.submit.submitting":"plan.form.submit.submit")})]})]})})]})]})})}function Ex(){const[s,a]=m.useState({}),[t,l]=m.useState({"drag-handle":!1}),[n,r]=m.useState([]),[o,c]=m.useState([]),[u,i]=m.useState(!1),[d,h]=m.useState({pageSize:20,pageIndex:0}),[k,C]=m.useState([]),{refetch:S}=le({queryKey:["planList"],queryFn:async()=>{const{data:E}=await ss.getList();return C(E),E}});m.useEffect(()=>{l({"drag-handle":u}),h({pageSize:u?99999:10,pageIndex:0})},[u]);const w=(E,p)=>{u&&(E.dataTransfer.setData("text/plain",p.toString()),E.currentTarget.classList.add("opacity-50"))},N=(E,p)=>{if(!u)return;E.preventDefault(),E.currentTarget.classList.remove("bg-muted");const _=parseInt(E.dataTransfer.getData("text/plain"));if(_===p)return;const I=[...k],[H]=I.splice(_,1);I.splice(p,0,H),C(I)},g=async()=>{if(!u){i(!0);return}const E=k?.map(p=>p.id);ss.sort(E).then(()=>{$.success("排序保存成功"),i(!1),S()}).finally(()=>{i(!1)})},T=Je({data:k||[],columns:Tx(S),state:{sorting:o,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:d},enableRowSelection:!0,onPaginationChange:h,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:r,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}},pageCount:u?1:void 0});return e.jsx(Sx,{refreshData:S,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(os,{table:T,toolbar:E=>e.jsx(kx,{table:E,refetch:S,saveOrder:g,isSortMode:u}),draggable:u,onDragStart:w,onDragEnd:E=>E.currentTarget.classList.remove("opacity-50"),onDragOver:E=>{E.preventDefault(),E.currentTarget.classList.add("bg-muted")},onDragLeave:E=>E.currentTarget.classList.remove("bg-muted"),onDrop:N,showPagination:!u}),e.jsx(Lx,{})]})})}function Ix(){const{t:s}=V("subscribe");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("plan.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("plan.page.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Ex,{})})]})]})}const Rx=Object.freeze(Object.defineProperty({__proto__:null,default:Ix},Symbol.toStringTag,{value:"Module"})),pt=[{value:ne.PENDING,label:Rt[ne.PENDING],icon:Uc,color:Vt[ne.PENDING]},{value:ne.PROCESSING,label:Rt[ne.PROCESSING],icon:cr,color:Vt[ne.PROCESSING]},{value:ne.COMPLETED,label:Rt[ne.COMPLETED],icon:on,color:Vt[ne.COMPLETED]},{value:ne.CANCELLED,label:Rt[ne.CANCELLED],icon:dr,color:Vt[ne.CANCELLED]},{value:ne.DISCOUNTED,label:Rt[ne.DISCOUNTED],icon:on,color:Vt[ne.DISCOUNTED]}],zt=[{value:be.PENDING,label:na[be.PENDING],icon:Kc,color:la[be.PENDING]},{value:be.PROCESSING,label:na[be.PROCESSING],icon:cr,color:la[be.PROCESSING]},{value:be.VALID,label:na[be.VALID],icon:on,color:la[be.VALID]},{value:be.INVALID,label:na[be.INVALID],icon:dr,color:la[be.INVALID]}];function da({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=s?.getFilterValue(),r=Array.isArray(n)?new Set(n):n!==void 0?new Set([n]):new Set;return e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Da,{className:"mr-2 h-4 w-4"}),a,r?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(De,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:r.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:r.size>2?e.jsxs(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[r.size," selected"]}):t.filter(o=>r.has(o.value)).map(o=>e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:o.label},o.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(it,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(ot,{children:"No results found."}),e.jsx(ns,{children:t.map(o=>{const c=r.has(o.value);return e.jsxs($e,{onSelect:()=>{const u=new Set(r);c?u.delete(o.value):u.add(o.value);const i=Array.from(u);s?.setFilterValue(i.length?i:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",c?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(at,{className:y("h-4 w-4")})}),o.icon&&e.jsx(o.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${o.color}`}),e.jsx("span",{children:o.label}),l?.get(o.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(o.value)})]},o.value)})}),r.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Tt,{}),e.jsx(ns,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Vx=x.object({email:x.string().min(1),plan_id:x.number(),period:x.string(),total_amount:x.number()}),Fx={email:"",plan_id:0,total_amount:0,period:""};function Wr({refetch:s,trigger:a,defaultValues:t}){const{t:l}=V("order"),[n,r]=m.useState(!1),o=Ne({resolver:we(Vx),defaultValues:{...Fx,...t},mode:"onChange"}),[c,u]=m.useState([]);return m.useEffect(()=>{n&&ss.getList().then(({data:i})=>{u(i)})},[n]),e.jsxs(he,{open:n,onOpenChange:r,children:[e.jsx(is,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:l("dialog.addOrder")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:l("dialog.assignOrder")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...o,children:[e.jsx(v,{control:o.control,name:"email",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.userEmail")}),e.jsx(b,{children:e.jsx(D,{placeholder:l("dialog.placeholders.email"),...i})})]})}),e.jsx(v,{control:o.control,name:"plan_id",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.subscriptionPlan")}),e.jsx(b,{children:e.jsxs(J,{value:i.value?i.value?.toString():void 0,onValueChange:d=>i.onChange(parseInt(d)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dialog.placeholders.plan")})}),e.jsx(Y,{children:c.map(d=>e.jsx(A,{value:d.id.toString(),children:d.name},d.id))})]})})]})}),e.jsx(v,{control:o.control,name:"period",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.orderPeriod")}),e.jsx(b,{children:e.jsxs(J,{value:i.value,onValueChange:i.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:l("dialog.placeholders.period")})}),e.jsx(Y,{children:Object.keys(rm).map(d=>e.jsx(A,{value:d,children:l(`period.${d}`)},d))})]})})]})}),e.jsx(v,{control:o.control,name:"total_amount",render:({field:i})=>e.jsxs(f,{children:[e.jsx(j,{children:l("dialog.fields.paymentAmount")}),e.jsx(b,{children:e.jsx(D,{type:"number",placeholder:l("dialog.placeholders.amount"),value:i.value/100,onChange:d=>i.onChange(parseFloat(d.currentTarget.value)*100)})}),e.jsx(P,{})]})}),e.jsxs(Le,{children:[e.jsx(L,{variant:"outline",onClick:()=>r(!1),children:l("dialog.actions.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{o.handleSubmit(i=>{Qs.assign(i).then(({data:d})=>{d&&(s&&s(),o.reset(),r(!1),$.success(l("dialog.messages.addSuccess")))})})()},children:l("dialog.actions.confirm")})]})]})]})]})}function Mx({table:s,refetch:a}){const{t}=V("order"),l=s.getState().columnFilters.length>0,n=Object.values(gs).filter(u=>typeof u=="number").map(u=>({label:t(`type.${gs[u]}`),value:u,color:u===gs.NEW?"green-500":u===gs.RENEWAL?"blue-500":u===gs.UPGRADE?"purple-500":"orange-500"})),r=Object.values(Ie).map(u=>({label:t(`period.${u}`),value:u,color:u===Ie.MONTH_PRICE?"slate-500":u===Ie.QUARTER_PRICE?"cyan-500":u===Ie.HALF_YEAR_PRICE?"indigo-500":u===Ie.YEAR_PRICE?"violet-500":u===Ie.TWO_YEAR_PRICE?"fuchsia-500":u===Ie.THREE_YEAR_PRICE?"pink-500":u===Ie.ONETIME_PRICE?"rose-500":"orange-500"})),o=Object.values(ne).filter(u=>typeof u=="number").map(u=>({label:t(`status.${ne[u]}`),value:u,icon:u===ne.PENDING?pt[0].icon:u===ne.PROCESSING?pt[1].icon:u===ne.COMPLETED?pt[2].icon:u===ne.CANCELLED?pt[3].icon:pt[4].icon,color:u===ne.PENDING?"yellow-500":u===ne.PROCESSING?"blue-500":u===ne.COMPLETED?"green-500":u===ne.CANCELLED?"red-500":"green-500"})),c=Object.values(be).filter(u=>typeof u=="number").map(u=>({label:t(`commission.${be[u]}`),value:u,icon:u===be.PENDING?zt[0].icon:u===be.PROCESSING?zt[1].icon:u===be.VALID?zt[2].icon:zt[3].icon,color:u===be.PENDING?"yellow-500":u===be.PROCESSING?"blue-500":u===be.VALID?"green-500":"red-500"}));return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Wr,{refetch:a}),e.jsx(D,{placeholder:t("search.placeholder"),value:s.getColumn("trade_no")?.getFilterValue()??"",onChange:u=>s.getColumn("trade_no")?.setFilterValue(u.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex flex-wrap gap-x-2",children:[s.getColumn("type")&&e.jsx(da,{column:s.getColumn("type"),title:t("table.columns.type"),options:n}),s.getColumn("period")&&e.jsx(da,{column:s.getColumn("period"),title:t("table.columns.period"),options:r}),s.getColumn("status")&&e.jsx(da,{column:s.getColumn("status"),title:t("table.columns.status"),options:o}),s.getColumn("commission_status")&&e.jsx(da,{column:s.getColumn("commission_status"),title:t("table.columns.commissionStatus"),options:c})]}),l&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[t("actions.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})}function xs({label:s,value:a,className:t,valueClassName:l}){return e.jsxs("div",{className:y("flex items-center py-1.5",t),children:[e.jsx("div",{className:"w-28 shrink-0 text-sm text-muted-foreground",children:s}),e.jsx("div",{className:y("text-sm",l),children:a||"-"})]})}function Ox({status:s}){const{t:a}=V("order"),t={[ne.PENDING]:"bg-yellow-100 text-yellow-800 hover:bg-yellow-100",[ne.PROCESSING]:"bg-blue-100 text-blue-800 hover:bg-blue-100",[ne.CANCELLED]:"bg-red-100 text-red-800 hover:bg-red-100",[ne.COMPLETED]:"bg-green-100 text-green-800 hover:bg-green-100",[ne.DISCOUNTED]:"bg-gray-100 text-gray-800 hover:bg-gray-100"};return e.jsx(G,{variant:"secondary",className:y("font-medium",t[s]),children:a(`status.${ne[s]}`)})}function zx({id:s,trigger:a}){const[t,l]=m.useState(!1),[n,r]=m.useState(),{t:o}=V("order");return m.useEffect(()=>{(async()=>{if(t){const{data:u}=await Qs.getInfo({id:s});r(u)}})()},[t,s]),e.jsxs(he,{onOpenChange:l,open:t,children:[e.jsx(is,{asChild:!0,children:a}),e.jsxs(ue,{className:"max-w-xl",children:[e.jsxs(je,{className:"space-y-2",children:[e.jsx(pe,{className:"text-lg font-medium",children:o("dialog.title")}),e.jsx("div",{className:"flex items-center justify-between text-sm",children:e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("div",{className:"text-muted-foreground",children:[o("table.columns.tradeNo"),":",n?.trade_no]}),!!n?.status&&e.jsx(Ox,{status:n.status})]})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:o("dialog.basicInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(xs,{label:o("dialog.fields.userEmail"),value:n?.user?.email?e.jsxs(nt,{to:`/user/manage?email=${n.user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[n.user.email,e.jsx(mr,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]}):"-"}),e.jsx(xs,{label:o("dialog.fields.orderPeriod"),value:n&&o(`period.${n.period}`)}),e.jsx(xs,{label:o("dialog.fields.subscriptionPlan"),value:n?.plan?.name,valueClassName:"font-medium"}),e.jsx(xs,{label:o("dialog.fields.callbackNo"),value:n?.callback_no,valueClassName:"font-mono text-xs"})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:o("dialog.amountInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(xs,{label:o("dialog.fields.paymentAmount"),value:Js(n?.total_amount||0),valueClassName:"font-medium text-primary"}),e.jsx(De,{className:"my-2"}),e.jsx(xs,{label:o("dialog.fields.balancePayment"),value:Js(n?.balance_amount||0)}),e.jsx(xs,{label:o("dialog.fields.discountAmount"),value:Js(n?.discount_amount||0),valueClassName:"text-green-600"}),e.jsx(xs,{label:o("dialog.fields.refundAmount"),value:Js(n?.refund_amount||0),valueClassName:"text-red-600"}),e.jsx(xs,{label:o("dialog.fields.deductionAmount"),value:Js(n?.surplus_amount||0)})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:o("dialog.timeInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(xs,{label:o("dialog.fields.createdAt"),value:Se(n?.created_at),valueClassName:"font-mono text-xs"}),e.jsx(xs,{label:o("dialog.fields.updatedAt"),value:Se(n?.updated_at),valueClassName:"font-mono text-xs"})]})]})]})]})]})}const $x={[gs.NEW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[gs.RENEWAL]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[gs.UPGRADE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[gs.RESET_FLOW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Ax={[Ie.MONTH_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.QUARTER_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.HALF_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.TWO_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.THREE_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.ONETIME_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ie.RESET_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},qx=s=>ne[s],Hx=s=>be[s],Ux=s=>gs[s],Kx=s=>{const{t:a}=V("order");return[{accessorKey:"trade_no",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.tradeNo")}),cell:({row:t})=>{const l=t.original.trade_no,n=l.length>6?`${l.slice(0,3)}...${l.slice(-3)}`:l;return e.jsx("div",{className:"flex items-center",children:e.jsx(zx,{trigger:e.jsxs(K,{variant:"ghost",size:"sm",className:"flex h-8 items-center gap-1.5 px-2 font-medium text-primary transition-colors hover:bg-primary/10 hover:text-primary/80",children:[e.jsx("span",{className:"font-mono",children:n}),e.jsx(mr,{className:"h-3.5 w-3.5 opacity-70"})]}),id:t.original.id})})},enableSorting:!1,enableHiding:!1},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.type")}),cell:({row:t})=>{const l=t.getValue("type"),n=$x[l];return e.jsx(G,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",n.color,n.bgColor,"border border-border/50","hover:bg-slate-200/80"),children:a(`type.${Ux(l)}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"plan.name",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.plan")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium text-foreground/90 sm:max-w-72 md:max-w-[31rem]",children:t.original.plan?.name||"-"})}),enableSorting:!1,enableHiding:!1},{accessorKey:"period",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.period")}),cell:({row:t})=>{const l=t.getValue("period"),n=Ax[l];return e.jsx(G,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",n?.color,n?.bgColor,"hover:bg-opacity-80"),children:a(`period.${l}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"total_amount",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.amount")}),cell:({row:t})=>{const l=t.getValue("total_amount"),n=typeof l=="number"?(l/100).toFixed(2):"N/A";return e.jsxs("div",{className:"flex items-center font-mono text-foreground/90",children:["¥",n]})},enableSorting:!0,enableHiding:!1},{accessorKey:"status",header:({column:t})=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(z,{column:t,title:a("table.columns.status")}),e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{children:e.jsx($r,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-muted-foreground"})}),e.jsx(xe,{side:"top",className:"max-w-[200px] text-sm",children:a("status.tooltip")})]})})]}),cell:({row:t})=>{const l=pt.find(n=>n.value===t.getValue("status"));return l?e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l.icon&&e.jsx(l.icon,{className:`h-4 w-4 text-${l.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`status.${qx(l.value)}`)})]}),l.value===ne.PENDING&&e.jsxs(Es,{modal:!0,children:[e.jsx(Is,{asChild:!0,children:e.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(va,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(ws,{align:"end",className:"w-[140px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await Qs.markPaid({trade_no:t.original.trade_no}),s()},children:a("actions.markAsPaid")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await Qs.makeCancel({trade_no:t.original.trade_no}),s()},children:a("actions.cancel")})]})]})]}):null},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_balance",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.commission")}),cell:({row:t})=>{const l=t.getValue("commission_balance"),n=l?(l/100).toFixed(2):"-";return e.jsx("div",{className:"flex items-center font-mono text-foreground/90",children:l?`¥${n}`:"-"})},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_status",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.commissionStatus")}),cell:({row:t})=>{const l=t.original.status,n=t.original.commission_balance,r=zt.find(o=>o.value===t.getValue("commission_status"));return n==0||!r?e.jsx("span",{className:"text-muted-foreground",children:"-"}):e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r.icon&&e.jsx(r.icon,{className:`h-4 w-4 text-${r.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`commission.${Hx(r.value)}`)})]}),r.value===be.PENDING&&l===ne.COMPLETED&&e.jsxs(Es,{modal:!0,children:[e.jsx(Is,{asChild:!0,children:e.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(va,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(ws,{align:"end",className:"w-[120px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await Qs.update({trade_no:t.original.trade_no,commission_status:be.PROCESSING}),s()},children:a("commission.PROCESSING")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await Qs.update({trade_no:t.original.trade_no,commission_status:be.INVALID}),s()},children:a("commission.INVALID")})]})]})]})},enableSorting:!0,enableHiding:!1},{accessorKey:"created_at",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.createdAt")}),cell:({row:t})=>e.jsx("div",{className:"text-nowrap font-mono text-sm text-muted-foreground",children:Se(t.getValue("created_at"),"YYYY/MM/DD HH:mm:ss")}),enableSorting:!0,enableHiding:!1}]};function Bx(){const[s]=ur(),[a,t]=m.useState({}),[l,n]=m.useState({}),[r,o]=m.useState([]),[c,u]=m.useState([]),[i,d]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const N=Object.entries({user_id:"string",order_id:"string",commission_status:"number",status:"number",commission_balance:"string"}).map(([g,T])=>{const E=s.get(g);return E?{id:g,value:T==="number"?parseInt(E):E}:null}).filter(Boolean);N.length>0&&o(N)},[s]);const{refetch:h,data:k,isLoading:C}=le({queryKey:["orderList",i,r,c],queryFn:()=>Qs.getList({pageSize:i.pageSize,current:i.pageIndex+1,filter:r,sort:c})}),S=Je({data:k?.data??[],columns:Kx(h),state:{sorting:c,columnVisibility:l,rowSelection:a,columnFilters:r,pagination:i},rowCount:k?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:t,onSortingChange:u,onColumnFiltersChange:o,onColumnVisibilityChange:n,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),onPaginationChange:d,getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(os,{table:S,toolbar:e.jsx(Mx,{table:S,refetch:h}),showPagination:!0})}function Gx(){const{t:s}=V("order");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Bx,{})})]})]})}const Wx=Object.freeze(Object.defineProperty({__proto__:null,default:Gx},Symbol.toStringTag,{value:"Module"}));function Yx({column:s,title:a,options:t}){const l=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Da,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(De,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(r=>n.has(r.value)).map(r=>e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:r.label},r.value))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(it,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(ot,{children:"No results found."}),e.jsx(ns,{children:t.map(r=>{const o=n.has(r.value);return e.jsxs($e,{onSelect:()=>{o?n.delete(r.value):n.add(r.value);const c=Array.from(n);s?.setFilterValue(c.length?c:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",o?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(at,{className:y("h-4 w-4")})}),r.icon&&e.jsx(r.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${r.color}`}),e.jsx("span",{children:r.label}),l?.get(r.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:l.get(r.value)})]},r.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Tt,{}),e.jsx(ns,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Jx=x.object({id:x.coerce.number().nullable().optional(),name:x.string().min(1,"请输入优惠券名称"),code:x.string().nullable(),type:x.coerce.number(),value:x.coerce.number(),started_at:x.coerce.number(),ended_at:x.coerce.number(),limit_use:x.union([x.string(),x.number()]).nullable(),limit_use_with_user:x.union([x.string(),x.number()]).nullable(),generate_count:x.coerce.number().nullable().optional(),limit_plan_ids:x.array(x.coerce.number()).default([]).nullable(),limit_period:x.array(x.nativeEnum(Ht)).default([]).nullable()}).refine(s=>s.ended_at>s.started_at,{message:"结束时间必须晚于开始时间",path:["ended_at"]}),ol={name:"",code:null,type:Ze.AMOUNT,value:0,started_at:Math.floor(Date.now()/1e3),ended_at:Math.floor(Date.now()/1e3)+7*24*60*60,limit_use:null,limit_use_with_user:null,limit_plan_ids:[],limit_period:[],generate_count:null};function Yr({defaultValues:s,refetch:a,type:t="create",dialogTrigger:l=null,open:n,onOpenChange:r}){const{t:o}=V("coupon"),[c,u]=m.useState(!1),i=n??c,d=r??u,[h,k]=m.useState([]),C=Ne({resolver:we(Jx),defaultValues:s||ol});m.useEffect(()=>{s&&C.reset(s)},[s,C]),m.useEffect(()=>{ss.getList().then(({data:g})=>k(g))},[]);const S=g=>{if(!g)return;const T=(E,p)=>{const _=new Date(p*1e3);return E.setHours(_.getHours(),_.getMinutes(),_.getSeconds()),Math.floor(E.getTime()/1e3)};g.from&&C.setValue("started_at",T(g.from,C.watch("started_at"))),g.to&&C.setValue("ended_at",T(g.to,C.watch("ended_at")))},w=async g=>{const T=await Na.save(g);if(g.generate_count&&T){const E=new Blob([T],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a");p.href=window.URL.createObjectURL(E),p.download=`coupons_${new Date().getTime()}.csv`,p.click(),window.URL.revokeObjectURL(p.href)}d(!1),t==="create"&&C.reset(ol),a()},N=(g,T)=>e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground",children:T}),e.jsx(D,{type:"datetime-local",step:"1",value:Se(C.watch(g),"YYYY-MM-DDTHH:mm:ss"),onChange:E=>{const p=new Date(E.target.value);C.setValue(g,Math.floor(p.getTime()/1e3))},className:"h-8 [&::-webkit-calendar-picker-indicator]:hidden"})]});return e.jsxs(he,{open:i,onOpenChange:d,children:[l&&e.jsx(is,{asChild:!0,children:l}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(je,{children:e.jsx(pe,{children:o(t==="create"?"form.add":"form.edit")})}),e.jsx(Ce,{...C,children:e.jsxs("form",{onSubmit:C.handleSubmit(w),className:"space-y-4",children:[e.jsx(v,{control:C.control,name:"name",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.name.label")}),e.jsx(D,{placeholder:o("form.name.placeholder"),...g}),e.jsx(P,{})]})}),t==="create"&&e.jsx(v,{control:C.control,name:"generate_count",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.generateCount.label")}),e.jsx(D,{type:"number",min:0,placeholder:o("form.generateCount.placeholder"),...g,value:g.value===void 0?"":g.value,onChange:T=>g.onChange(T.target.value===""?"":parseInt(T.target.value)),className:"h-9"}),e.jsx(M,{className:"text-xs",children:o("form.generateCount.description")}),e.jsx(P,{})]})}),(!C.watch("generate_count")||C.watch("generate_count")==null)&&e.jsx(v,{control:C.control,name:"code",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.code.label")}),e.jsx(D,{placeholder:o("form.code.placeholder"),...g,className:"h-9"}),e.jsx(M,{className:"text-xs",children:o("form.code.description")}),e.jsx(P,{})]})}),e.jsxs(f,{children:[e.jsx(j,{children:o("form.type.label")}),e.jsxs("div",{className:"flex",children:[e.jsx(v,{control:C.control,name:"type",render:({field:g})=>e.jsxs(J,{value:g.value.toString(),onValueChange:T=>{const E=g.value,p=parseInt(T);g.onChange(p);const _=C.getValues("value");_&&(E===Ze.AMOUNT&&p===Ze.PERCENTAGE?C.setValue("value",_/100):E===Ze.PERCENTAGE&&p===Ze.AMOUNT&&C.setValue("value",_*100))},children:[e.jsx(W,{className:"flex-[1.2] rounded-r-none border-r-0 focus:z-10",children:e.jsx(Q,{placeholder:o("form.type.placeholder")})}),e.jsx(Y,{children:Object.entries(im).map(([T,E])=>e.jsx(A,{value:T,children:o(`table.toolbar.types.${T}`)},T))})]})}),e.jsx(v,{control:C.control,name:"value",render:({field:g})=>{const T=g.value==null?"":C.watch("type")===Ze.AMOUNT&&typeof g.value=="number"?(g.value/100).toString():g.value.toString();return e.jsx(D,{type:"number",placeholder:o("form.value.placeholder"),...g,value:T,onChange:E=>{const p=E.target.value;if(p===""){g.onChange("");return}const _=parseFloat(p);isNaN(_)||g.onChange(C.watch("type")===Ze.AMOUNT?Math.round(_*100):_)},step:"any",min:0,className:"flex-[2] rounded-none border-x-0 text-left"})}}),e.jsx("div",{className:"flex min-w-[40px] items-center justify-center rounded-md rounded-l-none border border-l-0 border-input bg-muted/50 px-3 font-medium text-muted-foreground",children:e.jsx("span",{children:C.watch("type")==Ze.AMOUNT?"¥":"%"})})]})]}),e.jsxs(f,{children:[e.jsx(j,{children:o("form.validity.label")}),e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:y("w-full justify-start text-left font-normal",!C.watch("started_at")&&"text-muted-foreground"),children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),Se(C.watch("started_at"),"YYYY-MM-DD HH:mm:ss")," ",o("form.validity.to")," ",Se(C.watch("ended_at"),"YYYY-MM-DD HH:mm:ss")]})}),e.jsxs(bs,{className:"w-auto p-0",align:"start",children:[e.jsx("div",{className:"border-b border-border",children:e.jsx(ct,{mode:"range",selected:{from:new Date(C.watch("started_at")*1e3),to:new Date(C.watch("ended_at")*1e3)},onSelect:S,numberOfMonths:2})}),e.jsx("div",{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-4",children:[N("started_at",o("table.validity.startTime")),e.jsx("div",{className:"mt-6 text-sm text-muted-foreground",children:o("form.validity.to")}),N("ended_at",o("table.validity.endTime"))]})})]})]}),e.jsx(P,{})]}),e.jsx(v,{control:C.control,name:"limit_use",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.limitUse.label")}),e.jsx(D,{type:"number",min:0,placeholder:o("form.limitUse.placeholder"),...g,value:g.value===null?"":g.value,onChange:T=>g.onChange(T.target.value===""?null:parseInt(T.target.value)),className:"h-9"}),e.jsx(M,{className:"text-xs",children:o("form.limitUse.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"limit_use_with_user",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.limitUseWithUser.label")}),e.jsx(D,{type:"number",min:0,placeholder:o("form.limitUseWithUser.placeholder"),...g,value:g.value===null?"":g.value,onChange:T=>g.onChange(T.target.value===""?null:parseInt(T.target.value)),className:"h-9"}),e.jsx(M,{className:"text-xs",children:o("form.limitUseWithUser.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"limit_period",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.limitPeriod.label")}),e.jsx(wt,{options:Object.entries(Ht).filter(([T])=>isNaN(Number(T))).map(([T,E])=>({label:o(`coupon:period.${E}`),value:T})),onChange:T=>{if(T.length===0){g.onChange([]);return}const E=T.map(p=>Ht[p.value]);g.onChange(E)},value:(g.value||[]).map(T=>({label:o(`coupon:period.${T}`),value:Object.entries(Ht).find(([E,p])=>p===T)?.[0]||""})),placeholder:o("form.limitPeriod.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:o("form.limitPeriod.empty")})}),e.jsx(M,{className:"text-xs",children:o("form.limitPeriod.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"limit_plan_ids",render:({field:g})=>e.jsxs(f,{children:[e.jsx(j,{children:o("form.limitPlan.label")}),e.jsx(wt,{options:h?.map(T=>({label:T.name,value:T.id.toString()}))||[],onChange:T=>g.onChange(T.map(E=>Number(E.value))),value:(h||[]).filter(T=>(g.value||[]).includes(T.id)).map(T=>({label:T.name,value:T.id.toString()})),placeholder:o("form.limitPlan.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:o("form.limitPlan.empty")})}),e.jsx(P,{})]})}),e.jsx(Le,{children:e.jsx(L,{type:"submit",disabled:C.formState.isSubmitting,children:C.formState.isSubmitting?o("form.submit.saving"):o("form.submit.save")})})]})})]})]})}function Qx({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:l}=V("coupon");return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Yr,{refetch:a,dialogTrigger:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:l("form.add")})]})}),e.jsx(D,{placeholder:l("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),s.getColumn("type")&&e.jsx(Yx,{column:s.getColumn("type"),title:l("table.toolbar.type"),options:[{value:Ze.AMOUNT,label:l(`table.toolbar.types.${Ze.AMOUNT}`)},{value:Ze.PERCENTAGE,label:l(`table.toolbar.types.${Ze.PERCENTAGE}`)}]}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[l("table.toolbar.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]})]})}const Jr=m.createContext(void 0);function Xx({children:s,refetch:a}){const[t,l]=m.useState(!1),[n,r]=m.useState(null),o=u=>{r(u),l(!0)},c=()=>{l(!1),r(null)};return e.jsxs(Jr.Provider,{value:{isOpen:t,currentCoupon:n,openEdit:o,closeEdit:c},children:[s,n&&e.jsx(Yr,{defaultValues:n,refetch:a,type:"edit",open:t,onOpenChange:l})]})}function Zx(){const s=m.useContext(Jr);if(s===void 0)throw new Error("useCouponEdit must be used within a CouponEditProvider");return s}const eh=s=>{const{t:a}=V("coupon");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(G,{children:t.original.id}),enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.original.show,onCheckedChange:l=>{Na.update({id:t.original.id,show:l}).then(({data:n})=>!n&&s())}}),enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{children:t.original.name})}),enableSorting:!1,size:800},{accessorKey:"type",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.type")}),cell:({row:t})=>e.jsx(G,{variant:"outline",children:a(`table.toolbar.types.${t.original.type}`)}),enableSorting:!0},{accessorKey:"code",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.code")}),cell:({row:t})=>e.jsx(G,{variant:"secondary",children:t.original.code}),enableSorting:!0},{accessorKey:"limit_use",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.limitUse")}),cell:({row:t})=>e.jsx(G,{variant:"outline",children:t.original.limit_use===null?a("table.validity.unlimited"):t.original.limit_use}),enableSorting:!0},{accessorKey:"limit_use_with_user",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.limitUseWithUser")}),cell:({row:t})=>e.jsx(G,{variant:"outline",children:t.original.limit_use_with_user===null?a("table.validity.noLimit"):t.original.limit_use_with_user}),enableSorting:!0},{accessorKey:"#",header:({column:t})=>e.jsx(z,{column:t,title:a("table.columns.validity")}),cell:({row:t})=>{const[l,n]=m.useState(!1),r=Date.now(),o=t.original.started_at*1e3,c=t.original.ended_at*1e3,u=r>c,i=re.jsx(z,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>{const{openEdit:l}=Zx();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>l(t.original),children:[e.jsx(lt,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),e.jsx(ls,{title:a("table.actions.deleteConfirm.title"),description:a("table.actions.deleteConfirm.description"),confirmText:a("table.actions.deleteConfirm.confirmText"),variant:"destructive",onConfirm:async()=>{Na.drop({id:t.original.id}).then(({data:n})=>{n&&($.success("删除成功"),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(We,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete")})]})})]})}}]};function sh(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,r]=m.useState([]),[o,c]=m.useState([]),[u,i]=m.useState({pageIndex:0,pageSize:20}),{refetch:d,data:h}=le({queryKey:["couponList",u,n,o],queryFn:()=>Na.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:n,sort:o})}),k=Je({data:h?.data??[],columns:eh(d),state:{sorting:o,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:u},pageCount:Math.ceil((h?.total??0)/u.pageSize),rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:r,onColumnVisibilityChange:l,onPaginationChange:i,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(Xx,{refetch:d,children:e.jsx("div",{className:"space-y-4",children:e.jsx(os,{table:k,toolbar:e.jsx(Qx,{table:k,refetch:d})})})})}function th(){const{t:s}=V("coupon");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(sh,{})})]})]})}const ah=Object.freeze(Object.defineProperty({__proto__:null,default:th},Symbol.toStringTag,{value:"Module"})),nh=1,lh=1e6;let Xa=0;function rh(){return Xa=(Xa+1)%Number.MAX_SAFE_INTEGER,Xa.toString()}const Za=new Map,cl=s=>{if(Za.has(s))return;const a=setTimeout(()=>{Za.delete(s),Ut({type:"REMOVE_TOAST",toastId:s})},lh);Za.set(s,a)},ih=(s,a)=>{switch(a.type){case"ADD_TOAST":return{...s,toasts:[a.toast,...s.toasts].slice(0,nh)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(t=>t.id===a.toast.id?{...t,...a.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?cl(t):s.toasts.forEach(l=>{cl(l.id)}),{...s,toasts:s.toasts.map(l=>l.id===t||t===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(t=>t.id!==a.toastId)}}},ha=[];let pa={toasts:[]};function Ut(s){pa=ih(pa,s),ha.forEach(a=>{a(pa)})}function oh({...s}){const a=rh(),t=n=>Ut({type:"UPDATE_TOAST",toast:{...n,id:a}}),l=()=>Ut({type:"DISMISS_TOAST",toastId:a});return Ut({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:n=>{n||l()}}}),{id:a,dismiss:l,update:t}}function Qr(){const[s,a]=m.useState(pa);return m.useEffect(()=>(ha.push(a),()=>{const t=ha.indexOf(a);t>-1&&ha.splice(t,1)}),[s]),{...s,toast:oh,dismiss:t=>Ut({type:"DISMISS_TOAST",toastId:t})}}function ch({open:s,onOpenChange:a,table:t}){const{t:l}=V("user"),{toast:n}=Qr(),[r,o]=m.useState(!1),[c,u]=m.useState(""),[i,d]=m.useState(""),h=async()=>{if(!c||!i){n({title:l("messages.error"),description:l("messages.send_mail.required_fields"),variant:"destructive"});return}try{o(!0),await _s.sendMail({subject:c,content:i,filter:t.getState().columnFilters,sort:t.getState().sorting[0]?.id,sort_type:t.getState().sorting[0]?.desc?"DESC":"ASC"}),n({title:l("messages.success"),description:l("messages.send_mail.success")}),a(!1),u(""),d("")}catch{n({title:l("messages.error"),description:l("messages.send_mail.failed"),variant:"destructive"})}finally{o(!1)}};return e.jsx(he,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[500px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:l("send_mail.title")}),e.jsx(Re,{children:l("send_mail.description")})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"subject",className:"text-right",children:l("send_mail.subject")}),e.jsx(D,{id:"subject",value:c,onChange:k=>u(k.target.value),className:"col-span-3"})]}),e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"content",className:"text-right",children:l("send_mail.content")}),e.jsx(ks,{id:"content",value:i,onChange:k=>d(k.target.value),className:"col-span-3",rows:6})]})]}),e.jsx(Le,{children:e.jsx(K,{type:"submit",onClick:h,disabled:r,children:l(r?"send_mail.sending":"send_mail.send")})})]})})}const dh=x.object({email_prefix:x.string().optional(),email_suffix:x.string().min(1),password:x.string().optional(),expired_at:x.number().optional().nullable(),plan_id:x.number().nullable(),generate_count:x.number().optional().nullable(),download_csv:x.boolean().optional()}).refine(s=>s.generate_count===null?s.email_prefix!==void 0&&s.email_prefix!=="":!0,{message:"Email prefix is required when generate_count is null",path:["email_prefix"]}),mh={email_prefix:"",email_suffix:"",password:"",expired_at:null,plan_id:null,generate_count:void 0,download_csv:!1};function uh({refetch:s}){const{t:a}=V("user"),[t,l]=m.useState(!1),n=Ne({resolver:we(dh),defaultValues:mh,mode:"onChange"}),[r,o]=m.useState([]);return m.useEffect(()=>{t&&ss.getList().then(({data:c})=>{c&&o(c)})},[t]),e.jsxs(he,{open:t,onOpenChange:l,children:[e.jsx(is,{asChild:!0,children:e.jsxs(K,{size:"sm",variant:"outline",className:"gap-0 space-x-2",children:[e.jsx(ze,{icon:"ion:add"}),e.jsx("div",{children:a("generate.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(je,{children:[e.jsx(pe,{children:a("generate.title")}),e.jsx(Re,{})]}),e.jsxs(Ce,{...n,children:[e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.email")}),e.jsxs("div",{className:"flex",children:[!n.watch("generate_count")&&e.jsx(v,{control:n.control,name:"email_prefix",render:({field:c})=>e.jsx(D,{className:"flex-[5] rounded-r-none",placeholder:a("generate.form.email_prefix"),...c})}),e.jsx("div",{className:`z-[-1] border border-r-0 border-input px-3 py-1 shadow-sm ${n.watch("generate_count")?"rounded-l-md":"border-l-0"}`,children:"@"}),e.jsx(v,{control:n.control,name:"email_suffix",render:({field:c})=>e.jsx(D,{className:"flex-[4] rounded-l-none",placeholder:a("generate.form.email_domain"),...c})})]})]}),e.jsx(v,{control:n.control,name:"password",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.password")}),e.jsx(D,{placeholder:a("generate.form.password_placeholder"),...c}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"expired_at",render:({field:c})=>e.jsxs(f,{className:"flex flex-col",children:[e.jsx(j,{children:a("generate.form.expire_time")}),e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsx(b,{children:e.jsxs(K,{variant:"outline",className:y("w-full pl-3 text-left font-normal",!c.value&&"text-muted-foreground"),children:[c.value?Se(c.value):e.jsx("span",{children:a("generate.form.expire_time_placeholder")}),e.jsx(Ct,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsxs(bs,{className:"flex w-auto flex-col space-y-2 p-2",children:[e.jsx(Gc,{asChild:!0,children:e.jsx(K,{variant:"outline",className:"w-full",onClick:()=>{c.onChange(null)},children:a("generate.form.permanent")})}),e.jsx("div",{className:"rounded-md border",children:e.jsx(ct,{mode:"single",selected:c.value?new Date(c.value*1e3):void 0,onSelect:u=>{u&&c.onChange(u?.getTime()/1e3)}})})]})]})]})}),e.jsx(v,{control:n.control,name:"plan_id",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.subscription")}),e.jsx(b,{children:e.jsxs(J,{value:c.value?c.value.toString():"null",onValueChange:u=>c.onChange(u==="null"?null:parseInt(u)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("generate.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"null",children:a("generate.form.subscription_none")}),r.map(u=>e.jsx(A,{value:u.id.toString(),children:u.name},u.id))]})]})})]})}),!n.watch("email_prefix")&&e.jsx(v,{control:n.control,name:"generate_count",render:({field:c})=>e.jsxs(f,{children:[e.jsx(j,{children:a("generate.form.generate_count")}),e.jsx(D,{type:"number",placeholder:a("generate.form.generate_count_placeholder"),value:c.value||"",onChange:u=>c.onChange(u.target.value?parseInt(u.target.value):null)})]})}),n.watch("generate_count")&&e.jsx(v,{control:n.control,name:"download_csv",render:({field:c})=>e.jsxs(f,{className:"flex cursor-pointer flex-row items-center space-x-2 space-y-0",children:[e.jsx(b,{children:e.jsx(Pn,{checked:c.value,onCheckedChange:c.onChange})}),e.jsx(j,{children:a("generate.form.download_csv")})]})})]}),e.jsxs(Le,{children:[e.jsx(K,{variant:"outline",onClick:()=>l(!1),children:a("generate.form.cancel")}),e.jsx(K,{onClick:()=>n.handleSubmit(async c=>{if(c.download_csv){const u=await _s.generate(c);if(u&&u instanceof Blob){const i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.download=`users_${new Date().getTime()}.csv`,document.body.appendChild(d),d.click(),d.remove(),window.URL.revokeObjectURL(i),$.success(a("generate.form.success")),n.reset(),s(),l(!1)}}else{const{data:u}=await _s.generate(c);u&&($.success(a("generate.form.success")),n.reset(),s(),l(!1))}})(),children:a("generate.form.submit")})]})]})]})}const Xr=fl,xh=jl,hh=vl,Zr=m.forwardRef(({className:s,...a},t)=>e.jsx(wa,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));Zr.displayName=wa.displayName;const ph=tt("fixed overflow-y-scroll z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-md",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md"}},defaultVariants:{side:"right"}}),Ln=m.forwardRef(({side:s="right",className:a,children:t,...l},n)=>e.jsxs(hh,{children:[e.jsx(Zr,{}),e.jsxs(Ca,{ref:n,className:y(ph({side:s}),a),...l,children:[e.jsxs(hn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(ds,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),t]})]}));Ln.displayName=Ca.displayName;const En=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...a});En.displayName="SheetHeader";const ei=({className:s,...a})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});ei.displayName="SheetFooter";const In=m.forwardRef(({className:s,...a},t)=>e.jsx(Sa,{ref:t,className:y("text-lg font-semibold text-foreground",s),...a}));In.displayName=Sa.displayName;const Rn=m.forwardRef(({className:s,...a},t)=>e.jsx(ka,{ref:t,className:y("text-sm text-muted-foreground",s),...a}));Rn.displayName=ka.displayName;function gh({table:s,refetch:a,permissionGroups:t=[],subscriptionPlans:l=[]}){const{t:n}=V("user"),{toast:r}=Qr(),o=s.getState().columnFilters.length>0,[c,u]=m.useState([]),[i,d]=m.useState(!1),[h,k]=m.useState(!1),[C,S]=m.useState(!1),[w,N]=m.useState(!1),g=async()=>{try{const ee=await _s.dumpCSV({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),te=ee;console.log(ee);const q=new Blob([te],{type:"text/csv;charset=utf-8;"}),R=window.URL.createObjectURL(q),X=document.createElement("a");X.href=R,X.setAttribute("download",`users_${new Date().toISOString()}.csv`),document.body.appendChild(X),X.click(),X.remove(),window.URL.revokeObjectURL(R),r({title:n("messages.success"),description:n("messages.export.success")})}catch{r({title:n("messages.error"),description:n("messages.export.failed"),variant:"destructive"})}},T=async()=>{try{N(!0),await _s.batchBan({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),r({title:n("messages.success"),description:n("messages.batch_ban.success")}),a()}catch{r({title:n("messages.error"),description:n("messages.batch_ban.failed"),variant:"destructive"})}finally{N(!1),S(!1)}},E=[{label:n("filter.fields.email"),value:"email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.id"),value:"id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.plan_id"),value:"plan_id",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],useOptions:!0},{label:n("filter.fields.transfer_enable"),value:"transfer_enable",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.total_used"),value:"total_used",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.online_count"),value:"online_count",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"}]},{label:n("filter.fields.expired_at"),value:"expired_at",type:"date",operators:[{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.uuid"),value:"uuid",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.token"),value:"token",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.banned"),value:"banned",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],options:[{label:n("filter.status.normal"),value:"0"},{label:n("filter.status.banned"),value:"1"}]},{label:n("filter.fields.remark"),value:"remarks",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.inviter_email"),value:"invite_user.email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.invite_user_id"),value:"invite_user_id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_admin"),value:"is_admin",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_staff"),value:"is_staff",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]}],p=ee=>ee*1024*1024*1024,_=ee=>ee/(1024*1024*1024),I=()=>{u([...c,{field:"",operator:"",value:""}])},H=ee=>{u(c.filter((te,q)=>q!==ee))},O=(ee,te,q)=>{const R=[...c];if(R[ee]={...R[ee],[te]:q},te==="field"){const X=E.find(ms=>ms.value===q);X&&(R[ee].operator=X.operators[0].value,R[ee].value=X.type==="boolean"?!1:"")}u(R)},B=(ee,te)=>{const q=E.find(R=>R.value===ee.field);if(!q)return null;switch(q.type){case"text":return e.jsx(D,{placeholder:n("filter.sheet.value"),value:ee.value,onChange:R=>O(te,"value",R.target.value)});case"number":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{type:"number",placeholder:n("filter.sheet.value_number",{unit:q.unit}),value:q.unit==="GB"?_(ee.value||0):ee.value,onChange:R=>{const X=Number(R.target.value);O(te,"value",q.unit==="GB"?p(X):X)}}),q.unit&&e.jsx("span",{className:"text-sm text-muted-foreground",children:q.unit})]});case"date":return e.jsx(ct,{mode:"single",selected:ee.value,onSelect:R=>O(te,"value",R),className:"flex flex-1 justify-center rounded-md border"});case"select":return e.jsxs(J,{value:ee.value,onValueChange:R=>O(te,"value",R),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.value")})}),e.jsx(Y,{children:q.useOptions?l.map(R=>e.jsx(A,{value:R.value.toString(),children:R.label},R.value)):q.options?.map(R=>e.jsx(A,{value:R.value.toString(),children:R.label},R.value))})]});case"boolean":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{checked:ee.value,onCheckedChange:R=>O(te,"value",R)}),e.jsx(Xs,{children:ee.value?n("filter.boolean.true"):n("filter.boolean.false")})]});default:return null}},ce=()=>{const ee=c.filter(te=>te.field&&te.operator&&te.value!=="").map(te=>{const q=E.find(X=>X.value===te.field);let R=te.value;return te.operator==="contains"?{id:te.field,value:R}:(q?.type==="date"&&R instanceof Date&&(R=Math.floor(R.getTime()/1e3)),q?.type==="boolean"&&(R=R?1:0),{id:te.field,value:`${te.operator}:${R}`})});s.setColumnFilters(ee),d(!1)};return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[e.jsx(uh,{refetch:a}),e.jsx(D,{placeholder:n("filter.email_search"),value:s.getColumn("email")?.getFilterValue()??"",onChange:ee=>s.getColumn("email")?.setFilterValue(ee.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(Xr,{open:i,onOpenChange:d,children:[e.jsx(xh,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Wc,{className:"mr-2 h-4 w-4"}),n("filter.advanced"),c.length>0&&e.jsx(G,{variant:"secondary",className:"ml-2 rounded-sm px-1",children:c.length})]})}),e.jsxs(Ln,{className:"w-[400px] sm:w-[540px]",children:[e.jsxs(En,{children:[e.jsx(In,{children:n("filter.sheet.title")}),e.jsx(Rn,{children:n("filter.sheet.description")})]}),e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"font-medium",children:n("filter.sheet.conditions")}),e.jsx(L,{variant:"outline",size:"sm",onClick:I,children:n("filter.sheet.add")})]}),e.jsx(_t,{className:"h-[calc(100vh-280px)] ",children:e.jsx("div",{className:"space-y-4",children:c.map((ee,te)=>e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Xs,{children:n("filter.sheet.condition",{number:te+1})}),e.jsx(L,{variant:"ghost",size:"sm",onClick:()=>H(te),children:e.jsx(ds,{className:"h-4 w-4"})})]}),e.jsxs(J,{value:ee.field,onValueChange:q=>O(te,"field",q),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.field")})}),e.jsx(Y,{children:e.jsx(Be,{children:E.map(q=>e.jsx(A,{value:q.value,className:"cursor-pointer",children:q.label},q.value))})})]}),ee.field&&e.jsxs(J,{value:ee.operator,onValueChange:q=>O(te,"operator",q),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.operator")})}),e.jsx(Y,{children:E.find(q=>q.value===ee.field)?.operators.map(q=>e.jsx(A,{value:q.value,children:q.label},q.value))})]}),ee.field&&ee.operator&&B(ee,te)]},te))})}),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{variant:"outline",onClick:()=>{u([]),d(!1)},children:n("filter.sheet.reset")}),e.jsx(L,{onClick:ce,children:n("filter.sheet.apply")})]})]})]})]}),o&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),u([])},className:"h-8 px-2 lg:px-3",children:[n("filter.sheet.reset"),e.jsx(ds,{className:"ml-2 h-4 w-4"})]}),e.jsxs(Es,{modal:!1,children:[e.jsx(Is,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:n("actions.title")})}),e.jsxs(ws,{children:[e.jsx(_e,{onClick:()=>k(!0),children:n("actions.send_email")}),e.jsx(_e,{onClick:g,children:n("actions.export_csv")}),e.jsx(Nt,{}),e.jsx(_e,{onClick:()=>S(!0),className:"text-red-600 focus:text-red-600",children:n("actions.batch_ban")})]})]})]}),e.jsx(ch,{open:h,onOpenChange:k,table:s}),e.jsx(kn,{open:C,onOpenChange:S,children:e.jsxs(Ra,{children:[e.jsxs(Va,{children:[e.jsx(Ma,{children:n("actions.confirm_ban.title")}),e.jsx(Oa,{children:n(o?"actions.confirm_ban.filtered_description":"actions.confirm_ban.all_description")})]}),e.jsxs(Fa,{children:[e.jsx($a,{disabled:w,children:n("actions.confirm_ban.cancel")}),e.jsx(za,{onClick:T,disabled:w,className:"bg-red-600 hover:bg-red-700 focus:ring-red-600",children:n(w?"actions.confirm_ban.banning":"actions.confirm_ban.confirm")})]})]})})]})}const si=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m17.71 11.29l-5-5a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21l-5 5a1 1 0 0 0 1.42 1.42L11 9.41V17a1 1 0 0 0 2 0V9.41l3.29 3.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42"})}),ti=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.71 11.29a1 1 0 0 0-1.42 0L13 14.59V7a1 1 0 0 0-2 0v7.59l-3.29-3.3a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 .33.21a.94.94 0 0 0 .76 0a1 1 0 0 0 .33-.21l5-5a1 1 0 0 0 0-1.42"})}),fh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17 11H9.41l3.3-3.29a1 1 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33a1 1 0 0 0 0 .76a1 1 0 0 0 .21.33l5 5a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42L9.41 13H17a1 1 0 0 0 0-2"})}),jh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76"})}),en=[{accessorKey:"record_at",header:"时间",cell:({row:s})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("time",{className:"text-sm text-muted-foreground",children:ud(s.original.record_at)})})},{accessorKey:"u",header:"上行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(si,{className:"h-4 w-4 text-emerald-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.u/parseFloat(s.original.server_rate))})]})},{accessorKey:"d",header:"下行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ti,{className:"h-4 w-4 text-blue-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.d/parseFloat(s.original.server_rate))})]})},{accessorKey:"server_rate",header:"倍率",cell:({row:s})=>{const a=s.original.server_rate;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(G,{variant:"outline",className:"font-mono",children:[a,"x"]})})}},{id:"total",header:"总计",cell:({row:s})=>{const a=s.original.u+s.original.d;return e.jsx("div",{className:"flex items-center justify-end font-mono text-sm",children:Oe(a)})}}];function ai({user_id:s,dialogTrigger:a}){const{t}=V(["traffic"]),[l,n]=m.useState(!1),[r,o]=m.useState({pageIndex:0,pageSize:20}),{data:c,isLoading:u}=le({queryKey:["userStats",s,r,l],queryFn:()=>l?_s.getStats({user_id:s,pageSize:r.pageSize,page:r.pageIndex+1}):null}),i=Je({data:c?.data??[],columns:en,pageCount:Math.ceil((c?.total??0)/r.pageSize),state:{pagination:r},manualPagination:!0,getCoreRowModel:Qe(),onPaginationChange:o});return e.jsxs(he,{open:l,onOpenChange:n,children:[e.jsx(is,{asChild:!0,children:a}),e.jsxs(ue,{className:"sm:max-w-[700px]",children:[e.jsx(je,{children:e.jsx(pe,{children:t("trafficRecord.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rounded-md border",children:e.jsxs(Nn,{children:[e.jsx(_n,{children:i.getHeaderGroups().map(d=>e.jsx(As,{children:d.headers.map(h=>e.jsx(Cn,{className:y("h-10 px-2 text-xs",h.id==="total"&&"text-right"),children:h.isPlaceholder?null:ga(h.column.columnDef.header,h.getContext())},h.id))},d.id))}),e.jsx(wn,{children:u?Array.from({length:r.pageSize}).map((d,h)=>e.jsx(As,{children:Array.from({length:en.length}).map((k,C)=>e.jsx(vt,{className:"p-2",children:e.jsx(me,{className:"h-6 w-full"})},C))},h)):i.getRowModel().rows?.length?i.getRowModel().rows.map(d=>e.jsx(As,{"data-state":d.getIsSelected()&&"selected",className:"h-10",children:d.getVisibleCells().map(h=>e.jsx(vt,{className:"px-2",children:ga(h.column.columnDef.cell,h.getContext())},h.id))},d.id)):e.jsx(As,{children:e.jsx(vt,{colSpan:en.length,className:"h-24 text-center",children:t("trafficRecord.noRecords")})})})]})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.perPage")}),e.jsxs(J,{value:`${i.getState().pagination.pageSize}`,onValueChange:d=>{i.setPageSize(Number(d))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:i.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50].map(d=>e.jsx(A,{value:`${d}`,children:d},d))})]}),e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.records")})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"flex w-[100px] items-center justify-center text-sm",children:t("trafficRecord.page",{current:i.getState().pagination.pageIndex+1,total:i.getPageCount()})}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>i.previousPage(),disabled:!i.getCanPreviousPage()||u,children:e.jsx(fh,{className:"h-4 w-4"})}),e.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>i.nextPage(),disabled:!i.getCanNextPage()||u,children:e.jsx(jh,{className:"h-4 w-4"})})]})]})]})]})]})]})}function vh({onConfirm:s,children:a,title:t="确认操作",description:l="确定要执行此操作吗?",cancelText:n="取消",confirmText:r="确认",variant:o="default",className:c}){return e.jsxs(kn,{children:[e.jsx(Or,{asChild:!0,children:a}),e.jsxs(Ra,{className:y("sm:max-w-[425px]",c),children:[e.jsxs(Va,{children:[e.jsx(Ma,{children:t}),e.jsx(Oa,{children:l})]}),e.jsxs(Fa,{children:[e.jsx($a,{asChild:!0,children:e.jsx(L,{variant:"outline",children:n})}),e.jsx(za,{asChild:!0,children:e.jsx(L,{variant:o,onClick:s,children:r})})]})]})]})}const bh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M5 18h4.24a1 1 0 0 0 .71-.29l6.92-6.93L19.71 8a1 1 0 0 0 0-1.42l-4.24-4.29a1 1 0 0 0-1.42 0l-2.82 2.83l-6.94 6.93a1 1 0 0 0-.29.71V17a1 1 0 0 0 1 1m9.76-13.59l2.83 2.83l-1.42 1.42l-2.83-2.83ZM6 13.17l5.93-5.93l2.83 2.83L8.83 16H6ZM21 20H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2"})}),yh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2"})}),Nh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 8.94a1.3 1.3 0 0 0-.06-.27v-.09a1 1 0 0 0-.19-.28l-6-6a1 1 0 0 0-.28-.19a.3.3 0 0 0-.09 0a.9.9 0 0 0-.33-.11H10a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-1h1a3 3 0 0 0 3-3zm-6-3.53L17.59 8H16a1 1 0 0 1-1-1ZM15 19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1v7a3 3 0 0 0 3 3h5Zm4-4a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3v3a3 3 0 0 0 3 3h3Z"})}),_h=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 11a1 1 0 0 0-1 1a8.05 8.05 0 1 1-2.22-5.5h-2.4a1 1 0 0 0 0 2h4.53a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1.77A10 10 0 1 0 22 12a1 1 0 0 0-1-1"})}),wh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9.5 10.5H12a1 1 0 0 0 0-2h-1V8a1 1 0 0 0-2 0v.55a2.5 2.5 0 0 0 .5 4.95h1a.5.5 0 0 1 0 1H8a1 1 0 0 0 0 2h1v.5a1 1 0 0 0 2 0v-.55a2.5 2.5 0 0 0-.5-4.95h-1a.5.5 0 0 1 0-1M21 12h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Z"})}),Ch=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12.3 12.22A4.92 4.92 0 0 0 14 8.5a5 5 0 0 0-10 0a4.92 4.92 0 0 0 1.7 3.72A8 8 0 0 0 1 19.5a1 1 0 0 0 2 0a6 6 0 0 1 12 0a1 1 0 0 0 2 0a8 8 0 0 0-4.7-7.28M9 11.5a3 3 0 1 1 3-3a3 3 0 0 1-3 3m9.74.32A5 5 0 0 0 15 3.5a1 1 0 0 0 0 2a3 3 0 0 1 3 3a3 3 0 0 1-1.5 2.59a1 1 0 0 0-.5.84a1 1 0 0 0 .45.86l.39.26l.13.07a7 7 0 0 1 4 6.38a1 1 0 0 0 2 0a9 9 0 0 0-4.23-7.68"})}),Sh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 0 0-6.88 2.77V3a1 1 0 0 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2h-2.4A8 8 0 1 1 4 12a1 1 0 0 0-2 0A10 10 0 1 0 12 2m0 6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2h-1V9a1 1 0 0 0-1-1"})}),kh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2M10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Z"})}),Th=(s,a,t,l)=>{const{t:n}=V("user");return[{accessorKey:"is_admin",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.is_admin")}),enableSorting:!1,enableHiding:!0,filterFn:(r,o,c)=>c.includes(r.getValue(o)),size:0},{accessorKey:"is_staff",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.is_staff")}),enableSorting:!1,enableHiding:!0,filterFn:(r,o,c)=>c.includes(r.getValue(o)),size:0},{accessorKey:"id",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.id")}),cell:({row:r})=>e.jsx(G,{variant:"outline",children:r.original.id}),enableSorting:!0,enableHiding:!1},{accessorKey:"email",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.email")}),cell:({row:r})=>{const o=r.original.t||0,c=Date.now()/1e3-o<120,u=Math.floor(Date.now()/1e3-o);let i=c?n("columns.online_status.online"):o===0?n("columns.online_status.never"):n("columns.online_status.last_online",{time:Se(o)});if(!c&&o!==0){const d=Math.floor(u/60),h=Math.floor(d/60),k=Math.floor(h/24);k>0?i+=` +`+n("columns.online_status.offline_duration.days",{count:k}):h>0?i+=` `+n("columns.online_status.offline_duration.hours",{count:h}):d>0?i+=` `+n("columns.online_status.offline_duration.minutes",{count:d}):i+=` -`+n("columns.online_status.offline_duration.seconds",{count:u})}return e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:y("size-2.5 rounded-full ring-2 ring-offset-2",c?"bg-green-500 ring-green-500/20":"bg-gray-300 ring-gray-300/20","transition-all duration-300")}),e.jsx("span",{className:"font-medium text-foreground/90",children:o.original.email})]})}),e.jsx(de,{side:"bottom",className:"max-w-[280px]",children:e.jsx("p",{className:"whitespace-pre-line text-sm",children:i})})]})})},enableSorting:!1,enableHiding:!1},{accessorKey:"online_count",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.online_count")}),cell:({row:o})=>{const r=o.original.device_limit,c=o.original.online_count||0;return e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{children:e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsxs(B,{variant:"outline",className:y("min-w-[4rem] justify-center",r!==null&&c>=r?"border-destructive/50 bg-destructive/10 text-destructive":"border-primary/40 bg-primary/5 text-primary/90"),children:[c," / ",r===null?"∞":r]})})}),e.jsx(de,{side:"bottom",children:e.jsx("p",{className:"text-sm",children:r===null?n("columns.device_limit.unlimited"):n("columns.device_limit.limited",{count:r})})})]})})},enableSorting:!0,enableHiding:!1},{accessorKey:"banned",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.status")}),cell:({row:o})=>{const r=o.original.banned;return e.jsx("div",{className:"flex justify-center",children:e.jsx(B,{className:y("min-w-20 justify-center transition-colors",r?"bg-destructive/15 text-destructive hover:bg-destructive/25":"bg-success/15 text-success hover:bg-success/25"),children:n(r?"columns.status_text.banned":"columns.status_text.normal")})})},enableSorting:!0,filterFn:(o,r,c)=>c.includes(o.getValue(r))},{accessorKey:"plan_id",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.subscription")}),cell:({row:o})=>e.jsx("div",{className:"min-w-[10em] break-all",children:o.original?.plan?.name||"-"}),enableSorting:!1,enableHiding:!1},{accessorKey:"group_id",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.group")}),cell:({row:o})=>e.jsx("div",{className:"flex flex-wrap gap-1",children:e.jsx(B,{variant:"outline",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5 whitespace-nowrap"),children:o.original?.group?.name||"-"})}),enableSorting:!1},{accessorKey:"total_used",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.used_traffic")}),cell:({row:o})=>{const r=Oe(o.original?.total_used),c=Oe(o.original?.transfer_enable),u=o.original?.total_used/o.original?.transfer_enable*100||0;return e.jsx(be,{delayDuration:100,children:e.jsxs(xe,{children:[e.jsx(he,{className:"w-full",children:e.jsxs("div",{className:"w-full space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:r}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[u.toFixed(1),"%"]})]}),e.jsx("div",{className:"h-1.5 w-full rounded-full bg-secondary",children:e.jsx("div",{className:y("h-full rounded-full transition-all",u>90?"bg-destructive":"bg-primary"),style:{width:`${Math.min(u,100)}%`}})})]})}),e.jsx(de,{side:"bottom",children:e.jsxs("p",{className:"text-sm",children:[n("columns.total_traffic"),": ",c]})})]})})}},{accessorKey:"transfer_enable",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.total_traffic")}),cell:({row:o})=>e.jsx("div",{className:"font-medium text-muted-foreground",children:Oe(o.original?.transfer_enable)})},{accessorKey:"expired_at",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.expire_time")}),cell:({row:o})=>{const r=o.original.expired_at,c=Date.now()/1e3,u=r!=null&&re.jsx(z,{column:o,title:n("columns.balance")}),cell:({row:o})=>{const r=pt(o.original?.balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:r})]})}},{accessorKey:"commission_balance",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.commission")}),cell:({row:o})=>{const r=pt(o.original?.commission_balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:r})]})}},{accessorKey:"created_at",header:({column:o})=>e.jsx(z,{column:o,title:n("columns.register_time")}),cell:({row:o})=>e.jsx("div",{className:"truncate",children:Ce(o.original?.created_at)}),size:1e3},{id:"actions",header:({column:o})=>e.jsx(z,{column:o,className:"justify-end",title:n("columns.actions")}),cell:({row:o,table:r})=>e.jsxs(Es,{modal:!0,children:[e.jsx(Rs,{asChild:!0,children:e.jsx("div",{className:"text-center",children:e.jsx(G,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":n("columns.actions"),children:e.jsx(ua,{className:"size-4"})})})}),e.jsxs(Cs,{align:"end",className:"min-w-[40px]",children:[e.jsx(Ne,{onSelect:c=>{c.preventDefault(),t(o.original),l(!0)},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(nh,{className:"mr-2"}),n("columns.actions_menu.edit")]})}),e.jsx(Ne,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(Or,{defaultValues:{email:o.original.email},trigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(lh,{className:"mr-2 "}),n("columns.actions_menu.assign_order")]})})}),e.jsx(Ne,{onSelect:()=>{ha(o.original.subscribe_url).then(()=>{A.success(n("common:copy.success"))})},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(rh,{className:"mr-2"}),n("columns.actions_menu.copy_url")]})}),e.jsx(Ne,{onSelect:()=>{ws.resetSecret(o.original.id).then(({data:c})=>{c&&A.success("重置成功")})},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(ih,{className:"mr-2 "}),n("columns.actions_menu.reset_secret")]})}),e.jsx(Ne,{onSelect:()=>{},className:"p-0",children:e.jsxs(st,{className:"flex items-center px-2 py-1.5",to:`/finance/order?user_id=eq:${o.original?.id}`,children:[e.jsx(oh,{className:"mr-2"}),n("columns.actions_menu.orders")]})}),e.jsx(Ne,{onSelect:()=>{r.setColumnFilters([{id:"invite_user_id",value:"eq:"+o.original?.id}])},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(ch,{className:"mr-2 "}),n("columns.actions_menu.invites")]})}),e.jsx(Ne,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(Gr,{user_id:o.original?.id,dialogTrigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(dh,{className:"mr-2 "}),n("columns.actions_menu.traffic_records")]})})}),e.jsx(Ne,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(ah,{title:n("columns.actions_menu.delete_confirm_title"),description:n("columns.actions_menu.delete_confirm_description",{email:o.original.email}),cancelText:n("common:cancel"),confirmText:n("common:confirm"),variant:"destructive",onConfirm:async()=>{try{const{data:c}=await ws.destroy(o.original.id);c&&(A.success(n("common:delete.success")),s())}catch{A.error(n("common:delete.failed"))}},children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5 text-destructive hover:text-destructive",children:[e.jsx(mh,{className:"mr-2"}),n("columns.actions_menu.delete")]})})})]})]})}]},Wr=m.createContext(void 0),In=()=>{const s=m.useContext(Wr);if(!s)throw new Error("useUserEdit must be used within an UserEditProvider");return s},Yr=({children:s,refreshData:a})=>{const[t,l]=m.useState(!1),[n,o]=m.useState(null),r={isOpen:t,setIsOpen:l,editingUser:n,setEditingUser:o,refreshData:a};return e.jsx(Wr.Provider,{value:r,children:s})},xh=x.object({id:x.number(),email:x.string().email(),invite_user_email:x.string().email().nullable().optional(),password:x.string().optional().nullable(),balance:x.coerce.number(),commission_balance:x.coerce.number(),u:x.number(),d:x.number(),transfer_enable:x.number(),expired_at:x.number().nullable(),plan_id:x.number().nullable(),banned:x.number(),commission_type:x.number(),commission_rate:x.number().nullable(),discount:x.number().nullable(),speed_limit:x.number().nullable(),device_limit:x.number().nullable(),is_admin:x.number(),is_staff:x.number(),remarks:x.string().nullable()});function Jr(){const{t:s}=V("user"),{isOpen:a,setIsOpen:t,editingUser:l,refreshData:n}=In(),[o,r]=m.useState(!1),[c,u]=m.useState([]),i=ye({resolver:_e(xh),defaultValues:{id:0,email:"",invite_user_email:null,password:null,balance:0,commission_balance:0,u:0,d:0,transfer_enable:0,expired_at:null,plan_id:null,banned:0,commission_type:0,commission_rate:null,discount:null,speed_limit:null,device_limit:null,is_admin:0,is_staff:0,remarks:null}});return m.useEffect(()=>{a&&es.getList().then(({data:d})=>{u(d)})},[a]),m.useEffect(()=>{if(l){const d=l.invite_user?.email,{invite_user:h,..._}=l;i.reset({..._,invite_user_email:d||null,password:null})}},[l,i]),e.jsx(qr,{open:a,onOpenChange:t,children:e.jsxs(Dn,{className:"max-w-[90%] space-y-4",children:[e.jsxs(Pn,{children:[e.jsx(En,{children:s("edit.title")}),e.jsx(Rn,{})]}),e.jsxs(we,{...i,children:[e.jsx(v,{control:i.control,name:"email",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.email")}),e.jsx(b,{children:e.jsx(D,{...d,placeholder:s("edit.form.email_placeholder")})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"invite_user_email",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.inviter_email")}),e.jsx(b,{children:e.jsx(D,{value:d.value||"",onChange:h=>d.onChange(h.target.value?h.target.value:null),placeholder:s("edit.form.inviter_email_placeholder")})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"password",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.password")}),e.jsx(b,{children:e.jsx(D,{type:"password",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.password_placeholder")})}),e.jsx(P,{...d})]})}),e.jsxs("div",{className:"grid gap-2 md:grid-cols-2",children:[e.jsx(v,{control:i.control,name:"balance",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.balance")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"commission_balance",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_balance")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.commission_balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"u",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.upload")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.upload_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"d",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.download")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.download_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...d})]})})]}),e.jsx(v,{control:i.control,name:"transfer_enable",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.total_traffic")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.total_traffic_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"expired_at",render:({field:d})=>e.jsxs(f,{className:"flex flex-col",children:[e.jsx(j,{children:s("edit.form.expire_time")}),e.jsxs(Ss,{open:o,onOpenChange:r,children:[e.jsx(ks,{asChild:!0,children:e.jsx(b,{children:e.jsxs(E,{type:"button",variant:"outline",className:y("w-full pl-3 text-left font-normal",!d.value&&"text-muted-foreground"),onClick:()=>r(!0),children:[d.value?Ce(d.value):e.jsx("span",{children:s("edit.form.expire_time_placeholder")}),e.jsx(Kt,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsx(bs,{className:"w-auto p-0",align:"start",side:"top",sideOffset:4,onInteractOutside:h=>{h.preventDefault()},onEscapeKeyDown:h=>{h.preventDefault()},children:e.jsxs("div",{className:"flex flex-col space-y-3 p-3",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(E,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{d.onChange(null),r(!1)},children:s("edit.form.expire_time_permanent")}),e.jsx(E,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+1),h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3)),r(!1)},children:s("edit.form.expire_time_1month")}),e.jsx(E,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+3),h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3)),r(!1)},children:s("edit.form.expire_time_3months")})]}),e.jsx("div",{className:"rounded-md border",children:e.jsx(rt,{mode:"single",selected:d.value?new Date(d.value*1e3):void 0,onSelect:h=>{if(h){const _=new Date(d.value?d.value*1e3:Date.now());h.setHours(_.getHours(),_.getMinutes(),_.getSeconds()),d.onChange(Math.floor(h.getTime()/1e3))}},disabled:h=>h{const h=new Date;h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3))},className:"h-6 px-2 text-xs",children:s("edit.form.expire_time_today")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(D,{type:"datetime-local",step:"1",value:Ce(d.value,"YYYY-MM-DDTHH:mm:ss"),onChange:h=>{const _=new Date(h.target.value);isNaN(_.getTime())||d.onChange(Math.floor(_.getTime()/1e3))},className:"flex-1"}),e.jsx(E,{type:"button",variant:"outline",onClick:()=>r(!1),children:s("edit.form.expire_time_confirm")})]})]})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"plan_id",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.subscription")}),e.jsx(b,{children:e.jsxs(X,{value:d.value!==null?String(d.value):"null",onValueChange:h=>d.onChange(h==="null"?null:parseInt(h)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(J,{children:[e.jsx($,{value:"null",children:s("edit.form.subscription_none")}),c.map(h=>e.jsx($,{value:String(h.id),children:h.name},h.id))]})]})})]})}),e.jsx(v,{control:i.control,name:"banned",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.account_status")}),e.jsx(b,{children:e.jsxs(X,{value:d.value.toString(),onValueChange:h=>d.onChange(parseInt(h)),children:[e.jsx(Y,{children:e.jsx(Z,{})}),e.jsxs(J,{children:[e.jsx($,{value:"1",children:s("columns.status_text.banned")}),e.jsx($,{value:"0",children:s("columns.status_text.normal")})]})]})})]})}),e.jsx(v,{control:i.control,name:"commission_type",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_type")}),e.jsx(b,{children:e.jsxs(X,{value:d.value.toString(),onValueChange:h=>d.onChange(parseInt(h)),children:[e.jsx(Y,{children:e.jsx(Z,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(J,{children:[e.jsx($,{value:"0",children:s("edit.form.commission_type_system")}),e.jsx($,{value:"1",children:s("edit.form.commission_type_cycle")}),e.jsx($,{value:"2",children:s("edit.form.commission_type_onetime")})]})]})})]})}),e.jsx(v,{control:i.control,name:"commission_rate",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_rate")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.commission_rate_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})})]})}),e.jsx(v,{control:i.control,name:"discount",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.discount")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.discount_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"speed_limit",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.speed_limit")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.speed_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"Mbps"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"device_limit",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.device_limit")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.device_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"台"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"is_admin",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.is_admin")}),e.jsx("div",{className:"py-2",children:e.jsx(b,{children:e.jsx(ee,{checked:d.value===1,onCheckedChange:h=>d.onChange(h?1:0)})})})]})}),e.jsx(v,{control:i.control,name:"is_staff",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.is_staff")}),e.jsx("div",{className:"py-2",children:e.jsx(b,{children:e.jsx(ee,{checked:d.value===1,onCheckedChange:h=>d.onChange(h?1:0)})})})]})}),e.jsx(v,{control:i.control,name:"remarks",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.remarks")}),e.jsx(b,{children:e.jsx(Ts,{className:"h-24",value:d.value||"",onChange:h=>d.onChange(h.currentTarget.value??null),placeholder:s("edit.form.remarks_placeholder")})}),e.jsx(P,{})]})}),e.jsxs(Ur,{children:[e.jsx(E,{variant:"outline",onClick:()=>t(!1),children:s("edit.form.cancel")}),e.jsx(E,{type:"submit",onClick:()=>{i.handleSubmit(d=>{ws.update(d).then(({data:h})=>{h&&(A.success(s("edit.form.success")),t(!1),n())})})()},children:s("edit.form.submit")})]})]})]})})}function hh(){const[s]=tr(),[a,t]=m.useState({}),[l,n]=m.useState({is_admin:!1,is_staff:!1}),[o,r]=m.useState([]),[c,u]=m.useState([]),[i,d]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const p=s.get("email");p&&r(w=>w.some(H=>H.id==="email")?w:[...w,{id:"email",value:p}])},[s]);const{refetch:h,data:_,isLoading:T}=ne({queryKey:["userList",i,o,c],queryFn:()=>ws.getList({pageSize:i.pageSize,current:i.pageIndex+1,filter:o,sort:c})}),[S,C]=m.useState([]),[N,g]=m.useState([]);m.useEffect(()=>{at.getList().then(({data:p})=>{C(p)}),es.getList().then(({data:p})=>{g(p)})},[]);const k=S.map(p=>({label:p.name,value:p.id})),R=N.map(p=>({label:p.name,value:p.id}));return e.jsxs(Yr,{refreshData:h,children:[e.jsx(ph,{data:_?.data??[],rowCount:_?.total??0,sorting:c,setSorting:u,columnVisibility:l,setColumnVisibility:n,rowSelection:a,setRowSelection:t,columnFilters:o,setColumnFilters:r,pagination:i,setPagination:d,refetch:h,serverGroupList:S,permissionGroups:k,subscriptionPlans:R}),e.jsx(Jr,{})]})}function ph({data:s,rowCount:a,sorting:t,setSorting:l,columnVisibility:n,setColumnVisibility:o,rowSelection:r,setRowSelection:c,columnFilters:u,setColumnFilters:i,pagination:d,setPagination:h,refetch:_,serverGroupList:T,permissionGroups:S,subscriptionPlans:C}){const{setIsOpen:N,setEditingUser:g}=In(),k=Je({data:s,columns:uh(_,T,g,N),state:{sorting:t,columnVisibility:n,rowSelection:r,columnFilters:u,pagination:d},rowCount:a,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:c,onSortingChange:l,onColumnFiltersChange:i,onColumnVisibilityChange:o,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),onPaginationChange:h,getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnVisibility:{commission_balance:!1,created_at:!1,is_admin:!1,is_staff:!1,permission_group:!1,plan_id:!1},columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(eh,{table:k,refetch:_,serverGroupList:T,permissionGroups:S,subscriptionPlans:C}),e.jsx(is,{table:k})]})}function gh(){const{t:s}=V("user");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx("div",{className:"w-full",children:e.jsx(hh,{})})})]})]})}const fh=Object.freeze(Object.defineProperty({__proto__:null,default:gh},Symbol.toStringTag,{value:"Module"}));function jh({column:s,title:a,options:t}){const l=new Set(s?.getFilterValue());return e.jsxs(Ss,{children:[e.jsx(ks,{asChild:!0,children:e.jsxs(G,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Rc,{className:"mr-2 h-4 w-4"}),a,l?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:l.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:l.size>2?e.jsxs(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[l.size," selected"]}):t.filter(n=>l.has(n.value)).map(n=>e.jsx(B,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:n.label},`selected-${n.value}`))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(nt,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(lt,{children:"No results found."}),e.jsx(as,{children:t.map(n=>{const o=l.has(n.value);return e.jsxs($e,{onSelect:()=>{o?l.delete(n.value):l.add(n.value);const r=Array.from(l);s?.setFilterValue(r.length?r:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",o?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(Ic,{className:y("h-4 w-4")})}),n.icon&&e.jsx(n.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:n.label})]},`option-${n.value}`)})}),l.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(St,{}),e.jsx(as,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const vh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})});function bh({table:s}){const{t:a}=V("ticket");return e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-4",children:[e.jsx(Bt,{defaultValue:s.getColumn("status")?.getFilterValue(),onValueChange:t=>s.getColumn("status")?.setFilterValue(t),children:e.jsxs(Ct,{className:"grid w-full grid-cols-2",children:[e.jsx(Ee,{value:"0",children:a("status.pending")}),e.jsx(Ee,{value:"1",children:a("status.closed")})]})}),s.getColumn("level")&&e.jsx(jh,{column:s.getColumn("level"),title:a("columns.level"),options:[{label:a("level.low"),value:qe.LOW,icon:vh,color:"gray"},{label:a("level.medium"),value:qe.MIDDLE,icon:Kr,color:"yellow"},{label:a("level.high"),value:qe.HIGH,icon:Br,color:"red"}]})]})})}function yh(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[e.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const Nh=Zs("flex gap-2 max-w-[60%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),Qr=m.forwardRef(({className:s,variant:a,layout:t,children:l,...n},o)=>e.jsx("div",{className:y(Nh({variant:a,layout:t,className:s}),"relative group"),ref:o,...n,children:m.Children.map(l,r=>m.isValidElement(r)&&typeof r.type!="string"?m.cloneElement(r,{variant:a,layout:t}):r)}));Qr.displayName="ChatBubble";const _h=Zs("p-4",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),Xr=m.forwardRef(({className:s,variant:a,layout:t,isLoading:l=!1,children:n,...o},r)=>e.jsx("div",{className:y(_h({variant:a,layout:t,className:s}),"break-words max-w-full whitespace-pre-wrap"),ref:r,...o,children:l?e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(yh,{})}):n}));Xr.displayName="ChatBubbleMessage";const wh=m.forwardRef(({variant:s,className:a,children:t,...l},n)=>e.jsx("div",{ref:n,className:y("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",s==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",a),...l,children:t}));wh.displayName="ChatBubbleActionWrapper";const Zr=m.forwardRef(({className:s,...a},t)=>e.jsx(Ts,{autoComplete:"off",ref:t,name:"message",className:y("max-h-12 px-4 py-3 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center h-16 resize-none",s),...a}));Zr.displayName="ChatInput";const ei=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),si=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.098 12.634L13 11.423V7a1 1 0 0 0-2 0v5a1 1 0 0 0 .5.866l2.598 1.5a1 1 0 1 0 1-1.732M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8"})}),sl=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m11.29 12l3.54-3.54a1 1 0 0 0 0-1.41a1 1 0 0 0-1.42 0l-4.24 4.24a1 1 0 0 0 0 1.42L13.41 17a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29a1 1 0 0 0 0-1.41Z"})}),Ch=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39M11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7"})}),Sh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M3.71 16.29a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21a1 1 0 0 0-.21.33a1 1 0 0 0 .21 1.09a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1 1 0 0 0 .21-1.09a1 1 0 0 0-.21-.33M7 8h14a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2m-3.29 3.29a1 1 0 0 0-1.09-.21a1.2 1.2 0 0 0-.33.21a1 1 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1 1 0 0 0-.21-.33M21 11H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2M3.71 6.29a1 1 0 0 0-.33-.21a1 1 0 0 0-1.09.21a1.2 1.2 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a1 1 0 0 0 1.09-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1.2 1.2 0 0 0-.21-.33M21 16H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})}),kh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9 12H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-1-2h4a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2m1 6H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m12-4h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Zm-6.44-2.83a.8.8 0 0 0-.18-.09a.6.6 0 0 0-.19-.06a1 1 0 0 0-.9.27A1.05 1.05 0 0 0 12 17a1 1 0 0 0 .07.38a1.2 1.2 0 0 0 .22.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21A1 1 0 0 0 14 17a1.05 1.05 0 0 0-.29-.71a2 2 0 0 0-.15-.12m.14-3.88a1 1 0 0 0-1.62.33A1 1 0 0 0 13 14a1 1 0 0 0 1-1a1 1 0 0 0-.08-.38a.9.9 0 0 0-.22-.33"})});function Th(){return e.jsxs("div",{className:"flex h-full flex-col space-y-4 p-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ce,{className:"h-8 w-3/4"}),e.jsx(ce,{className:"h-4 w-1/2"})]}),e.jsx("div",{className:"flex-1 space-y-4",children:[1,2,3].map(s=>e.jsx(ce,{className:"h-20 w-2/3"},s))})]})}function Dh(){return e.jsx("div",{className:"space-y-4 p-4",children:[1,2,3,4].map(s=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(ce,{className:"h-5 w-4/5"}),e.jsx(ce,{className:"h-4 w-2/3"}),e.jsx(ce,{className:"h-3 w-1/2"})]},s))})}function Ph({ticket:s,isActive:a,onClick:t}){const{t:l}=V("ticket"),n=o=>{switch(o){case qe.HIGH:return"bg-red-50 text-red-600 border-red-200";case qe.MIDDLE:return"bg-yellow-50 text-yellow-600 border-yellow-200";case qe.LOW:return"bg-green-50 text-green-600 border-green-200";default:return"bg-gray-50 text-gray-600 border-gray-200"}};return e.jsxs("div",{className:y("flex cursor-pointer flex-col border-b p-4 hover:bg-accent/50",a&&"bg-accent"),onClick:t,children:[e.jsxs("div",{className:"flex max-w-[280px] items-center justify-between gap-2",children:[e.jsx("h4",{className:"flex-1 truncate font-medium",children:s.subject}),e.jsx(B,{variant:s.status===Hs.CLOSED?"secondary":"default",className:"shrink-0",children:s.status===Hs.CLOSED?l("status.closed"):l("status.processing")})]}),e.jsx("div",{className:"mt-1 max-w-[280px] truncate text-sm text-muted-foreground",children:s.user?.email}),e.jsxs("div",{className:"mt-2 flex items-center justify-between text-xs",children:[e.jsx("time",{className:"text-muted-foreground",children:Ce(s.updated_at)}),e.jsx("div",{className:y("rounded-full border px-2 py-0.5 text-xs font-medium",n(s.level)),children:l(`level.${s.level===qe.LOW?"low":s.level===qe.MIDDLE?"medium":"high"}`)})]})]})}function Eh({ticketId:s,dialogTrigger:a}){const{t}=V("ticket"),l=Is(),n=m.useRef(null),o=m.useRef(null),[r,c]=m.useState(!1),[u,i]=m.useState(""),[d,h]=m.useState(!1),[_,T]=m.useState(s),[S,C]=m.useState(""),[N,g]=m.useState(!1),{setIsOpen:k,setEditingUser:R}=In(),{data:p,isLoading:w,refetch:I}=ne({queryKey:["tickets",r],queryFn:()=>r?ft.getList({filter:[{id:"status",value:[Hs.OPENING]}]}):Promise.resolve(null),enabled:r}),{data:H,refetch:O,isLoading:K}=ne({queryKey:["ticket",_,r],queryFn:()=>r?ft.getInfo(_):Promise.resolve(null),refetchInterval:r?5e3:!1,retry:3}),oe=H?.data,te=(p?.data||[]).filter(le=>le.subject.toLowerCase().includes(S.toLowerCase())||le.user?.email.toLowerCase().includes(S.toLowerCase())),q=(le="smooth")=>{if(n.current){const{scrollHeight:ys,clientHeight:Fs}=n.current;n.current.scrollTo({top:ys-Fs,behavior:le})}};m.useEffect(()=>{if(!r)return;const le=requestAnimationFrame(()=>{q("instant"),setTimeout(()=>q(),1e3)});return()=>{cancelAnimationFrame(le)}},[r,oe?.messages]);const L=async()=>{const le=u.trim();!le||d||(h(!0),ft.reply({id:_,message:le}).then(()=>{i(""),O(),q(),setTimeout(()=>{o.current?.focus()},0)}).finally(()=>{h(!1)}))},U=async()=>{ft.close(_).then(()=>{A.success(t("actions.close_success")),O(),I()})},ms=()=>{oe?.user&&l("/finance/order?user_id="+oe.user.id)},De=oe?.status===Hs.CLOSED;return e.jsxs(pe,{open:r,onOpenChange:c,children:[e.jsx(rs,{asChild:!0,children:a??e.jsx(G,{variant:"outline",children:t("actions.view_ticket")})}),e.jsxs(ue,{className:"flex h-[90vh] max-w-6xl flex-col gap-0 p-0",children:[e.jsx(ge,{}),e.jsxs("div",{className:"flex h-full",children:[e.jsx(G,{variant:"ghost",size:"icon",className:"absolute left-2 top-2 z-50 md:hidden",onClick:()=>g(!N),children:e.jsx(sl,{className:y("h-4 w-4 transition-transform",!N&&"rotate-180")})}),e.jsxs("div",{className:y("absolute inset-y-0 left-0 z-40 flex flex-col border-r bg-background transition-transform duration-200 ease-in-out md:relative",N?"-translate-x-full":"translate-x-0","w-80 md:w-80 md:translate-x-0"),children:[e.jsxs("div",{className:"space-y-4 border-b p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"font-semibold",children:t("list.title")}),e.jsx(G,{variant:"ghost",size:"icon",className:"hidden h-8 w-8 md:flex",onClick:()=>g(!N),children:e.jsx(sl,{className:y("h-4 w-4 transition-transform",!N&&"rotate-180")})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Ch,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),e.jsx(D,{placeholder:t("list.search_placeholder"),value:S,onChange:le=>C(le.target.value),className:"pl-8"})]})]}),e.jsx(Nt,{className:"flex-1",children:e.jsx("div",{className:"w-full",children:w?e.jsx(Dh,{}):te.length===0?e.jsx("div",{className:"flex h-full items-center justify-center p-4 text-muted-foreground",children:t(S?"list.no_search_results":"list.no_tickets")}):te.map(le=>e.jsx(Ph,{ticket:le,isActive:le.id===_,onClick:()=>{T(le.id),window.innerWidth<768&&g(!0)}},le.id))})})]}),e.jsxs("div",{className:"relative flex flex-1 flex-col",children:[!N&&e.jsx("div",{className:"absolute inset-0 z-30 bg-black/20 md:hidden",onClick:()=>g(!0)}),K?e.jsx(Th,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col space-y-4 border-b p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("h2",{className:"text-2xl font-semibold",children:oe?.subject}),e.jsx(B,{variant:De?"secondary":"default",children:t(De?"status.closed":"status.processing")}),!De&&e.jsx(ns,{title:t("actions.close_confirm_title"),description:t("actions.close_confirm_description"),confirmText:t("actions.close_confirm_button"),variant:"destructive",onConfirm:U,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"gap-1 text-muted-foreground hover:text-destructive",children:[e.jsx(ei,{className:"h-4 w-4"}),t("actions.close_ticket")]})})]}),e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(Ut,{className:"h-4 w-4"}),e.jsx("span",{children:oe?.user?.email})]}),e.jsx(ke,{orientation:"vertical",className:"h-4"}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(si,{className:"h-4 w-4"}),e.jsxs("span",{children:[t("detail.created_at")," ",Ce(oe?.created_at)]})]}),e.jsx(ke,{orientation:"vertical",className:"h-4"}),e.jsx(B,{variant:"outline",children:oe?.level!=null&&t(`level.${oe.level===qe.LOW?"low":oe.level===qe.MIDDLE?"medium":"high"}`)})]})]}),oe?.user&&e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.user_info"),onClick:()=>{R(oe.user),k(!0)},children:e.jsx(Ut,{className:"h-4 w-4"})}),e.jsx(Gr,{user_id:oe.user.id,dialogTrigger:e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.traffic_records"),children:e.jsx(Sh,{className:"h-4 w-4"})})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.order_records"),onClick:ms,children:e.jsx(kh,{className:"h-4 w-4"})})]})]})}),e.jsx("div",{className:"flex-1 overflow-hidden",children:e.jsx("div",{ref:n,className:"h-full space-y-4 overflow-y-auto p-6",children:oe?.messages?.length===0?e.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:t("detail.no_messages")}):oe?.messages?.map(le=>e.jsx(Qr,{variant:le.is_from_admin?"sent":"received",className:le.is_from_admin?"ml-auto":"mr-auto",children:e.jsx(Xr,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"whitespace-pre-wrap break-words",children:le.message}),e.jsx("div",{className:"text-right",children:e.jsx("time",{className:"text-[10px] text-muted-foreground",children:Ce(le.created_at)})})]})})},le.id))})}),e.jsx("div",{className:"border-t p-4",children:e.jsxs("div",{className:"relative flex items-center space-x-2",children:[e.jsx(Zr,{ref:o,disabled:De||d,placeholder:t(De?"detail.input.closed_placeholder":"detail.input.reply_placeholder"),className:"flex-1 resize-none rounded-lg border bg-background p-3 focus-visible:ring-1",value:u,onChange:le=>i(le.target.value),onKeyDown:le=>{le.key==="Enter"&&!le.shiftKey&&(le.preventDefault(),L())}}),e.jsx(G,{disabled:De||d||!u.trim(),onClick:L,children:t(d?"detail.input.sending":"detail.input.send")})]})})]})]})]})]})]})}const Rh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3m-.41 2l-5.88 5.88a1 1 0 0 1-1.42 0L5.41 6ZM20 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7.41l5.88 5.88a3 3 0 0 0 4.24 0L20 7.41Z"})}),Ih=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.92 11.6C19.9 6.91 16.1 4 12 4s-7.9 2.91-9.92 7.6a1 1 0 0 0 0 .8C4.1 17.09 7.9 20 12 20s7.9-2.91 9.92-7.6a1 1 0 0 0 0-.8M12 18c-3.17 0-6.17-2.29-7.9-6C5.83 8.29 8.83 6 12 6s6.17 2.29 7.9 6c-1.73 3.71-4.73 6-7.9 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4m0 6a2 2 0 1 1 2-2a2 2 0 0 1-2 2"})}),Lh=s=>{const{t:a}=V("ticket");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx(B,{variant:"outline",children:t.getValue("id")}),enableSorting:!1,enableHiding:!1},{accessorKey:"subject",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.subject")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Rh,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"max-w-[500px] truncate font-medium",children:t.getValue("subject")})]}),enableSorting:!1,enableHiding:!1,size:4e3},{accessorKey:"level",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.level")}),cell:({row:t})=>{const l=t.getValue("level"),n=l===qe.LOW?"default":l===qe.MIDDLE?"secondary":"destructive";return e.jsx(B,{variant:n,className:"whitespace-nowrap",children:a(`level.${l===qe.LOW?"low":l===qe.MIDDLE?"medium":"high"}`)})},filterFn:(t,l,n)=>n.includes(t.getValue(l))},{accessorKey:"status",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.status")}),cell:({row:t})=>{const l=t.getValue("status"),n=t.original.reply_status,o=l===Hs.CLOSED?a("status.closed"):a(n===0?"status.replied":"status.pending"),r=l===Hs.CLOSED?"default":n===0?"secondary":"destructive";return e.jsx(B,{variant:r,className:"whitespace-nowrap",children:o})}},{accessorKey:"updated_at",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.updated_at")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[e.jsx(si,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm",children:Ce(t.getValue("updated_at"))})]}),enableSorting:!0},{accessorKey:"created_at",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.created_at")}),cell:({row:t})=>e.jsx("div",{className:"text-sm text-muted-foreground",children:Ce(t.getValue("created_at"))}),enableSorting:!0,meta:{isFlexGrow:!0}},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const l=t.original.status!==Hs.CLOSED;return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Eh,{ticketId:t.original.id,dialogTrigger:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.view_details"),children:e.jsx(Ih,{className:"h-4 w-4"})})}),l&&e.jsx(ns,{title:a("actions.close_confirm_title"),description:a("actions.close_confirm_description"),confirmText:a("actions.close_confirm_button"),variant:"destructive",onConfirm:async()=>{ft.close(t.original.id).then(()=>{A.success(a("actions.close_success")),s()})},children:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.close_ticket"),children:e.jsx(ei,{className:"h-4 w-4"})})})]})}}]};function Vh(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,o]=m.useState([{id:"status",value:"0"}]),[r,c]=m.useState([]),[u,i]=m.useState({pageIndex:0,pageSize:20}),{refetch:d,data:h}=ne({queryKey:["orderList",u,n,r],queryFn:()=>ft.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:n,sort:r})}),_=Je({data:h?.data??[],columns:Lh(d),state:{sorting:r,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:u},rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:o,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:ls(),onPaginationChange:i,getSortedRowModel:vs(),getFacetedRowModel:Ls(),getFacetedUniqueValues:Vs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(bh,{table:_,refetch:d}),e.jsx(is,{table:_,showPagination:!0})]})}function Fh(){const{t:s}=V("ticket");return e.jsxs(Yr,{refreshData:()=>{},children:[e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Vh,{})})]})]}),e.jsx(Jr,{})]})}const Mh=Object.freeze(Object.defineProperty({__proto__:null,default:Fh},Symbol.toStringTag,{value:"Module"}));export{qh as a,$h as c,Ah as g,Hh as r}; +`+n("columns.online_status.offline_duration.seconds",{count:u})}return e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:y("size-2.5 rounded-full ring-2 ring-offset-2",c?"bg-green-500 ring-green-500/20":"bg-gray-300 ring-gray-300/20","transition-all duration-300")}),e.jsx("span",{className:"font-medium text-foreground/90",children:r.original.email})]})}),e.jsx(xe,{side:"bottom",className:"max-w-[280px]",children:e.jsx("p",{className:"whitespace-pre-line text-sm",children:i})})]})})},enableSorting:!1,enableHiding:!1},{accessorKey:"online_count",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.online_count")}),cell:({row:r})=>{const o=r.original.device_limit,c=r.original.online_count||0;return e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{children:e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsxs(G,{variant:"outline",className:y("min-w-[4rem] justify-center",o!==null&&c>=o?"border-destructive/50 bg-destructive/10 text-destructive":"border-primary/40 bg-primary/5 text-primary/90"),children:[c," / ",o===null?"∞":o]})})}),e.jsx(xe,{side:"bottom",children:e.jsx("p",{className:"text-sm",children:o===null?n("columns.device_limit.unlimited"):n("columns.device_limit.limited",{count:o})})})]})})},enableSorting:!0,enableHiding:!1},{accessorKey:"banned",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.status")}),cell:({row:r})=>{const o=r.original.banned;return e.jsx("div",{className:"flex justify-center",children:e.jsx(G,{className:y("min-w-20 justify-center transition-colors",o?"bg-destructive/15 text-destructive hover:bg-destructive/25":"bg-success/15 text-success hover:bg-success/25"),children:n(o?"columns.status_text.banned":"columns.status_text.normal")})})},enableSorting:!0,filterFn:(r,o,c)=>c.includes(r.getValue(o))},{accessorKey:"plan_id",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.subscription")}),cell:({row:r})=>e.jsx("div",{className:"min-w-[10em] break-all",children:r.original?.plan?.name||"-"}),enableSorting:!1,enableHiding:!1},{accessorKey:"group_id",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.group")}),cell:({row:r})=>e.jsx("div",{className:"flex flex-wrap gap-1",children:e.jsx(G,{variant:"outline",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5 whitespace-nowrap"),children:r.original?.group?.name||"-"})}),enableSorting:!1},{accessorKey:"total_used",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.used_traffic")}),cell:({row:r})=>{const o=Oe(r.original?.total_used),c=Oe(r.original?.transfer_enable),u=r.original?.total_used/r.original?.transfer_enable*100||0;return e.jsx(ye,{delayDuration:100,children:e.jsxs(ge,{children:[e.jsx(fe,{className:"w-full",children:e.jsxs("div",{className:"w-full space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:o}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[u.toFixed(1),"%"]})]}),e.jsx("div",{className:"h-1.5 w-full rounded-full bg-secondary",children:e.jsx("div",{className:y("h-full rounded-full transition-all",u>90?"bg-destructive":"bg-primary"),style:{width:`${Math.min(u,100)}%`}})})]})}),e.jsx(xe,{side:"bottom",children:e.jsxs("p",{className:"text-sm",children:[n("columns.total_traffic"),": ",c]})})]})})}},{accessorKey:"transfer_enable",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.total_traffic")}),cell:({row:r})=>e.jsx("div",{className:"font-medium text-muted-foreground",children:Oe(r.original?.transfer_enable)})},{accessorKey:"expired_at",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.expire_time")}),cell:({row:r})=>{const o=r.original.expired_at,c=Date.now()/1e3,u=o!=null&&oe.jsx(z,{column:r,title:n("columns.balance")}),cell:({row:r})=>{const o=gt(r.original?.balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:o})]})}},{accessorKey:"commission_balance",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.commission")}),cell:({row:r})=>{const o=gt(r.original?.commission_balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:o})]})}},{accessorKey:"created_at",header:({column:r})=>e.jsx(z,{column:r,title:n("columns.register_time")}),cell:({row:r})=>e.jsx("div",{className:"truncate",children:Se(r.original?.created_at)}),size:1e3},{id:"actions",header:({column:r})=>e.jsx(z,{column:r,className:"justify-end",title:n("columns.actions")}),cell:({row:r,table:o})=>e.jsxs(Es,{modal:!0,children:[e.jsx(Is,{asChild:!0,children:e.jsx("div",{className:"text-center",children:e.jsx(K,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":n("columns.actions"),children:e.jsx(va,{className:"size-4"})})})}),e.jsxs(ws,{align:"end",className:"min-w-[40px]",children:[e.jsx(_e,{onSelect:c=>{c.preventDefault(),t(r.original),l(!0)},className:"p-0",children:e.jsxs(K,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(bh,{className:"mr-2"}),n("columns.actions_menu.edit")]})}),e.jsx(_e,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(Wr,{defaultValues:{email:r.original.email},trigger:e.jsxs(K,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(yh,{className:"mr-2 "}),n("columns.actions_menu.assign_order")]})})}),e.jsx(_e,{onSelect:()=>{ba(r.original.subscribe_url).then(()=>{$.success(n("common:copy.success"))})},className:"p-0",children:e.jsxs(K,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Nh,{className:"mr-2"}),n("columns.actions_menu.copy_url")]})}),e.jsx(_e,{onSelect:()=>{_s.resetSecret(r.original.id).then(({data:c})=>{c&&$.success("重置成功")})},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(_h,{className:"mr-2 "}),n("columns.actions_menu.reset_secret")]})}),e.jsx(_e,{onSelect:()=>{},className:"p-0",children:e.jsxs(nt,{className:"flex items-center px-2 py-1.5",to:`/finance/order?user_id=eq:${r.original?.id}`,children:[e.jsx(wh,{className:"mr-2"}),n("columns.actions_menu.orders")]})}),e.jsx(_e,{onSelect:()=>{o.setColumnFilters([{id:"invite_user_id",value:"eq:"+r.original?.id}])},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ch,{className:"mr-2 "}),n("columns.actions_menu.invites")]})}),e.jsx(_e,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(ai,{user_id:r.original?.id,dialogTrigger:e.jsxs(K,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Sh,{className:"mr-2 "}),n("columns.actions_menu.traffic_records")]})})}),e.jsx(_e,{onSelect:c=>c.preventDefault(),className:"p-0",children:e.jsx(vh,{title:n("columns.actions_menu.delete_confirm_title"),description:n("columns.actions_menu.delete_confirm_description",{email:r.original.email}),cancelText:n("common:cancel"),confirmText:n("common:confirm"),variant:"destructive",onConfirm:async()=>{try{const{data:c}=await _s.destroy(r.original.id);c&&($.success(n("common:delete.success")),s())}catch{$.error(n("common:delete.failed"))}},children:e.jsxs(K,{variant:"ghost",className:"w-full justify-start px-2 py-1.5 text-destructive hover:text-destructive",children:[e.jsx(kh,{className:"mr-2"}),n("columns.actions_menu.delete")]})})})]})]})}]},ni=m.createContext(void 0),Vn=()=>{const s=m.useContext(ni);if(!s)throw new Error("useUserEdit must be used within an UserEditProvider");return s},li=({children:s,refreshData:a})=>{const[t,l]=m.useState(!1),[n,r]=m.useState(null),o={isOpen:t,setIsOpen:l,editingUser:n,setEditingUser:r,refreshData:a};return e.jsx(ni.Provider,{value:o,children:s})},Dh=x.object({id:x.number(),email:x.string().email(),invite_user_email:x.string().email().nullable().optional(),password:x.string().optional().nullable(),balance:x.coerce.number(),commission_balance:x.coerce.number(),u:x.number(),d:x.number(),transfer_enable:x.number(),expired_at:x.number().nullable(),plan_id:x.number().nullable(),banned:x.number(),commission_type:x.number(),commission_rate:x.number().nullable(),discount:x.number().nullable(),speed_limit:x.number().nullable(),device_limit:x.number().nullable(),is_admin:x.number(),is_staff:x.number(),remarks:x.string().nullable()});function ri(){const{t:s}=V("user"),{isOpen:a,setIsOpen:t,editingUser:l,refreshData:n}=Vn(),[r,o]=m.useState(!1),[c,u]=m.useState([]),i=Ne({resolver:we(Dh),defaultValues:{id:0,email:"",invite_user_email:null,password:null,balance:0,commission_balance:0,u:0,d:0,transfer_enable:0,expired_at:null,plan_id:null,banned:0,commission_type:0,commission_rate:null,discount:null,speed_limit:null,device_limit:null,is_admin:0,is_staff:0,remarks:null}});return m.useEffect(()=>{a&&ss.getList().then(({data:d})=>{u(d)})},[a]),m.useEffect(()=>{if(l){const d=l.invite_user?.email,{invite_user:h,...k}=l;i.reset({...k,invite_user_email:d||null,password:null})}},[l,i]),e.jsx(Xr,{open:a,onOpenChange:t,children:e.jsxs(Ln,{className:"max-w-[90%] space-y-4",children:[e.jsxs(En,{children:[e.jsx(In,{children:s("edit.title")}),e.jsx(Rn,{})]}),e.jsxs(Ce,{...i,children:[e.jsx(v,{control:i.control,name:"email",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.email")}),e.jsx(b,{children:e.jsx(D,{...d,placeholder:s("edit.form.email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"invite_user_email",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.inviter_email")}),e.jsx(b,{children:e.jsx(D,{value:d.value||"",onChange:h=>d.onChange(h.target.value?h.target.value:null),placeholder:s("edit.form.inviter_email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"password",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.password")}),e.jsx(b,{children:e.jsx(D,{type:"password",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.password_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...d})]})}),e.jsxs("div",{className:"grid gap-2 md:grid-cols-2",children:[e.jsx(v,{control:i.control,name:"balance",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.balance")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"commission_balance",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_balance")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:d.onChange,placeholder:s("edit.form.commission_balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"u",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.upload")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.upload_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...d})]})}),e.jsx(v,{control:i.control,name:"d",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.download")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.download_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...d})]})})]}),e.jsx(v,{control:i.control,name:"transfer_enable",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.total_traffic")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value/1024/1024/1024||"",onChange:h=>d.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.total_traffic_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"expired_at",render:({field:d})=>e.jsxs(f,{className:"flex flex-col",children:[e.jsx(j,{children:s("edit.form.expire_time")}),e.jsxs(Cs,{open:r,onOpenChange:o,children:[e.jsx(Ss,{asChild:!0,children:e.jsx(b,{children:e.jsxs(L,{type:"button",variant:"outline",className:y("w-full pl-3 text-left font-normal",!d.value&&"text-muted-foreground"),onClick:()=>o(!0),children:[d.value?Se(d.value):e.jsx("span",{children:s("edit.form.expire_time_placeholder")}),e.jsx(Ct,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsx(bs,{className:"w-auto p-0",align:"start",side:"top",sideOffset:4,onInteractOutside:h=>{h.preventDefault()},onEscapeKeyDown:h=>{h.preventDefault()},children:e.jsxs("div",{className:"flex flex-col space-y-3 p-3",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{d.onChange(null),o(!1)},children:s("edit.form.expire_time_permanent")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+1),h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3)),o(!1)},children:s("edit.form.expire_time_1month")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+3),h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3)),o(!1)},children:s("edit.form.expire_time_3months")})]}),e.jsx("div",{className:"rounded-md border",children:e.jsx(ct,{mode:"single",selected:d.value?new Date(d.value*1e3):void 0,onSelect:h=>{if(h){const k=new Date(d.value?d.value*1e3:Date.now());h.setHours(k.getHours(),k.getMinutes(),k.getSeconds()),d.onChange(Math.floor(h.getTime()/1e3))}},disabled:h=>h{const h=new Date;h.setHours(23,59,59,999),d.onChange(Math.floor(h.getTime()/1e3))},className:"h-6 px-2 text-xs",children:s("edit.form.expire_time_today")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(D,{type:"datetime-local",step:"1",value:Se(d.value,"YYYY-MM-DDTHH:mm:ss"),onChange:h=>{const k=new Date(h.target.value);isNaN(k.getTime())||d.onChange(Math.floor(k.getTime()/1e3))},className:"flex-1"}),e.jsx(L,{type:"button",variant:"outline",onClick:()=>o(!1),children:s("edit.form.expire_time_confirm")})]})]})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"plan_id",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.subscription")}),e.jsx(b,{children:e.jsxs(J,{value:d.value!==null?String(d.value):"null",onValueChange:h=>d.onChange(h==="null"?null:parseInt(h)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"null",children:s("edit.form.subscription_none")}),c.map(h=>e.jsx(A,{value:String(h.id),children:h.name},h.id))]})]})})]})}),e.jsx(v,{control:i.control,name:"banned",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.account_status")}),e.jsx(b,{children:e.jsxs(J,{value:d.value.toString(),onValueChange:h=>d.onChange(parseInt(h)),children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx(A,{value:"1",children:s("columns.status_text.banned")}),e.jsx(A,{value:"0",children:s("columns.status_text.normal")})]})]})})]})}),e.jsx(v,{control:i.control,name:"commission_type",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_type")}),e.jsx(b,{children:e.jsxs(J,{value:d.value.toString(),onValueChange:h=>d.onChange(parseInt(h)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("edit.form.commission_type_system")}),e.jsx(A,{value:"1",children:s("edit.form.commission_type_cycle")}),e.jsx(A,{value:"2",children:s("edit.form.commission_type_onetime")})]})]})})]})}),e.jsx(v,{control:i.control,name:"commission_rate",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.commission_rate")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.commission_rate_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})})]})}),e.jsx(v,{control:i.control,name:"discount",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.discount")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.discount_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"speed_limit",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.speed_limit")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.speed_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"Mbps"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"device_limit",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.device_limit")}),e.jsx(b,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:d.value||"",onChange:h=>d.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.device_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"台"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"is_admin",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.is_admin")}),e.jsx("div",{className:"py-2",children:e.jsx(b,{children:e.jsx(Z,{checked:d.value===1,onCheckedChange:h=>d.onChange(h?1:0)})})})]})}),e.jsx(v,{control:i.control,name:"is_staff",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.is_staff")}),e.jsx("div",{className:"py-2",children:e.jsx(b,{children:e.jsx(Z,{checked:d.value===1,onCheckedChange:h=>d.onChange(h?1:0)})})})]})}),e.jsx(v,{control:i.control,name:"remarks",render:({field:d})=>e.jsxs(f,{children:[e.jsx(j,{children:s("edit.form.remarks")}),e.jsx(b,{children:e.jsx(ks,{className:"h-24",value:d.value||"",onChange:h=>d.onChange(h.currentTarget.value??null),placeholder:s("edit.form.remarks_placeholder")})}),e.jsx(P,{})]})}),e.jsxs(ei,{children:[e.jsx(L,{variant:"outline",onClick:()=>t(!1),children:s("edit.form.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{i.handleSubmit(d=>{_s.update(d).then(({data:h})=>{h&&($.success(s("edit.form.success")),t(!1),n())})})()},children:s("edit.form.submit")})]})]})]})})}function Ph(){const[s]=ur(),[a,t]=m.useState({}),[l,n]=m.useState({is_admin:!1,is_staff:!1}),[r,o]=m.useState([]),[c,u]=m.useState([]),[i,d]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const p=s.get("email");p&&o(_=>_.some(H=>H.id==="email")?_:[..._,{id:"email",value:p}])},[s]);const{refetch:h,data:k,isLoading:C}=le({queryKey:["userList",i,r,c],queryFn:()=>_s.getList({pageSize:i.pageSize,current:i.pageIndex+1,filter:r,sort:c})}),[S,w]=m.useState([]),[N,g]=m.useState([]);m.useEffect(()=>{rt.getList().then(({data:p})=>{w(p)}),ss.getList().then(({data:p})=>{g(p)})},[]);const T=S.map(p=>({label:p.name,value:p.id})),E=N.map(p=>({label:p.name,value:p.id}));return e.jsxs(li,{refreshData:h,children:[e.jsx(Lh,{data:k?.data??[],rowCount:k?.total??0,sorting:c,setSorting:u,columnVisibility:l,setColumnVisibility:n,rowSelection:a,setRowSelection:t,columnFilters:r,setColumnFilters:o,pagination:i,setPagination:d,refetch:h,serverGroupList:S,permissionGroups:T,subscriptionPlans:E}),e.jsx(ri,{})]})}function Lh({data:s,rowCount:a,sorting:t,setSorting:l,columnVisibility:n,setColumnVisibility:r,rowSelection:o,setRowSelection:c,columnFilters:u,setColumnFilters:i,pagination:d,setPagination:h,refetch:k,serverGroupList:C,permissionGroups:S,subscriptionPlans:w}){const{setIsOpen:N,setEditingUser:g}=Vn(),T=Je({data:s,columns:Th(k,C,g,N),state:{sorting:t,columnVisibility:n,rowSelection:o,columnFilters:u,pagination:d},rowCount:a,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:c,onSortingChange:l,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),onPaginationChange:h,getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnVisibility:{commission_balance:!1,created_at:!1,is_admin:!1,is_staff:!1,permission_group:!1,plan_id:!1},columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(gh,{table:T,refetch:k,serverGroupList:C,permissionGroups:S,subscriptionPlans:w}),e.jsx(os,{table:T})]})}function Eh(){const{t:s}=V("user");return e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx("div",{className:"w-full",children:e.jsx(Ph,{})})})]})]})}const Ih=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));function Rh({column:s,title:a,options:t}){const l=new Set(s?.getFilterValue());return e.jsxs(Cs,{children:[e.jsx(Ss,{asChild:!0,children:e.jsxs(K,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Yc,{className:"mr-2 h-4 w-4"}),a,l?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(De,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:l.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:l.size>2?e.jsxs(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[l.size," selected"]}):t.filter(n=>l.has(n.value)).map(n=>e.jsx(G,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:n.label},`selected-${n.value}`))})]})]})}),e.jsx(bs,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Us,{children:[e.jsx(it,{placeholder:a}),e.jsxs(Ks,{children:[e.jsx(ot,{children:"No results found."}),e.jsx(ns,{children:t.map(n=>{const r=l.has(n.value);return e.jsxs($e,{onSelect:()=>{r?l.delete(n.value):l.add(n.value);const o=Array.from(l);s?.setFilterValue(o.length?o:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",r?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(Jc,{className:y("h-4 w-4")})}),n.icon&&e.jsx(n.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:n.label})]},`option-${n.value}`)})}),l.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Tt,{}),e.jsx(ns,{children:e.jsx($e,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Vh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})});function Fh({table:s}){const{t:a}=V("ticket");return e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-4",children:[e.jsx(Yt,{defaultValue:s.getColumn("status")?.getFilterValue(),onValueChange:t=>s.getColumn("status")?.setFilterValue(t),children:e.jsxs(kt,{className:"grid w-full grid-cols-2",children:[e.jsx(es,{value:"0",children:a("status.pending")}),e.jsx(es,{value:"1",children:a("status.closed")})]})}),s.getColumn("level")&&e.jsx(Rh,{column:s.getColumn("level"),title:a("columns.level"),options:[{label:a("level.low"),value:qe.LOW,icon:Vh,color:"gray"},{label:a("level.medium"),value:qe.MIDDLE,icon:si,color:"yellow"},{label:a("level.high"),value:qe.HIGH,icon:ti,color:"red"}]})]})})}function Mh(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[e.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const Oh=tt("flex gap-2 max-w-[60%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),ii=m.forwardRef(({className:s,variant:a,layout:t,children:l,...n},r)=>e.jsx("div",{className:y(Oh({variant:a,layout:t,className:s}),"relative group"),ref:r,...n,children:m.Children.map(l,o=>m.isValidElement(o)&&typeof o.type!="string"?m.cloneElement(o,{variant:a,layout:t}):o)}));ii.displayName="ChatBubble";const zh=tt("p-4",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),oi=m.forwardRef(({className:s,variant:a,layout:t,isLoading:l=!1,children:n,...r},o)=>e.jsx("div",{className:y(zh({variant:a,layout:t,className:s}),"break-words max-w-full whitespace-pre-wrap"),ref:o,...r,children:l?e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(Mh,{})}):n}));oi.displayName="ChatBubbleMessage";const $h=m.forwardRef(({variant:s,className:a,children:t,...l},n)=>e.jsx("div",{ref:n,className:y("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",s==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",a),...l,children:t}));$h.displayName="ChatBubbleActionWrapper";const ci=m.forwardRef(({className:s,...a},t)=>e.jsx(ks,{autoComplete:"off",ref:t,name:"message",className:y("max-h-12 px-4 py-3 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center h-16 resize-none",s),...a}));ci.displayName="ChatInput";const di=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),mi=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.098 12.634L13 11.423V7a1 1 0 0 0-2 0v5a1 1 0 0 0 .5.866l2.598 1.5a1 1 0 1 0 1-1.732M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8"})}),dl=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m11.29 12l3.54-3.54a1 1 0 0 0 0-1.41a1 1 0 0 0-1.42 0l-4.24 4.24a1 1 0 0 0 0 1.42L13.41 17a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29a1 1 0 0 0 0-1.41Z"})}),Ah=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39M11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7"})}),qh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M3.71 16.29a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21a1 1 0 0 0-.21.33a1 1 0 0 0 .21 1.09a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1 1 0 0 0 .21-1.09a1 1 0 0 0-.21-.33M7 8h14a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2m-3.29 3.29a1 1 0 0 0-1.09-.21a1.2 1.2 0 0 0-.33.21a1 1 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1 1 0 0 0-.21-.33M21 11H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2M3.71 6.29a1 1 0 0 0-.33-.21a1 1 0 0 0-1.09.21a1.2 1.2 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a1 1 0 0 0 1.09-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1.2 1.2 0 0 0-.21-.33M21 16H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})}),Hh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9 12H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-1-2h4a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2m1 6H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m12-4h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Zm-6.44-2.83a.8.8 0 0 0-.18-.09a.6.6 0 0 0-.19-.06a1 1 0 0 0-.9.27A1.05 1.05 0 0 0 12 17a1 1 0 0 0 .07.38a1.2 1.2 0 0 0 .22.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21A1 1 0 0 0 14 17a1.05 1.05 0 0 0-.29-.71a2 2 0 0 0-.15-.12m.14-3.88a1 1 0 0 0-1.62.33A1 1 0 0 0 13 14a1 1 0 0 0 1-1a1 1 0 0 0-.08-.38a.9.9 0 0 0-.22-.33"})});function Uh(){return e.jsxs("div",{className:"flex h-full flex-col space-y-4 p-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(me,{className:"h-8 w-3/4"}),e.jsx(me,{className:"h-4 w-1/2"})]}),e.jsx("div",{className:"flex-1 space-y-4",children:[1,2,3].map(s=>e.jsx(me,{className:"h-20 w-2/3"},s))})]})}function Kh(){return e.jsx("div",{className:"space-y-4 p-4",children:[1,2,3,4].map(s=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(me,{className:"h-5 w-4/5"}),e.jsx(me,{className:"h-4 w-2/3"}),e.jsx(me,{className:"h-3 w-1/2"})]},s))})}function Bh({ticket:s,isActive:a,onClick:t}){const{t:l}=V("ticket"),n=r=>{switch(r){case qe.HIGH:return"bg-red-50 text-red-600 border-red-200";case qe.MIDDLE:return"bg-yellow-50 text-yellow-600 border-yellow-200";case qe.LOW:return"bg-green-50 text-green-600 border-green-200";default:return"bg-gray-50 text-gray-600 border-gray-200"}};return e.jsxs("div",{className:y("flex cursor-pointer flex-col border-b p-4 hover:bg-accent/50",a&&"bg-accent"),onClick:t,children:[e.jsxs("div",{className:"flex max-w-[280px] items-center justify-between gap-2",children:[e.jsx("h4",{className:"flex-1 truncate font-medium",children:s.subject}),e.jsx(G,{variant:s.status===Hs.CLOSED?"secondary":"default",className:"shrink-0",children:s.status===Hs.CLOSED?l("status.closed"):l("status.processing")})]}),e.jsx("div",{className:"mt-1 max-w-[280px] truncate text-sm text-muted-foreground",children:s.user?.email}),e.jsxs("div",{className:"mt-2 flex items-center justify-between text-xs",children:[e.jsx("time",{className:"text-muted-foreground",children:Se(s.updated_at)}),e.jsx("div",{className:y("rounded-full border px-2 py-0.5 text-xs font-medium",n(s.level)),children:l(`level.${s.level===qe.LOW?"low":s.level===qe.MIDDLE?"medium":"high"}`)})]})]})}function Gh({ticketId:s,dialogTrigger:a}){const{t}=V("ticket"),l=Rs(),n=m.useRef(null),r=m.useRef(null),[o,c]=m.useState(!1),[u,i]=m.useState(""),[d,h]=m.useState(!1),[k,C]=m.useState(s),[S,w]=m.useState(""),[N,g]=m.useState(!1),{setIsOpen:T,setEditingUser:E}=Vn(),{data:p,isLoading:_,refetch:I}=le({queryKey:["tickets",o],queryFn:()=>o?jt.getList({filter:[{id:"status",value:[Hs.OPENING]}]}):Promise.resolve(null),enabled:o}),{data:H,refetch:O,isLoading:B}=le({queryKey:["ticket",k,o],queryFn:()=>o?jt.getInfo(k):Promise.resolve(null),refetchInterval:o?5e3:!1,retry:3}),ce=H?.data,te=(p?.data||[]).filter(re=>re.subject.toLowerCase().includes(S.toLowerCase())||re.user?.email.toLowerCase().includes(S.toLowerCase())),q=(re="smooth")=>{if(n.current){const{scrollHeight:us,clientHeight:Ts}=n.current;n.current.scrollTo({top:us-Ts,behavior:re})}};m.useEffect(()=>{if(!o)return;const re=requestAnimationFrame(()=>{q("instant"),setTimeout(()=>q(),1e3)});return()=>{cancelAnimationFrame(re)}},[o,ce?.messages]);const R=async()=>{const re=u.trim();!re||d||(h(!0),jt.reply({id:k,message:re}).then(()=>{i(""),O(),q(),setTimeout(()=>{r.current?.focus()},0)}).finally(()=>{h(!1)}))},X=async()=>{jt.close(k).then(()=>{$.success(t("actions.close_success")),O(),I()})},ms=()=>{ce?.user&&l("/finance/order?user_id="+ce.user.id)},Te=ce?.status===Hs.CLOSED;return e.jsxs(he,{open:o,onOpenChange:c,children:[e.jsx(is,{asChild:!0,children:a??e.jsx(K,{variant:"outline",children:t("actions.view_ticket")})}),e.jsxs(ue,{className:"flex h-[90vh] max-w-6xl flex-col gap-0 p-0",children:[e.jsx(pe,{}),e.jsxs("div",{className:"flex h-full",children:[e.jsx(K,{variant:"ghost",size:"icon",className:"absolute left-2 top-2 z-50 md:hidden",onClick:()=>g(!N),children:e.jsx(dl,{className:y("h-4 w-4 transition-transform",!N&&"rotate-180")})}),e.jsxs("div",{className:y("absolute inset-y-0 left-0 z-40 flex flex-col border-r bg-background transition-transform duration-200 ease-in-out md:relative",N?"-translate-x-full":"translate-x-0","w-80 md:w-80 md:translate-x-0"),children:[e.jsxs("div",{className:"space-y-4 border-b p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"font-semibold",children:t("list.title")}),e.jsx(K,{variant:"ghost",size:"icon",className:"hidden h-8 w-8 md:flex",onClick:()=>g(!N),children:e.jsx(dl,{className:y("h-4 w-4 transition-transform",!N&&"rotate-180")})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Ah,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),e.jsx(D,{placeholder:t("list.search_placeholder"),value:S,onChange:re=>w(re.target.value),className:"pl-8"})]})]}),e.jsx(_t,{className:"flex-1",children:e.jsx("div",{className:"w-full",children:_?e.jsx(Kh,{}):te.length===0?e.jsx("div",{className:"flex h-full items-center justify-center p-4 text-muted-foreground",children:t(S?"list.no_search_results":"list.no_tickets")}):te.map(re=>e.jsx(Bh,{ticket:re,isActive:re.id===k,onClick:()=>{C(re.id),window.innerWidth<768&&g(!0)}},re.id))})})]}),e.jsxs("div",{className:"relative flex flex-1 flex-col",children:[!N&&e.jsx("div",{className:"absolute inset-0 z-30 bg-black/20 md:hidden",onClick:()=>g(!0)}),B?e.jsx(Uh,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col space-y-4 border-b p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("h2",{className:"text-2xl font-semibold",children:ce?.subject}),e.jsx(G,{variant:Te?"secondary":"default",children:t(Te?"status.closed":"status.processing")}),!Te&&e.jsx(ls,{title:t("actions.close_confirm_title"),description:t("actions.close_confirm_description"),confirmText:t("actions.close_confirm_button"),variant:"destructive",onConfirm:X,children:e.jsxs(K,{variant:"ghost",size:"sm",className:"gap-1 text-muted-foreground hover:text-destructive",children:[e.jsx(di,{className:"h-4 w-4"}),t("actions.close_ticket")]})})]}),e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(Wt,{className:"h-4 w-4"}),e.jsx("span",{children:ce?.user?.email})]}),e.jsx(De,{orientation:"vertical",className:"h-4"}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(mi,{className:"h-4 w-4"}),e.jsxs("span",{children:[t("detail.created_at")," ",Se(ce?.created_at)]})]}),e.jsx(De,{orientation:"vertical",className:"h-4"}),e.jsx(G,{variant:"outline",children:ce?.level!=null&&t(`level.${ce.level===qe.LOW?"low":ce.level===qe.MIDDLE?"medium":"high"}`)})]})]}),ce?.user&&e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.user_info"),onClick:()=>{E(ce.user),T(!0)},children:e.jsx(Wt,{className:"h-4 w-4"})}),e.jsx(ai,{user_id:ce.user.id,dialogTrigger:e.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.traffic_records"),children:e.jsx(qh,{className:"h-4 w-4"})})}),e.jsx(K,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.order_records"),onClick:ms,children:e.jsx(Hh,{className:"h-4 w-4"})})]})]})}),e.jsx("div",{className:"flex-1 overflow-hidden",children:e.jsx("div",{ref:n,className:"h-full space-y-4 overflow-y-auto p-6",children:ce?.messages?.length===0?e.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:t("detail.no_messages")}):ce?.messages?.map(re=>e.jsx(ii,{variant:re.is_from_admin?"sent":"received",className:re.is_from_admin?"ml-auto":"mr-auto",children:e.jsx(oi,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"whitespace-pre-wrap break-words",children:re.message}),e.jsx("div",{className:"text-right",children:e.jsx("time",{className:"text-[10px] text-muted-foreground",children:Se(re.created_at)})})]})})},re.id))})}),e.jsx("div",{className:"border-t p-4",children:e.jsxs("div",{className:"relative flex items-center space-x-2",children:[e.jsx(ci,{ref:r,disabled:Te||d,placeholder:t(Te?"detail.input.closed_placeholder":"detail.input.reply_placeholder"),className:"flex-1 resize-none rounded-lg border bg-background p-3 focus-visible:ring-1",value:u,onChange:re=>i(re.target.value),onKeyDown:re=>{re.key==="Enter"&&!re.shiftKey&&(re.preventDefault(),R())}}),e.jsx(K,{disabled:Te||d||!u.trim(),onClick:R,children:t(d?"detail.input.sending":"detail.input.send")})]})})]})]})]})]})]})}const Wh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3m-.41 2l-5.88 5.88a1 1 0 0 1-1.42 0L5.41 6ZM20 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7.41l5.88 5.88a3 3 0 0 0 4.24 0L20 7.41Z"})}),Yh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.92 11.6C19.9 6.91 16.1 4 12 4s-7.9 2.91-9.92 7.6a1 1 0 0 0 0 .8C4.1 17.09 7.9 20 12 20s7.9-2.91 9.92-7.6a1 1 0 0 0 0-.8M12 18c-3.17 0-6.17-2.29-7.9-6C5.83 8.29 8.83 6 12 6s6.17 2.29 7.9 6c-1.73 3.71-4.73 6-7.9 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4m0 6a2 2 0 1 1 2-2a2 2 0 0 1-2 2"})}),Jh=s=>{const{t:a}=V("ticket");return[{accessorKey:"id",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx(G,{variant:"outline",children:t.getValue("id")}),enableSorting:!1,enableHiding:!1},{accessorKey:"subject",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.subject")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Wh,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"max-w-[500px] truncate font-medium",children:t.getValue("subject")})]}),enableSorting:!1,enableHiding:!1,size:4e3},{accessorKey:"level",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.level")}),cell:({row:t})=>{const l=t.getValue("level"),n=l===qe.LOW?"default":l===qe.MIDDLE?"secondary":"destructive";return e.jsx(G,{variant:n,className:"whitespace-nowrap",children:a(`level.${l===qe.LOW?"low":l===qe.MIDDLE?"medium":"high"}`)})},filterFn:(t,l,n)=>n.includes(t.getValue(l))},{accessorKey:"status",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.status")}),cell:({row:t})=>{const l=t.getValue("status"),n=t.original.reply_status,r=l===Hs.CLOSED?a("status.closed"):a(n===0?"status.replied":"status.pending"),o=l===Hs.CLOSED?"default":n===0?"secondary":"destructive";return e.jsx(G,{variant:o,className:"whitespace-nowrap",children:r})}},{accessorKey:"updated_at",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.updated_at")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[e.jsx(mi,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm",children:Se(t.getValue("updated_at"))})]}),enableSorting:!0},{accessorKey:"created_at",header:({column:t})=>e.jsx(z,{column:t,title:a("columns.created_at")}),cell:({row:t})=>e.jsx("div",{className:"text-sm text-muted-foreground",children:Se(t.getValue("created_at"))}),enableSorting:!0,meta:{isFlexGrow:!0}},{id:"actions",header:({column:t})=>e.jsx(z,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const l=t.original.status!==Hs.CLOSED;return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Gh,{ticketId:t.original.id,dialogTrigger:e.jsx(K,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.view_details"),children:e.jsx(Yh,{className:"h-4 w-4"})})}),l&&e.jsx(ls,{title:a("actions.close_confirm_title"),description:a("actions.close_confirm_description"),confirmText:a("actions.close_confirm_button"),variant:"destructive",onConfirm:async()=>{jt.close(t.original.id).then(()=>{$.success(a("actions.close_success")),s()})},children:e.jsx(K,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.close_ticket"),children:e.jsx(di,{className:"h-4 w-4"})})})]})}}]};function Qh(){const[s,a]=m.useState({}),[t,l]=m.useState({}),[n,r]=m.useState([{id:"status",value:"0"}]),[o,c]=m.useState([]),[u,i]=m.useState({pageIndex:0,pageSize:20}),{refetch:d,data:h}=le({queryKey:["orderList",u,n,o],queryFn:()=>jt.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:n,sort:o})}),k=Je({data:h?.data??[],columns:Jh(d),state:{sorting:o,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:u},rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:r,onColumnVisibilityChange:l,getCoreRowModel:Qe(),getFilteredRowModel:js(),getPaginationRowModel:rs(),onPaginationChange:i,getSortedRowModel:vs(),getFacetedRowModel:Vs(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Fh,{table:k,refetch:d}),e.jsx(os,{table:k,showPagination:!0})]})}function Xh(){const{t:s}=V("ticket");return e.jsxs(li,{refreshData:()=>{},children:[e.jsxs(Ve,{children:[e.jsxs(Fe,{children:[e.jsx(Xe,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ue,{}),e.jsx(Ke,{})]})]}),e.jsxs(Ae,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Qh,{})})]})]}),e.jsx(ri,{})]})}const Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"}));export{lp as a,ap as c,np as g,rp as r}; diff --git a/public/assets/admin/assets/vendor.js b/public/assets/admin/assets/vendor.js index ce9309e..4fb7364 100644 --- a/public/assets/admin/assets/vendor.js +++ b/public/assets/admin/assets/vendor.js @@ -610,4 +610,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `:">",o};ap.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o=0&&(r=this.attrs[n][1]),r};rs.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function IZ(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}IZ.prototype.Token=rs;const aYe=/\r\n?|\n/g,sYe=/\0/g;function uYe(e){let t;t=e.src.replace(aYe,` `),t=t.replace(sYe,"�"),e.src=t}function lYe(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function cYe(e){const t=e.tokens;for(let n=0,r=t.length;n\s]/i.test(e)}function dYe(e){return/^<\/a\s*>/i.test(e)}function hYe(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;a--){const s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(fYe(s.content)&&o>0&&o--,dYe(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const u=s.content;let l=e.md.linkify.match(u);const c=[];let f=s.level,h=0;l.length>0&&l[0].index===0&&a>0&&i[a-1].type==="text_special"&&(l=l.slice(1));for(let p=0;ph){const E=new e.Token("text","",0);E.content=u.slice(h,w),E.level=f,c.push(E)}const x=new e.Token("link_open","a",1);x.attrs=[["href",y]],x.level=f++,x.markup="linkify",x.info="auto",c.push(x);const S=new e.Token("text","",0);S.content=b,S.level=f,c.push(S);const O=new e.Token("link_close","a",-1);O.level=--f,O.markup="linkify",O.info="auto",c.push(O),h=l[p].lastIndex}if(h=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(gYe,vYe)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function bYe(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&NZ.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function xYe(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(pYe.test(e.tokens[t].content)&&yYe(e.tokens[t].children),NZ.test(e.tokens[t].content)&&bYe(e.tokens[t].children))}const wYe=/['"]/,LN=/['"]/g,FN="’";function Yy(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function _Ye(e,t){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,u=0,l=s.length;e:for(;u=0)m=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let y=32;if(u=48&&m<=57&&(h=f=!1),f&&h&&(f=b,h=w),!f&&!h){p&&(o.content=Yy(o.content,c.index,FN));continue}if(h)for(n=r.length-1;n>=0;n--){let O=r[n];if(r[n].level=0;t--)e.tokens[t].type!=="inline"||!wYe.test(e.tokens[t].content)||_Ye(e.tokens[t].children,e)}function CYe(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o0&&this.level++,this.tokens.push(r),r};Ns.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ns.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;tn;)if(!qn(this.src.charCodeAt(--t)))return t+1;return t};Ns.prototype.skipChars=function(t,n){for(let r=this.src.length;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Ns.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const o=new Array(n-t);for(let a=0,s=t;sr?o[a]=new Array(u-r+1).join(" ")+this.src.slice(c,f):o[a]=this.src.slice(c,f)}return o.join("")};Ns.prototype.Token=rs;const EYe=65536;function nC(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function jN(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;rn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!qn(s)||a===45&&qn(s))return!1;for(;o=4)return!1;l=jN(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==c.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),y=[t,0];m.map=y;const b=e.push("thead_open","thead",1);b.map=[t,t+1];const w=e.push("tr_open","tr",1);w.map=[t,t+1];for(let O=0;O=4||(l=jN(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),S+=f-l.length,S>EYe))break;if(i===t+2){const C=e.push("tbody_open","tbody",1);C.map=x=[t+2,0]}const E=e.push("tr_open","tr",1);E.map=[i,i+1];for(let C=0;C=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0}function PYe(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let u=i-s;if(u<3)return!1;const l=e.src.slice(s,i),c=e.src.slice(i,o);if(a===96&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let f=t,h=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],i=4)&&(i=e.skipChars(i,a),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const s=[],u=[],l=[],c=[],f=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m=o)break;if(e.src.charCodeAt(i++)===62&&!S){let E=e.sCount[m]+1,C,P;e.src.charCodeAt(i)===32?(i++,E++,P=!1,C=!0):e.src.charCodeAt(i)===9?(C=!0,(e.bsCount[m]+E)%4===3?(i++,E++,P=!1):P=!0):C=!1;let M=E;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i=o,u.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(C?1:0),l.push(e.sCount[m]),e.sCount[m]=M-E,c.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let O=!1;for(let E=0,C=f.length;E";const w=[t,0];b.map=w,e.md.block.tokenize(e,t,m);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=a,e.parentType=h,w[1]=e.line;for(let S=0;S=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]=e.blkIndent&&(c=!0);let f,h,p;if((p=UN(e,u))>=0){if(f=!0,a=e.bMarks[u]+e.tShift[u],h=Number(e.src.slice(a,p-1)),c&&h!==1)return!1}else if((p=BN(e,u))>=0)f=!1;else return!1;if(c&&e.skipSpaces(p)>=e.eMarks[u])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),y=e.tokens.length;f?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const b=[u,0];s.map=b,s.markup=String.fromCharCode(m);let w=!1;const x=e.md.block.ruler.getRules("list"),S=e.parentType;for(e.parentType="list";u=i?P=1:P=E-O,P>4&&(P=1);const M=O+P;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const N=[u,0];s.map=N,f&&(s.info=e.src.slice(a,p-1));const B=e.tight,V=e.tShift[u],W=e.sCount[u],ee=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=M,e.tight=!0,e.tShift[u]=C-e.bMarks[u],e.sCount[u]=E,C>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||w)&&(l=!1),w=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ee,e.tShift[u]=V,e.sCount[u]=W,e.tight=B,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),u=e.line,N[1]=u,u>=n||e.sCount[u]=4)break;let Z=!1;for(let q=0,G=x.length;q=4||e.src.charCodeAt(i)!==91)return!1;function s(x){const S=e.lineMax;if(x>=S||e.isEmpty(x))return null;let O=!1;if(e.sCount[x]-e.blkIndent>3&&(O=!0),e.sCount[x]<0&&(O=!0),!O){const P=e.md.block.ruler.getRules("reference"),M=e.parentType;e.parentType="reference";let N=!1;for(let B=0,V=P.length;B"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:b,href:f}),e.line=a),!0):!1}const $Ye=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],IYe="[a-zA-Z_:][a-zA-Z0-9:._-]*",NYe="[^\"'=<>`\\x00-\\x20]+",LYe="'[^']*'",FYe='"[^"]*"',jYe="(?:"+NYe+"|"+LYe+"|"+FYe+")",BYe="(?:\\s+"+IYe+"(?:\\s*=\\s*"+jYe+")?)",LZ="<[A-Za-z][A-Za-z0-9\\-]*"+BYe+"*\\s*\\/?>",FZ="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",UYe="",zYe="<[?][\\s\\S]*?[?]>",WYe="]*>",VYe="",HYe=new RegExp("^(?:"+LZ+"|"+FZ+"|"+UYe+"|"+zYe+"|"+WYe+"|"+VYe+")"),qYe=new RegExp("^(?:"+LZ+"|"+FZ+")"),ed=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(qYe.source+"\\s*$"),/^$/,!1]];function KYe(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i6||ii&&qn(e.src.charCodeAt(u-1))&&(o=u),e.line=t+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[];const f=e.push("heading_close","h"+String(s),-1);return f.markup="########".slice(0,s),!0}function YYe(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p3||e.sCount[o]<0)continue;let l=!1;for(let c=0,f=r.length;c=n||e.sCount[a]=o){e.line=n;break}const u=e.line;let l=!1;for(let c=0;c=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};nv.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(JYe);if(!i)return!1;const o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const u=e.md.normalizeLink(s);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="linkify",l.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=s.length-o.length,!0}function tZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Q5[e.charCodeAt(0)]=1});function nZe(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);i<256&&Q5[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function rZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=a?"strong_open":"em_open",u.tag=a?"strong":"em",u.nesting=1,u.markup=a?s+s:s,u.content="";const l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function sZe(e){const t=e.tokens_meta,n=e.tokens_meta.length;WN(e,e.delimiters);for(let r=0;r=f)return!1;if(u=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?m=i.pos:a="",u=m;m=f||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(typeof e.env.references>"u")return!1;if(m=0?r=e.src.slice(u,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),o=e.env.references[B2(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const y=e.push("link_open","a",1),b=[["href",a]];y.attrs=b,s&&b.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=f,!0}function lZe(e,t){let n,r,i,o,a,s,u,l,c="";const f=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o=h)return!1;for(l=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),l=o;o=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o=0?i=e.src.slice(l,o++):o=m+1):o=m+1,i||(i=e.src.slice(p,m)),a=e.env.references[B2(i)],!a)return e.pos=f,!1;c=a.href,u=a.title}if(!t){r=e.src.slice(p,m);const y=[];e.md.inline.parse(r,e.md,e.env,y);const b=e.push("image","img",0),w=[["src",c],["alt",""]];b.attrs=w,b.children=y,b.content=r,u&&w.push(["title",u])}return e.pos=o,e.posMax=h,!0}const cZe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,fZe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function dZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(fZe.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(cZe.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function hZe(e){return/^\s]/i.test(e)}function pZe(e){return/^<\/a\s*>/i.test(e)}function gZe(e){const t=e|32;return t>=97&&t<=122}function mZe(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!gZe(i))return!1;const o=e.src.slice(r).match(HYe);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],hZe(a.content)&&e.linkLevel++,pZe(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const vZe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,yZe=/^&([a-z][a-z0-9]{1,31});/i;function bZe(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(vZe);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Z5(a)?jx(a):jx(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(yZe);if(o){const a=RZ(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function VN(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;au;l-=o[l]+1){const f=e[l];if(f.marker===s.marker&&f.open&&f.end<0){let h=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+p,o[l]=p,s.open=!1,f.end=a,f.close=!1,c=-1,i=-2;break}}}c!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function xZe(e){const t=e.tokens_meta,n=e.tokens_meta.length;VN(e.delimiters);for(let r=0;r0&&r++,i[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos};rv.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};rv.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function K4(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function z2(e){return Object.prototype.toString.call(e)}function SZe(e){return z2(e)==="[object String]"}function CZe(e){return z2(e)==="[object Object]"}function EZe(e){return z2(e)==="[object RegExp]"}function HN(e){return z2(e)==="[object Function]"}function OZe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const UZ={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function AZe(e){return Object.keys(e||{}).reduce(function(t,n){return t||UZ.hasOwnProperty(n)},!1)}const PZe={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kZe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",TZe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function MZe(e){e.__index__=-1,e.__text_cache__=""}function RZe(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qN(){return function(e,t){t.normalize(e)}}function Bx(e){const t=e.re=_Ze(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kZe),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(e.__schemas__).forEach(function(s){const u=e.__schemas__[s];if(u===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,CZe(u)){EZe(u.validate)?l.validate=RZe(u.validate):HN(u.validate)?l.validate=u.validate:o(s,u),HN(u.normalize)?l.normalize=u.normalize:u.normalize?o(s,u):l.normalize=qN();return}if(SZe(u)){i.push(s);return}o(s,u)}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:qN()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(OZe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),MZe(e)}function DZe(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function G4(e,t){const n=new DZe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Vo(e,t){if(!(this instanceof Vo))return new Vo(e,t);t||AZe(e)&&(t=e,e={}),this.__opts__=K4({},UZ,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=K4({},PZe,e),this.__compiled__={},this.__tlds__=TZe,this.__tlds_replaced__=!1,this.re={},Bx(this)}Vo.prototype.add=function(t,n){return this.__schemas__[t]=n,Bx(this),this};Vo.prototype.set=function(t){return this.__opts__=K4(this.__opts__,t),this};Vo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,i,o,a,s,u,l,c;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],u.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&(i=t.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Vo.prototype.pretest=function(t){return this.re.pretest.test(t)};Vo.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Vo.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(G4(this,r)),r=this.__last_index__);let i=r?t.slice(r):t;for(;this.test(i);)n.push(G4(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Vo.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,G4(this,0)):null};Vo.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Bx(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Bx(this),this)};Vo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Vo.prototype.onCompile=function(){};const Bd=2147483647,xs=36,J5=1,pm=26,$Ze=38,IZe=700,zZ=72,WZ=128,VZ="-",NZe=/^xn--/,LZe=/[^\0-\x7F]/,FZe=/[\x2E\u3002\uFF0E\uFF61]/g,jZe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oC=xs-J5,ws=Math.floor,aC=String.fromCharCode;function Ju(e){throw new RangeError(jZe[e])}function BZe(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function HZ(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(FZe,".");const i=e.split("."),o=BZe(i,t).join(".");return r+o}function qZ(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),zZe=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:xs},KN=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},KZ=function(e,t,n){let r=0;for(e=n?ws(e/IZe):e>>1,e+=ws(e/t);e>oC*pm>>1;r+=xs)e=ws(e/oC);return ws(r+(oC+1)*e/(e+$Ze))},GZ=function(e){const t=[],n=e.length;let r=0,i=WZ,o=zZ,a=e.lastIndexOf(VZ);a<0&&(a=0);for(let s=0;s=128&&Ju("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Ju("invalid-input");const h=zZe(e.charCodeAt(s++));h>=xs&&Ju("invalid-input"),h>ws((Bd-r)/c)&&Ju("overflow"),r+=h*c;const p=f<=o?J5:f>=o+pm?pm:f-o;if(hws(Bd/m)&&Ju("overflow"),c*=m}const l=t.length+1;o=KZ(r-u,l,u==0),ws(r/l)>Bd-i&&Ju("overflow"),i+=ws(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},YZ=function(e){const t=[];e=qZ(e);const n=e.length;let r=WZ,i=0,o=zZ;for(const u of e)u<128&&t.push(aC(u));const a=t.length;let s=a;for(a&&t.push(VZ);s=r&&cws((Bd-i)/l)&&Ju("overflow"),i+=(u-r)*l,r=u;for(const c of e)if(cBd&&Ju("overflow"),c===r){let f=i;for(let h=xs;;h+=xs){const p=h<=o?J5:h>=o+pm?pm:h-o;if(f=0))try{t.hostname=ZZ.toASCII(t.hostname)}catch{}return tv(q5(t))}function JZe(e){const t=K5(e,!0);if(t.hostname&&(!t.protocol||XZ.indexOf(t.protocol)>=0))try{t.hostname=ZZ.toUnicode(t.hostname)}catch{}return Ph(q5(t),Ph.defaultChars+"%")}function Ja(e,t){if(!(this instanceof Ja))return new Ja(e,t);t||Y5(e)||(t=e||{},e="default"),this.inline=new rv,this.block=new U2,this.core=new X5,this.renderer=new ap,this.linkify=new Vo,this.validateLink=XZe,this.normalizeLink=QZe,this.normalizeLinkText=JZe,this.utils=tYe,this.helpers=j2({},oYe),this.options={},this.configure(e),t&&this.set(t)}Ja.prototype.set=function(e){return j2(this.options,e),this};Ja.prototype.configure=function(e){const t=this;if(Y5(e)){const n=e;if(e=GZe[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Ja.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Ja.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Ja.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ja.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Ja.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ja.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Ja.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var QZ={exports:{}};(function(e){(function(t){var n=function(T){var D,$=new Float64Array(16);if(T)for(D=0;D>24&255,T[D+1]=$>>16&255,T[D+2]=$>>8&255,T[D+3]=$&255,T[D+4]=A>>24&255,T[D+5]=A>>16&255,T[D+6]=A>>8&255,T[D+7]=A&255}function y(T,D,$,A,L){var Q,te=0;for(Q=0;Q>>8)-1}function b(T,D,$,A){return y(T,D,$,A,16)}function w(T,D,$,A){return y(T,D,$,A,32)}function x(T,D,$,A){for(var L=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Q=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,te=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,fe=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,_e=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,je=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,Ve=D[0]&255|(D[1]&255)<<8|(D[2]&255)<<16|(D[3]&255)<<24,ct=D[4]&255|(D[5]&255)<<8|(D[6]&255)<<16|(D[7]&255)<<24,Ie=D[8]&255|(D[9]&255)<<8|(D[10]&255)<<16|(D[11]&255)<<24,nt=D[12]&255|(D[13]&255)<<8|(D[14]&255)<<16|(D[15]&255)<<24,bt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Ot=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,pt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ht=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,xt=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,wt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Qe=L,ut=Q,Xe=te,Ne=fe,qe=_e,Ge=je,pe=Ve,he=ct,Re=Ie,Oe=nt,Pe=bt,Be=Ot,vt=pt,jt=ht,Bt=xt,It=wt,J,Zt=0;Zt<20;Zt+=2)J=Qe+vt|0,qe^=J<<7|J>>>25,J=qe+Qe|0,Re^=J<<9|J>>>23,J=Re+qe|0,vt^=J<<13|J>>>19,J=vt+Re|0,Qe^=J<<18|J>>>14,J=Ge+ut|0,Oe^=J<<7|J>>>25,J=Oe+Ge|0,jt^=J<<9|J>>>23,J=jt+Oe|0,ut^=J<<13|J>>>19,J=ut+jt|0,Ge^=J<<18|J>>>14,J=Pe+pe|0,Bt^=J<<7|J>>>25,J=Bt+Pe|0,Xe^=J<<9|J>>>23,J=Xe+Bt|0,pe^=J<<13|J>>>19,J=pe+Xe|0,Pe^=J<<18|J>>>14,J=It+Be|0,Ne^=J<<7|J>>>25,J=Ne+It|0,he^=J<<9|J>>>23,J=he+Ne|0,Be^=J<<13|J>>>19,J=Be+he|0,It^=J<<18|J>>>14,J=Qe+Ne|0,ut^=J<<7|J>>>25,J=ut+Qe|0,Xe^=J<<9|J>>>23,J=Xe+ut|0,Ne^=J<<13|J>>>19,J=Ne+Xe|0,Qe^=J<<18|J>>>14,J=Ge+qe|0,pe^=J<<7|J>>>25,J=pe+Ge|0,he^=J<<9|J>>>23,J=he+pe|0,qe^=J<<13|J>>>19,J=qe+he|0,Ge^=J<<18|J>>>14,J=Pe+Oe|0,Be^=J<<7|J>>>25,J=Be+Pe|0,Re^=J<<9|J>>>23,J=Re+Be|0,Oe^=J<<13|J>>>19,J=Oe+Re|0,Pe^=J<<18|J>>>14,J=It+Bt|0,vt^=J<<7|J>>>25,J=vt+It|0,jt^=J<<9|J>>>23,J=jt+vt|0,Bt^=J<<13|J>>>19,J=Bt+jt|0,It^=J<<18|J>>>14;Qe=Qe+L|0,ut=ut+Q|0,Xe=Xe+te|0,Ne=Ne+fe|0,qe=qe+_e|0,Ge=Ge+je|0,pe=pe+Ve|0,he=he+ct|0,Re=Re+Ie|0,Oe=Oe+nt|0,Pe=Pe+bt|0,Be=Be+Ot|0,vt=vt+pt|0,jt=jt+ht|0,Bt=Bt+xt|0,It=It+wt|0,T[0]=Qe>>>0&255,T[1]=Qe>>>8&255,T[2]=Qe>>>16&255,T[3]=Qe>>>24&255,T[4]=ut>>>0&255,T[5]=ut>>>8&255,T[6]=ut>>>16&255,T[7]=ut>>>24&255,T[8]=Xe>>>0&255,T[9]=Xe>>>8&255,T[10]=Xe>>>16&255,T[11]=Xe>>>24&255,T[12]=Ne>>>0&255,T[13]=Ne>>>8&255,T[14]=Ne>>>16&255,T[15]=Ne>>>24&255,T[16]=qe>>>0&255,T[17]=qe>>>8&255,T[18]=qe>>>16&255,T[19]=qe>>>24&255,T[20]=Ge>>>0&255,T[21]=Ge>>>8&255,T[22]=Ge>>>16&255,T[23]=Ge>>>24&255,T[24]=pe>>>0&255,T[25]=pe>>>8&255,T[26]=pe>>>16&255,T[27]=pe>>>24&255,T[28]=he>>>0&255,T[29]=he>>>8&255,T[30]=he>>>16&255,T[31]=he>>>24&255,T[32]=Re>>>0&255,T[33]=Re>>>8&255,T[34]=Re>>>16&255,T[35]=Re>>>24&255,T[36]=Oe>>>0&255,T[37]=Oe>>>8&255,T[38]=Oe>>>16&255,T[39]=Oe>>>24&255,T[40]=Pe>>>0&255,T[41]=Pe>>>8&255,T[42]=Pe>>>16&255,T[43]=Pe>>>24&255,T[44]=Be>>>0&255,T[45]=Be>>>8&255,T[46]=Be>>>16&255,T[47]=Be>>>24&255,T[48]=vt>>>0&255,T[49]=vt>>>8&255,T[50]=vt>>>16&255,T[51]=vt>>>24&255,T[52]=jt>>>0&255,T[53]=jt>>>8&255,T[54]=jt>>>16&255,T[55]=jt>>>24&255,T[56]=Bt>>>0&255,T[57]=Bt>>>8&255,T[58]=Bt>>>16&255,T[59]=Bt>>>24&255,T[60]=It>>>0&255,T[61]=It>>>8&255,T[62]=It>>>16&255,T[63]=It>>>24&255}function S(T,D,$,A){for(var L=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Q=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,te=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,fe=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,_e=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,je=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,Ve=D[0]&255|(D[1]&255)<<8|(D[2]&255)<<16|(D[3]&255)<<24,ct=D[4]&255|(D[5]&255)<<8|(D[6]&255)<<16|(D[7]&255)<<24,Ie=D[8]&255|(D[9]&255)<<8|(D[10]&255)<<16|(D[11]&255)<<24,nt=D[12]&255|(D[13]&255)<<8|(D[14]&255)<<16|(D[15]&255)<<24,bt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Ot=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,pt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ht=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,xt=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,wt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Qe=L,ut=Q,Xe=te,Ne=fe,qe=_e,Ge=je,pe=Ve,he=ct,Re=Ie,Oe=nt,Pe=bt,Be=Ot,vt=pt,jt=ht,Bt=xt,It=wt,J,Zt=0;Zt<20;Zt+=2)J=Qe+vt|0,qe^=J<<7|J>>>25,J=qe+Qe|0,Re^=J<<9|J>>>23,J=Re+qe|0,vt^=J<<13|J>>>19,J=vt+Re|0,Qe^=J<<18|J>>>14,J=Ge+ut|0,Oe^=J<<7|J>>>25,J=Oe+Ge|0,jt^=J<<9|J>>>23,J=jt+Oe|0,ut^=J<<13|J>>>19,J=ut+jt|0,Ge^=J<<18|J>>>14,J=Pe+pe|0,Bt^=J<<7|J>>>25,J=Bt+Pe|0,Xe^=J<<9|J>>>23,J=Xe+Bt|0,pe^=J<<13|J>>>19,J=pe+Xe|0,Pe^=J<<18|J>>>14,J=It+Be|0,Ne^=J<<7|J>>>25,J=Ne+It|0,he^=J<<9|J>>>23,J=he+Ne|0,Be^=J<<13|J>>>19,J=Be+he|0,It^=J<<18|J>>>14,J=Qe+Ne|0,ut^=J<<7|J>>>25,J=ut+Qe|0,Xe^=J<<9|J>>>23,J=Xe+ut|0,Ne^=J<<13|J>>>19,J=Ne+Xe|0,Qe^=J<<18|J>>>14,J=Ge+qe|0,pe^=J<<7|J>>>25,J=pe+Ge|0,he^=J<<9|J>>>23,J=he+pe|0,qe^=J<<13|J>>>19,J=qe+he|0,Ge^=J<<18|J>>>14,J=Pe+Oe|0,Be^=J<<7|J>>>25,J=Be+Pe|0,Re^=J<<9|J>>>23,J=Re+Be|0,Oe^=J<<13|J>>>19,J=Oe+Re|0,Pe^=J<<18|J>>>14,J=It+Bt|0,vt^=J<<7|J>>>25,J=vt+It|0,jt^=J<<9|J>>>23,J=jt+vt|0,Bt^=J<<13|J>>>19,J=Bt+jt|0,It^=J<<18|J>>>14;T[0]=Qe>>>0&255,T[1]=Qe>>>8&255,T[2]=Qe>>>16&255,T[3]=Qe>>>24&255,T[4]=Ge>>>0&255,T[5]=Ge>>>8&255,T[6]=Ge>>>16&255,T[7]=Ge>>>24&255,T[8]=Pe>>>0&255,T[9]=Pe>>>8&255,T[10]=Pe>>>16&255,T[11]=Pe>>>24&255,T[12]=It>>>0&255,T[13]=It>>>8&255,T[14]=It>>>16&255,T[15]=It>>>24&255,T[16]=pe>>>0&255,T[17]=pe>>>8&255,T[18]=pe>>>16&255,T[19]=pe>>>24&255,T[20]=he>>>0&255,T[21]=he>>>8&255,T[22]=he>>>16&255,T[23]=he>>>24&255,T[24]=Re>>>0&255,T[25]=Re>>>8&255,T[26]=Re>>>16&255,T[27]=Re>>>24&255,T[28]=Oe>>>0&255,T[29]=Oe>>>8&255,T[30]=Oe>>>16&255,T[31]=Oe>>>24&255}function O(T,D,$,A){x(T,D,$,A)}function E(T,D,$,A){S(T,D,$,A)}var C=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function P(T,D,$,A,L,Q,te){var fe=new Uint8Array(16),_e=new Uint8Array(64),je,Ve;for(Ve=0;Ve<16;Ve++)fe[Ve]=0;for(Ve=0;Ve<8;Ve++)fe[Ve]=Q[Ve];for(;L>=64;){for(O(_e,fe,te,C),Ve=0;Ve<64;Ve++)T[D+Ve]=$[A+Ve]^_e[Ve];for(je=1,Ve=8;Ve<16;Ve++)je=je+(fe[Ve]&255)|0,fe[Ve]=je&255,je>>>=8;L-=64,D+=64,A+=64}if(L>0)for(O(_e,fe,te,C),Ve=0;Ve=64;){for(O(te,Q,L,C),_e=0;_e<64;_e++)T[D+_e]=te[_e];for(fe=1,_e=8;_e<16;_e++)fe=fe+(Q[_e]&255)|0,Q[_e]=fe&255,fe>>>=8;$-=64,D+=64}if($>0)for(O(te,Q,L,C),_e=0;_e<$;_e++)T[D+_e]=te[_e];return 0}function N(T,D,$,A,L){var Q=new Uint8Array(32);E(Q,A,L,C);for(var te=new Uint8Array(8),fe=0;fe<8;fe++)te[fe]=A[fe+16];return M(T,D,$,te,Q)}function B(T,D,$,A,L,Q,te){var fe=new Uint8Array(32);E(fe,Q,te,C);for(var _e=new Uint8Array(8),je=0;je<8;je++)_e[je]=Q[je+16];return P(T,D,$,A,L,_e,fe)}var V=function(T){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var D,$,A,L,Q,te,fe,_e;D=T[0]&255|(T[1]&255)<<8,this.r[0]=D&8191,$=T[2]&255|(T[3]&255)<<8,this.r[1]=(D>>>13|$<<3)&8191,A=T[4]&255|(T[5]&255)<<8,this.r[2]=($>>>10|A<<6)&7939,L=T[6]&255|(T[7]&255)<<8,this.r[3]=(A>>>7|L<<9)&8191,Q=T[8]&255|(T[9]&255)<<8,this.r[4]=(L>>>4|Q<<12)&255,this.r[5]=Q>>>1&8190,te=T[10]&255|(T[11]&255)<<8,this.r[6]=(Q>>>14|te<<2)&8191,fe=T[12]&255|(T[13]&255)<<8,this.r[7]=(te>>>11|fe<<5)&8065,_e=T[14]&255|(T[15]&255)<<8,this.r[8]=(fe>>>8|_e<<8)&8191,this.r[9]=_e>>>5&127,this.pad[0]=T[16]&255|(T[17]&255)<<8,this.pad[1]=T[18]&255|(T[19]&255)<<8,this.pad[2]=T[20]&255|(T[21]&255)<<8,this.pad[3]=T[22]&255|(T[23]&255)<<8,this.pad[4]=T[24]&255|(T[25]&255)<<8,this.pad[5]=T[26]&255|(T[27]&255)<<8,this.pad[6]=T[28]&255|(T[29]&255)<<8,this.pad[7]=T[30]&255|(T[31]&255)<<8};V.prototype.blocks=function(T,D,$){for(var A=this.fin?0:2048,L,Q,te,fe,_e,je,Ve,ct,Ie,nt,bt,Ot,pt,ht,xt,wt,Qe,ut,Xe,Ne=this.h[0],qe=this.h[1],Ge=this.h[2],pe=this.h[3],he=this.h[4],Re=this.h[5],Oe=this.h[6],Pe=this.h[7],Be=this.h[8],vt=this.h[9],jt=this.r[0],Bt=this.r[1],It=this.r[2],J=this.r[3],Zt=this.r[4],sn=this.r[5],un=this.r[6],Ut=this.r[7],ln=this.r[8],rn=this.r[9];$>=16;)L=T[D+0]&255|(T[D+1]&255)<<8,Ne+=L&8191,Q=T[D+2]&255|(T[D+3]&255)<<8,qe+=(L>>>13|Q<<3)&8191,te=T[D+4]&255|(T[D+5]&255)<<8,Ge+=(Q>>>10|te<<6)&8191,fe=T[D+6]&255|(T[D+7]&255)<<8,pe+=(te>>>7|fe<<9)&8191,_e=T[D+8]&255|(T[D+9]&255)<<8,he+=(fe>>>4|_e<<12)&8191,Re+=_e>>>1&8191,je=T[D+10]&255|(T[D+11]&255)<<8,Oe+=(_e>>>14|je<<2)&8191,Ve=T[D+12]&255|(T[D+13]&255)<<8,Pe+=(je>>>11|Ve<<5)&8191,ct=T[D+14]&255|(T[D+15]&255)<<8,Be+=(Ve>>>8|ct<<8)&8191,vt+=ct>>>5|A,Ie=0,nt=Ie,nt+=Ne*jt,nt+=qe*(5*rn),nt+=Ge*(5*ln),nt+=pe*(5*Ut),nt+=he*(5*un),Ie=nt>>>13,nt&=8191,nt+=Re*(5*sn),nt+=Oe*(5*Zt),nt+=Pe*(5*J),nt+=Be*(5*It),nt+=vt*(5*Bt),Ie+=nt>>>13,nt&=8191,bt=Ie,bt+=Ne*Bt,bt+=qe*jt,bt+=Ge*(5*rn),bt+=pe*(5*ln),bt+=he*(5*Ut),Ie=bt>>>13,bt&=8191,bt+=Re*(5*un),bt+=Oe*(5*sn),bt+=Pe*(5*Zt),bt+=Be*(5*J),bt+=vt*(5*It),Ie+=bt>>>13,bt&=8191,Ot=Ie,Ot+=Ne*It,Ot+=qe*Bt,Ot+=Ge*jt,Ot+=pe*(5*rn),Ot+=he*(5*ln),Ie=Ot>>>13,Ot&=8191,Ot+=Re*(5*Ut),Ot+=Oe*(5*un),Ot+=Pe*(5*sn),Ot+=Be*(5*Zt),Ot+=vt*(5*J),Ie+=Ot>>>13,Ot&=8191,pt=Ie,pt+=Ne*J,pt+=qe*It,pt+=Ge*Bt,pt+=pe*jt,pt+=he*(5*rn),Ie=pt>>>13,pt&=8191,pt+=Re*(5*ln),pt+=Oe*(5*Ut),pt+=Pe*(5*un),pt+=Be*(5*sn),pt+=vt*(5*Zt),Ie+=pt>>>13,pt&=8191,ht=Ie,ht+=Ne*Zt,ht+=qe*J,ht+=Ge*It,ht+=pe*Bt,ht+=he*jt,Ie=ht>>>13,ht&=8191,ht+=Re*(5*rn),ht+=Oe*(5*ln),ht+=Pe*(5*Ut),ht+=Be*(5*un),ht+=vt*(5*sn),Ie+=ht>>>13,ht&=8191,xt=Ie,xt+=Ne*sn,xt+=qe*Zt,xt+=Ge*J,xt+=pe*It,xt+=he*Bt,Ie=xt>>>13,xt&=8191,xt+=Re*jt,xt+=Oe*(5*rn),xt+=Pe*(5*ln),xt+=Be*(5*Ut),xt+=vt*(5*un),Ie+=xt>>>13,xt&=8191,wt=Ie,wt+=Ne*un,wt+=qe*sn,wt+=Ge*Zt,wt+=pe*J,wt+=he*It,Ie=wt>>>13,wt&=8191,wt+=Re*Bt,wt+=Oe*jt,wt+=Pe*(5*rn),wt+=Be*(5*ln),wt+=vt*(5*Ut),Ie+=wt>>>13,wt&=8191,Qe=Ie,Qe+=Ne*Ut,Qe+=qe*un,Qe+=Ge*sn,Qe+=pe*Zt,Qe+=he*J,Ie=Qe>>>13,Qe&=8191,Qe+=Re*It,Qe+=Oe*Bt,Qe+=Pe*jt,Qe+=Be*(5*rn),Qe+=vt*(5*ln),Ie+=Qe>>>13,Qe&=8191,ut=Ie,ut+=Ne*ln,ut+=qe*Ut,ut+=Ge*un,ut+=pe*sn,ut+=he*Zt,Ie=ut>>>13,ut&=8191,ut+=Re*J,ut+=Oe*It,ut+=Pe*Bt,ut+=Be*jt,ut+=vt*(5*rn),Ie+=ut>>>13,ut&=8191,Xe=Ie,Xe+=Ne*rn,Xe+=qe*ln,Xe+=Ge*Ut,Xe+=pe*un,Xe+=he*sn,Ie=Xe>>>13,Xe&=8191,Xe+=Re*Zt,Xe+=Oe*J,Xe+=Pe*It,Xe+=Be*Bt,Xe+=vt*jt,Ie+=Xe>>>13,Xe&=8191,Ie=(Ie<<2)+Ie|0,Ie=Ie+nt|0,nt=Ie&8191,Ie=Ie>>>13,bt+=Ie,Ne=nt,qe=bt,Ge=Ot,pe=pt,he=ht,Re=xt,Oe=wt,Pe=Qe,Be=ut,vt=Xe,D+=16,$-=16;this.h[0]=Ne,this.h[1]=qe,this.h[2]=Ge,this.h[3]=pe,this.h[4]=he,this.h[5]=Re,this.h[6]=Oe,this.h[7]=Pe,this.h[8]=Be,this.h[9]=vt},V.prototype.finish=function(T,D){var $=new Uint16Array(10),A,L,Q,te;if(this.leftover){for(te=this.leftover,this.buffer[te++]=1;te<16;te++)this.buffer[te]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(A=this.h[1]>>>13,this.h[1]&=8191,te=2;te<10;te++)this.h[te]+=A,A=this.h[te]>>>13,this.h[te]&=8191;for(this.h[0]+=A*5,A=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=A,A=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=A,$[0]=this.h[0]+5,A=$[0]>>>13,$[0]&=8191,te=1;te<10;te++)$[te]=this.h[te]+A,A=$[te]>>>13,$[te]&=8191;for($[9]-=8192,L=(A^1)-1,te=0;te<10;te++)$[te]&=L;for(L=~L,te=0;te<10;te++)this.h[te]=this.h[te]&L|$[te];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Q=this.h[0]+this.pad[0],this.h[0]=Q&65535,te=1;te<8;te++)Q=(this.h[te]+this.pad[te]|0)+(Q>>>16)|0,this.h[te]=Q&65535;T[D+0]=this.h[0]>>>0&255,T[D+1]=this.h[0]>>>8&255,T[D+2]=this.h[1]>>>0&255,T[D+3]=this.h[1]>>>8&255,T[D+4]=this.h[2]>>>0&255,T[D+5]=this.h[2]>>>8&255,T[D+6]=this.h[3]>>>0&255,T[D+7]=this.h[3]>>>8&255,T[D+8]=this.h[4]>>>0&255,T[D+9]=this.h[4]>>>8&255,T[D+10]=this.h[5]>>>0&255,T[D+11]=this.h[5]>>>8&255,T[D+12]=this.h[6]>>>0&255,T[D+13]=this.h[6]>>>8&255,T[D+14]=this.h[7]>>>0&255,T[D+15]=this.h[7]>>>8&255},V.prototype.update=function(T,D,$){var A,L;if(this.leftover){for(L=16-this.leftover,L>$&&(L=$),A=0;A=16&&(L=$-$%16,this.blocks(T,D,L),D+=L,$-=L),$){for(A=0;A<$;A++)this.buffer[this.leftover+A]=T[D+A];this.leftover+=$}};function W(T,D,$,A,L,Q){var te=new V(Q);return te.update($,A,L),te.finish(T,D),0}function ee(T,D,$,A,L,Q){var te=new Uint8Array(16);return W(te,0,$,A,L,Q),b(T,D,te,0)}function Z(T,D,$,A,L){var Q;if($<32)return-1;for(B(T,0,D,0,$,A,L),W(T,16,T,32,$-32,T),Q=0;Q<16;Q++)T[Q]=0;return 0}function q(T,D,$,A,L){var Q,te=new Uint8Array(32);if($<32||(N(te,0,32,A,L),ee(D,16,D,32,$-32,te)!==0))return-1;for(B(T,0,D,0,$,A,L),Q=0;Q<32;Q++)T[Q]=0;return 0}function G(T,D){var $;for($=0;$<16;$++)T[$]=D[$]|0}function H(T){var D,$,A=1;for(D=0;D<16;D++)$=T[D]+A+65535,A=Math.floor($/65536),T[D]=$-A*65536;T[0]+=A-1+37*(A-1)}function j(T,D,$){for(var A,L=~($-1),Q=0;Q<16;Q++)A=L&(T[Q]^D[Q]),T[Q]^=A,D[Q]^=A}function K(T,D){var $,A,L,Q=n(),te=n();for($=0;$<16;$++)te[$]=D[$];for(H(te),H(te),H(te),A=0;A<2;A++){for(Q[0]=te[0]-65517,$=1;$<15;$++)Q[$]=te[$]-65535-(Q[$-1]>>16&1),Q[$-1]&=65535;Q[15]=te[15]-32767-(Q[14]>>16&1),L=Q[15]>>16&1,Q[14]&=65535,j(te,Q,1-L)}for($=0;$<16;$++)T[2*$]=te[$]&255,T[2*$+1]=te[$]>>8}function Y(T,D){var $=new Uint8Array(32),A=new Uint8Array(32);return K($,T),K(A,D),w($,0,A,0)}function re(T){var D=new Uint8Array(32);return K(D,T),D[0]&1}function ie(T,D){var $;for($=0;$<16;$++)T[$]=D[2*$]+(D[2*$+1]<<8);T[15]&=32767}function se(T,D,$){for(var A=0;A<16;A++)T[A]=D[A]+$[A]}function ye(T,D,$){for(var A=0;A<16;A++)T[A]=D[A]-$[A]}function we(T,D,$){var A,L,Q=0,te=0,fe=0,_e=0,je=0,Ve=0,ct=0,Ie=0,nt=0,bt=0,Ot=0,pt=0,ht=0,xt=0,wt=0,Qe=0,ut=0,Xe=0,Ne=0,qe=0,Ge=0,pe=0,he=0,Re=0,Oe=0,Pe=0,Be=0,vt=0,jt=0,Bt=0,It=0,J=$[0],Zt=$[1],sn=$[2],un=$[3],Ut=$[4],ln=$[5],rn=$[6],Yn=$[7],mn=$[8],kn=$[9],Zn=$[10],Xn=$[11],wr=$[12],Ir=$[13],Nr=$[14],Lr=$[15];A=D[0],Q+=A*J,te+=A*Zt,fe+=A*sn,_e+=A*un,je+=A*Ut,Ve+=A*ln,ct+=A*rn,Ie+=A*Yn,nt+=A*mn,bt+=A*kn,Ot+=A*Zn,pt+=A*Xn,ht+=A*wr,xt+=A*Ir,wt+=A*Nr,Qe+=A*Lr,A=D[1],te+=A*J,fe+=A*Zt,_e+=A*sn,je+=A*un,Ve+=A*Ut,ct+=A*ln,Ie+=A*rn,nt+=A*Yn,bt+=A*mn,Ot+=A*kn,pt+=A*Zn,ht+=A*Xn,xt+=A*wr,wt+=A*Ir,Qe+=A*Nr,ut+=A*Lr,A=D[2],fe+=A*J,_e+=A*Zt,je+=A*sn,Ve+=A*un,ct+=A*Ut,Ie+=A*ln,nt+=A*rn,bt+=A*Yn,Ot+=A*mn,pt+=A*kn,ht+=A*Zn,xt+=A*Xn,wt+=A*wr,Qe+=A*Ir,ut+=A*Nr,Xe+=A*Lr,A=D[3],_e+=A*J,je+=A*Zt,Ve+=A*sn,ct+=A*un,Ie+=A*Ut,nt+=A*ln,bt+=A*rn,Ot+=A*Yn,pt+=A*mn,ht+=A*kn,xt+=A*Zn,wt+=A*Xn,Qe+=A*wr,ut+=A*Ir,Xe+=A*Nr,Ne+=A*Lr,A=D[4],je+=A*J,Ve+=A*Zt,ct+=A*sn,Ie+=A*un,nt+=A*Ut,bt+=A*ln,Ot+=A*rn,pt+=A*Yn,ht+=A*mn,xt+=A*kn,wt+=A*Zn,Qe+=A*Xn,ut+=A*wr,Xe+=A*Ir,Ne+=A*Nr,qe+=A*Lr,A=D[5],Ve+=A*J,ct+=A*Zt,Ie+=A*sn,nt+=A*un,bt+=A*Ut,Ot+=A*ln,pt+=A*rn,ht+=A*Yn,xt+=A*mn,wt+=A*kn,Qe+=A*Zn,ut+=A*Xn,Xe+=A*wr,Ne+=A*Ir,qe+=A*Nr,Ge+=A*Lr,A=D[6],ct+=A*J,Ie+=A*Zt,nt+=A*sn,bt+=A*un,Ot+=A*Ut,pt+=A*ln,ht+=A*rn,xt+=A*Yn,wt+=A*mn,Qe+=A*kn,ut+=A*Zn,Xe+=A*Xn,Ne+=A*wr,qe+=A*Ir,Ge+=A*Nr,pe+=A*Lr,A=D[7],Ie+=A*J,nt+=A*Zt,bt+=A*sn,Ot+=A*un,pt+=A*Ut,ht+=A*ln,xt+=A*rn,wt+=A*Yn,Qe+=A*mn,ut+=A*kn,Xe+=A*Zn,Ne+=A*Xn,qe+=A*wr,Ge+=A*Ir,pe+=A*Nr,he+=A*Lr,A=D[8],nt+=A*J,bt+=A*Zt,Ot+=A*sn,pt+=A*un,ht+=A*Ut,xt+=A*ln,wt+=A*rn,Qe+=A*Yn,ut+=A*mn,Xe+=A*kn,Ne+=A*Zn,qe+=A*Xn,Ge+=A*wr,pe+=A*Ir,he+=A*Nr,Re+=A*Lr,A=D[9],bt+=A*J,Ot+=A*Zt,pt+=A*sn,ht+=A*un,xt+=A*Ut,wt+=A*ln,Qe+=A*rn,ut+=A*Yn,Xe+=A*mn,Ne+=A*kn,qe+=A*Zn,Ge+=A*Xn,pe+=A*wr,he+=A*Ir,Re+=A*Nr,Oe+=A*Lr,A=D[10],Ot+=A*J,pt+=A*Zt,ht+=A*sn,xt+=A*un,wt+=A*Ut,Qe+=A*ln,ut+=A*rn,Xe+=A*Yn,Ne+=A*mn,qe+=A*kn,Ge+=A*Zn,pe+=A*Xn,he+=A*wr,Re+=A*Ir,Oe+=A*Nr,Pe+=A*Lr,A=D[11],pt+=A*J,ht+=A*Zt,xt+=A*sn,wt+=A*un,Qe+=A*Ut,ut+=A*ln,Xe+=A*rn,Ne+=A*Yn,qe+=A*mn,Ge+=A*kn,pe+=A*Zn,he+=A*Xn,Re+=A*wr,Oe+=A*Ir,Pe+=A*Nr,Be+=A*Lr,A=D[12],ht+=A*J,xt+=A*Zt,wt+=A*sn,Qe+=A*un,ut+=A*Ut,Xe+=A*ln,Ne+=A*rn,qe+=A*Yn,Ge+=A*mn,pe+=A*kn,he+=A*Zn,Re+=A*Xn,Oe+=A*wr,Pe+=A*Ir,Be+=A*Nr,vt+=A*Lr,A=D[13],xt+=A*J,wt+=A*Zt,Qe+=A*sn,ut+=A*un,Xe+=A*Ut,Ne+=A*ln,qe+=A*rn,Ge+=A*Yn,pe+=A*mn,he+=A*kn,Re+=A*Zn,Oe+=A*Xn,Pe+=A*wr,Be+=A*Ir,vt+=A*Nr,jt+=A*Lr,A=D[14],wt+=A*J,Qe+=A*Zt,ut+=A*sn,Xe+=A*un,Ne+=A*Ut,qe+=A*ln,Ge+=A*rn,pe+=A*Yn,he+=A*mn,Re+=A*kn,Oe+=A*Zn,Pe+=A*Xn,Be+=A*wr,vt+=A*Ir,jt+=A*Nr,Bt+=A*Lr,A=D[15],Qe+=A*J,ut+=A*Zt,Xe+=A*sn,Ne+=A*un,qe+=A*Ut,Ge+=A*ln,pe+=A*rn,he+=A*Yn,Re+=A*mn,Oe+=A*kn,Pe+=A*Zn,Be+=A*Xn,vt+=A*wr,jt+=A*Ir,Bt+=A*Nr,It+=A*Lr,Q+=38*ut,te+=38*Xe,fe+=38*Ne,_e+=38*qe,je+=38*Ge,Ve+=38*pe,ct+=38*he,Ie+=38*Re,nt+=38*Oe,bt+=38*Pe,Ot+=38*Be,pt+=38*vt,ht+=38*jt,xt+=38*Bt,wt+=38*It,L=1,A=Q+L+65535,L=Math.floor(A/65536),Q=A-L*65536,A=te+L+65535,L=Math.floor(A/65536),te=A-L*65536,A=fe+L+65535,L=Math.floor(A/65536),fe=A-L*65536,A=_e+L+65535,L=Math.floor(A/65536),_e=A-L*65536,A=je+L+65535,L=Math.floor(A/65536),je=A-L*65536,A=Ve+L+65535,L=Math.floor(A/65536),Ve=A-L*65536,A=ct+L+65535,L=Math.floor(A/65536),ct=A-L*65536,A=Ie+L+65535,L=Math.floor(A/65536),Ie=A-L*65536,A=nt+L+65535,L=Math.floor(A/65536),nt=A-L*65536,A=bt+L+65535,L=Math.floor(A/65536),bt=A-L*65536,A=Ot+L+65535,L=Math.floor(A/65536),Ot=A-L*65536,A=pt+L+65535,L=Math.floor(A/65536),pt=A-L*65536,A=ht+L+65535,L=Math.floor(A/65536),ht=A-L*65536,A=xt+L+65535,L=Math.floor(A/65536),xt=A-L*65536,A=wt+L+65535,L=Math.floor(A/65536),wt=A-L*65536,A=Qe+L+65535,L=Math.floor(A/65536),Qe=A-L*65536,Q+=L-1+37*(L-1),L=1,A=Q+L+65535,L=Math.floor(A/65536),Q=A-L*65536,A=te+L+65535,L=Math.floor(A/65536),te=A-L*65536,A=fe+L+65535,L=Math.floor(A/65536),fe=A-L*65536,A=_e+L+65535,L=Math.floor(A/65536),_e=A-L*65536,A=je+L+65535,L=Math.floor(A/65536),je=A-L*65536,A=Ve+L+65535,L=Math.floor(A/65536),Ve=A-L*65536,A=ct+L+65535,L=Math.floor(A/65536),ct=A-L*65536,A=Ie+L+65535,L=Math.floor(A/65536),Ie=A-L*65536,A=nt+L+65535,L=Math.floor(A/65536),nt=A-L*65536,A=bt+L+65535,L=Math.floor(A/65536),bt=A-L*65536,A=Ot+L+65535,L=Math.floor(A/65536),Ot=A-L*65536,A=pt+L+65535,L=Math.floor(A/65536),pt=A-L*65536,A=ht+L+65535,L=Math.floor(A/65536),ht=A-L*65536,A=xt+L+65535,L=Math.floor(A/65536),xt=A-L*65536,A=wt+L+65535,L=Math.floor(A/65536),wt=A-L*65536,A=Qe+L+65535,L=Math.floor(A/65536),Qe=A-L*65536,Q+=L-1+37*(L-1),T[0]=Q,T[1]=te,T[2]=fe,T[3]=_e,T[4]=je,T[5]=Ve,T[6]=ct,T[7]=Ie,T[8]=nt,T[9]=bt,T[10]=Ot,T[11]=pt,T[12]=ht,T[13]=xt,T[14]=wt,T[15]=Qe}function He(T,D){we(T,D,D)}function Ee(T,D){var $=n(),A;for(A=0;A<16;A++)$[A]=D[A];for(A=253;A>=0;A--)He($,$),A!==2&&A!==4&&we($,$,D);for(A=0;A<16;A++)T[A]=$[A]}function it(T,D){var $=n(),A;for(A=0;A<16;A++)$[A]=D[A];for(A=250;A>=0;A--)He($,$),A!==1&&we($,$,D);for(A=0;A<16;A++)T[A]=$[A]}function ke(T,D,$){var A=new Uint8Array(32),L=new Float64Array(80),Q,te,fe=n(),_e=n(),je=n(),Ve=n(),ct=n(),Ie=n();for(te=0;te<31;te++)A[te]=D[te];for(A[31]=D[31]&127|64,A[0]&=248,ie(L,$),te=0;te<16;te++)_e[te]=L[te],Ve[te]=fe[te]=je[te]=0;for(fe[0]=Ve[0]=1,te=254;te>=0;--te)Q=A[te>>>3]>>>(te&7)&1,j(fe,_e,Q),j(je,Ve,Q),se(ct,fe,je),ye(fe,fe,je),se(je,_e,Ve),ye(_e,_e,Ve),He(Ve,ct),He(Ie,fe),we(fe,je,fe),we(je,_e,ct),se(ct,fe,je),ye(fe,fe,je),He(_e,fe),ye(je,Ve,Ie),we(fe,je,u),se(fe,fe,Ve),we(je,je,fe),we(fe,Ve,Ie),we(Ve,_e,L),He(_e,ct),j(fe,_e,Q),j(je,Ve,Q);for(te=0;te<16;te++)L[te+16]=fe[te],L[te+32]=je[te],L[te+48]=_e[te],L[te+64]=Ve[te];var nt=L.subarray(32),bt=L.subarray(16);return Ee(nt,nt),we(bt,bt,nt),K(T,bt),0}function Le(T,D){return ke(T,D,o)}function De(T,D){return r(D,32),Le(T,D)}function me(T,D,$){var A=new Uint8Array(32);return ke(A,$,D),E(T,i,A,C)}var yt=Z,lt=q;function Ft(T,D,$,A,L,Q){var te=new Uint8Array(32);return me(te,L,Q),yt(T,D,$,A,te)}function yn(T,D,$,A,L,Q){var te=new Uint8Array(32);return me(te,L,Q),lt(T,D,$,A,te)}var nn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ne(T,D,$,A){for(var L=new Int32Array(16),Q=new Int32Array(16),te,fe,_e,je,Ve,ct,Ie,nt,bt,Ot,pt,ht,xt,wt,Qe,ut,Xe,Ne,qe,Ge,pe,he,Re,Oe,Pe,Be,vt=T[0],jt=T[1],Bt=T[2],It=T[3],J=T[4],Zt=T[5],sn=T[6],un=T[7],Ut=D[0],ln=D[1],rn=D[2],Yn=D[3],mn=D[4],kn=D[5],Zn=D[6],Xn=D[7],wr=0;A>=128;){for(qe=0;qe<16;qe++)Ge=8*qe+wr,L[qe]=$[Ge+0]<<24|$[Ge+1]<<16|$[Ge+2]<<8|$[Ge+3],Q[qe]=$[Ge+4]<<24|$[Ge+5]<<16|$[Ge+6]<<8|$[Ge+7];for(qe=0;qe<80;qe++)if(te=vt,fe=jt,_e=Bt,je=It,Ve=J,ct=Zt,Ie=sn,nt=un,bt=Ut,Ot=ln,pt=rn,ht=Yn,xt=mn,wt=kn,Qe=Zn,ut=Xn,pe=un,he=Xn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=(J>>>14|mn<<18)^(J>>>18|mn<<14)^(mn>>>9|J<<23),he=(mn>>>14|J<<18)^(mn>>>18|J<<14)^(J>>>9|mn<<23),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=J&Zt^~J&sn,he=mn&kn^~mn&Zn,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=nn[qe*2],he=nn[qe*2+1],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=L[qe%16],he=Q[qe%16],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,Xe=Pe&65535|Be<<16,Ne=Re&65535|Oe<<16,pe=Xe,he=Ne,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=(vt>>>28|Ut<<4)^(Ut>>>2|vt<<30)^(Ut>>>7|vt<<25),he=(Ut>>>28|vt<<4)^(vt>>>2|Ut<<30)^(vt>>>7|Ut<<25),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=vt&jt^vt&Bt^jt&Bt,he=Ut&ln^Ut&rn^ln&rn,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,nt=Pe&65535|Be<<16,ut=Re&65535|Oe<<16,pe=je,he=ht,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=Xe,he=Ne,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,je=Pe&65535|Be<<16,ht=Re&65535|Oe<<16,jt=te,Bt=fe,It=_e,J=je,Zt=Ve,sn=ct,un=Ie,vt=nt,ln=bt,rn=Ot,Yn=pt,mn=ht,kn=xt,Zn=wt,Xn=Qe,Ut=ut,qe%16===15)for(Ge=0;Ge<16;Ge++)pe=L[Ge],he=Q[Ge],Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=L[(Ge+9)%16],he=Q[(Ge+9)%16],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Xe=L[(Ge+1)%16],Ne=Q[(Ge+1)%16],pe=(Xe>>>1|Ne<<31)^(Xe>>>8|Ne<<24)^Xe>>>7,he=(Ne>>>1|Xe<<31)^(Ne>>>8|Xe<<24)^(Ne>>>7|Xe<<25),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Xe=L[(Ge+14)%16],Ne=Q[(Ge+14)%16],pe=(Xe>>>19|Ne<<13)^(Ne>>>29|Xe<<3)^Xe>>>6,he=(Ne>>>19|Xe<<13)^(Xe>>>29|Ne<<3)^(Ne>>>6|Xe<<26),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,L[Ge]=Pe&65535|Be<<16,Q[Ge]=Re&65535|Oe<<16;pe=vt,he=Ut,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[0],he=D[0],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[0]=vt=Pe&65535|Be<<16,D[0]=Ut=Re&65535|Oe<<16,pe=jt,he=ln,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[1],he=D[1],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[1]=jt=Pe&65535|Be<<16,D[1]=ln=Re&65535|Oe<<16,pe=Bt,he=rn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[2],he=D[2],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[2]=Bt=Pe&65535|Be<<16,D[2]=rn=Re&65535|Oe<<16,pe=It,he=Yn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[3],he=D[3],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[3]=It=Pe&65535|Be<<16,D[3]=Yn=Re&65535|Oe<<16,pe=J,he=mn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[4],he=D[4],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[4]=J=Pe&65535|Be<<16,D[4]=mn=Re&65535|Oe<<16,pe=Zt,he=kn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[5],he=D[5],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[5]=Zt=Pe&65535|Be<<16,D[5]=kn=Re&65535|Oe<<16,pe=sn,he=Zn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[6],he=D[6],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[6]=sn=Pe&65535|Be<<16,D[6]=Zn=Re&65535|Oe<<16,pe=un,he=Xn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[7],he=D[7],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[7]=un=Pe&65535|Be<<16,D[7]=Xn=Re&65535|Oe<<16,wr+=128,A-=128}return A}function de(T,D,$){var A=new Int32Array(8),L=new Int32Array(8),Q=new Uint8Array(256),te,fe=$;for(A[0]=1779033703,A[1]=3144134277,A[2]=1013904242,A[3]=2773480762,A[4]=1359893119,A[5]=2600822924,A[6]=528734635,A[7]=1541459225,L[0]=4089235720,L[1]=2227873595,L[2]=4271175723,L[3]=1595750129,L[4]=2917565137,L[5]=725511199,L[6]=4215389547,L[7]=327033209,ne(A,L,D,$),$%=128,te=0;te<$;te++)Q[te]=D[fe-$+te];for(Q[$]=128,$=256-128*($<112?1:0),Q[$-9]=0,m(Q,$-8,fe/536870912|0,fe<<3),ne(A,L,Q,$),te=0;te<8;te++)m(T,8*te,A[te],L[te]);return 0}function ge(T,D){var $=n(),A=n(),L=n(),Q=n(),te=n(),fe=n(),_e=n(),je=n(),Ve=n();ye($,T[1],T[0]),ye(Ve,D[1],D[0]),we($,$,Ve),se(A,T[0],T[1]),se(Ve,D[0],D[1]),we(A,A,Ve),we(L,T[3],D[3]),we(L,L,c),we(Q,T[2],D[2]),se(Q,Q,Q),ye(te,A,$),ye(fe,Q,L),se(_e,Q,L),se(je,A,$),we(T[0],te,fe),we(T[1],je,_e),we(T[2],_e,fe),we(T[3],te,je)}function Ue(T,D,$){var A;for(A=0;A<4;A++)j(T[A],D[A],$)}function Fe(T,D){var $=n(),A=n(),L=n();Ee(L,D[2]),we($,D[0],L),we(A,D[1],L),K(T,A),T[31]^=re($)<<7}function Ae(T,D,$){var A,L;for(G(T[0],a),G(T[1],s),G(T[2],s),G(T[3],a),L=255;L>=0;--L)A=$[L/8|0]>>(L&7)&1,Ue(T,D,A),ge(D,T),ge(T,T),Ue(T,D,A)}function tt(T,D){var $=[n(),n(),n(),n()];G($[0],f),G($[1],h),G($[2],s),we($[3],f,h),Ae(T,$,D)}function mt(T,D,$){var A=new Uint8Array(64),L=[n(),n(),n(),n()],Q;for($||r(D,32),de(A,D,32),A[0]&=248,A[31]&=127,A[31]|=64,tt(L,A),Fe(T,L),Q=0;Q<32;Q++)D[Q+32]=T[Q];return 0}var wn=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Kt(T,D){var $,A,L,Q;for(A=63;A>=32;--A){for($=0,L=A-32,Q=A-12;L>4)*wn[L],$=D[L]>>8,D[L]&=255;for(L=0;L<32;L++)D[L]-=$*wn[L];for(A=0;A<32;A++)D[A+1]+=D[A]>>8,T[A]=D[A]&255}function _n(T){var D=new Float64Array(64),$;for($=0;$<64;$++)D[$]=T[$];for($=0;$<64;$++)T[$]=0;Kt(T,D)}function $i(T,D,$,A){var L=new Uint8Array(64),Q=new Uint8Array(64),te=new Uint8Array(64),fe,_e,je=new Float64Array(64),Ve=[n(),n(),n(),n()];de(L,A,32),L[0]&=248,L[31]&=127,L[31]|=64;var ct=$+64;for(fe=0;fe<$;fe++)T[64+fe]=D[fe];for(fe=0;fe<32;fe++)T[32+fe]=L[32+fe];for(de(te,T.subarray(32),$+32),_n(te),tt(Ve,te),Fe(T,Ve),fe=32;fe<64;fe++)T[fe]=A[fe];for(de(Q,T,$+64),_n(Q),fe=0;fe<64;fe++)je[fe]=0;for(fe=0;fe<32;fe++)je[fe]=te[fe];for(fe=0;fe<32;fe++)for(_e=0;_e<32;_e++)je[fe+_e]+=Q[fe]*L[_e];return Kt(T.subarray(32),je),ct}function xr(T,D){var $=n(),A=n(),L=n(),Q=n(),te=n(),fe=n(),_e=n();return G(T[2],s),ie(T[1],D),He(L,T[1]),we(Q,L,l),ye(L,L,T[2]),se(Q,T[2],Q),He(te,Q),He(fe,te),we(_e,fe,te),we($,_e,L),we($,$,Q),it($,$),we($,$,L),we($,$,Q),we($,$,Q),we(T[0],$,Q),He(A,T[0]),we(A,A,Q),Y(A,L)&&we(T[0],T[0],p),He(A,T[0]),we(A,A,Q),Y(A,L)?-1:(re(T[0])===D[31]>>7&&ye(T[0],a,T[0]),we(T[3],T[0],T[1]),0)}function mi(T,D,$,A){var L,Q=new Uint8Array(32),te=new Uint8Array(64),fe=[n(),n(),n(),n()],_e=[n(),n(),n(),n()];if($<64||xr(_e,A))return-1;for(L=0;L<$;L++)T[L]=D[L];for(L=0;L<32;L++)T[L+32]=A[L];if(de(te,T,$),_n(te),Ae(fe,_e,te),tt(_e,D.subarray(32)),ge(fe,_e),Fe(Q,fe),$-=64,w(D,0,Q,0)){for(L=0;L<$;L++)T[L]=0;return-1}for(L=0;L<$;L++)T[L]=D[L+64];return $}var ur=32,ai=24,vi=32,Dr=16,Zi=32,vo=32,yi=32,$r=32,_a=32,_t=ai,hn=vi,Sn=Dr,Gn=64,lr=32,Xr=64,yo=32,Xl=64;t.lowlevel={crypto_core_hsalsa20:E,crypto_stream_xor:B,crypto_stream:N,crypto_stream_salsa20_xor:P,crypto_stream_salsa20:M,crypto_onetimeauth:W,crypto_onetimeauth_verify:ee,crypto_verify_16:b,crypto_verify_32:w,crypto_secretbox:Z,crypto_secretbox_open:q,crypto_scalarmult:ke,crypto_scalarmult_base:Le,crypto_box_beforenm:me,crypto_box_afternm:yt,crypto_box:Ft,crypto_box_open:yn,crypto_box_keypair:De,crypto_hash:de,crypto_sign:$i,crypto_sign_keypair:mt,crypto_sign_open:mi,crypto_secretbox_KEYBYTES:ur,crypto_secretbox_NONCEBYTES:ai,crypto_secretbox_ZEROBYTES:vi,crypto_secretbox_BOXZEROBYTES:Dr,crypto_scalarmult_BYTES:Zi,crypto_scalarmult_SCALARBYTES:vo,crypto_box_PUBLICKEYBYTES:yi,crypto_box_SECRETKEYBYTES:$r,crypto_box_BEFORENMBYTES:_a,crypto_box_NONCEBYTES:_t,crypto_box_ZEROBYTES:hn,crypto_box_BOXZEROBYTES:Sn,crypto_sign_BYTES:Gn,crypto_sign_PUBLICKEYBYTES:lr,crypto_sign_SECRETKEYBYTES:Xr,crypto_sign_SEEDBYTES:yo,crypto_hash_BYTES:Xl,gf:n,D:l,L:wn,pack25519:K,unpack25519:ie,M:we,A:se,S:He,Z:ye,pow2523:it,add:ge,set25519:G,modL:Kt,scalarmult:Ae,scalarbase:tt};function Cf(T,D){if(T.length!==ur)throw new Error("bad key size");if(D.length!==ai)throw new Error("bad nonce size")}function oe(T,D){if(T.length!==yi)throw new Error("bad public key size");if(D.length!==$r)throw new Error("bad secret key size")}function ue(){for(var T=0;T=0},t.sign.keyPair=function(){var T=new Uint8Array(lr),D=new Uint8Array(Xr);return mt(T,D),{publicKey:T,secretKey:D}},t.sign.keyPair.fromSecretKey=function(T){if(ue(T),T.length!==Xr)throw new Error("bad secret key size");for(var D=new Uint8Array(lr),$=0;$"u"?typeof Buffer.from<"u"?(t.encodeBase64=function(r){return Buffer.from(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(Buffer.from(r,"base64"),0))}):(t.encodeBase64=function(r){return new Buffer(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0))}):(t.encodeBase64=function(r){var i,o=[],a=r.length;for(i=0;i{let n=!1;const r=e.map(i=>{const o=GN(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{const{scope:h,children:p,...m}=f,y=h?.[e]?.[u]||s,b=v.useMemo(()=>m,Object.values(m));return I.jsx(y.Provider,{value:b,children:p})};l.displayName=o+"Provider";function c(f,h){const p=h?.[e]?.[u]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=s?.[e]||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,tXe(i,...t)]}function tXe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const f=u(o)[`__scope${l}`];return{...s,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function YN(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}var nXe=globalThis?.document?v.useLayoutEffect:()=>{},rXe=zx[" useInsertionEffect ".trim().toString()]||nXe;function iXe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=oXe({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:i;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,r])}const l=v.useCallback(c=>{if(s){const f=aXe(c)?c(e):c;f!==e&&a.current?.(f)}else o(c)},[s,e,o,a]);return[u,l]}function oXe({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),o=v.useRef(t);return rXe(()=>{o.current=t},[t]),v.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function aXe(e){return typeof e=="function"}function sXe(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var uXe=globalThis?.document?v.useLayoutEffect:()=>{};function lXe(e){const[t,n]=v.useState(void 0);return uXe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function ZN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cXe(...e){return t=>{let n=!1;const r=e.map(i=>{const o=ZN(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{};function dXe(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var nX=e=>{const{present:t,children:n}=e,r=hXe(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=fXe(r.ref,pXe(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};nX.displayName="Presence";function hXe(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=dXe(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Xy(r.current);o.current=s==="mounted"?l:"none"},[s]),XN(()=>{const l=r.current,c=i.current;if(c!==e){const h=o.current,p=Xy(l);e?u("MOUNT"):p==="none"||l?.display==="none"?u("UNMOUNT"):u(c&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),XN(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,f=p=>{const y=Xy(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(o.current=Xy(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Xy(e){return e?.animationName||"none"}function pXe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gXe(e){const t=mXe(e),n=v.forwardRef((r,i)=>{const{children:o,...a}=r,s=v.Children.toArray(o),u=s.find(yXe);if(u){const l=u.props.children,c=s.map(f=>f===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return I.jsx(t,{...a,ref:i,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return I.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function mXe(e){const t=v.forwardRef((n,r)=>{const{children:i,...o}=n;if(v.isValidElement(i)){const a=xXe(i),s=bXe(o,i.props);return i.type!==v.Fragment&&(s.ref=r?eX(r,a):a),v.cloneElement(i,s)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vXe=Symbol("radix.slottable");function yXe(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vXe}function bXe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const u=o(...s);return i(...s),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function xXe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wXe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],e8=wXe.reduce((e,t)=>{const n=gXe(`Primitive.${t}`),r=v.forwardRef((i,o)=>{const{asChild:a,...s}=i,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(u,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),W2="Checkbox",[_Xe,Wtt]=eXe(W2),[SXe,t8]=_Xe(W2);function CXe(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:o,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:f}=e,[h,p]=iXe({prop:n,defaultProp:i??!1,onChange:u,caller:W2}),[m,y]=v.useState(null),[b,w]=v.useState(null),x=v.useRef(!1),S=m?!!a||!!m.closest("form"):!0,O={checked:h,disabled:o,setChecked:p,control:m,setControl:y,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Cl(i)?!1:i,isFormControl:S,bubbleInput:b,setBubbleInput:w};return I.jsx(SXe,{scope:t,...O,children:AXe(f)?f(O):r})}var rX="CheckboxTrigger",iX=v.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:o,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:p,bubbleInput:m}=t8(rX,e),y=tX(i,c),b=v.useRef(u);return v.useEffect(()=>{const w=o?.form;if(w){const x=()=>f(b.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[o,f]),I.jsx(e8.button,{type:"button",role:"checkbox","aria-checked":Cl(u)?"mixed":u,"aria-required":l,"data-state":uX(u),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:y,onKeyDown:YN(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:YN(n,w=>{f(x=>Cl(x)?!0:!x),m&&p&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})})});iX.displayName=rX;var EXe=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...f}=e;return I.jsx(CXe,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:l,name:r,form:c,value:u,internal_do_not_use_render:({isFormControl:h})=>I.jsxs(I.Fragment,{children:[I.jsx(iX,{...f,ref:t,__scopeCheckbox:n}),h&&I.jsx(sX,{__scopeCheckbox:n})]})})});EXe.displayName=W2;var oX="CheckboxIndicator",OXe=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=t8(oX,n);return I.jsx(nX,{present:r||Cl(o.checked)||o.checked===!0,children:I.jsx(e8.span,{"data-state":uX(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});OXe.displayName=oX;var aX="CheckboxBubbleInput",sX=v.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:f,bubbleInput:h,setBubbleInput:p}=t8(aX,e),m=tX(n,p),y=sXe(o),b=lXe(r);v.useEffect(()=>{const x=h;if(!x)return;const S=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(S,"checked").set,C=!i.current;if(y!==o&&E){const P=new Event("click",{bubbles:C});x.indeterminate=Cl(o),E.call(x,Cl(o)?!1:o),x.dispatchEvent(P)}},[h,y,o,i]);const w=v.useRef(Cl(o)?!1:o);return I.jsx(e8.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??w.current,required:s,disabled:u,name:l,value:c,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});sX.displayName=aX;function AXe(e){return typeof e=="function"}function Cl(e){return e==="indeterminate"}function uX(e){return Cl(e)?"indeterminate":e?"checked":"unchecked"}export{Sve as $,UQe as A,Gi as B,bQe as C,tme as D,SQe as E,yQe as F,pT as G,F as H,eQe as I,DQe as J,MXe as K,PQe as L,FQe as M,QXe as N,kXe as O,$Xe as P,MQe as Q,vQe as R,Pl as S,kQe as T,XXe as U,IXe as V,yve as W,wve as X,_ve as Y,Cz as Z,QQe as _,LXe as a,Vet as a$,Cve as a0,bve as a1,xve as a2,OJe as a3,YQe as a4,AJe as a5,vJe as a6,yJe as a7,wJe as a8,_Je as a9,YXe as aA,oQe as aB,KXe as aC,JXe as aD,uQe as aE,sQe as aF,tQe as aG,aQe as aH,WXe as aI,UXe as aJ,ZXe as aK,gQe as aL,pQe as aM,dQe as aN,mQe as aO,rQe as aP,HXe as aQ,$et as aR,iJe as aS,wet as aT,iQe as aU,cQe as aV,Net as aW,Let as aX,Fet as aY,NXe as aZ,zet as a_,CJe as aa,HQe as ab,SJe as ac,eJe as ad,xJe as ae,EJe as af,gJe as ag,mJe as ah,bJe as ai,fJe as aj,cJe as ak,dJe as al,qXe as am,kJe as an,obe as ao,abe as ap,MJe as aq,IJe as ar,RJe as as,DJe as at,RXe as au,VXe as av,GXe as aw,lQe as ax,jXe as ay,get as az,Use as b,aet as b$,Wet as b0,Het as b1,KQe as b2,ett as b3,ZQe as b4,ttt as b5,qet as b6,Ket as b7,Get as b8,Zet as b9,zJe as bA,Met as bB,Tet as bC,net as bD,Pet as bE,dtt as bF,htt as bG,ptt as bH,dHe as bI,yHe as bJ,pet as bK,NJe as bL,BJe as bM,FJe as bN,rtt as bO,Ui as bP,mtt as bQ,vtt as bR,tJe as bS,nJe as bT,Ett as bU,oet as bV,Ott as bW,det as bX,Oet as bY,xet as bZ,tet as b_,Xet as ba,Jet as bb,Qet as bc,ntt as bd,Yet as be,ott as bf,GQe as bg,ltt as bh,ctt as bi,stt as bj,utt as bk,I3 as bl,Sf as bm,WJe as bn,jet as bo,Bet as bp,s5 as bq,u5 as br,mje as bs,Js as bt,wf as bu,rp as bv,itt as bw,LJe as bx,UJe as by,het as bz,dn as c,lJe as c$,fet as c0,ket as c1,QJe as c2,ytt as c3,btt as c4,Stt as c5,YJe as c6,GJe as c7,zXe as c8,hQe as c9,vet as cA,Cet as cB,yet as cC,cet as cD,qJe as cE,KJe as cF,Ret as cG,Ja as cH,br as cI,uet as cJ,xtt as cK,wtt as cL,sJe as cM,ef as cN,$Je as cO,Utt as cP,ztt as cQ,_et as cR,JJe as cS,ret as cT,met as cU,eet as cV,Eet as cW,set as cX,EXe as cY,OXe as cZ,XQe as c_,nQe as ca,BXe as cb,fQe as cc,Ptt as cd,ktt as ce,bet as cf,Ttt as cg,ZJe as ch,jJe as ci,Itt as cj,Ntt as ck,jtt as cl,Btt as cm,Ltt as cn,Ftt as co,Rtt as cp,Dtt as cq,$tt as cr,rJe as cs,aJe as ct,Aet as cu,_tt as cv,Ctt as cw,Nce as cx,zce as cy,Mce as cz,wm as d,qQe as d0,JQe as d1,uJe as d2,iet as d3,DXe as d4,HJe as d5,iHe as d6,oJe as d7,XJe as d8,VJe as d9,EQe as e,eA as f,TQe as g,AQe as h,NQe as i,I as j,Gr as k,LQe as l,CQe as m,xQe as n,wQe as o,$Qe as p,IQe as q,v as r,jQe as s,FXe as t,Sj as u,BQe as v,TXe as w,zQe as x,WQe as y,_Qe as z}; +`,o.map=[t,e.line],!0}function PYe(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let u=i-s;if(u<3)return!1;const l=e.src.slice(s,i),c=e.src.slice(i,o);if(a===96&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let f=t,h=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],i=4)&&(i=e.skipChars(i,a),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const s=[],u=[],l=[],c=[],f=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m=o)break;if(e.src.charCodeAt(i++)===62&&!S){let E=e.sCount[m]+1,C,P;e.src.charCodeAt(i)===32?(i++,E++,P=!1,C=!0):e.src.charCodeAt(i)===9?(C=!0,(e.bsCount[m]+E)%4===3?(i++,E++,P=!1):P=!0):C=!1;let M=E;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i=o,u.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(C?1:0),l.push(e.sCount[m]),e.sCount[m]=M-E,c.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let O=!1;for(let E=0,C=f.length;E";const w=[t,0];b.map=w,e.md.block.tokenize(e,t,m);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=a,e.parentType=h,w[1]=e.line;for(let S=0;S=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]=e.blkIndent&&(c=!0);let f,h,p;if((p=UN(e,u))>=0){if(f=!0,a=e.bMarks[u]+e.tShift[u],h=Number(e.src.slice(a,p-1)),c&&h!==1)return!1}else if((p=BN(e,u))>=0)f=!1;else return!1;if(c&&e.skipSpaces(p)>=e.eMarks[u])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),y=e.tokens.length;f?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const b=[u,0];s.map=b,s.markup=String.fromCharCode(m);let w=!1;const x=e.md.block.ruler.getRules("list"),S=e.parentType;for(e.parentType="list";u=i?P=1:P=E-O,P>4&&(P=1);const M=O+P;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const N=[u,0];s.map=N,f&&(s.info=e.src.slice(a,p-1));const B=e.tight,V=e.tShift[u],W=e.sCount[u],ee=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=M,e.tight=!0,e.tShift[u]=C-e.bMarks[u],e.sCount[u]=E,C>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||w)&&(l=!1),w=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ee,e.tShift[u]=V,e.sCount[u]=W,e.tight=B,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),u=e.line,N[1]=u,u>=n||e.sCount[u]=4)break;let Z=!1;for(let q=0,G=x.length;q=4||e.src.charCodeAt(i)!==91)return!1;function s(x){const S=e.lineMax;if(x>=S||e.isEmpty(x))return null;let O=!1;if(e.sCount[x]-e.blkIndent>3&&(O=!0),e.sCount[x]<0&&(O=!0),!O){const P=e.md.block.ruler.getRules("reference"),M=e.parentType;e.parentType="reference";let N=!1;for(let B=0,V=P.length;B"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:b,href:f}),e.line=a),!0):!1}const $Ye=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],IYe="[a-zA-Z_:][a-zA-Z0-9:._-]*",NYe="[^\"'=<>`\\x00-\\x20]+",LYe="'[^']*'",FYe='"[^"]*"',jYe="(?:"+NYe+"|"+LYe+"|"+FYe+")",BYe="(?:\\s+"+IYe+"(?:\\s*=\\s*"+jYe+")?)",LZ="<[A-Za-z][A-Za-z0-9\\-]*"+BYe+"*\\s*\\/?>",FZ="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",UYe="",zYe="<[?][\\s\\S]*?[?]>",WYe="]*>",VYe="",HYe=new RegExp("^(?:"+LZ+"|"+FZ+"|"+UYe+"|"+zYe+"|"+WYe+"|"+VYe+")"),qYe=new RegExp("^(?:"+LZ+"|"+FZ+")"),ed=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(qYe.source+"\\s*$"),/^$/,!1]];function KYe(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i6||ii&&qn(e.src.charCodeAt(u-1))&&(o=u),e.line=t+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[];const f=e.push("heading_close","h"+String(s),-1);return f.markup="########".slice(0,s),!0}function YYe(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p3||e.sCount[o]<0)continue;let l=!1;for(let c=0,f=r.length;c=n||e.sCount[a]=o){e.line=n;break}const u=e.line;let l=!1;for(let c=0;c=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};nv.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(JYe);if(!i)return!1;const o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const u=e.md.normalizeLink(s);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="linkify",l.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=s.length-o.length,!0}function tZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Q5[e.charCodeAt(0)]=1});function nZe(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);i<256&&Q5[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function rZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=a?"strong_open":"em_open",u.tag=a?"strong":"em",u.nesting=1,u.markup=a?s+s:s,u.content="";const l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function sZe(e){const t=e.tokens_meta,n=e.tokens_meta.length;WN(e,e.delimiters);for(let r=0;r=f)return!1;if(u=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?m=i.pos:a="",u=m;m=f||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(typeof e.env.references>"u")return!1;if(m=0?r=e.src.slice(u,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),o=e.env.references[B2(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const y=e.push("link_open","a",1),b=[["href",a]];y.attrs=b,s&&b.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=f,!0}function lZe(e,t){let n,r,i,o,a,s,u,l,c="";const f=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o=h)return!1;for(l=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),l=o;o=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o=0?i=e.src.slice(l,o++):o=m+1):o=m+1,i||(i=e.src.slice(p,m)),a=e.env.references[B2(i)],!a)return e.pos=f,!1;c=a.href,u=a.title}if(!t){r=e.src.slice(p,m);const y=[];e.md.inline.parse(r,e.md,e.env,y);const b=e.push("image","img",0),w=[["src",c],["alt",""]];b.attrs=w,b.children=y,b.content=r,u&&w.push(["title",u])}return e.pos=o,e.posMax=h,!0}const cZe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,fZe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function dZe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(fZe.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(cZe.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function hZe(e){return/^\s]/i.test(e)}function pZe(e){return/^<\/a\s*>/i.test(e)}function gZe(e){const t=e|32;return t>=97&&t<=122}function mZe(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!gZe(i))return!1;const o=e.src.slice(r).match(HYe);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],hZe(a.content)&&e.linkLevel++,pZe(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const vZe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,yZe=/^&([a-z][a-z0-9]{1,31});/i;function bZe(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(vZe);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Z5(a)?jx(a):jx(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(yZe);if(o){const a=RZ(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function VN(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;au;l-=o[l]+1){const f=e[l];if(f.marker===s.marker&&f.open&&f.end<0){let h=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+p,o[l]=p,s.open=!1,f.end=a,f.close=!1,c=-1,i=-2;break}}}c!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function xZe(e){const t=e.tokens_meta,n=e.tokens_meta.length;VN(e.delimiters);for(let r=0;r0&&r++,i[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos};rv.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};rv.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function K4(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function z2(e){return Object.prototype.toString.call(e)}function SZe(e){return z2(e)==="[object String]"}function CZe(e){return z2(e)==="[object Object]"}function EZe(e){return z2(e)==="[object RegExp]"}function HN(e){return z2(e)==="[object Function]"}function OZe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const UZ={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function AZe(e){return Object.keys(e||{}).reduce(function(t,n){return t||UZ.hasOwnProperty(n)},!1)}const PZe={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kZe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",TZe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function MZe(e){e.__index__=-1,e.__text_cache__=""}function RZe(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qN(){return function(e,t){t.normalize(e)}}function Bx(e){const t=e.re=_Ze(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kZe),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(e.__schemas__).forEach(function(s){const u=e.__schemas__[s];if(u===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,CZe(u)){EZe(u.validate)?l.validate=RZe(u.validate):HN(u.validate)?l.validate=u.validate:o(s,u),HN(u.normalize)?l.normalize=u.normalize:u.normalize?o(s,u):l.normalize=qN();return}if(SZe(u)){i.push(s);return}o(s,u)}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:qN()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(OZe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),MZe(e)}function DZe(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function G4(e,t){const n=new DZe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Vo(e,t){if(!(this instanceof Vo))return new Vo(e,t);t||AZe(e)&&(t=e,e={}),this.__opts__=K4({},UZ,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=K4({},PZe,e),this.__compiled__={},this.__tlds__=TZe,this.__tlds_replaced__=!1,this.re={},Bx(this)}Vo.prototype.add=function(t,n){return this.__schemas__[t]=n,Bx(this),this};Vo.prototype.set=function(t){return this.__opts__=K4(this.__opts__,t),this};Vo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,i,o,a,s,u,l,c;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],u.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&(i=t.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Vo.prototype.pretest=function(t){return this.re.pretest.test(t)};Vo.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Vo.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(G4(this,r)),r=this.__last_index__);let i=r?t.slice(r):t;for(;this.test(i);)n.push(G4(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Vo.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,G4(this,0)):null};Vo.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Bx(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Bx(this),this)};Vo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Vo.prototype.onCompile=function(){};const Bd=2147483647,xs=36,J5=1,pm=26,$Ze=38,IZe=700,zZ=72,WZ=128,VZ="-",NZe=/^xn--/,LZe=/[^\0-\x7F]/,FZe=/[\x2E\u3002\uFF0E\uFF61]/g,jZe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oC=xs-J5,ws=Math.floor,aC=String.fromCharCode;function Ju(e){throw new RangeError(jZe[e])}function BZe(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function HZ(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(FZe,".");const i=e.split("."),o=BZe(i,t).join(".");return r+o}function qZ(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),zZe=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:xs},KN=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},KZ=function(e,t,n){let r=0;for(e=n?ws(e/IZe):e>>1,e+=ws(e/t);e>oC*pm>>1;r+=xs)e=ws(e/oC);return ws(r+(oC+1)*e/(e+$Ze))},GZ=function(e){const t=[],n=e.length;let r=0,i=WZ,o=zZ,a=e.lastIndexOf(VZ);a<0&&(a=0);for(let s=0;s=128&&Ju("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Ju("invalid-input");const h=zZe(e.charCodeAt(s++));h>=xs&&Ju("invalid-input"),h>ws((Bd-r)/c)&&Ju("overflow"),r+=h*c;const p=f<=o?J5:f>=o+pm?pm:f-o;if(hws(Bd/m)&&Ju("overflow"),c*=m}const l=t.length+1;o=KZ(r-u,l,u==0),ws(r/l)>Bd-i&&Ju("overflow"),i+=ws(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},YZ=function(e){const t=[];e=qZ(e);const n=e.length;let r=WZ,i=0,o=zZ;for(const u of e)u<128&&t.push(aC(u));const a=t.length;let s=a;for(a&&t.push(VZ);s=r&&cws((Bd-i)/l)&&Ju("overflow"),i+=(u-r)*l,r=u;for(const c of e)if(cBd&&Ju("overflow"),c===r){let f=i;for(let h=xs;;h+=xs){const p=h<=o?J5:h>=o+pm?pm:h-o;if(f=0))try{t.hostname=ZZ.toASCII(t.hostname)}catch{}return tv(q5(t))}function JZe(e){const t=K5(e,!0);if(t.hostname&&(!t.protocol||XZ.indexOf(t.protocol)>=0))try{t.hostname=ZZ.toUnicode(t.hostname)}catch{}return Ph(q5(t),Ph.defaultChars+"%")}function Ja(e,t){if(!(this instanceof Ja))return new Ja(e,t);t||Y5(e)||(t=e||{},e="default"),this.inline=new rv,this.block=new U2,this.core=new X5,this.renderer=new ap,this.linkify=new Vo,this.validateLink=XZe,this.normalizeLink=QZe,this.normalizeLinkText=JZe,this.utils=tYe,this.helpers=j2({},oYe),this.options={},this.configure(e),t&&this.set(t)}Ja.prototype.set=function(e){return j2(this.options,e),this};Ja.prototype.configure=function(e){const t=this;if(Y5(e)){const n=e;if(e=GZe[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Ja.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Ja.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Ja.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ja.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Ja.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ja.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Ja.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var QZ={exports:{}};(function(e){(function(t){var n=function(T){var D,$=new Float64Array(16);if(T)for(D=0;D>24&255,T[D+1]=$>>16&255,T[D+2]=$>>8&255,T[D+3]=$&255,T[D+4]=A>>24&255,T[D+5]=A>>16&255,T[D+6]=A>>8&255,T[D+7]=A&255}function y(T,D,$,A,L){var Q,te=0;for(Q=0;Q>>8)-1}function b(T,D,$,A){return y(T,D,$,A,16)}function w(T,D,$,A){return y(T,D,$,A,32)}function x(T,D,$,A){for(var L=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Q=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,te=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,fe=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,_e=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,je=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,Ve=D[0]&255|(D[1]&255)<<8|(D[2]&255)<<16|(D[3]&255)<<24,ct=D[4]&255|(D[5]&255)<<8|(D[6]&255)<<16|(D[7]&255)<<24,Ie=D[8]&255|(D[9]&255)<<8|(D[10]&255)<<16|(D[11]&255)<<24,nt=D[12]&255|(D[13]&255)<<8|(D[14]&255)<<16|(D[15]&255)<<24,bt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Ot=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,pt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ht=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,xt=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,wt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Qe=L,ut=Q,Xe=te,Ne=fe,qe=_e,Ge=je,pe=Ve,he=ct,Re=Ie,Oe=nt,Pe=bt,Be=Ot,vt=pt,jt=ht,Bt=xt,It=wt,J,Zt=0;Zt<20;Zt+=2)J=Qe+vt|0,qe^=J<<7|J>>>25,J=qe+Qe|0,Re^=J<<9|J>>>23,J=Re+qe|0,vt^=J<<13|J>>>19,J=vt+Re|0,Qe^=J<<18|J>>>14,J=Ge+ut|0,Oe^=J<<7|J>>>25,J=Oe+Ge|0,jt^=J<<9|J>>>23,J=jt+Oe|0,ut^=J<<13|J>>>19,J=ut+jt|0,Ge^=J<<18|J>>>14,J=Pe+pe|0,Bt^=J<<7|J>>>25,J=Bt+Pe|0,Xe^=J<<9|J>>>23,J=Xe+Bt|0,pe^=J<<13|J>>>19,J=pe+Xe|0,Pe^=J<<18|J>>>14,J=It+Be|0,Ne^=J<<7|J>>>25,J=Ne+It|0,he^=J<<9|J>>>23,J=he+Ne|0,Be^=J<<13|J>>>19,J=Be+he|0,It^=J<<18|J>>>14,J=Qe+Ne|0,ut^=J<<7|J>>>25,J=ut+Qe|0,Xe^=J<<9|J>>>23,J=Xe+ut|0,Ne^=J<<13|J>>>19,J=Ne+Xe|0,Qe^=J<<18|J>>>14,J=Ge+qe|0,pe^=J<<7|J>>>25,J=pe+Ge|0,he^=J<<9|J>>>23,J=he+pe|0,qe^=J<<13|J>>>19,J=qe+he|0,Ge^=J<<18|J>>>14,J=Pe+Oe|0,Be^=J<<7|J>>>25,J=Be+Pe|0,Re^=J<<9|J>>>23,J=Re+Be|0,Oe^=J<<13|J>>>19,J=Oe+Re|0,Pe^=J<<18|J>>>14,J=It+Bt|0,vt^=J<<7|J>>>25,J=vt+It|0,jt^=J<<9|J>>>23,J=jt+vt|0,Bt^=J<<13|J>>>19,J=Bt+jt|0,It^=J<<18|J>>>14;Qe=Qe+L|0,ut=ut+Q|0,Xe=Xe+te|0,Ne=Ne+fe|0,qe=qe+_e|0,Ge=Ge+je|0,pe=pe+Ve|0,he=he+ct|0,Re=Re+Ie|0,Oe=Oe+nt|0,Pe=Pe+bt|0,Be=Be+Ot|0,vt=vt+pt|0,jt=jt+ht|0,Bt=Bt+xt|0,It=It+wt|0,T[0]=Qe>>>0&255,T[1]=Qe>>>8&255,T[2]=Qe>>>16&255,T[3]=Qe>>>24&255,T[4]=ut>>>0&255,T[5]=ut>>>8&255,T[6]=ut>>>16&255,T[7]=ut>>>24&255,T[8]=Xe>>>0&255,T[9]=Xe>>>8&255,T[10]=Xe>>>16&255,T[11]=Xe>>>24&255,T[12]=Ne>>>0&255,T[13]=Ne>>>8&255,T[14]=Ne>>>16&255,T[15]=Ne>>>24&255,T[16]=qe>>>0&255,T[17]=qe>>>8&255,T[18]=qe>>>16&255,T[19]=qe>>>24&255,T[20]=Ge>>>0&255,T[21]=Ge>>>8&255,T[22]=Ge>>>16&255,T[23]=Ge>>>24&255,T[24]=pe>>>0&255,T[25]=pe>>>8&255,T[26]=pe>>>16&255,T[27]=pe>>>24&255,T[28]=he>>>0&255,T[29]=he>>>8&255,T[30]=he>>>16&255,T[31]=he>>>24&255,T[32]=Re>>>0&255,T[33]=Re>>>8&255,T[34]=Re>>>16&255,T[35]=Re>>>24&255,T[36]=Oe>>>0&255,T[37]=Oe>>>8&255,T[38]=Oe>>>16&255,T[39]=Oe>>>24&255,T[40]=Pe>>>0&255,T[41]=Pe>>>8&255,T[42]=Pe>>>16&255,T[43]=Pe>>>24&255,T[44]=Be>>>0&255,T[45]=Be>>>8&255,T[46]=Be>>>16&255,T[47]=Be>>>24&255,T[48]=vt>>>0&255,T[49]=vt>>>8&255,T[50]=vt>>>16&255,T[51]=vt>>>24&255,T[52]=jt>>>0&255,T[53]=jt>>>8&255,T[54]=jt>>>16&255,T[55]=jt>>>24&255,T[56]=Bt>>>0&255,T[57]=Bt>>>8&255,T[58]=Bt>>>16&255,T[59]=Bt>>>24&255,T[60]=It>>>0&255,T[61]=It>>>8&255,T[62]=It>>>16&255,T[63]=It>>>24&255}function S(T,D,$,A){for(var L=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Q=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,te=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,fe=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,_e=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,je=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,Ve=D[0]&255|(D[1]&255)<<8|(D[2]&255)<<16|(D[3]&255)<<24,ct=D[4]&255|(D[5]&255)<<8|(D[6]&255)<<16|(D[7]&255)<<24,Ie=D[8]&255|(D[9]&255)<<8|(D[10]&255)<<16|(D[11]&255)<<24,nt=D[12]&255|(D[13]&255)<<8|(D[14]&255)<<16|(D[15]&255)<<24,bt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Ot=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,pt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ht=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,xt=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,wt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Qe=L,ut=Q,Xe=te,Ne=fe,qe=_e,Ge=je,pe=Ve,he=ct,Re=Ie,Oe=nt,Pe=bt,Be=Ot,vt=pt,jt=ht,Bt=xt,It=wt,J,Zt=0;Zt<20;Zt+=2)J=Qe+vt|0,qe^=J<<7|J>>>25,J=qe+Qe|0,Re^=J<<9|J>>>23,J=Re+qe|0,vt^=J<<13|J>>>19,J=vt+Re|0,Qe^=J<<18|J>>>14,J=Ge+ut|0,Oe^=J<<7|J>>>25,J=Oe+Ge|0,jt^=J<<9|J>>>23,J=jt+Oe|0,ut^=J<<13|J>>>19,J=ut+jt|0,Ge^=J<<18|J>>>14,J=Pe+pe|0,Bt^=J<<7|J>>>25,J=Bt+Pe|0,Xe^=J<<9|J>>>23,J=Xe+Bt|0,pe^=J<<13|J>>>19,J=pe+Xe|0,Pe^=J<<18|J>>>14,J=It+Be|0,Ne^=J<<7|J>>>25,J=Ne+It|0,he^=J<<9|J>>>23,J=he+Ne|0,Be^=J<<13|J>>>19,J=Be+he|0,It^=J<<18|J>>>14,J=Qe+Ne|0,ut^=J<<7|J>>>25,J=ut+Qe|0,Xe^=J<<9|J>>>23,J=Xe+ut|0,Ne^=J<<13|J>>>19,J=Ne+Xe|0,Qe^=J<<18|J>>>14,J=Ge+qe|0,pe^=J<<7|J>>>25,J=pe+Ge|0,he^=J<<9|J>>>23,J=he+pe|0,qe^=J<<13|J>>>19,J=qe+he|0,Ge^=J<<18|J>>>14,J=Pe+Oe|0,Be^=J<<7|J>>>25,J=Be+Pe|0,Re^=J<<9|J>>>23,J=Re+Be|0,Oe^=J<<13|J>>>19,J=Oe+Re|0,Pe^=J<<18|J>>>14,J=It+Bt|0,vt^=J<<7|J>>>25,J=vt+It|0,jt^=J<<9|J>>>23,J=jt+vt|0,Bt^=J<<13|J>>>19,J=Bt+jt|0,It^=J<<18|J>>>14;T[0]=Qe>>>0&255,T[1]=Qe>>>8&255,T[2]=Qe>>>16&255,T[3]=Qe>>>24&255,T[4]=Ge>>>0&255,T[5]=Ge>>>8&255,T[6]=Ge>>>16&255,T[7]=Ge>>>24&255,T[8]=Pe>>>0&255,T[9]=Pe>>>8&255,T[10]=Pe>>>16&255,T[11]=Pe>>>24&255,T[12]=It>>>0&255,T[13]=It>>>8&255,T[14]=It>>>16&255,T[15]=It>>>24&255,T[16]=pe>>>0&255,T[17]=pe>>>8&255,T[18]=pe>>>16&255,T[19]=pe>>>24&255,T[20]=he>>>0&255,T[21]=he>>>8&255,T[22]=he>>>16&255,T[23]=he>>>24&255,T[24]=Re>>>0&255,T[25]=Re>>>8&255,T[26]=Re>>>16&255,T[27]=Re>>>24&255,T[28]=Oe>>>0&255,T[29]=Oe>>>8&255,T[30]=Oe>>>16&255,T[31]=Oe>>>24&255}function O(T,D,$,A){x(T,D,$,A)}function E(T,D,$,A){S(T,D,$,A)}var C=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function P(T,D,$,A,L,Q,te){var fe=new Uint8Array(16),_e=new Uint8Array(64),je,Ve;for(Ve=0;Ve<16;Ve++)fe[Ve]=0;for(Ve=0;Ve<8;Ve++)fe[Ve]=Q[Ve];for(;L>=64;){for(O(_e,fe,te,C),Ve=0;Ve<64;Ve++)T[D+Ve]=$[A+Ve]^_e[Ve];for(je=1,Ve=8;Ve<16;Ve++)je=je+(fe[Ve]&255)|0,fe[Ve]=je&255,je>>>=8;L-=64,D+=64,A+=64}if(L>0)for(O(_e,fe,te,C),Ve=0;Ve=64;){for(O(te,Q,L,C),_e=0;_e<64;_e++)T[D+_e]=te[_e];for(fe=1,_e=8;_e<16;_e++)fe=fe+(Q[_e]&255)|0,Q[_e]=fe&255,fe>>>=8;$-=64,D+=64}if($>0)for(O(te,Q,L,C),_e=0;_e<$;_e++)T[D+_e]=te[_e];return 0}function N(T,D,$,A,L){var Q=new Uint8Array(32);E(Q,A,L,C);for(var te=new Uint8Array(8),fe=0;fe<8;fe++)te[fe]=A[fe+16];return M(T,D,$,te,Q)}function B(T,D,$,A,L,Q,te){var fe=new Uint8Array(32);E(fe,Q,te,C);for(var _e=new Uint8Array(8),je=0;je<8;je++)_e[je]=Q[je+16];return P(T,D,$,A,L,_e,fe)}var V=function(T){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var D,$,A,L,Q,te,fe,_e;D=T[0]&255|(T[1]&255)<<8,this.r[0]=D&8191,$=T[2]&255|(T[3]&255)<<8,this.r[1]=(D>>>13|$<<3)&8191,A=T[4]&255|(T[5]&255)<<8,this.r[2]=($>>>10|A<<6)&7939,L=T[6]&255|(T[7]&255)<<8,this.r[3]=(A>>>7|L<<9)&8191,Q=T[8]&255|(T[9]&255)<<8,this.r[4]=(L>>>4|Q<<12)&255,this.r[5]=Q>>>1&8190,te=T[10]&255|(T[11]&255)<<8,this.r[6]=(Q>>>14|te<<2)&8191,fe=T[12]&255|(T[13]&255)<<8,this.r[7]=(te>>>11|fe<<5)&8065,_e=T[14]&255|(T[15]&255)<<8,this.r[8]=(fe>>>8|_e<<8)&8191,this.r[9]=_e>>>5&127,this.pad[0]=T[16]&255|(T[17]&255)<<8,this.pad[1]=T[18]&255|(T[19]&255)<<8,this.pad[2]=T[20]&255|(T[21]&255)<<8,this.pad[3]=T[22]&255|(T[23]&255)<<8,this.pad[4]=T[24]&255|(T[25]&255)<<8,this.pad[5]=T[26]&255|(T[27]&255)<<8,this.pad[6]=T[28]&255|(T[29]&255)<<8,this.pad[7]=T[30]&255|(T[31]&255)<<8};V.prototype.blocks=function(T,D,$){for(var A=this.fin?0:2048,L,Q,te,fe,_e,je,Ve,ct,Ie,nt,bt,Ot,pt,ht,xt,wt,Qe,ut,Xe,Ne=this.h[0],qe=this.h[1],Ge=this.h[2],pe=this.h[3],he=this.h[4],Re=this.h[5],Oe=this.h[6],Pe=this.h[7],Be=this.h[8],vt=this.h[9],jt=this.r[0],Bt=this.r[1],It=this.r[2],J=this.r[3],Zt=this.r[4],sn=this.r[5],un=this.r[6],Ut=this.r[7],ln=this.r[8],rn=this.r[9];$>=16;)L=T[D+0]&255|(T[D+1]&255)<<8,Ne+=L&8191,Q=T[D+2]&255|(T[D+3]&255)<<8,qe+=(L>>>13|Q<<3)&8191,te=T[D+4]&255|(T[D+5]&255)<<8,Ge+=(Q>>>10|te<<6)&8191,fe=T[D+6]&255|(T[D+7]&255)<<8,pe+=(te>>>7|fe<<9)&8191,_e=T[D+8]&255|(T[D+9]&255)<<8,he+=(fe>>>4|_e<<12)&8191,Re+=_e>>>1&8191,je=T[D+10]&255|(T[D+11]&255)<<8,Oe+=(_e>>>14|je<<2)&8191,Ve=T[D+12]&255|(T[D+13]&255)<<8,Pe+=(je>>>11|Ve<<5)&8191,ct=T[D+14]&255|(T[D+15]&255)<<8,Be+=(Ve>>>8|ct<<8)&8191,vt+=ct>>>5|A,Ie=0,nt=Ie,nt+=Ne*jt,nt+=qe*(5*rn),nt+=Ge*(5*ln),nt+=pe*(5*Ut),nt+=he*(5*un),Ie=nt>>>13,nt&=8191,nt+=Re*(5*sn),nt+=Oe*(5*Zt),nt+=Pe*(5*J),nt+=Be*(5*It),nt+=vt*(5*Bt),Ie+=nt>>>13,nt&=8191,bt=Ie,bt+=Ne*Bt,bt+=qe*jt,bt+=Ge*(5*rn),bt+=pe*(5*ln),bt+=he*(5*Ut),Ie=bt>>>13,bt&=8191,bt+=Re*(5*un),bt+=Oe*(5*sn),bt+=Pe*(5*Zt),bt+=Be*(5*J),bt+=vt*(5*It),Ie+=bt>>>13,bt&=8191,Ot=Ie,Ot+=Ne*It,Ot+=qe*Bt,Ot+=Ge*jt,Ot+=pe*(5*rn),Ot+=he*(5*ln),Ie=Ot>>>13,Ot&=8191,Ot+=Re*(5*Ut),Ot+=Oe*(5*un),Ot+=Pe*(5*sn),Ot+=Be*(5*Zt),Ot+=vt*(5*J),Ie+=Ot>>>13,Ot&=8191,pt=Ie,pt+=Ne*J,pt+=qe*It,pt+=Ge*Bt,pt+=pe*jt,pt+=he*(5*rn),Ie=pt>>>13,pt&=8191,pt+=Re*(5*ln),pt+=Oe*(5*Ut),pt+=Pe*(5*un),pt+=Be*(5*sn),pt+=vt*(5*Zt),Ie+=pt>>>13,pt&=8191,ht=Ie,ht+=Ne*Zt,ht+=qe*J,ht+=Ge*It,ht+=pe*Bt,ht+=he*jt,Ie=ht>>>13,ht&=8191,ht+=Re*(5*rn),ht+=Oe*(5*ln),ht+=Pe*(5*Ut),ht+=Be*(5*un),ht+=vt*(5*sn),Ie+=ht>>>13,ht&=8191,xt=Ie,xt+=Ne*sn,xt+=qe*Zt,xt+=Ge*J,xt+=pe*It,xt+=he*Bt,Ie=xt>>>13,xt&=8191,xt+=Re*jt,xt+=Oe*(5*rn),xt+=Pe*(5*ln),xt+=Be*(5*Ut),xt+=vt*(5*un),Ie+=xt>>>13,xt&=8191,wt=Ie,wt+=Ne*un,wt+=qe*sn,wt+=Ge*Zt,wt+=pe*J,wt+=he*It,Ie=wt>>>13,wt&=8191,wt+=Re*Bt,wt+=Oe*jt,wt+=Pe*(5*rn),wt+=Be*(5*ln),wt+=vt*(5*Ut),Ie+=wt>>>13,wt&=8191,Qe=Ie,Qe+=Ne*Ut,Qe+=qe*un,Qe+=Ge*sn,Qe+=pe*Zt,Qe+=he*J,Ie=Qe>>>13,Qe&=8191,Qe+=Re*It,Qe+=Oe*Bt,Qe+=Pe*jt,Qe+=Be*(5*rn),Qe+=vt*(5*ln),Ie+=Qe>>>13,Qe&=8191,ut=Ie,ut+=Ne*ln,ut+=qe*Ut,ut+=Ge*un,ut+=pe*sn,ut+=he*Zt,Ie=ut>>>13,ut&=8191,ut+=Re*J,ut+=Oe*It,ut+=Pe*Bt,ut+=Be*jt,ut+=vt*(5*rn),Ie+=ut>>>13,ut&=8191,Xe=Ie,Xe+=Ne*rn,Xe+=qe*ln,Xe+=Ge*Ut,Xe+=pe*un,Xe+=he*sn,Ie=Xe>>>13,Xe&=8191,Xe+=Re*Zt,Xe+=Oe*J,Xe+=Pe*It,Xe+=Be*Bt,Xe+=vt*jt,Ie+=Xe>>>13,Xe&=8191,Ie=(Ie<<2)+Ie|0,Ie=Ie+nt|0,nt=Ie&8191,Ie=Ie>>>13,bt+=Ie,Ne=nt,qe=bt,Ge=Ot,pe=pt,he=ht,Re=xt,Oe=wt,Pe=Qe,Be=ut,vt=Xe,D+=16,$-=16;this.h[0]=Ne,this.h[1]=qe,this.h[2]=Ge,this.h[3]=pe,this.h[4]=he,this.h[5]=Re,this.h[6]=Oe,this.h[7]=Pe,this.h[8]=Be,this.h[9]=vt},V.prototype.finish=function(T,D){var $=new Uint16Array(10),A,L,Q,te;if(this.leftover){for(te=this.leftover,this.buffer[te++]=1;te<16;te++)this.buffer[te]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(A=this.h[1]>>>13,this.h[1]&=8191,te=2;te<10;te++)this.h[te]+=A,A=this.h[te]>>>13,this.h[te]&=8191;for(this.h[0]+=A*5,A=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=A,A=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=A,$[0]=this.h[0]+5,A=$[0]>>>13,$[0]&=8191,te=1;te<10;te++)$[te]=this.h[te]+A,A=$[te]>>>13,$[te]&=8191;for($[9]-=8192,L=(A^1)-1,te=0;te<10;te++)$[te]&=L;for(L=~L,te=0;te<10;te++)this.h[te]=this.h[te]&L|$[te];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Q=this.h[0]+this.pad[0],this.h[0]=Q&65535,te=1;te<8;te++)Q=(this.h[te]+this.pad[te]|0)+(Q>>>16)|0,this.h[te]=Q&65535;T[D+0]=this.h[0]>>>0&255,T[D+1]=this.h[0]>>>8&255,T[D+2]=this.h[1]>>>0&255,T[D+3]=this.h[1]>>>8&255,T[D+4]=this.h[2]>>>0&255,T[D+5]=this.h[2]>>>8&255,T[D+6]=this.h[3]>>>0&255,T[D+7]=this.h[3]>>>8&255,T[D+8]=this.h[4]>>>0&255,T[D+9]=this.h[4]>>>8&255,T[D+10]=this.h[5]>>>0&255,T[D+11]=this.h[5]>>>8&255,T[D+12]=this.h[6]>>>0&255,T[D+13]=this.h[6]>>>8&255,T[D+14]=this.h[7]>>>0&255,T[D+15]=this.h[7]>>>8&255},V.prototype.update=function(T,D,$){var A,L;if(this.leftover){for(L=16-this.leftover,L>$&&(L=$),A=0;A=16&&(L=$-$%16,this.blocks(T,D,L),D+=L,$-=L),$){for(A=0;A<$;A++)this.buffer[this.leftover+A]=T[D+A];this.leftover+=$}};function W(T,D,$,A,L,Q){var te=new V(Q);return te.update($,A,L),te.finish(T,D),0}function ee(T,D,$,A,L,Q){var te=new Uint8Array(16);return W(te,0,$,A,L,Q),b(T,D,te,0)}function Z(T,D,$,A,L){var Q;if($<32)return-1;for(B(T,0,D,0,$,A,L),W(T,16,T,32,$-32,T),Q=0;Q<16;Q++)T[Q]=0;return 0}function q(T,D,$,A,L){var Q,te=new Uint8Array(32);if($<32||(N(te,0,32,A,L),ee(D,16,D,32,$-32,te)!==0))return-1;for(B(T,0,D,0,$,A,L),Q=0;Q<32;Q++)T[Q]=0;return 0}function G(T,D){var $;for($=0;$<16;$++)T[$]=D[$]|0}function H(T){var D,$,A=1;for(D=0;D<16;D++)$=T[D]+A+65535,A=Math.floor($/65536),T[D]=$-A*65536;T[0]+=A-1+37*(A-1)}function j(T,D,$){for(var A,L=~($-1),Q=0;Q<16;Q++)A=L&(T[Q]^D[Q]),T[Q]^=A,D[Q]^=A}function K(T,D){var $,A,L,Q=n(),te=n();for($=0;$<16;$++)te[$]=D[$];for(H(te),H(te),H(te),A=0;A<2;A++){for(Q[0]=te[0]-65517,$=1;$<15;$++)Q[$]=te[$]-65535-(Q[$-1]>>16&1),Q[$-1]&=65535;Q[15]=te[15]-32767-(Q[14]>>16&1),L=Q[15]>>16&1,Q[14]&=65535,j(te,Q,1-L)}for($=0;$<16;$++)T[2*$]=te[$]&255,T[2*$+1]=te[$]>>8}function Y(T,D){var $=new Uint8Array(32),A=new Uint8Array(32);return K($,T),K(A,D),w($,0,A,0)}function re(T){var D=new Uint8Array(32);return K(D,T),D[0]&1}function ie(T,D){var $;for($=0;$<16;$++)T[$]=D[2*$]+(D[2*$+1]<<8);T[15]&=32767}function se(T,D,$){for(var A=0;A<16;A++)T[A]=D[A]+$[A]}function ye(T,D,$){for(var A=0;A<16;A++)T[A]=D[A]-$[A]}function we(T,D,$){var A,L,Q=0,te=0,fe=0,_e=0,je=0,Ve=0,ct=0,Ie=0,nt=0,bt=0,Ot=0,pt=0,ht=0,xt=0,wt=0,Qe=0,ut=0,Xe=0,Ne=0,qe=0,Ge=0,pe=0,he=0,Re=0,Oe=0,Pe=0,Be=0,vt=0,jt=0,Bt=0,It=0,J=$[0],Zt=$[1],sn=$[2],un=$[3],Ut=$[4],ln=$[5],rn=$[6],Yn=$[7],mn=$[8],kn=$[9],Zn=$[10],Xn=$[11],wr=$[12],Ir=$[13],Nr=$[14],Lr=$[15];A=D[0],Q+=A*J,te+=A*Zt,fe+=A*sn,_e+=A*un,je+=A*Ut,Ve+=A*ln,ct+=A*rn,Ie+=A*Yn,nt+=A*mn,bt+=A*kn,Ot+=A*Zn,pt+=A*Xn,ht+=A*wr,xt+=A*Ir,wt+=A*Nr,Qe+=A*Lr,A=D[1],te+=A*J,fe+=A*Zt,_e+=A*sn,je+=A*un,Ve+=A*Ut,ct+=A*ln,Ie+=A*rn,nt+=A*Yn,bt+=A*mn,Ot+=A*kn,pt+=A*Zn,ht+=A*Xn,xt+=A*wr,wt+=A*Ir,Qe+=A*Nr,ut+=A*Lr,A=D[2],fe+=A*J,_e+=A*Zt,je+=A*sn,Ve+=A*un,ct+=A*Ut,Ie+=A*ln,nt+=A*rn,bt+=A*Yn,Ot+=A*mn,pt+=A*kn,ht+=A*Zn,xt+=A*Xn,wt+=A*wr,Qe+=A*Ir,ut+=A*Nr,Xe+=A*Lr,A=D[3],_e+=A*J,je+=A*Zt,Ve+=A*sn,ct+=A*un,Ie+=A*Ut,nt+=A*ln,bt+=A*rn,Ot+=A*Yn,pt+=A*mn,ht+=A*kn,xt+=A*Zn,wt+=A*Xn,Qe+=A*wr,ut+=A*Ir,Xe+=A*Nr,Ne+=A*Lr,A=D[4],je+=A*J,Ve+=A*Zt,ct+=A*sn,Ie+=A*un,nt+=A*Ut,bt+=A*ln,Ot+=A*rn,pt+=A*Yn,ht+=A*mn,xt+=A*kn,wt+=A*Zn,Qe+=A*Xn,ut+=A*wr,Xe+=A*Ir,Ne+=A*Nr,qe+=A*Lr,A=D[5],Ve+=A*J,ct+=A*Zt,Ie+=A*sn,nt+=A*un,bt+=A*Ut,Ot+=A*ln,pt+=A*rn,ht+=A*Yn,xt+=A*mn,wt+=A*kn,Qe+=A*Zn,ut+=A*Xn,Xe+=A*wr,Ne+=A*Ir,qe+=A*Nr,Ge+=A*Lr,A=D[6],ct+=A*J,Ie+=A*Zt,nt+=A*sn,bt+=A*un,Ot+=A*Ut,pt+=A*ln,ht+=A*rn,xt+=A*Yn,wt+=A*mn,Qe+=A*kn,ut+=A*Zn,Xe+=A*Xn,Ne+=A*wr,qe+=A*Ir,Ge+=A*Nr,pe+=A*Lr,A=D[7],Ie+=A*J,nt+=A*Zt,bt+=A*sn,Ot+=A*un,pt+=A*Ut,ht+=A*ln,xt+=A*rn,wt+=A*Yn,Qe+=A*mn,ut+=A*kn,Xe+=A*Zn,Ne+=A*Xn,qe+=A*wr,Ge+=A*Ir,pe+=A*Nr,he+=A*Lr,A=D[8],nt+=A*J,bt+=A*Zt,Ot+=A*sn,pt+=A*un,ht+=A*Ut,xt+=A*ln,wt+=A*rn,Qe+=A*Yn,ut+=A*mn,Xe+=A*kn,Ne+=A*Zn,qe+=A*Xn,Ge+=A*wr,pe+=A*Ir,he+=A*Nr,Re+=A*Lr,A=D[9],bt+=A*J,Ot+=A*Zt,pt+=A*sn,ht+=A*un,xt+=A*Ut,wt+=A*ln,Qe+=A*rn,ut+=A*Yn,Xe+=A*mn,Ne+=A*kn,qe+=A*Zn,Ge+=A*Xn,pe+=A*wr,he+=A*Ir,Re+=A*Nr,Oe+=A*Lr,A=D[10],Ot+=A*J,pt+=A*Zt,ht+=A*sn,xt+=A*un,wt+=A*Ut,Qe+=A*ln,ut+=A*rn,Xe+=A*Yn,Ne+=A*mn,qe+=A*kn,Ge+=A*Zn,pe+=A*Xn,he+=A*wr,Re+=A*Ir,Oe+=A*Nr,Pe+=A*Lr,A=D[11],pt+=A*J,ht+=A*Zt,xt+=A*sn,wt+=A*un,Qe+=A*Ut,ut+=A*ln,Xe+=A*rn,Ne+=A*Yn,qe+=A*mn,Ge+=A*kn,pe+=A*Zn,he+=A*Xn,Re+=A*wr,Oe+=A*Ir,Pe+=A*Nr,Be+=A*Lr,A=D[12],ht+=A*J,xt+=A*Zt,wt+=A*sn,Qe+=A*un,ut+=A*Ut,Xe+=A*ln,Ne+=A*rn,qe+=A*Yn,Ge+=A*mn,pe+=A*kn,he+=A*Zn,Re+=A*Xn,Oe+=A*wr,Pe+=A*Ir,Be+=A*Nr,vt+=A*Lr,A=D[13],xt+=A*J,wt+=A*Zt,Qe+=A*sn,ut+=A*un,Xe+=A*Ut,Ne+=A*ln,qe+=A*rn,Ge+=A*Yn,pe+=A*mn,he+=A*kn,Re+=A*Zn,Oe+=A*Xn,Pe+=A*wr,Be+=A*Ir,vt+=A*Nr,jt+=A*Lr,A=D[14],wt+=A*J,Qe+=A*Zt,ut+=A*sn,Xe+=A*un,Ne+=A*Ut,qe+=A*ln,Ge+=A*rn,pe+=A*Yn,he+=A*mn,Re+=A*kn,Oe+=A*Zn,Pe+=A*Xn,Be+=A*wr,vt+=A*Ir,jt+=A*Nr,Bt+=A*Lr,A=D[15],Qe+=A*J,ut+=A*Zt,Xe+=A*sn,Ne+=A*un,qe+=A*Ut,Ge+=A*ln,pe+=A*rn,he+=A*Yn,Re+=A*mn,Oe+=A*kn,Pe+=A*Zn,Be+=A*Xn,vt+=A*wr,jt+=A*Ir,Bt+=A*Nr,It+=A*Lr,Q+=38*ut,te+=38*Xe,fe+=38*Ne,_e+=38*qe,je+=38*Ge,Ve+=38*pe,ct+=38*he,Ie+=38*Re,nt+=38*Oe,bt+=38*Pe,Ot+=38*Be,pt+=38*vt,ht+=38*jt,xt+=38*Bt,wt+=38*It,L=1,A=Q+L+65535,L=Math.floor(A/65536),Q=A-L*65536,A=te+L+65535,L=Math.floor(A/65536),te=A-L*65536,A=fe+L+65535,L=Math.floor(A/65536),fe=A-L*65536,A=_e+L+65535,L=Math.floor(A/65536),_e=A-L*65536,A=je+L+65535,L=Math.floor(A/65536),je=A-L*65536,A=Ve+L+65535,L=Math.floor(A/65536),Ve=A-L*65536,A=ct+L+65535,L=Math.floor(A/65536),ct=A-L*65536,A=Ie+L+65535,L=Math.floor(A/65536),Ie=A-L*65536,A=nt+L+65535,L=Math.floor(A/65536),nt=A-L*65536,A=bt+L+65535,L=Math.floor(A/65536),bt=A-L*65536,A=Ot+L+65535,L=Math.floor(A/65536),Ot=A-L*65536,A=pt+L+65535,L=Math.floor(A/65536),pt=A-L*65536,A=ht+L+65535,L=Math.floor(A/65536),ht=A-L*65536,A=xt+L+65535,L=Math.floor(A/65536),xt=A-L*65536,A=wt+L+65535,L=Math.floor(A/65536),wt=A-L*65536,A=Qe+L+65535,L=Math.floor(A/65536),Qe=A-L*65536,Q+=L-1+37*(L-1),L=1,A=Q+L+65535,L=Math.floor(A/65536),Q=A-L*65536,A=te+L+65535,L=Math.floor(A/65536),te=A-L*65536,A=fe+L+65535,L=Math.floor(A/65536),fe=A-L*65536,A=_e+L+65535,L=Math.floor(A/65536),_e=A-L*65536,A=je+L+65535,L=Math.floor(A/65536),je=A-L*65536,A=Ve+L+65535,L=Math.floor(A/65536),Ve=A-L*65536,A=ct+L+65535,L=Math.floor(A/65536),ct=A-L*65536,A=Ie+L+65535,L=Math.floor(A/65536),Ie=A-L*65536,A=nt+L+65535,L=Math.floor(A/65536),nt=A-L*65536,A=bt+L+65535,L=Math.floor(A/65536),bt=A-L*65536,A=Ot+L+65535,L=Math.floor(A/65536),Ot=A-L*65536,A=pt+L+65535,L=Math.floor(A/65536),pt=A-L*65536,A=ht+L+65535,L=Math.floor(A/65536),ht=A-L*65536,A=xt+L+65535,L=Math.floor(A/65536),xt=A-L*65536,A=wt+L+65535,L=Math.floor(A/65536),wt=A-L*65536,A=Qe+L+65535,L=Math.floor(A/65536),Qe=A-L*65536,Q+=L-1+37*(L-1),T[0]=Q,T[1]=te,T[2]=fe,T[3]=_e,T[4]=je,T[5]=Ve,T[6]=ct,T[7]=Ie,T[8]=nt,T[9]=bt,T[10]=Ot,T[11]=pt,T[12]=ht,T[13]=xt,T[14]=wt,T[15]=Qe}function He(T,D){we(T,D,D)}function Ee(T,D){var $=n(),A;for(A=0;A<16;A++)$[A]=D[A];for(A=253;A>=0;A--)He($,$),A!==2&&A!==4&&we($,$,D);for(A=0;A<16;A++)T[A]=$[A]}function it(T,D){var $=n(),A;for(A=0;A<16;A++)$[A]=D[A];for(A=250;A>=0;A--)He($,$),A!==1&&we($,$,D);for(A=0;A<16;A++)T[A]=$[A]}function ke(T,D,$){var A=new Uint8Array(32),L=new Float64Array(80),Q,te,fe=n(),_e=n(),je=n(),Ve=n(),ct=n(),Ie=n();for(te=0;te<31;te++)A[te]=D[te];for(A[31]=D[31]&127|64,A[0]&=248,ie(L,$),te=0;te<16;te++)_e[te]=L[te],Ve[te]=fe[te]=je[te]=0;for(fe[0]=Ve[0]=1,te=254;te>=0;--te)Q=A[te>>>3]>>>(te&7)&1,j(fe,_e,Q),j(je,Ve,Q),se(ct,fe,je),ye(fe,fe,je),se(je,_e,Ve),ye(_e,_e,Ve),He(Ve,ct),He(Ie,fe),we(fe,je,fe),we(je,_e,ct),se(ct,fe,je),ye(fe,fe,je),He(_e,fe),ye(je,Ve,Ie),we(fe,je,u),se(fe,fe,Ve),we(je,je,fe),we(fe,Ve,Ie),we(Ve,_e,L),He(_e,ct),j(fe,_e,Q),j(je,Ve,Q);for(te=0;te<16;te++)L[te+16]=fe[te],L[te+32]=je[te],L[te+48]=_e[te],L[te+64]=Ve[te];var nt=L.subarray(32),bt=L.subarray(16);return Ee(nt,nt),we(bt,bt,nt),K(T,bt),0}function Le(T,D){return ke(T,D,o)}function De(T,D){return r(D,32),Le(T,D)}function me(T,D,$){var A=new Uint8Array(32);return ke(A,$,D),E(T,i,A,C)}var yt=Z,lt=q;function Ft(T,D,$,A,L,Q){var te=new Uint8Array(32);return me(te,L,Q),yt(T,D,$,A,te)}function yn(T,D,$,A,L,Q){var te=new Uint8Array(32);return me(te,L,Q),lt(T,D,$,A,te)}var nn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ne(T,D,$,A){for(var L=new Int32Array(16),Q=new Int32Array(16),te,fe,_e,je,Ve,ct,Ie,nt,bt,Ot,pt,ht,xt,wt,Qe,ut,Xe,Ne,qe,Ge,pe,he,Re,Oe,Pe,Be,vt=T[0],jt=T[1],Bt=T[2],It=T[3],J=T[4],Zt=T[5],sn=T[6],un=T[7],Ut=D[0],ln=D[1],rn=D[2],Yn=D[3],mn=D[4],kn=D[5],Zn=D[6],Xn=D[7],wr=0;A>=128;){for(qe=0;qe<16;qe++)Ge=8*qe+wr,L[qe]=$[Ge+0]<<24|$[Ge+1]<<16|$[Ge+2]<<8|$[Ge+3],Q[qe]=$[Ge+4]<<24|$[Ge+5]<<16|$[Ge+6]<<8|$[Ge+7];for(qe=0;qe<80;qe++)if(te=vt,fe=jt,_e=Bt,je=It,Ve=J,ct=Zt,Ie=sn,nt=un,bt=Ut,Ot=ln,pt=rn,ht=Yn,xt=mn,wt=kn,Qe=Zn,ut=Xn,pe=un,he=Xn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=(J>>>14|mn<<18)^(J>>>18|mn<<14)^(mn>>>9|J<<23),he=(mn>>>14|J<<18)^(mn>>>18|J<<14)^(J>>>9|mn<<23),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=J&Zt^~J&sn,he=mn&kn^~mn&Zn,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=nn[qe*2],he=nn[qe*2+1],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=L[qe%16],he=Q[qe%16],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,Xe=Pe&65535|Be<<16,Ne=Re&65535|Oe<<16,pe=Xe,he=Ne,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=(vt>>>28|Ut<<4)^(Ut>>>2|vt<<30)^(Ut>>>7|vt<<25),he=(Ut>>>28|vt<<4)^(vt>>>2|Ut<<30)^(vt>>>7|Ut<<25),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,pe=vt&jt^vt&Bt^jt&Bt,he=Ut&ln^Ut&rn^ln&rn,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,nt=Pe&65535|Be<<16,ut=Re&65535|Oe<<16,pe=je,he=ht,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=Xe,he=Ne,Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,je=Pe&65535|Be<<16,ht=Re&65535|Oe<<16,jt=te,Bt=fe,It=_e,J=je,Zt=Ve,sn=ct,un=Ie,vt=nt,ln=bt,rn=Ot,Yn=pt,mn=ht,kn=xt,Zn=wt,Xn=Qe,Ut=ut,qe%16===15)for(Ge=0;Ge<16;Ge++)pe=L[Ge],he=Q[Ge],Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=L[(Ge+9)%16],he=Q[(Ge+9)%16],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Xe=L[(Ge+1)%16],Ne=Q[(Ge+1)%16],pe=(Xe>>>1|Ne<<31)^(Xe>>>8|Ne<<24)^Xe>>>7,he=(Ne>>>1|Xe<<31)^(Ne>>>8|Xe<<24)^(Ne>>>7|Xe<<25),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Xe=L[(Ge+14)%16],Ne=Q[(Ge+14)%16],pe=(Xe>>>19|Ne<<13)^(Ne>>>29|Xe<<3)^Xe>>>6,he=(Ne>>>19|Xe<<13)^(Xe>>>29|Ne<<3)^(Ne>>>6|Xe<<26),Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,L[Ge]=Pe&65535|Be<<16,Q[Ge]=Re&65535|Oe<<16;pe=vt,he=Ut,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[0],he=D[0],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[0]=vt=Pe&65535|Be<<16,D[0]=Ut=Re&65535|Oe<<16,pe=jt,he=ln,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[1],he=D[1],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[1]=jt=Pe&65535|Be<<16,D[1]=ln=Re&65535|Oe<<16,pe=Bt,he=rn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[2],he=D[2],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[2]=Bt=Pe&65535|Be<<16,D[2]=rn=Re&65535|Oe<<16,pe=It,he=Yn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[3],he=D[3],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[3]=It=Pe&65535|Be<<16,D[3]=Yn=Re&65535|Oe<<16,pe=J,he=mn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[4],he=D[4],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[4]=J=Pe&65535|Be<<16,D[4]=mn=Re&65535|Oe<<16,pe=Zt,he=kn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[5],he=D[5],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[5]=Zt=Pe&65535|Be<<16,D[5]=kn=Re&65535|Oe<<16,pe=sn,he=Zn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[6],he=D[6],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[6]=sn=Pe&65535|Be<<16,D[6]=Zn=Re&65535|Oe<<16,pe=un,he=Xn,Re=he&65535,Oe=he>>>16,Pe=pe&65535,Be=pe>>>16,pe=T[7],he=D[7],Re+=he&65535,Oe+=he>>>16,Pe+=pe&65535,Be+=pe>>>16,Oe+=Re>>>16,Pe+=Oe>>>16,Be+=Pe>>>16,T[7]=un=Pe&65535|Be<<16,D[7]=Xn=Re&65535|Oe<<16,wr+=128,A-=128}return A}function de(T,D,$){var A=new Int32Array(8),L=new Int32Array(8),Q=new Uint8Array(256),te,fe=$;for(A[0]=1779033703,A[1]=3144134277,A[2]=1013904242,A[3]=2773480762,A[4]=1359893119,A[5]=2600822924,A[6]=528734635,A[7]=1541459225,L[0]=4089235720,L[1]=2227873595,L[2]=4271175723,L[3]=1595750129,L[4]=2917565137,L[5]=725511199,L[6]=4215389547,L[7]=327033209,ne(A,L,D,$),$%=128,te=0;te<$;te++)Q[te]=D[fe-$+te];for(Q[$]=128,$=256-128*($<112?1:0),Q[$-9]=0,m(Q,$-8,fe/536870912|0,fe<<3),ne(A,L,Q,$),te=0;te<8;te++)m(T,8*te,A[te],L[te]);return 0}function ge(T,D){var $=n(),A=n(),L=n(),Q=n(),te=n(),fe=n(),_e=n(),je=n(),Ve=n();ye($,T[1],T[0]),ye(Ve,D[1],D[0]),we($,$,Ve),se(A,T[0],T[1]),se(Ve,D[0],D[1]),we(A,A,Ve),we(L,T[3],D[3]),we(L,L,c),we(Q,T[2],D[2]),se(Q,Q,Q),ye(te,A,$),ye(fe,Q,L),se(_e,Q,L),se(je,A,$),we(T[0],te,fe),we(T[1],je,_e),we(T[2],_e,fe),we(T[3],te,je)}function Ue(T,D,$){var A;for(A=0;A<4;A++)j(T[A],D[A],$)}function Fe(T,D){var $=n(),A=n(),L=n();Ee(L,D[2]),we($,D[0],L),we(A,D[1],L),K(T,A),T[31]^=re($)<<7}function Ae(T,D,$){var A,L;for(G(T[0],a),G(T[1],s),G(T[2],s),G(T[3],a),L=255;L>=0;--L)A=$[L/8|0]>>(L&7)&1,Ue(T,D,A),ge(D,T),ge(T,T),Ue(T,D,A)}function tt(T,D){var $=[n(),n(),n(),n()];G($[0],f),G($[1],h),G($[2],s),we($[3],f,h),Ae(T,$,D)}function mt(T,D,$){var A=new Uint8Array(64),L=[n(),n(),n(),n()],Q;for($||r(D,32),de(A,D,32),A[0]&=248,A[31]&=127,A[31]|=64,tt(L,A),Fe(T,L),Q=0;Q<32;Q++)D[Q+32]=T[Q];return 0}var wn=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Kt(T,D){var $,A,L,Q;for(A=63;A>=32;--A){for($=0,L=A-32,Q=A-12;L>4)*wn[L],$=D[L]>>8,D[L]&=255;for(L=0;L<32;L++)D[L]-=$*wn[L];for(A=0;A<32;A++)D[A+1]+=D[A]>>8,T[A]=D[A]&255}function _n(T){var D=new Float64Array(64),$;for($=0;$<64;$++)D[$]=T[$];for($=0;$<64;$++)T[$]=0;Kt(T,D)}function $i(T,D,$,A){var L=new Uint8Array(64),Q=new Uint8Array(64),te=new Uint8Array(64),fe,_e,je=new Float64Array(64),Ve=[n(),n(),n(),n()];de(L,A,32),L[0]&=248,L[31]&=127,L[31]|=64;var ct=$+64;for(fe=0;fe<$;fe++)T[64+fe]=D[fe];for(fe=0;fe<32;fe++)T[32+fe]=L[32+fe];for(de(te,T.subarray(32),$+32),_n(te),tt(Ve,te),Fe(T,Ve),fe=32;fe<64;fe++)T[fe]=A[fe];for(de(Q,T,$+64),_n(Q),fe=0;fe<64;fe++)je[fe]=0;for(fe=0;fe<32;fe++)je[fe]=te[fe];for(fe=0;fe<32;fe++)for(_e=0;_e<32;_e++)je[fe+_e]+=Q[fe]*L[_e];return Kt(T.subarray(32),je),ct}function xr(T,D){var $=n(),A=n(),L=n(),Q=n(),te=n(),fe=n(),_e=n();return G(T[2],s),ie(T[1],D),He(L,T[1]),we(Q,L,l),ye(L,L,T[2]),se(Q,T[2],Q),He(te,Q),He(fe,te),we(_e,fe,te),we($,_e,L),we($,$,Q),it($,$),we($,$,L),we($,$,Q),we($,$,Q),we(T[0],$,Q),He(A,T[0]),we(A,A,Q),Y(A,L)&&we(T[0],T[0],p),He(A,T[0]),we(A,A,Q),Y(A,L)?-1:(re(T[0])===D[31]>>7&&ye(T[0],a,T[0]),we(T[3],T[0],T[1]),0)}function mi(T,D,$,A){var L,Q=new Uint8Array(32),te=new Uint8Array(64),fe=[n(),n(),n(),n()],_e=[n(),n(),n(),n()];if($<64||xr(_e,A))return-1;for(L=0;L<$;L++)T[L]=D[L];for(L=0;L<32;L++)T[L+32]=A[L];if(de(te,T,$),_n(te),Ae(fe,_e,te),tt(_e,D.subarray(32)),ge(fe,_e),Fe(Q,fe),$-=64,w(D,0,Q,0)){for(L=0;L<$;L++)T[L]=0;return-1}for(L=0;L<$;L++)T[L]=D[L+64];return $}var ur=32,ai=24,vi=32,Dr=16,Zi=32,vo=32,yi=32,$r=32,_a=32,_t=ai,hn=vi,Sn=Dr,Gn=64,lr=32,Xr=64,yo=32,Xl=64;t.lowlevel={crypto_core_hsalsa20:E,crypto_stream_xor:B,crypto_stream:N,crypto_stream_salsa20_xor:P,crypto_stream_salsa20:M,crypto_onetimeauth:W,crypto_onetimeauth_verify:ee,crypto_verify_16:b,crypto_verify_32:w,crypto_secretbox:Z,crypto_secretbox_open:q,crypto_scalarmult:ke,crypto_scalarmult_base:Le,crypto_box_beforenm:me,crypto_box_afternm:yt,crypto_box:Ft,crypto_box_open:yn,crypto_box_keypair:De,crypto_hash:de,crypto_sign:$i,crypto_sign_keypair:mt,crypto_sign_open:mi,crypto_secretbox_KEYBYTES:ur,crypto_secretbox_NONCEBYTES:ai,crypto_secretbox_ZEROBYTES:vi,crypto_secretbox_BOXZEROBYTES:Dr,crypto_scalarmult_BYTES:Zi,crypto_scalarmult_SCALARBYTES:vo,crypto_box_PUBLICKEYBYTES:yi,crypto_box_SECRETKEYBYTES:$r,crypto_box_BEFORENMBYTES:_a,crypto_box_NONCEBYTES:_t,crypto_box_ZEROBYTES:hn,crypto_box_BOXZEROBYTES:Sn,crypto_sign_BYTES:Gn,crypto_sign_PUBLICKEYBYTES:lr,crypto_sign_SECRETKEYBYTES:Xr,crypto_sign_SEEDBYTES:yo,crypto_hash_BYTES:Xl,gf:n,D:l,L:wn,pack25519:K,unpack25519:ie,M:we,A:se,S:He,Z:ye,pow2523:it,add:ge,set25519:G,modL:Kt,scalarmult:Ae,scalarbase:tt};function Cf(T,D){if(T.length!==ur)throw new Error("bad key size");if(D.length!==ai)throw new Error("bad nonce size")}function oe(T,D){if(T.length!==yi)throw new Error("bad public key size");if(D.length!==$r)throw new Error("bad secret key size")}function ue(){for(var T=0;T=0},t.sign.keyPair=function(){var T=new Uint8Array(lr),D=new Uint8Array(Xr);return mt(T,D),{publicKey:T,secretKey:D}},t.sign.keyPair.fromSecretKey=function(T){if(ue(T),T.length!==Xr)throw new Error("bad secret key size");for(var D=new Uint8Array(lr),$=0;$"u"?typeof Buffer.from<"u"?(t.encodeBase64=function(r){return Buffer.from(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(Buffer.from(r,"base64"),0))}):(t.encodeBase64=function(r){return new Buffer(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0))}):(t.encodeBase64=function(r){var i,o=[],a=r.length;for(i=0;i{let n=!1;const r=e.map(i=>{const o=GN(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{const{scope:h,children:p,...m}=f,y=h?.[e]?.[u]||s,b=v.useMemo(()=>m,Object.values(m));return I.jsx(y.Provider,{value:b,children:p})};l.displayName=o+"Provider";function c(f,h){const p=h?.[e]?.[u]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[l,c]}const i=()=>{const o=n.map(a=>v.createContext(a));return function(s){const u=s?.[e]||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,tXe(i,...t)]}function tXe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:u,scopeName:l})=>{const f=u(o)[`__scope${l}`];return{...s,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function YN(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}var nXe=globalThis?.document?v.useLayoutEffect:()=>{},rXe=zx[" useInsertionEffect ".trim().toString()]||nXe;function iXe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=oXe({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:i;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,r])}const l=v.useCallback(c=>{if(s){const f=aXe(c)?c(e):c;f!==e&&a.current?.(f)}else o(c)},[s,e,o,a]);return[u,l]}function oXe({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),o=v.useRef(t);return rXe(()=>{o.current=t},[t]),v.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function aXe(e){return typeof e=="function"}function sXe(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var uXe=globalThis?.document?v.useLayoutEffect:()=>{};function lXe(e){const[t,n]=v.useState(void 0);return uXe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function ZN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cXe(...e){return t=>{let n=!1;const r=e.map(i=>{const o=ZN(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{};function dXe(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var nX=e=>{const{present:t,children:n}=e,r=hXe(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=fXe(r.ref,pXe(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};nX.displayName="Presence";function hXe(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,u]=dXe(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Xy(r.current);o.current=s==="mounted"?l:"none"},[s]),XN(()=>{const l=r.current,c=i.current;if(c!==e){const h=o.current,p=Xy(l);e?u("MOUNT"):p==="none"||l?.display==="none"?u("UNMOUNT"):u(c&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),XN(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,f=p=>{const y=Xy(r.current).includes(p.animationName);if(p.target===t&&y&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(o.current=Xy(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Xy(e){return e?.animationName||"none"}function pXe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gXe(e){const t=mXe(e),n=v.forwardRef((r,i)=>{const{children:o,...a}=r,s=v.Children.toArray(o),u=s.find(yXe);if(u){const l=u.props.children,c=s.map(f=>f===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return I.jsx(t,{...a,ref:i,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return I.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function mXe(e){const t=v.forwardRef((n,r)=>{const{children:i,...o}=n;if(v.isValidElement(i)){const a=xXe(i),s=bXe(o,i.props);return i.type!==v.Fragment&&(s.ref=r?eX(r,a):a),v.cloneElement(i,s)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vXe=Symbol("radix.slottable");function yXe(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vXe}function bXe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const u=o(...s);return i(...s),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function xXe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wXe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],e8=wXe.reduce((e,t)=>{const n=gXe(`Primitive.${t}`),r=v.forwardRef((i,o)=>{const{asChild:a,...s}=i,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(u,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),W2="Checkbox",[_Xe,Wtt]=eXe(W2),[SXe,t8]=_Xe(W2);function CXe(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:o,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:f}=e,[h,p]=iXe({prop:n,defaultProp:i??!1,onChange:u,caller:W2}),[m,y]=v.useState(null),[b,w]=v.useState(null),x=v.useRef(!1),S=m?!!a||!!m.closest("form"):!0,O={checked:h,disabled:o,setChecked:p,control:m,setControl:y,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Cl(i)?!1:i,isFormControl:S,bubbleInput:b,setBubbleInput:w};return I.jsx(SXe,{scope:t,...O,children:AXe(f)?f(O):r})}var rX="CheckboxTrigger",iX=v.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:o,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:p,bubbleInput:m}=t8(rX,e),y=tX(i,c),b=v.useRef(u);return v.useEffect(()=>{const w=o?.form;if(w){const x=()=>f(b.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[o,f]),I.jsx(e8.button,{type:"button",role:"checkbox","aria-checked":Cl(u)?"mixed":u,"aria-required":l,"data-state":uX(u),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:y,onKeyDown:YN(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:YN(n,w=>{f(x=>Cl(x)?!0:!x),m&&p&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})})});iX.displayName=rX;var EXe=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...f}=e;return I.jsx(CXe,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:l,name:r,form:c,value:u,internal_do_not_use_render:({isFormControl:h})=>I.jsxs(I.Fragment,{children:[I.jsx(iX,{...f,ref:t,__scopeCheckbox:n}),h&&I.jsx(sX,{__scopeCheckbox:n})]})})});EXe.displayName=W2;var oX="CheckboxIndicator",OXe=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=t8(oX,n);return I.jsx(nX,{present:r||Cl(o.checked)||o.checked===!0,children:I.jsx(e8.span,{"data-state":uX(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});OXe.displayName=oX;var aX="CheckboxBubbleInput",sX=v.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:f,bubbleInput:h,setBubbleInput:p}=t8(aX,e),m=tX(n,p),y=sXe(o),b=lXe(r);v.useEffect(()=>{const x=h;if(!x)return;const S=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(S,"checked").set,C=!i.current;if(y!==o&&E){const P=new Event("click",{bubbles:C});x.indeterminate=Cl(o),E.call(x,Cl(o)?!1:o),x.dispatchEvent(P)}},[h,y,o,i]);const w=v.useRef(Cl(o)?!1:o);return I.jsx(e8.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??w.current,required:s,disabled:u,name:l,value:c,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});sX.displayName=aX;function AXe(e){return typeof e=="function"}function Cl(e){return e==="indeterminate"}function uX(e){return Cl(e)?"indeterminate":e?"checked":"unchecked"}export{Sve as $,UQe as A,Gi as B,bQe as C,tme as D,SQe as E,yQe as F,pT as G,F as H,eQe as I,DQe as J,MXe as K,PQe as L,FQe as M,QXe as N,kXe as O,$Xe as P,MQe as Q,vQe as R,Pl as S,kQe as T,XXe as U,IXe as V,yve as W,wve as X,_ve as Y,Cz as Z,QQe as _,LXe as a,Vet as a$,Cve as a0,bve as a1,xve as a2,OJe as a3,YQe as a4,AJe as a5,vJe as a6,yJe as a7,wJe as a8,_Je as a9,YXe as aA,oQe as aB,KXe as aC,JXe as aD,uQe as aE,sQe as aF,tQe as aG,aQe as aH,WXe as aI,UXe as aJ,ZXe as aK,gQe as aL,pQe as aM,dQe as aN,mQe as aO,rQe as aP,HXe as aQ,$et as aR,iJe as aS,wet as aT,iQe as aU,cQe as aV,Net as aW,Let as aX,Fet as aY,NXe as aZ,zet as a_,CJe as aa,HQe as ab,SJe as ac,eJe as ad,xJe as ae,EJe as af,gJe as ag,mJe as ah,bJe as ai,fJe as aj,cJe as ak,dJe as al,qXe as am,kJe as an,obe as ao,abe as ap,MJe as aq,IJe as ar,RJe as as,DJe as at,RXe as au,VXe as av,GXe as aw,lQe as ax,jXe as ay,get as az,Use as b,aet as b$,Wet as b0,Het as b1,KQe as b2,ett as b3,ZQe as b4,ttt as b5,qet as b6,Ket as b7,Get as b8,Zet as b9,zJe as bA,Met as bB,Tet as bC,net as bD,Pet as bE,dtt as bF,htt as bG,ptt as bH,dHe as bI,yHe as bJ,pet as bK,NJe as bL,BJe as bM,FJe as bN,rtt as bO,Ui as bP,mtt as bQ,vtt as bR,tJe as bS,nJe as bT,Ett as bU,oet as bV,Ott as bW,det as bX,Oet as bY,xet as bZ,tet as b_,Xet as ba,Jet as bb,Qet as bc,ntt as bd,Yet as be,ott as bf,GQe as bg,ltt as bh,ctt as bi,stt as bj,utt as bk,I3 as bl,Sf as bm,WJe as bn,jet as bo,Bet as bp,s5 as bq,u5 as br,mje as bs,Js as bt,wf as bu,rp as bv,itt as bw,LJe as bx,UJe as by,het as bz,dn as c,lJe as c$,Aet as c0,fet as c1,ket as c2,QJe as c3,ytt as c4,btt as c5,Stt as c6,YJe as c7,GJe as c8,zXe as c9,vet as cA,Cet as cB,yet as cC,cet as cD,qJe as cE,KJe as cF,Ret as cG,Ja as cH,br as cI,uet as cJ,xtt as cK,wtt as cL,sJe as cM,ef as cN,$Je as cO,Utt as cP,ztt as cQ,_et as cR,JJe as cS,ret as cT,met as cU,eet as cV,Eet as cW,set as cX,EXe as cY,OXe as cZ,XQe as c_,hQe as ca,nQe as cb,BXe as cc,fQe as cd,Ptt as ce,ktt as cf,bet as cg,Ttt as ch,ZJe as ci,jJe as cj,Itt as ck,Ntt as cl,jtt as cm,Btt as cn,Ltt as co,Ftt as cp,Rtt as cq,Dtt as cr,$tt as cs,rJe as ct,aJe as cu,_tt as cv,Ctt as cw,Nce as cx,zce as cy,Mce as cz,wm as d,qQe as d0,JQe as d1,uJe as d2,iet as d3,DXe as d4,HJe as d5,iHe as d6,oJe as d7,XJe as d8,VJe as d9,EQe as e,eA as f,TQe as g,AQe as h,NQe as i,I as j,Gr as k,LQe as l,CQe as m,xQe as n,wQe as o,$Qe as p,IQe as q,v as r,jQe as s,FXe as t,Sj as u,BQe as v,TXe as w,zQe as x,WQe as y,_Qe as z}; diff --git a/public/assets/admin/index.html b/public/assets/admin/index.html new file mode 100644 index 0000000..3dba3a1 --- /dev/null +++ b/public/assets/admin/index.html @@ -0,0 +1,32 @@ + + + + + + + + Shadcn Admin + + + + + + + + + + +
+ + diff --git a/public/assets/admin/locales/en-US.js b/public/assets/admin/locales/en-US.js index e3dcb83..61c7253 100644 --- a/public/assets/admin/locales/en-US.js +++ b/public/assets/admin/locales/en-US.js @@ -1079,7 +1079,7 @@ window.XBOARD_TRANSLATIONS['en-US'] = { "uri": "URI", "requestData": "Request Data", "exception": "Exception", - "totalLogs": "Total logs: {{count}}", + "totalLogs": "Total logs", "tabs": { "all": "All", "info": "Info", diff --git a/public/assets/admin/locales/ko-KR.js b/public/assets/admin/locales/ko-KR.js index b5489f8..0aca024 100644 --- a/public/assets/admin/locales/ko-KR.js +++ b/public/assets/admin/locales/ko-KR.js @@ -1095,7 +1095,7 @@ window.XBOARD_TRANSLATIONS['ko-KR'] = { "uri": "URI", "requestData": "요청 데이터", "exception": "예외", - "totalLogs": "총 로그 수: {{count}}", + "totalLogs": "총 로그 수", "tabs": { "all": "전체", "info": "정보", diff --git a/public/assets/admin/locales/zh-CN.js b/public/assets/admin/locales/zh-CN.js index 80c6081..9a7eac6 100644 --- a/public/assets/admin/locales/zh-CN.js +++ b/public/assets/admin/locales/zh-CN.js @@ -1077,7 +1077,7 @@ window.XBOARD_TRANSLATIONS['zh-CN'] = { "uri": "URI", "requestData": "请求数据", "exception": "异常信息", - "totalLogs": "总日志数:{{count}}", + "totalLogs": "总日志数", "tabs": { "all": "全部", "info": "信息", diff --git a/theme/Xboard/assets/umi.js b/theme/Xboard/assets/umi.js index 1e33cf1..d9927c1 100644 --- a/theme/Xboard/assets/umi.js +++ b/theme/Xboard/assets/umi.js @@ -1,80 +1,89 @@ -(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@charset "UTF-8";.xboard-nav-mask{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;z-index:999;opacity:.5;display:none}.xboard-plan-features{padding:0;list-style:none;font-size:16px;flex:1 0 auto}.xboard-plan-features>li{padding:6px 0;color:#7c8088;text-align:left}.xboard-plan-features>li>b{color:#2a2e36;font-weight:500}.xboard-plan-content{padding-top:20px;padding-left:20px}.xboard-plan-features>li:before{font-family:Font Awesome\\ 5 Free;content:"";padding-right:10px;color:#425b94;font-weight:900}.xboard-email-whitelist-enable{display:flex}.xboard-email-whitelist-enable input{flex:2 1;border-top-right-radius:0;border-bottom-right-radius:0}.xboard-email-whitelist-enable select{flex:1 1;border-top-left-radius:0;border-bottom-left-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-position:right 50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3.862 7.931L0 4.069h7.725z'/%3E%3C/svg%3E");padding-right:1.5em}.block.block-mode-loading:before{background:hsla(0,0%,100%,.7)}#server .ant-drawer-content-wrapper{max-width:500px}.xboard-trade-no{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xboard-lang-item{padding:10px 20px}.xboard-lang-item:hover{background:#eee}.xboard-auth-lang-btn{position:absolute;right:0;top:0}.xboard-no-access{color:#855c0d;background-color:#ffefd1;position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.xboard-notice-background{height:100%;position:absolute;top:0;right:0;left:0;bottom:0;z-index:80;opacity:.1}.xboard-auth-box{position:fixed;right:0;left:0;top:0;bottom:0;display:flex;align-items:center;overflow-y:auto}.content-header{height:3.25rem}#page-container.page-header-fixed #main-container{padding-top:3.25rem}.xboard-copyright{position:absolute;bottom:10px;right:0;left:15px;font-size:10px;opacity:.2}.ant-table-thead>tr>th{background:#fff!important}.xboard-container-title{flex:1 1;color:#fff}.xboard-order-info>div{display:flex;font-size:14px;margin-bottom:5px}.xboard-order-info>div>span:first-child{flex:1 1;opacity:.5}.xboard-order-info>div>span:last-child{flex:2 1;font-family:menlo}.xboard-bg-pixels{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjIwMCIgd2lkdGg9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwIDgpIj48Y2lyY2xlIGN4PSIxNzYiIGN5PSIxMiIgcj0iNCIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMjAuNS41bDIzIDExbS0yOSA4NGwtMy43OSAxMC4zNzdNMjcuMDM3IDEzMS40bDUuODk4IDIuMjAzLTMuNDYgNS45NDcgNi4wNzIgMi4zOTItMy45MzMgNS43NThtMTI4LjczMyAzNS4zN2wuNjkzLTkuMzE2IDEwLjI5Mi4wNTIuNDE2LTkuMjIyIDkuMjc0LjMzMk0uNSA0OC41czYuMTMxIDYuNDEzIDYuODQ3IDE0LjgwNWMuNzE1IDguMzkzLTIuNTIgMTQuODA2LTIuNTIgMTQuODA2TTEyNC41NTUgOTBzLTcuNDQ0IDAtMTMuNjcgNi4xOTJjLTYuMjI3IDYuMTkyLTQuODM4IDEyLjAxMi00LjgzOCAxMi4wMTJtMi4yNCA2OC42MjZzLTQuMDI2LTkuMDI1LTE4LjE0NS05LjAyNS0xOC4xNDUgNS43LTE4LjE0NSA1LjciIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNODUuNzE2IDM2LjE0Nmw1LjI0My05LjUyMWgxMS4wOTNsNS40MTYgOS41MjEtNS40MSA5LjE4NUg5MC45NTN6bTYzLjkwOSAxNS40NzloMTAuNzV2MTAuNzVoLTEwLjc1eiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48ZyBmaWxsPSIjZGRkIj48Y2lyY2xlIGN4PSI3MS41IiBjeT0iNy41IiByPSIxLjUiLz48Y2lyY2xlIGN4PSIxNzAuNSIgY3k9Ijk1LjUiIHI9IjEuNSIvPjxjaXJjbGUgY3g9IjgxLjUiIGN5PSIxMzQuNSIgcj0iMS41Ii8+PGNpcmNsZSBjeD0iMTMuNSIgY3k9IjIzLjUiIHI9IjEuNSIvPjxwYXRoIGQ9Ik05MyA3MWgzdjNoLTN6bTMzIDg0aDN2M2gtM3ptLTg1IDE4aDN2M2gtM3oiLz48L2c+PHBhdGggZD0iTTM5LjM4NCA1MS4xMjJsNS43NTgtNC40NTQgNi40NTMgNC4yMDUtMi4yOTQgNy4zNjNoLTcuNzl6TTEzMC4xOTUgNC4wM2wxMy44MyA1LjA2Mi0xMC4wOSA3LjA0OHptLTgzIDk1bDE0LjgzIDUuNDI5LTEwLjgyIDcuNTU3LTQuMDEtMTIuOTg3ek01LjIxMyAxNjEuNDk1bDExLjMyOCAyMC44OTdMMi4yNjUgMTgweiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMTQ5LjA1IDEyNy40NjhzLS41MSAyLjE4My45OTUgMy4zNjZjMS41NiAxLjIyNiA4LjY0Mi0xLjg5NSAzLjk2Ny03Ljc4NS0yLjM2Ny0yLjQ3Ny02LjUtMy4yMjYtOS4zMyAwLTUuMjA4IDUuOTM2IDAgMTcuNTEgMTEuNjEgMTMuNzMgMTIuNDU4LTYuMjU3IDUuNjMzLTIxLjY1Ni01LjA3My0yMi42NTQtNi42MDItLjYwNi0xNC4wNDMgMS43NTYtMTYuMTU3IDEwLjI2OC0xLjcxOCA2LjkyIDEuNTg0IDE3LjM4NyAxMi40NSAyMC40NzYgMTAuODY2IDMuMDkgMTkuMzMxLTQuMzEgMTkuMzMxLTQuMzEiIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48L2c+PC9zdmc+);background-size:auto}#page-container{min-height:100%}#page-container .content,#main-container{background-color:#f0f3f8!important}a:not([href]):hover{color:unset}.xboard-login-i18n-btn{cursor:pointer;margin-top:2.5;float:right}.custom-control-label:after{left:-1.25rem}.xboard-shortcuts-item{cursor:pointer;padding:20px;border-bottom:1px solid #eee;position:relative}.xboard-shortcuts-item>.description{font-size:12px;opacity:.5}.xboard-shortcuts-item i{position:absolute;top:25px;font-size:30px;right:20px;opacity:.5}.xboard-shortcuts-item:hover{background:#f6f6f6}.btn{border:0}.xboard-plan-tabs{border:1px solid #000;padding:8px 4px;border-radius:100px}.xboard-plan-tabs>span{cursor:pointer;padding:5px 12px}.xboard-plan-tabs>.active{background:#000;border-radius:100px;color:#fff}.xboard-sold-out-tag{background-color:#c12c1f;border-radius:100px;padding:2px 8px;font-size:13px;color:#fff}.xboard-payment-qrcode path[fill="#FFFFFF"]{--darkreader-inline-fill: #fff!important}.alert-success{color:#445e27;background-color:#e6f0db;border-color:#dceacd}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.custom-html-style{color:#333}.custom-html-style h1{font-size:32px;padding:0;border:none;font-weight:700;margin:32px 0;line-height:1.2}.custom-html-style h2{font-size:24px;padding:0;border:none;font-weight:700;margin:24px 0;line-height:1.7}.custom-html-style h3{font-size:18px;margin:18px 0;padding:0;line-height:1.7;border:none}.custom-html-style p{font-size:14px;line-height:1.7;margin:8px 0}.custom-html-style a{color:#0052d9}.custom-html-style a:hover{text-decoration:none}.custom-html-style strong{font-weight:700}.custom-html-style ol,.custom-html-style ul{font-size:14px;line-height:28px;padding-left:36px}.custom-html-style li{margin-bottom:8px;line-height:1.7}.custom-html-style hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.custom-html-style pre{display:block;padding:20px;line-height:28px;word-break:break-word}.custom-html-style code,.custom-html-style pre{background-color:#f5f5f5;font-size:14px;border-radius:0;overflow-x:auto}.custom-html-style code{padding:3px 0;margin:0;word-break:normal}.custom-html-style code:after,.custom-html-style code:before{letter-spacing:0}.custom-html-style blockquote{position:relative;margin:16px 0;padding:5px 8px 5px 30px;background:none repeat scroll 0 0 rgba(102,128,153,.05);color:#333;border:none;border-left:10px solid #d6dbdf}.custom-html-style img,.custom-html-style video{max-width:100%}.custom-html-style table{font-size:14px;line-height:1.7;max-width:100%;overflow:auto;border:1px solid #f6f6f6;border-collapse:collapse;border-spacing:0;box-sizing:border-box}.custom-html-style table td,.custom-html-style table th{word-break:break-all;word-wrap:break-word;white-space:normal}.custom-html-style table tr{border:1px solid #efefef}.custom-html-style table tr:nth-child(2n){background-color:transparent}.custom-html-style table th{text-align:center;font-weight:700;border:1px solid #efefef;padding:10px 6px;background-color:#f5f7fa;word-break:break-word}.custom-html-style table td{border:1px solid #efefef;text-align:left;padding:10px 15px;word-break:break-word;min-width:60px}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}.btn{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.btn.btn-square{border-radius:0}.btn.btn-rounded{border-radius:2rem}.btn .fa,.btn .si{position:relative;top:1px}.btn-group-sm>.btn .fa,.btn.btn-sm .fa{top:0}.btn-alt-primary{color:#054d9e;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:hover{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc}.btn-alt-primary.focus,.btn-alt-primary:focus{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc;box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-primary.disabled,.btn-alt-primary:disabled{color:#212529;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:not(:disabled):not(.disabled).active,.btn-alt-primary:not(:disabled):not(.disabled):active,.show>.btn-alt-primary.dropdown-toggle{color:#022954;background-color:#92c4fc;border-color:#92c4fc}.btn-alt-primary:not(:disabled):not(.disabled).active:focus,.btn-alt-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-secondary{color:#495057;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:hover{color:#495057;background-color:#d6deec;border-color:#d6deec}.btn-alt-secondary.focus,.btn-alt-secondary:focus{color:#495057;background-color:#d6deec;border-color:#d6deec;box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-secondary.disabled,.btn-alt-secondary:disabled{color:#212529;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:not(:disabled):not(.disabled).active,.btn-alt-secondary:not(:disabled):not(.disabled):active,.show>.btn-alt-secondary.dropdown-toggle{color:#262a2d;background-color:#c6d1e5;border-color:#c6d1e5}.btn-alt-secondary:not(:disabled):not(.disabled).active:focus,.btn-alt-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-success{color:#415b25;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:hover{color:#415b25;background-color:#c5dcab;border-color:#c5dcab}.btn-alt-success.focus,.btn-alt-success:focus{color:#415b25;background-color:#c5dcab;border-color:#c5dcab;box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-success.disabled,.btn-alt-success:disabled{color:#212529;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:not(:disabled):not(.disabled).active,.btn-alt-success:not(:disabled):not(.disabled):active,.show>.btn-alt-success.dropdown-toggle{color:#1a250f;background-color:#b9d69b;border-color:#b9d69b}.btn-alt-success:not(:disabled):not(.disabled).active:focus,.btn-alt-success:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-info{color:#164f86;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:hover{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2}.btn-alt-info.focus,.btn-alt-info:focus{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2;box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-info.disabled,.btn-alt-info:disabled{color:#212529;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:not(:disabled):not(.disabled).active,.btn-alt-info:not(:disabled):not(.disabled):active,.show>.btn-alt-info.dropdown-toggle{color:#0b2844;background-color:#9cc7ef;border-color:#9cc7ef}.btn-alt-info:not(:disabled):not(.disabled).active:focus,.btn-alt-info:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-warning{color:#996500;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:hover{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0}.btn-alt-warning.focus,.btn-alt-warning:focus{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0;box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-warning.disabled,.btn-alt-warning:disabled{color:#212529;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:not(:disabled):not(.disabled).active,.btn-alt-warning:not(:disabled):not(.disabled):active,.show>.btn-alt-warning.dropdown-toggle{color:#4c3200;background-color:#ffd789;border-color:#ffd789}.btn-alt-warning:not(:disabled):not(.disabled).active:focus,.btn-alt-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-danger{color:#6e270d;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:hover{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f}.btn-alt-danger.focus,.btn-alt-danger:focus{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f;box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-danger.disabled,.btn-alt-danger:disabled{color:#212529;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:not(:disabled):not(.disabled).active,.btn-alt-danger:not(:disabled):not(.disabled):active,.show>.btn-alt-danger.dropdown-toggle{color:#290f05;background-color:#f09a7b;border-color:#f09a7b}.btn-alt-danger:not(:disabled):not(.disabled).active:focus,.btn-alt-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-dark{color:#343a40;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:hover{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6}.btn-alt-dark.focus,.btn-alt-dark:focus{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6;box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-dark.disabled,.btn-alt-dark:disabled{color:#212529;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:not(:disabled):not(.disabled).active,.btn-alt-dark:not(:disabled):not(.disabled):active,.show>.btn-alt-dark.dropdown-toggle{color:#121416;background-color:#adb4bc;border-color:#adb4bc}.btn-alt-dark:not(:disabled):not(.disabled).active:focus,.btn-alt-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-light{color:#343a40;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:hover{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea}.btn-alt-light.focus,.btn-alt-light:focus{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea;box-shadow:0 0 0 .2rem #d4dae140}.btn-alt-light.disabled,.btn-alt-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:not(:disabled):not(.disabled).active,.btn-alt-light:not(:disabled):not(.disabled):active,.show>.btn-alt-light.dropdown-toggle{color:#121416;background-color:#d4dae1;border-color:#d4dae1}.btn-alt-light:not(:disabled):not(.disabled).active:focus,.btn-alt-light:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d4dae140}.btn-hero-primary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#0665d0;border:none;box-shadow:0 .125rem .75rem #04418640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-primary:hover{color:#fff;background-color:#117ef8;box-shadow:0 .375rem .75rem #04418666;transform:translateY(-1px)}.btn-hero-primary.focus,.btn-hero-primary:focus{color:#fff;background-color:#117ef8;box-shadow:0 .125rem .75rem #04418640}.btn-hero-primary.disabled,.btn-hero-primary:disabled{color:#fff;background-color:#0665d0;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active,.btn-hero-primary:not(:disabled):not(.disabled):active,.show>.btn-hero-primary.dropdown-toggle{color:#fff;background-color:#044186;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active:focus,.btn-hero-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-primary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #04418640}.btn-hero-secondary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#6c757d;border:none;box-shadow:0 .125rem .75rem #494f5440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-secondary:hover{color:#fff;background-color:#868e96;box-shadow:0 .375rem .75rem #494f5466;transform:translateY(-1px)}.btn-hero-secondary.focus,.btn-hero-secondary:focus{color:#fff;background-color:#868e96;box-shadow:0 .125rem .75rem #494f5440}.btn-hero-secondary.disabled,.btn-hero-secondary:disabled{color:#fff;background-color:#6c757d;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active,.btn-hero-secondary:not(:disabled):not(.disabled):active,.show>.btn-hero-secondary.dropdown-toggle{color:#fff;background-color:#494f54;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active:focus,.btn-hero-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-secondary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #494f5440}.btn-hero-success{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#82b54b;border:none;box-shadow:0 .125rem .75rem #5b7f3440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-success:hover{color:#fff;background-color:#9bc46f;box-shadow:0 .375rem .75rem #5b7f3466;transform:translateY(-1px)}.btn-hero-success.focus,.btn-hero-success:focus{color:#fff;background-color:#9bc46f;box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-success.disabled,.btn-hero-success:disabled{color:#fff;background-color:#82b54b;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active,.btn-hero-success:not(:disabled):not(.disabled):active,.show>.btn-hero-success.dropdown-toggle{color:#fff;background-color:#5b7f34;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active:focus,.btn-hero-success:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-success.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-info{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#3c90df;border:none;box-shadow:0 .125rem .75rem #1d6ab140;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-info:hover{color:#fff;background-color:#68a9e6;box-shadow:0 .375rem .75rem #1d6ab166;transform:translateY(-1px)}.btn-hero-info.focus,.btn-hero-info:focus{color:#fff;background-color:#68a9e6;box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-info.disabled,.btn-hero-info:disabled{color:#fff;background-color:#3c90df;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active,.btn-hero-info:not(:disabled):not(.disabled):active,.show>.btn-hero-info.dropdown-toggle{color:#fff;background-color:#1d6ab1;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active:focus,.btn-hero-info:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-info.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-warning{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#ffb119;border:none;box-shadow:0 .125rem .75rem #cc860040;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-warning:hover{color:#fff;background-color:#ffc24c;box-shadow:0 .375rem .75rem #cc860066;transform:translateY(-1px)}.btn-hero-warning.focus,.btn-hero-warning:focus{color:#fff;background-color:#ffc24c;box-shadow:0 .125rem .75rem #cc860040}.btn-hero-warning.disabled,.btn-hero-warning:disabled{color:#fff;background-color:#ffb119;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active,.btn-hero-warning:not(:disabled):not(.disabled):active,.show>.btn-hero-warning.dropdown-toggle{color:#fff;background-color:#cc8600;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active:focus,.btn-hero-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-warning.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cc860040}.btn-hero-danger{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#e04f1a;border:none;box-shadow:0 .125rem .75rem #9b371240;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-danger:hover{color:#fff;background-color:#e97044;box-shadow:0 .375rem .75rem #9b371266;transform:translateY(-1px)}.btn-hero-danger.focus,.btn-hero-danger:focus{color:#fff;background-color:#e97044;box-shadow:0 .125rem .75rem #9b371240}.btn-hero-danger.disabled,.btn-hero-danger:disabled{color:#fff;background-color:#e04f1a;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active,.btn-hero-danger:not(:disabled):not(.disabled):active,.show>.btn-hero-danger.dropdown-toggle{color:#fff;background-color:#9b3712;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active:focus,.btn-hero-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-danger.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #9b371240}.btn-hero-dark{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#343a40;border:none;box-shadow:0 .125rem .75rem #12141640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-dark:hover{color:#fff;background-color:#4b545c;box-shadow:0 .375rem .75rem #12141666;transform:translateY(-1px)}.btn-hero-dark.focus,.btn-hero-dark:focus{color:#fff;background-color:#4b545c;box-shadow:0 .125rem .75rem #12141640}.btn-hero-dark.disabled,.btn-hero-dark:disabled{color:#fff;background-color:#343a40;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active,.btn-hero-dark:not(:disabled):not(.disabled):active,.show>.btn-hero-dark.dropdown-toggle{color:#fff;background-color:#121416;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active:focus,.btn-hero-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-dark.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #12141640}.btn-hero-light{color:#212529;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#f8f9fa;border:none;box-shadow:0 .125rem .75rem #cbd3da40;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-light:hover{color:#212529;background-color:#fff;box-shadow:0 .375rem .75rem #cbd3da66;transform:translateY(-1px)}.btn-hero-light.focus,.btn-hero-light:focus{color:#212529;background-color:#fff;box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-light.disabled,.btn-hero-light:disabled{color:#212529;background-color:#f8f9fa;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active,.btn-hero-light:not(:disabled):not(.disabled):active,.show>.btn-hero-light.dropdown-toggle{color:#212529;background-color:#cbd3da;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active:focus,.btn-hero-light:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-light.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-lg{padding:.875rem 2.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-hero-sm{padding:.375rem 1.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-dual{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual.focus,.btn-dual:focus,.btn-dual:hover{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8;box-shadow:none}.btn-dual.disabled,.btn-dual:disabled{background-color:transparent;border-color:transparent}.btn-dual.active,.btn-dual:active{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual:not(:disabled):not(.disabled).active,.btn-dual:not(:disabled):not(.disabled):active,.show>.btn-dual.dropdown-toggle{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8}html.dark .markdown-body{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110,118,129,.4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-attention-fg: #d29922;--color-attention-subtle: rgba(187,128,9,.15);--color-danger-fg: #f85149;--color-done-fg: #a371f7}html:not(.dark) .markdown-body{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-neutral-muted: rgba(175,184,193,.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-fg: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-done-fg: #8250df}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .color-fg-accent{color:var(--color-accent-fg)!important}.markdown-body .color-fg-attention{color:var(--color-attention-fg)!important}.markdown-body .color-fg-done{color:var(--color-done-fg)!important}.markdown-body .flex-items-center{align-items:center!important}.markdown-body .mb-1{margin-bottom:var(--base-size-4, 4px)!important}.markdown-body .text-semibold{font-weight:var(--base-text-weight-medium, 500)!important}.markdown-body .d-inline-flex{display:inline-flex!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body .QueryBuilder .qb-entity{color:var(--color-prettylights-syntax-entity)}.markdown-body .QueryBuilder .qb-constant{color:var(--color-prettylights-syntax-constant)}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:0 1em;margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-fg)}*,:before,:after{box-sizing:border-box;background-repeat:no-repeat}:before,:after{text-decoration:inherit;vertical-align:inherit}:where(:root){cursor:default;line-height:1.5;overflow-wrap:break-word;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}:where(body){margin:0}:where(h1){font-size:2em;margin:.67em 0}:where(dl,ol,ul) :where(dl,ol,ul){margin:0}:where(hr){color:inherit;height:0}:where(nav) :where(ol,ul){list-style-type:none;padding:0}:where(nav li):before{content:"​";float:left}:where(pre){font-family:monospace,monospace;font-size:1em;overflow:auto}:where(abbr[title]){text-decoration:underline;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,samp){font-family:monospace,monospace;font-size:1em}:where(small){font-size:80%}:where(audio,canvas,iframe,img,svg,video){vertical-align:baseline}:where(iframe){border-style:none}:where(svg:not([fill])){fill:currentColor}:where(table){border-collapse:collapse;border-color:inherit;text-indent:0}:where(button,input,select){margin:0}:where(button,[type=button i],[type=reset i],[type=submit i]){-webkit-appearance:button}:where(fieldset){border:1px solid #a0a0a0}:where(progress){vertical-align:baseline}:where(textarea){margin:0;resize:vertical}:where([type=search i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(dialog){background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(details>summary:first-of-type){display:list-item}:where([aria-busy=true i]){cursor:progress}:where([aria-controls]){cursor:pointer}:where([aria-disabled=true i],[disabled]){cursor:not-allowed}:where([aria-hidden=false i][hidden]){display:initial}:where([aria-hidden=false i][hidden]:not(:focus)){clip:rect(0,0,0,0);position:absolute}html{font-size:4px}html,body{width:100%;height:100%;overflow:hidden;background-color:#f2f2f2;font-family:Encode Sans Condensed,sans-serif}html.dark body{background-color:#292b2b}::-webkit-scrollbar{width:8px;background-color:#eee}::-webkit-scrollbar-thumb{background-color:#c1c1c1}::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}html,body{width:100%;height:100%;overflow:hidden;font-size:16px}#app{width:100%;height:100%}.fade-slide-leave-active,.fade-slide-enter-active{transition:all .3s}.fade-slide-enter-from{opacity:0;transform:translate(-30px)}.fade-slide-leave-to{opacity:0;transform:translate(30px)}.cus-scroll{overflow:auto}.cus-scroll::-webkit-scrollbar{width:8px;height:8px}.cus-scroll-x{overflow-x:auto}.cus-scroll-x::-webkit-scrollbar{width:0;height:8px}.cus-scroll-y{overflow-y:auto}.cus-scroll-y::-webkit-scrollbar{width:8px;height:0}.cus-scroll::-webkit-scrollbar-thumb,.cus-scroll-x::-webkit-scrollbar-thumb,.cus-scroll-y::-webkit-scrollbar-thumb{background-color:transparent;border-radius:4px}.cus-scroll:hover::-webkit-scrollbar-thumb,.cus-scroll-x:hover::-webkit-scrollbar-thumb,.cus-scroll-y:hover::-webkit-scrollbar-thumb{background:#bfbfbf}.cus-scroll:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-x:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-y:hover::-webkit-scrollbar-thumb:hover{background:var(--primary-color)}#--unocss--{layer:__ALL__}#app{height:100%}#app .n-config-provider{height:inherit}.side-menu:not(.n-menu--collapsed) .n-menu-item-content:before{left:5px;right:5px}.side-menu:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.side-menu:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--primary-color)}.carousel-img[data-v-8ed2ef0c]{width:100%;height:240px;object-fit:cover}.pay-qrcode{width:100%;height:100%}.pay-qrcode>canvas{width:100%!important;height:100%!important}.card-container[data-v-79fa0f66]{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fit,minmax(calc(100% - 1rem),1fr));row-gap:20px;min-width:100%}.card-item[data-v-79fa0f66]{max-width:100%}@media screen and (min-width: 768px){.card-container[data-v-79fa0f66]{grid-template-columns:repeat(auto-fit,minmax(calc(50% - 1rem),1fr));column-gap:20px;min-width:375px}}@media screen and (min-width: 1200px){.card-container[data-v-79fa0f66]{grid-template-columns:repeat(auto-fit,minmax(calc(33.33% - 1rem),1fr));padding:0 10px;column-gap:20px;min-width:375px}}#--unocss-layer-start--__ALL__--{start:__ALL__}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.wh-full,[wh-full=""]{width:100%;height:100%}.f-c-c,[f-c-c=""]{display:flex;align-items:center;justify-content:center}.flex-col,[flex-col=""]{display:flex;flex-direction:column}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-0{right:0}.right-15{right:15px}[bottom~="20"]{bottom:20px}.z-99999{z-index:99999}.grid{display:grid}.m-0{margin:0}.m-0\\!{margin:0!important}.m-1{margin:1px}.m-3{margin:3px}.m-auto,[m-auto=""]{margin:auto}.mx-10{margin-left:10px;margin-right:10px}.m-b-5,.mb-5{margin-bottom:5px}.m-l-10,.ml-10,[ml-10=""]{margin-left:10px}.m-l-20{margin-left:20px}.m-l-3{margin-left:3px}.m-t-10,.mt-10{margin-top:10px}.m-t-15,.mt-15,[mt-15=""]{margin-top:15px}.m-t-20,.mt-20,[mt-20=""]{margin-top:20px}.m-t-5,.mt-5{margin-top:5px}.mb-10{margin-bottom:10px}.mb-16{margin-bottom:16px}.mb-1em{margin-bottom:1em}.mb-20{margin-bottom:20px}.mb-3{margin-bottom:3px}.mb-4{margin-bottom:4px}.mb-8{margin-bottom:8px}.ml-auto,[ml-auto=""]{margin-left:auto}.mr-0{margin-right:0}.mr-20,.mr20,[mr-20=""],[mr20=""]{margin-right:20px}.mr-5{margin-right:5px}.mr-auto{margin-right:auto}.mr10,[mr10=""]{margin-right:10px}.mt-0{margin-top:0}.mt-30{margin-top:30px}.mt-4{margin-top:4px}.mt-8{margin-top:8px}.inline-block{display:inline-block}.hidden{display:none}.h-20{height:20px}.h-30{height:30px}.h-35,[h-35=""]{height:35px}.h-36{height:36px}.h-6{height:6px}.h-60,[h-60=""]{height:60px}.h-auto{height:auto}.h-full,[h-full=""]{height:100%}.h-full\\!{height:100%!important}.h1{height:1px}.h2{height:2px}.h5{height:5px}.max-h-30{max-height:30px}.max-w-100\\%,.max-w-full{max-width:100%}.max-w-1200{max-width:1200px}.max-w-140,[max-w-140=""]{max-width:140px}.max-w-450{max-width:450px}.max-w-500{max-width:500px}.min-w-0{min-width:0}.min-w-300{min-width:300px}.w-100\\%,.w-full{width:100%}.w-20{width:20px}.w-30{width:30px}.w-300{width:300px}.w-35,[w-35=""]{width:35px}.w-375{width:375px}.w-6{width:6px}.w-600{width:600px}.w-64{width:64px}.w-auto{width:auto}.w-full\\!{width:100%!important}.flex,[flex=""]{display:flex}.flex-\\[1\\]{flex:1}.flex-\\[2\\]{flex:2}.flex-1,[flex-1=""]{flex:1 1 0%}.flex-shrink-0,[flex-shrink-0=""]{flex-shrink:0}.flex-wrap{flex-wrap:wrap}[transform-origin~=center]{transform-origin:center}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.resize{resize:both}.items-center,[items-center=""]{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-hidden,[overflow-hidden=""]{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.break-anywhere{overflow-wrap:anywhere}.b{border-width:1px}.border-0,.dark [dark~=border-0]{border-width:0px}.border-2{border-width:2px}.border-\\[\\#646669\\],.border-\\#646669{--un-border-opacity:1;border-color:rgb(100 102 105 / var(--un-border-opacity))}.border-\\#0665d0{--un-border-opacity:1;border-color:rgb(6 101 208 / var(--un-border-opacity))}.border-transparent{border-color:transparent}.border-rounded-5,.rounded-5,[border-rounded-5=""]{border-radius:5px}.rounded-full,[rounded-full=""]{border-radius:9999px}.border-none{border-style:none}.border-solid{border-style:solid}.border-b-solid{border-bottom-style:solid}.bg-\\[--n-color-embedded\\]{background-color:var(--n-color-embedded)}.bg-\\[--n-color\\]{background-color:var(--n-color)}.bg-\\[\\#f5f6fb\\],.bg-hex-f5f6fb,[bg-hex-f5f6fb=""]{--un-bg-opacity:1;background-color:rgb(245 246 251 / var(--un-bg-opacity))}.bg-\\#2f3135{--un-bg-opacity:1;background-color:rgb(47 49 53 / var(--un-bg-opacity))}.bg-\\#e04f1a{--un-bg-opacity:1;background-color:rgb(224 79 26 / var(--un-bg-opacity))}.bg-\\#f8f9fa{--un-bg-opacity:1;background-color:rgb(248 249 250 / var(--un-bg-opacity))}.bg-blue-500{--un-bg-opacity:1;background-color:rgb(59 130 246 / var(--un-bg-opacity))}.bg-dark,.dark [dark~=bg-dark]{--un-bg-opacity:1;background-color:rgb(24 24 28 / var(--un-bg-opacity))}.bg-green-500{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-101014,.dark [dark\\:bg-hex-101014=""]{--un-bg-opacity:1;background-color:rgb(16 16 20 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-101014\\>{background-color:#101014>}.dark .dark\\:bg-hex-121212{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.hover\\:bg-\\#f6f6f6:hover{--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity))}.p-0{padding:0}.p-0\\!{padding:0!important}.p-10{padding:10px}.p-19{padding:19px}.p-2{padding:2px}.p-20{padding:20px}.p-24{padding:24px}.p-5{padding:5px}.p-x-24{padding-left:24px;padding-right:24px}.p-y-16{padding-top:16px;padding-bottom:16px}.px{padding-left:4px;padding-right:4px}.px-15{padding-left:15px;padding-right:15px}.p-b-5{padding-bottom:5px}.p-l-5{padding-left:5px}.p-t-20,.pt-20{padding-top:20px}.p-t-5{padding-top:5px}.pb-10{padding-bottom:10px}.pb-16{padding-bottom:16px}.pb-8{padding-bottom:8px}.pl-16{padding-left:16px}.pl-20{padding-left:20px}.pr-16{padding-right:16px}.pr-20{padding-right:20px}.pt-10{padding-top:10px}.pt-16{padding-top:16px}.pt-8{padding-top:8px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.indent{text-indent:6px}[indent~="0"]{text-indent:0}.root-indent:root{text-indent:6px}[root-indent~="18"]:root{text-indent:18px}.vertical-bottom{vertical-align:bottom}.text-12{font-size:12px}.text-14,[text-14=""]{font-size:14px}.text-16,[text-16=""]{font-size:16px}.text-18{font-size:18px}.text-20{font-size:20px}.text-22{font-size:22px}.text-30{font-size:30px}.text-36{font-size:36px}.text-40{font-size:40px}.text-50{font-size:50px}.text-90{font-size:90px}.font-400,.font-normal{font-weight:400}.font-600{font-weight:600}.font-bold,[font-bold=""]{font-weight:700}.color-\\[hsla\\(0\\,0\\%\\,100\\%\\,\\.75\\)\\]{--un-text-opacity:.75;color:hsla(0,0%,100%,var(--un-text-opacity))}.color-\\#48bc19{--un-text-opacity:1;color:rgb(72 188 25 / var(--un-text-opacity))}.color-\\#f8f9fa{--un-text-opacity:1;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f8f9fa41{--un-text-opacity:.25;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f9a314{--un-text-opacity:1;color:rgb(249 163 20 / var(--un-text-opacity))}.color-gray,.text-gray{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.color-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.color-primary,.text-\\[--primary-color\\],[color-primary=""]{color:var(--primary-color)}.color-white,.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}[color~="#343a40"]{--un-text-opacity:1;color:rgb(52 58 64 / var(--un-text-opacity))}[color~="#6a6a6a"]{--un-text-opacity:1;color:rgb(106 106 106 / var(--un-text-opacity))}.text-\\#6c757d,[color~="#6c757d"]{--un-text-opacity:1;color:rgb(108 117 125 / var(--un-text-opacity))}[color~="#db4619"]{--un-text-opacity:1;color:rgb(219 70 25 / var(--un-text-opacity))}[hover~=color-primary]:hover{color:var(--primary-color)}.text-\\[rgba\\(0\\,0\\,0\\,0\\.45\\)\\]{--un-text-opacity:.45;color:rgba(0,0,0,var(--un-text-opacity))}.text-\\#49505799{--un-text-opacity:.6;color:rgb(73 80 87 / var(--un-text-opacity))}.text-\\#595959{--un-text-opacity:1;color:rgb(89 89 89 / var(--un-text-opacity))}.text-\\#666{--un-text-opacity:1;color:rgb(102 102 102 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.decoration-underline,[hover~=decoration-underline]:hover{text-decoration-line:underline}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.opacity-30{opacity:.3}.opacity-85{opacity:.85}.hover\\:opacity-75:hover{opacity:.75}.shadow-black{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0 / var(--un-shadow-opacity))}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[duration~="500"]{transition-duration:.5s}[content~="$t("]{content:var(--t\\()}[placeholder~="$t("]::placeholder{color:var(--t\\()}@media (min-width: 640px){.sm\\:max-w-full{max-width:100%}}@media (min-width: 768px){.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:m-l20{margin-left:20px}.md\\:m-t-20,.md\\:mt-20{margin-top:20px}.md\\:m-t-40{margin-top:40px}.md\\:mb-40{margin-bottom:40px}.md\\:mr10{margin-right:10px}.md\\:mt-0{margin-top:0}.md\\:block{display:block}.md\\:hidden{display:none}.md\\:h-30{height:30px}.md\\:max-w-1\\/3{max-width:33.3333333333%}.md\\:max-w-2\\/3{max-width:66.6666666667%}.md\\:w-30{width:30px}.md\\:flex-\\[1\\]{flex:1}.md\\:flex-\\[2\\]{flex:2}.md\\:p-15{padding:15px}.md\\:pl-20{padding-left:20px}}#--unocss-layer-end--__ALL__--{end:__ALL__}`)),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); -var d3=Object.defineProperty;var f3=(e,t,n)=>t in e?d3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var h3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hd=(e,t,n)=>(f3(e,typeof t!="symbol"?t+"":t,n),n);var mNe=h3((Qn,eo)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** +(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@charset "UTF-8";.xboard-nav-mask{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;z-index:999;opacity:.5;display:none}.xboard-plan-features{padding:0;list-style:none;font-size:16px;flex:1 0 auto}.xboard-plan-features>li{padding:6px 0;color:#7c8088;text-align:left}.xboard-plan-features>li>b{color:#2a2e36;font-weight:500}.xboard-plan-content{padding-top:20px;padding-left:20px}.xboard-plan-features>li:before{font-family:Font Awesome\\ 5 Free;content:"";padding-right:10px;color:#425b94;font-weight:900}.xboard-email-whitelist-enable{display:flex}.xboard-email-whitelist-enable input{flex:2 1;border-top-right-radius:0;border-bottom-right-radius:0}.xboard-email-whitelist-enable select{flex:1 1;border-top-left-radius:0;border-bottom-left-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-position:right 50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3.862 7.931L0 4.069h7.725z'/%3E%3C/svg%3E");padding-right:1.5em}.block.block-mode-loading:before{background:hsla(0,0%,100%,.7)}#server .ant-drawer-content-wrapper{max-width:500px}.xboard-trade-no{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xboard-lang-item{padding:10px 20px}.xboard-lang-item:hover{background:#eee}.xboard-auth-lang-btn{position:absolute;right:0;top:0}.xboard-no-access{color:#855c0d;background-color:#ffefd1;position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.xboard-notice-background{height:100%;position:absolute;top:0;right:0;left:0;bottom:0;z-index:80;opacity:.1}.xboard-auth-box{position:fixed;right:0;left:0;top:0;bottom:0;display:flex;align-items:center;overflow-y:auto}.content-header{height:3.25rem}#page-container.page-header-fixed #main-container{padding-top:3.25rem}.xboard-copyright{position:absolute;bottom:10px;right:0;left:15px;font-size:10px;opacity:.2}.ant-table-thead>tr>th{background:#fff!important}.xboard-container-title{flex:1 1;color:#fff}.xboard-order-info>div{display:flex;font-size:14px;margin-bottom:5px}.xboard-order-info>div>span:first-child{flex:1 1;opacity:.5}.xboard-order-info>div>span:last-child{flex:2 1;font-family:menlo}.xboard-bg-pixels{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjIwMCIgd2lkdGg9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwIDgpIj48Y2lyY2xlIGN4PSIxNzYiIGN5PSIxMiIgcj0iNCIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMjAuNS41bDIzIDExbS0yOSA4NGwtMy43OSAxMC4zNzdNMjcuMDM3IDEzMS40bDUuODk4IDIuMjAzLTMuNDYgNS45NDcgNi4wNzIgMi4zOTItMy45MzMgNS43NThtMTI4LjczMyAzNS4zN2wuNjkzLTkuMzE2IDEwLjI5Mi4wNTIuNDE2LTkuMjIyIDkuMjc0LjMzMk0uNSA0OC41czYuMTMxIDYuNDEzIDYuODQ3IDE0LjgwNWMuNzE1IDguMzkzLTIuNTIgMTQuODA2LTIuNTIgMTQuODA2TTEyNC41NTUgOTBzLTcuNDQ0IDAtMTMuNjcgNi4xOTJjLTYuMjI3IDYuMTkyLTQuODM4IDEyLjAxMi00LjgzOCAxMi4wMTJtMi4yNCA2OC42MjZzLTQuMDI2LTkuMDI1LTE4LjE0NS05LjAyNS0xOC4xNDUgNS43LTE4LjE0NSA1LjciIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNODUuNzE2IDM2LjE0Nmw1LjI0My05LjUyMWgxMS4wOTNsNS40MTYgOS41MjEtNS40MSA5LjE4NUg5MC45NTN6bTYzLjkwOSAxNS40NzloMTAuNzV2MTAuNzVoLTEwLjc1eiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48ZyBmaWxsPSIjZGRkIj48Y2lyY2xlIGN4PSI3MS41IiBjeT0iNy41IiByPSIxLjUiLz48Y2lyY2xlIGN4PSIxNzAuNSIgY3k9Ijk1LjUiIHI9IjEuNSIvPjxjaXJjbGUgY3g9IjgxLjUiIGN5PSIxMzQuNSIgcj0iMS41Ii8+PGNpcmNsZSBjeD0iMTMuNSIgY3k9IjIzLjUiIHI9IjEuNSIvPjxwYXRoIGQ9Ik05MyA3MWgzdjNoLTN6bTMzIDg0aDN2M2gtM3ptLTg1IDE4aDN2M2gtM3oiLz48L2c+PHBhdGggZD0iTTM5LjM4NCA1MS4xMjJsNS43NTgtNC40NTQgNi40NTMgNC4yMDUtMi4yOTQgNy4zNjNoLTcuNzl6TTEzMC4xOTUgNC4wM2wxMy44MyA1LjA2Mi0xMC4wOSA3LjA0OHptLTgzIDk1bDE0LjgzIDUuNDI5LTEwLjgyIDcuNTU3LTQuMDEtMTIuOTg3ek01LjIxMyAxNjEuNDk1bDExLjMyOCAyMC44OTdMMi4yNjUgMTgweiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMTQ5LjA1IDEyNy40NjhzLS41MSAyLjE4My45OTUgMy4zNjZjMS41NiAxLjIyNiA4LjY0Mi0xLjg5NSAzLjk2Ny03Ljc4NS0yLjM2Ny0yLjQ3Ny02LjUtMy4yMjYtOS4zMyAwLTUuMjA4IDUuOTM2IDAgMTcuNTEgMTEuNjEgMTMuNzMgMTIuNDU4LTYuMjU3IDUuNjMzLTIxLjY1Ni01LjA3My0yMi42NTQtNi42MDItLjYwNi0xNC4wNDMgMS43NTYtMTYuMTU3IDEwLjI2OC0xLjcxOCA2LjkyIDEuNTg0IDE3LjM4NyAxMi40NSAyMC40NzYgMTAuODY2IDMuMDkgMTkuMzMxLTQuMzEgMTkuMzMxLTQuMzEiIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48L2c+PC9zdmc+);background-size:auto}#page-container{min-height:100%}#page-container .content,#main-container{background-color:#f0f3f8!important}a:not([href]):hover{color:unset}.xboard-login-i18n-btn{cursor:pointer;margin-top:2.5;float:right}.custom-control-label:after{left:-1.25rem}.xboard-shortcuts-item{cursor:pointer;padding:20px;border-bottom:1px solid #eee;position:relative}.xboard-shortcuts-item>.description{font-size:12px;opacity:.5}.xboard-shortcuts-item i{position:absolute;top:25px;font-size:30px;right:20px;opacity:.5}.xboard-shortcuts-item:hover{background:#f6f6f6}.btn{border:0}.xboard-plan-tabs{border:1px solid #000;padding:8px 4px;border-radius:100px}.xboard-plan-tabs>span{cursor:pointer;padding:5px 12px}.xboard-plan-tabs>.active{background:#000;border-radius:100px;color:#fff}.xboard-sold-out-tag{background-color:#c12c1f;border-radius:100px;padding:2px 8px;font-size:13px;color:#fff}.xboard-payment-qrcode path[fill="#FFFFFF"]{--darkreader-inline-fill: #fff!important}.alert-success{color:#445e27;background-color:#e6f0db;border-color:#dceacd}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.custom-html-style{color:#333}.custom-html-style h1{font-size:32px;padding:0;border:none;font-weight:700;margin:32px 0;line-height:1.2}.custom-html-style h2{font-size:24px;padding:0;border:none;font-weight:700;margin:24px 0;line-height:1.7}.custom-html-style h3{font-size:18px;margin:18px 0;padding:0;line-height:1.7;border:none}.custom-html-style p{font-size:14px;line-height:1.7;margin:8px 0}.custom-html-style a{color:#0052d9}.custom-html-style a:hover{text-decoration:none}.custom-html-style strong{font-weight:700}.custom-html-style ol,.custom-html-style ul{font-size:14px;line-height:28px;padding-left:36px}.custom-html-style li{margin-bottom:8px;line-height:1.7}.custom-html-style hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.custom-html-style pre{display:block;padding:20px;line-height:28px;word-break:break-word}.custom-html-style code,.custom-html-style pre{background-color:#f5f5f5;font-size:14px;border-radius:0;overflow-x:auto}.custom-html-style code{padding:3px 0;margin:0;word-break:normal}.custom-html-style code:after,.custom-html-style code:before{letter-spacing:0}.custom-html-style blockquote{position:relative;margin:16px 0;padding:5px 8px 5px 30px;background:none repeat scroll 0 0 rgba(102,128,153,.05);color:#333;border:none;border-left:10px solid #d6dbdf}.custom-html-style img,.custom-html-style video{max-width:100%}.custom-html-style table{font-size:14px;line-height:1.7;max-width:100%;overflow:auto;border:1px solid #f6f6f6;border-collapse:collapse;border-spacing:0;box-sizing:border-box}.custom-html-style table td,.custom-html-style table th{word-break:break-all;word-wrap:break-word;white-space:normal}.custom-html-style table tr{border:1px solid #efefef}.custom-html-style table tr:nth-child(2n){background-color:transparent}.custom-html-style table th{text-align:center;font-weight:700;border:1px solid #efefef;padding:10px 6px;background-color:#f5f7fa;word-break:break-word}.custom-html-style table td{border:1px solid #efefef;text-align:left;padding:10px 15px;word-break:break-word;min-width:60px}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}.btn{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.btn.btn-square{border-radius:0}.btn.btn-rounded{border-radius:2rem}.btn .fa,.btn .si{position:relative;top:1px}.btn-group-sm>.btn .fa,.btn.btn-sm .fa{top:0}.btn-alt-primary{color:#054d9e;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:hover{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc}.btn-alt-primary.focus,.btn-alt-primary:focus{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc;box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-primary.disabled,.btn-alt-primary:disabled{color:#212529;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:not(:disabled):not(.disabled).active,.btn-alt-primary:not(:disabled):not(.disabled):active,.show>.btn-alt-primary.dropdown-toggle{color:#022954;background-color:#92c4fc;border-color:#92c4fc}.btn-alt-primary:not(:disabled):not(.disabled).active:focus,.btn-alt-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-secondary{color:#495057;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:hover{color:#495057;background-color:#d6deec;border-color:#d6deec}.btn-alt-secondary.focus,.btn-alt-secondary:focus{color:#495057;background-color:#d6deec;border-color:#d6deec;box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-secondary.disabled,.btn-alt-secondary:disabled{color:#212529;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:not(:disabled):not(.disabled).active,.btn-alt-secondary:not(:disabled):not(.disabled):active,.show>.btn-alt-secondary.dropdown-toggle{color:#262a2d;background-color:#c6d1e5;border-color:#c6d1e5}.btn-alt-secondary:not(:disabled):not(.disabled).active:focus,.btn-alt-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-success{color:#415b25;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:hover{color:#415b25;background-color:#c5dcab;border-color:#c5dcab}.btn-alt-success.focus,.btn-alt-success:focus{color:#415b25;background-color:#c5dcab;border-color:#c5dcab;box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-success.disabled,.btn-alt-success:disabled{color:#212529;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:not(:disabled):not(.disabled).active,.btn-alt-success:not(:disabled):not(.disabled):active,.show>.btn-alt-success.dropdown-toggle{color:#1a250f;background-color:#b9d69b;border-color:#b9d69b}.btn-alt-success:not(:disabled):not(.disabled).active:focus,.btn-alt-success:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-info{color:#164f86;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:hover{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2}.btn-alt-info.focus,.btn-alt-info:focus{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2;box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-info.disabled,.btn-alt-info:disabled{color:#212529;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:not(:disabled):not(.disabled).active,.btn-alt-info:not(:disabled):not(.disabled):active,.show>.btn-alt-info.dropdown-toggle{color:#0b2844;background-color:#9cc7ef;border-color:#9cc7ef}.btn-alt-info:not(:disabled):not(.disabled).active:focus,.btn-alt-info:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-warning{color:#996500;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:hover{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0}.btn-alt-warning.focus,.btn-alt-warning:focus{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0;box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-warning.disabled,.btn-alt-warning:disabled{color:#212529;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:not(:disabled):not(.disabled).active,.btn-alt-warning:not(:disabled):not(.disabled):active,.show>.btn-alt-warning.dropdown-toggle{color:#4c3200;background-color:#ffd789;border-color:#ffd789}.btn-alt-warning:not(:disabled):not(.disabled).active:focus,.btn-alt-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-danger{color:#6e270d;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:hover{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f}.btn-alt-danger.focus,.btn-alt-danger:focus{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f;box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-danger.disabled,.btn-alt-danger:disabled{color:#212529;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:not(:disabled):not(.disabled).active,.btn-alt-danger:not(:disabled):not(.disabled):active,.show>.btn-alt-danger.dropdown-toggle{color:#290f05;background-color:#f09a7b;border-color:#f09a7b}.btn-alt-danger:not(:disabled):not(.disabled).active:focus,.btn-alt-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-dark{color:#343a40;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:hover{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6}.btn-alt-dark.focus,.btn-alt-dark:focus{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6;box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-dark.disabled,.btn-alt-dark:disabled{color:#212529;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:not(:disabled):not(.disabled).active,.btn-alt-dark:not(:disabled):not(.disabled):active,.show>.btn-alt-dark.dropdown-toggle{color:#121416;background-color:#adb4bc;border-color:#adb4bc}.btn-alt-dark:not(:disabled):not(.disabled).active:focus,.btn-alt-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-light{color:#343a40;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:hover{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea}.btn-alt-light.focus,.btn-alt-light:focus{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea;box-shadow:0 0 0 .2rem #d4dae140}.btn-alt-light.disabled,.btn-alt-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:not(:disabled):not(.disabled).active,.btn-alt-light:not(:disabled):not(.disabled):active,.show>.btn-alt-light.dropdown-toggle{color:#121416;background-color:#d4dae1;border-color:#d4dae1}.btn-alt-light:not(:disabled):not(.disabled).active:focus,.btn-alt-light:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d4dae140}.btn-hero-primary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#0665d0;border:none;box-shadow:0 .125rem .75rem #04418640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-primary:hover{color:#fff;background-color:#117ef8;box-shadow:0 .375rem .75rem #04418666;transform:translateY(-1px)}.btn-hero-primary.focus,.btn-hero-primary:focus{color:#fff;background-color:#117ef8;box-shadow:0 .125rem .75rem #04418640}.btn-hero-primary.disabled,.btn-hero-primary:disabled{color:#fff;background-color:#0665d0;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active,.btn-hero-primary:not(:disabled):not(.disabled):active,.show>.btn-hero-primary.dropdown-toggle{color:#fff;background-color:#044186;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active:focus,.btn-hero-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-primary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #04418640}.btn-hero-secondary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#6c757d;border:none;box-shadow:0 .125rem .75rem #494f5440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-secondary:hover{color:#fff;background-color:#868e96;box-shadow:0 .375rem .75rem #494f5466;transform:translateY(-1px)}.btn-hero-secondary.focus,.btn-hero-secondary:focus{color:#fff;background-color:#868e96;box-shadow:0 .125rem .75rem #494f5440}.btn-hero-secondary.disabled,.btn-hero-secondary:disabled{color:#fff;background-color:#6c757d;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active,.btn-hero-secondary:not(:disabled):not(.disabled):active,.show>.btn-hero-secondary.dropdown-toggle{color:#fff;background-color:#494f54;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active:focus,.btn-hero-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-secondary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #494f5440}.btn-hero-success{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#82b54b;border:none;box-shadow:0 .125rem .75rem #5b7f3440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-success:hover{color:#fff;background-color:#9bc46f;box-shadow:0 .375rem .75rem #5b7f3466;transform:translateY(-1px)}.btn-hero-success.focus,.btn-hero-success:focus{color:#fff;background-color:#9bc46f;box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-success.disabled,.btn-hero-success:disabled{color:#fff;background-color:#82b54b;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active,.btn-hero-success:not(:disabled):not(.disabled):active,.show>.btn-hero-success.dropdown-toggle{color:#fff;background-color:#5b7f34;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active:focus,.btn-hero-success:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-success.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-info{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#3c90df;border:none;box-shadow:0 .125rem .75rem #1d6ab140;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-info:hover{color:#fff;background-color:#68a9e6;box-shadow:0 .375rem .75rem #1d6ab166;transform:translateY(-1px)}.btn-hero-info.focus,.btn-hero-info:focus{color:#fff;background-color:#68a9e6;box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-info.disabled,.btn-hero-info:disabled{color:#fff;background-color:#3c90df;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active,.btn-hero-info:not(:disabled):not(.disabled):active,.show>.btn-hero-info.dropdown-toggle{color:#fff;background-color:#1d6ab1;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active:focus,.btn-hero-info:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-info.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-warning{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#ffb119;border:none;box-shadow:0 .125rem .75rem #cc860040;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-warning:hover{color:#fff;background-color:#ffc24c;box-shadow:0 .375rem .75rem #cc860066;transform:translateY(-1px)}.btn-hero-warning.focus,.btn-hero-warning:focus{color:#fff;background-color:#ffc24c;box-shadow:0 .125rem .75rem #cc860040}.btn-hero-warning.disabled,.btn-hero-warning:disabled{color:#fff;background-color:#ffb119;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active,.btn-hero-warning:not(:disabled):not(.disabled):active,.show>.btn-hero-warning.dropdown-toggle{color:#fff;background-color:#cc8600;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active:focus,.btn-hero-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-warning.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cc860040}.btn-hero-danger{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#e04f1a;border:none;box-shadow:0 .125rem .75rem #9b371240;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-danger:hover{color:#fff;background-color:#e97044;box-shadow:0 .375rem .75rem #9b371266;transform:translateY(-1px)}.btn-hero-danger.focus,.btn-hero-danger:focus{color:#fff;background-color:#e97044;box-shadow:0 .125rem .75rem #9b371240}.btn-hero-danger.disabled,.btn-hero-danger:disabled{color:#fff;background-color:#e04f1a;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active,.btn-hero-danger:not(:disabled):not(.disabled):active,.show>.btn-hero-danger.dropdown-toggle{color:#fff;background-color:#9b3712;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active:focus,.btn-hero-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-danger.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #9b371240}.btn-hero-dark{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#343a40;border:none;box-shadow:0 .125rem .75rem #12141640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-dark:hover{color:#fff;background-color:#4b545c;box-shadow:0 .375rem .75rem #12141666;transform:translateY(-1px)}.btn-hero-dark.focus,.btn-hero-dark:focus{color:#fff;background-color:#4b545c;box-shadow:0 .125rem .75rem #12141640}.btn-hero-dark.disabled,.btn-hero-dark:disabled{color:#fff;background-color:#343a40;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active,.btn-hero-dark:not(:disabled):not(.disabled):active,.show>.btn-hero-dark.dropdown-toggle{color:#fff;background-color:#121416;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active:focus,.btn-hero-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-dark.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #12141640}.btn-hero-light{color:#212529;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#f8f9fa;border:none;box-shadow:0 .125rem .75rem #cbd3da40;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-light:hover{color:#212529;background-color:#fff;box-shadow:0 .375rem .75rem #cbd3da66;transform:translateY(-1px)}.btn-hero-light.focus,.btn-hero-light:focus{color:#212529;background-color:#fff;box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-light.disabled,.btn-hero-light:disabled{color:#212529;background-color:#f8f9fa;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active,.btn-hero-light:not(:disabled):not(.disabled):active,.show>.btn-hero-light.dropdown-toggle{color:#212529;background-color:#cbd3da;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active:focus,.btn-hero-light:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-light.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-lg{padding:.875rem 2.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-hero-sm{padding:.375rem 1.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-dual{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual.focus,.btn-dual:focus,.btn-dual:hover{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8;box-shadow:none}.btn-dual.disabled,.btn-dual:disabled{background-color:transparent;border-color:transparent}.btn-dual.active,.btn-dual:active{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual:not(:disabled):not(.disabled).active,.btn-dual:not(:disabled):not(.disabled):active,.show>.btn-dual.dropdown-toggle{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8}html.dark .markdown-body{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110,118,129,.4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-attention-fg: #d29922;--color-attention-subtle: rgba(187,128,9,.15);--color-danger-fg: #f85149;--color-done-fg: #a371f7}html:not(.dark) .markdown-body{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-neutral-muted: rgba(175,184,193,.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-fg: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-done-fg: #8250df}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .color-fg-accent{color:var(--color-accent-fg)!important}.markdown-body .color-fg-attention{color:var(--color-attention-fg)!important}.markdown-body .color-fg-done{color:var(--color-done-fg)!important}.markdown-body .flex-items-center{align-items:center!important}.markdown-body .mb-1{margin-bottom:var(--base-size-4, 4px)!important}.markdown-body .text-semibold{font-weight:var(--base-text-weight-medium, 500)!important}.markdown-body .d-inline-flex{display:inline-flex!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body .QueryBuilder .qb-entity{color:var(--color-prettylights-syntax-entity)}.markdown-body .QueryBuilder .qb-constant{color:var(--color-prettylights-syntax-constant)}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:0 1em;margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-fg)}*,:before,:after{box-sizing:border-box;background-repeat:no-repeat}:before,:after{text-decoration:inherit;vertical-align:inherit}:where(:root){cursor:default;line-height:1.5;overflow-wrap:break-word;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}:where(body){margin:0}:where(h1){font-size:2em;margin:.67em 0}:where(dl,ol,ul) :where(dl,ol,ul){margin:0}:where(hr){color:inherit;height:0}:where(nav) :where(ol,ul){list-style-type:none;padding:0}:where(nav li):before{content:"​";float:left}:where(pre){font-family:monospace,monospace;font-size:1em;overflow:auto}:where(abbr[title]){text-decoration:underline;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,samp){font-family:monospace,monospace;font-size:1em}:where(small){font-size:80%}:where(audio,canvas,iframe,img,svg,video){vertical-align:baseline}:where(iframe){border-style:none}:where(svg:not([fill])){fill:currentColor}:where(table){border-collapse:collapse;border-color:inherit;text-indent:0}:where(button,input,select){margin:0}:where(button,[type=button i],[type=reset i],[type=submit i]){-webkit-appearance:button}:where(fieldset){border:1px solid #a0a0a0}:where(progress){vertical-align:baseline}:where(textarea){margin:0;resize:vertical}:where([type=search i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(dialog){background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(details>summary:first-of-type){display:list-item}:where([aria-busy=true i]){cursor:progress}:where([aria-controls]){cursor:pointer}:where([aria-disabled=true i],[disabled]){cursor:not-allowed}:where([aria-hidden=false i][hidden]){display:initial}:where([aria-hidden=false i][hidden]:not(:focus)){clip:rect(0,0,0,0);position:absolute}html{font-size:16px}html,body{width:100%;height:100%;overflow:hidden;background-color:#f2f2f2;font-family:Encode Sans Condensed,sans-serif}html.dark body{background-color:#292b2b}::-webkit-scrollbar{width:8px;background-color:#eee}::-webkit-scrollbar-thumb{background-color:#c1c1c1}::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}html,body{width:100%;height:100%;overflow:hidden;font-size:16px}#app{width:100%;height:100%}.fade-slide-leave-active,.fade-slide-enter-active{transition:all .3s}.fade-slide-enter-from{opacity:0;transform:translate(-30px)}.fade-slide-leave-to{opacity:0;transform:translate(30px)}.cus-scroll{overflow:auto}.cus-scroll::-webkit-scrollbar{width:8px;height:8px}.cus-scroll-x{overflow-x:auto}.cus-scroll-x::-webkit-scrollbar{width:0;height:8px}.cus-scroll-y{overflow-y:auto}.cus-scroll-y::-webkit-scrollbar{width:8px;height:0}.cus-scroll::-webkit-scrollbar-thumb,.cus-scroll-x::-webkit-scrollbar-thumb,.cus-scroll-y::-webkit-scrollbar-thumb{background-color:transparent;border-radius:4px}.cus-scroll:hover::-webkit-scrollbar-thumb,.cus-scroll-x:hover::-webkit-scrollbar-thumb,.cus-scroll-y:hover::-webkit-scrollbar-thumb{background:#bfbfbf}.cus-scroll:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-x:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-y:hover::-webkit-scrollbar-thumb:hover{background:var(--primary-color)}#--unocss--{layer:__ALL__}#app{height:100%}#app .n-config-provider{height:inherit}.side-menu:not(.n-menu--collapsed) .n-menu-item-content:before{left:5px;right:5px}.side-menu:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.side-menu:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--primary-color)}.carousel-img[data-v-94f2350e]{width:100%;height:240px;object-fit:cover}.pay-qrcode{width:100%;height:100%}.pay-qrcode>canvas{width:100%!important;height:100%!important}.card-container[data-v-16d7c058]{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fit,minmax(calc(100% - 1rem),1fr));row-gap:20px;min-width:100%}.card-item[data-v-16d7c058]{max-width:100%}@media screen and (min-width: 768px){.card-container[data-v-16d7c058]{grid-template-columns:repeat(auto-fit,minmax(calc(50% - 1rem),1fr));column-gap:20px;min-width:375px}}@media screen and (min-width: 1200px){.card-container[data-v-16d7c058]{grid-template-columns:repeat(auto-fit,minmax(calc(33.33% - 1rem),1fr));padding:0 10px;column-gap:20px;min-width:375px}}#--unocss-layer-start--__ALL__--{start:__ALL__}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.wh-full,[wh-full=""]{width:100%;height:100%}.f-c-c,[f-c-c=""]{display:flex;align-items:center;justify-content:center}.flex-col,[flex-col=""]{display:flex;flex-direction:column}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-0{right:0}.right-4{right:16px}[bottom~="20"]{bottom:80px}.z-99999{z-index:99999}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.m-0{margin:0}.m-0\\!{margin:0!important}.m-3{margin:12px}.m-auto,[m-auto=""]{margin:auto}.mx-2\\.5{margin-left:10px;margin-right:10px}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:4px}.mb-1em{margin-bottom:1em}.mb-2{margin-bottom:8px}.mb-2\\.5{margin-bottom:10px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.ml-1{margin-left:4px}.ml-2\\.5{margin-left:10px}.ml-5{margin-left:20px}.ml-auto,[ml-auto=""]{margin-left:auto}.mr-0{margin-right:0}.mr-1\\.2{margin-right:4.8px}.mr-1\\.3{margin-right:5.2px}.mr-5{margin-right:20px}.mr-auto{margin-right:auto}.mr10,[mr10=""]{margin-right:40px}.mt-1{margin-top:4px}.mt-15,[mt-15=""]{margin-top:60px}.mt-2{margin-top:8px}.mt-2\\.5{margin-top:10px}.mt-4{margin-top:16px}.mt-5,[mt-5=""]{margin-top:20px}.mt-8{margin-top:32px}.inline-block{display:inline-block}.hidden{display:none}.h-1\\.5{height:6px}.h-15{height:60px}.h-35,[h-35=""]{height:140px}.h-5,.h5{height:20px}.h-60,[h-60=""]{height:240px}.h-8{height:32px}.h-9{height:36px}.h-auto{height:auto}.h-full,[h-full=""]{height:100%}.h-full\\!{height:100%!important}.h1{height:4px}.h2{height:8px}.h3{height:12px}.max-h-8{max-height:32px}.max-w-1200{max-width:4800px}.max-w-125{max-width:500px}.max-w-35{max-width:140px}.max-w-full{max-width:100%}.max-w-md{max-width:448px}.min-w-75{min-width:300px}.w-1\\.5{width:6px}.w-150{width:600px}.w-16{width:64px}.w-35,[w-35=""]{width:140px}.w-375{width:1500px}.w-5{width:20px}.w-75{width:300px}.w-8{width:32px}.w-auto{width:auto}.w-full{width:100%}.w-full\\!{width:100%!important}.flex,[flex=""]{display:flex}.flex-\\[1\\]{flex:1}.flex-\\[2\\]{flex:2}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}[transform-origin~=center]{transform-origin:center}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.resize{resize:both}.items-center,[items-center=""]{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:12px}.gap-5{gap:20px}.space-x-4>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(16px * calc(1 - var(--un-space-x-reverse)));margin-right:calc(16px * var(--un-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(16px * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(16px * var(--un-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(20px * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(20px * var(--un-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.break-anywhere{overflow-wrap:anywhere}.b{border-width:1px}.border-0,.dark [dark~=border-0]{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-\\[\\#646669\\]{--un-border-opacity:1;border-color:rgb(100 102 105 / var(--un-border-opacity))}.border-gray-600{--un-border-opacity:1;border-color:rgb(75 85 99 / var(--un-border-opacity))}.border-primary{border-color:var(--primary-color)}.border-transparent{border-color:transparent}.border-rounded-5,[border-rounded-5=""]{border-radius:20px}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.border-none{border-style:none}.border-solid{border-style:solid}.bg-\\[--n-color-embedded\\]{background-color:var(--n-color-embedded)}.bg-\\[--n-color\\]{background-color:var(--n-color)}.bg-\\[\\#f5f6fb\\],.bg-hex-f5f6fb{--un-bg-opacity:1;background-color:rgb(245 246 251 / var(--un-bg-opacity))}.bg-blue-500{--un-bg-opacity:1;background-color:rgb(59 130 246 / var(--un-bg-opacity))}.bg-dark,.dark [dark~=bg-dark]{--un-bg-opacity:1;background-color:rgb(24 24 28 / var(--un-bg-opacity))}.bg-gray-50{--un-bg-opacity:1;background-color:rgb(249 250 251 / var(--un-bg-opacity))}.bg-gray-800{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.bg-green-500{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity))}.bg-orange-600{--un-bg-opacity:1;background-color:rgb(234 88 12 / var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-101014{--un-bg-opacity:1;background-color:rgb(16 16 20 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-121212{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.dark .dark\\:bg-primary\\/20,.dark .dark\\:hover\\:bg-primary\\/20:hover{background-color:var(--primary-color)}.hover\\:bg-gray-100:hover{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.p-0{padding:0}.p-0\\!{padding:0!important}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2\\.5{padding:10px}.p-5{padding:20px}.p-6{padding:24px}.px,.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.pb-1{padding-bottom:4px}.pb-2\\.5{padding-bottom:10px}.pb-4{padding-bottom:16px}.pb-8{padding-bottom:32px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.pt-1{padding-top:4px}.pt-2{padding-top:8px}.pt-2\\.5{padding-top:10px}.pt-4{padding-top:16px}.pt-5{padding-top:20px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.indent{text-indent:24px}[indent~="0"]{text-indent:0}.root-indent:root{text-indent:24px}[root-indent~="18"]:root{text-indent:72px}.vertical-bottom{vertical-align:bottom}.text-14,[text-14=""]{font-size:56px}.text-3xl{font-size:30px;line-height:36px}.text-4xl{font-size:36px;line-height:40px}.text-5xl{font-size:48px;line-height:1}.text-9xl{font-size:128px;line-height:1}.text-base{font-size:16px;line-height:24px}.text-lg{font-size:18px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.color-\\[hsla\\(0\\,0\\%\\,100\\%\\,\\.75\\)\\]{--un-text-opacity:.75;color:hsla(0,0%,100%,var(--un-text-opacity))}.color-\\#48bc19{--un-text-opacity:1;color:rgb(72 188 25 / var(--un-text-opacity))}.color-\\#f8f9fa{--un-text-opacity:1;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f8f9fa41{--un-text-opacity:.25;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f9a314{--un-text-opacity:1;color:rgb(249 163 20 / var(--un-text-opacity))}.color-primary,.text-\\[--primary-color\\]{color:var(--primary-color)}[color~="#343a40"]{--un-text-opacity:1;color:rgb(52 58 64 / var(--un-text-opacity))}[color~="#6a6a6a"]{--un-text-opacity:1;color:rgb(106 106 106 / var(--un-text-opacity))}[color~="#6c757d"]{--un-text-opacity:1;color:rgb(108 117 125 / var(--un-text-opacity))}[color~="#db4619"]{--un-text-opacity:1;color:rgb(219 70 25 / var(--un-text-opacity))}[hover~=color-primary]:hover{color:var(--primary-color)}.dark .dark\\:text-gray-100{--un-text-opacity:1;color:rgb(243 244 246 / var(--un-text-opacity))}.dark .dark\\:text-gray-300,.text-gray-300{--un-text-opacity:1;color:rgb(209 213 219 / var(--un-text-opacity))}.text-\\[rgba\\(0\\,0\\,0\\,0\\.45\\)\\]{--un-text-opacity:.45;color:rgba(0,0,0,var(--un-text-opacity))}.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-600{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.text-gray-900{--un-text-opacity:1;color:rgb(17 24 39 / var(--un-text-opacity))}.text-green-400{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.decoration-underline,[hover~=decoration-underline]:hover{text-decoration-line:underline}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-85{opacity:.85}.hover\\:opacity-75:hover{opacity:.75}.shadow-black{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0 / var(--un-shadow-opacity))}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}[duration~="500"]{transition-duration:.5s}[content~="$t("]{content:var(--t\\()}.placeholder-gray-400::placeholder{--un-placeholder-opacity:1;color:rgb(156 163 175 / var(--un-placeholder-opacity))}[placeholder~="$t("]::placeholder{color:var(--t\\()}@media (min-width: 768px){.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:mb-10{margin-bottom:40px}.md\\:ml-5{margin-left:20px}.md\\:mr-2\\.5{margin-right:10px}.md\\:mt-10{margin-top:40px}.md\\:mt-5{margin-top:20px}.md\\:block{display:block}.md\\:hidden{display:none}.md\\:h-8{height:32px}.md\\:w-8{width:32px}.md\\:flex-\\[1\\]{flex:1}.md\\:flex-\\[2\\]{flex:2}.md\\:p-4{padding:16px}.md\\:pl-5{padding-left:20px}}@media (min-width: 1024px){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}#--unocss-layer-end--__ALL__--{end:__ALL__}`)),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); +var l3=Object.defineProperty;var c3=(e,t,n)=>t in e?l3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var u3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fd=(e,t,n)=>(c3(e,typeof t!="symbol"?t+"":t,n),n);var O7e=u3((Yn,Qn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Vh(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const on={},ps=[],Zn=()=>{},p3=()=>!1,jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wh=e=>e.startsWith("onUpdate:"),kn=Object.assign,Uh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},m3=Object.prototype.hasOwnProperty,Dt=(e,t)=>m3.call(e,t),pt=Array.isArray,ms=e=>Vc(e)==="[object Map]",sy=e=>Vc(e)==="[object Set]",vt=e=>typeof e=="function",un=e=>typeof e=="string",Ur=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",ay=e=>(Qt(e)||vt(e))&&vt(e.then)&&vt(e.catch),ly=Object.prototype.toString,Vc=e=>ly.call(e),g3=e=>Vc(e).slice(8,-1),cy=e=>Vc(e)==="[object Object]",qh=e=>un(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ba=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v3=/-(\w)/g,Eo=Wc(e=>e.replace(v3,(t,n)=>n?n.toUpperCase():"")),b3=/\B([A-Z])/g,qr=Wc(e=>e.replace(b3,"-$1").toLowerCase()),Uc=Wc(e=>e.charAt(0).toUpperCase()+e.slice(1)),pd=Wc(e=>e?`on${Uc(e)}`:""),Br=(e,t)=>!Object.is(e,t),ec=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},y3=e=>{const t=un(e)?Number(e):NaN;return isNaN(t)?e:t};let Zm;const dy=()=>Zm||(Zm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Li(e){if(pt(e)){const t={};for(let n=0;n{if(n){const o=n.split(C3);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ho(e){let t="";if(un(e))t=e;else if(pt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),ue=e=>un(e)?e:e==null?"":pt(e)||Qt(e)&&(e.toString===ly||!vt(e.toString))?hy(e)?ue(e.value):JSON.stringify(e,py,2):String(e),py=(e,t)=>hy(t)?py(e,t.value):ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[md(o,i)+" =>"]=r,n),{})}:sy(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>md(n))}:Ur(t)?md(t):Qt(t)&&!pt(t)&&!cy(t)?String(t):t,md=(e,t="")=>{var n;return Ur(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Vh(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const nn={},da=[],Gn=()=>{},d3=()=>!1,jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wh=e=>e.startsWith("onUpdate:"),wn=Object.assign,qh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f3=Object.prototype.hasOwnProperty,Mt=(e,t)=>f3.call(e,t),ct=Array.isArray,fa=e=>Uc(e)==="[object Map]",ry=e=>Uc(e)==="[object Set]",pt=e=>typeof e=="function",ln=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",iy=e=>(Qt(e)||pt(e))&&pt(e.then)&&pt(e.catch),ay=Object.prototype.toString,Uc=e=>ay.call(e),h3=e=>Uc(e).slice(8,-1),sy=e=>Uc(e)==="[object Object]",Kh=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},p3=/-(\w)/g,Eo=Vc(e=>e.replace(p3,(t,n)=>n?n.toUpperCase():"")),m3=/\B([A-Z])/g,qr=Vc(e=>e.replace(m3,"-$1").toLowerCase()),Wc=Vc(e=>e.charAt(0).toUpperCase()+e.slice(1)),hd=Vc(e=>e?`on${Wc(e)}`:""),Br=(e,t)=>!Object.is(e,t),Zl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},g3=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let Ym;const cy=()=>Ym||(Ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fi(e){if(ct(e)){const t={};for(let n=0;n{if(n){const o=n.split(b3);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function qn(e){let t="";if(ln(e))t=e;else if(ct(e))for(let n=0;n!!(e&&e.__v_isRef===!0),he=e=>ln(e)?e:e==null?"":ct(e)||Qt(e)&&(e.toString===ay||!pt(e.toString))?dy(e)?he(e.value):JSON.stringify(e,fy,2):String(e),fy=(e,t)=>dy(t)?fy(e,t.value):fa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[pd(o,i)+" =>"]=r,n),{})}:ry(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pd(n))}:Wr(t)?pd(t):Qt(t)&&!ct(t)&&!sy(t)?String(t):t,pd=(e,t="")=>{var n;return Wr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Yn;class my{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Yn,!t&&Yn&&(this.index=(Yn.scopes||(Yn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Yn;try{return Yn=this,t()}finally{Yn=n}}}on(){Yn=this}off(){Yn=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Gr()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Lr,n=xi;try{return Lr=!0,xi=this,this._runnings++,Jm(this),this.fn()}finally{Qm(this),this._runnings--,xi=n,Lr=t}}stop(){this.active&&(Jm(this),Qm(this),this.onStop&&this.onStop(),this.active=!1)}}function T3(e){return e.value}function Jm(e){e._trackId++,e._depsLength=0}function Qm(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},pc=new WeakMap,Ci=Symbol(""),Rf=Symbol("");function Un(e,t,n){if(Lr&&xi){let o=pc.get(e);o||pc.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Cy(()=>o.delete(n))),yy(xi,r)}}function lr(e,t,n,o,r,i){const s=pc.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&pt(e)){const l=Number(o);s.forEach((c,u)=>{(u==="length"||!Ur(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":pt(e)?qh(n)&&a.push(s.get("length")):(a.push(s.get(Ci)),ms(e)&&a.push(s.get(Rf)));break;case"delete":pt(e)||(a.push(s.get(Ci)),ms(e)&&a.push(s.get(Rf)));break;case"set":ms(e)&&a.push(s.get(Ci));break}Xh();for(const l of a)l&&xy(l,4);Zh()}function R3(e,t){const n=pc.get(e);return n&&n.get(t)}const E3=Vh("__proto__,__v_isRef,__isVue"),wy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ur)),eg=$3();function $3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Ot(this);for(let i=0,s=this.length;i{e[t]=function(...n){Kr(),Xh();const o=Ot(this)[t].apply(this,n);return Zh(),Gr(),o}}),e}function A3(e){Ur(e)||(e=String(e));const t=Ot(this);return Un(t,"has",e),t.hasOwnProperty(e)}class _y{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?W3:Ty:i?Py:ky).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=pt(t);if(!r){if(s&&Dt(eg,n))return Reflect.get(eg,n,o);if(n==="hasOwnProperty")return A3}const a=Reflect.get(t,n,o);return(Ur(n)?wy.has(n):E3(n))||(r||Un(t,"get",n),i)?a:dn(a)?s&&qh(n)?a:a.value:Qt(a)?r?po(a):ro(a):a}}class Sy extends _y{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=Ri(i);if(!ws(o)&&!Ri(o)&&(i=Ot(i),o=Ot(o)),!pt(t)&&dn(i)&&!dn(o))return l?!1:(i.value=o,!0)}const s=pt(t)&&qh(n)?Number(n)e,qc=e=>Reflect.getPrototypeOf(e);function Cl(e,t,n=!1,o=!1){e=e.__v_raw;const r=Ot(e),i=Ot(t);n||(Br(t,i)&&Un(r,"get",t),Un(r,"get",i));const{has:s}=qc(r),a=o?Jh:n?tp:Ba;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function wl(e,t=!1){const n=this.__v_raw,o=Ot(n),r=Ot(e);return t||(Br(e,r)&&Un(o,"has",e),Un(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function _l(e,t=!1){return e=e.__v_raw,!t&&Un(Ot(e),"iterate",Ci),Reflect.get(e,"size",e)}function tg(e,t=!1){!t&&!ws(e)&&!Ri(e)&&(e=Ot(e));const n=Ot(this);return qc(n).has.call(n,e)||(n.add(e),lr(n,"add",e,e)),this}function ng(e,t,n=!1){!n&&!ws(t)&&!Ri(t)&&(t=Ot(t));const o=Ot(this),{has:r,get:i}=qc(o);let s=r.call(o,e);s||(e=Ot(e),s=r.call(o,e));const a=i.call(o,e);return o.set(e,t),s?Br(t,a)&&lr(o,"set",e,t):lr(o,"add",e,t),this}function og(e){const t=Ot(this),{has:n,get:o}=qc(t);let r=n.call(t,e);r||(e=Ot(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&lr(t,"delete",e,void 0),i}function rg(){const e=Ot(this),t=e.size!==0,n=e.clear();return t&&lr(e,"clear",void 0,void 0),n}function Sl(e,t){return function(o,r){const i=this,s=i.__v_raw,a=Ot(s),l=t?Jh:e?tp:Ba;return!e&&Un(a,"iterate",Ci),s.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function kl(e,t,n){return function(...o){const r=this.__v_raw,i=Ot(r),s=ms(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=r[e](...o),u=n?Jh:t?tp:Ba;return!t&&Un(i,"iterate",l?Rf:Ci),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Cr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function D3(){const e={get(i){return Cl(this,i)},get size(){return _l(this)},has:wl,add:tg,set:ng,delete:og,clear:rg,forEach:Sl(!1,!1)},t={get(i){return Cl(this,i,!1,!0)},get size(){return _l(this)},has:wl,add(i){return tg.call(this,i,!0)},set(i,s){return ng.call(this,i,s,!0)},delete:og,clear:rg,forEach:Sl(!1,!0)},n={get(i){return Cl(this,i,!0)},get size(){return _l(this,!0)},has(i){return wl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:Sl(!0,!1)},o={get(i){return Cl(this,i,!0,!0)},get size(){return _l(this,!0)},has(i){return wl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:Sl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=kl(i,!1,!1),n[i]=kl(i,!0,!1),t[i]=kl(i,!1,!0),o[i]=kl(i,!0,!0)}),[e,n,t,o]}const[L3,F3,B3,N3]=D3();function Qh(e,t){const n=t?e?N3:B3:e?F3:L3;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Dt(n,r)&&r in o?n:o,r,i)}const H3={get:Qh(!1,!1)},j3={get:Qh(!1,!0)},V3={get:Qh(!0,!1)},ky=new WeakMap,Py=new WeakMap,Ty=new WeakMap,W3=new WeakMap;function U3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function q3(e){return e.__v_skip||!Object.isExtensible(e)?0:U3(g3(e))}function ro(e){return Ri(e)?e:ep(e,!1,M3,H3,ky)}function Ry(e){return ep(e,!1,z3,j3,Py)}function po(e){return ep(e,!0,O3,V3,Ty)}function ep(e,t,n,o,r){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=q3(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function wi(e){return Ri(e)?wi(e.__v_raw):!!(e&&e.__v_isReactive)}function Ri(e){return!!(e&&e.__v_isReadonly)}function ws(e){return!!(e&&e.__v_isShallow)}function Ey(e){return e?!!e.__v_raw:!1}function Ot(e){const t=e&&e.__v_raw;return t?Ot(t):e}function Fa(e){return Object.isExtensible(e)&&uy(e,"__v_skip",!0),e}const Ba=e=>Qt(e)?ro(e):e,tp=e=>Qt(e)?po(e):e;class $y{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Yh(()=>t(this._value),()=>ya(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=Ot(this);return(!t._cacheable||t.effect.dirty)&&Br(t._value,t._value=t.effect.run())&&ya(t,4),np(t),t.effect._dirtyLevel>=2&&ya(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function K3(e,t,n=!1){let o,r;const i=vt(e);return i?(o=e,r=Zn):(o=e.get,r=e.set),new $y(o,r,i||!r,n)}function np(e){var t;Lr&&xi&&(e=Ot(e),yy(xi,(t=e.dep)!=null?t:e.dep=Cy(()=>e.dep=void 0,e instanceof $y?e:void 0)))}function ya(e,t=4,n,o){e=Ot(e);const r=e.dep;r&&xy(r,t)}function dn(e){return!!(e&&e.__v_isRef===!0)}function H(e){return Ay(e,!1)}function Os(e){return Ay(e,!0)}function Ay(e,t){return dn(e)?e:new G3(e,t)}class G3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ot(t),this._value=n?t:Ba(t)}get value(){return np(this),this._value}set value(t){const n=this.__v_isShallow||ws(t)||Ri(t);t=n?t:Ot(t),Br(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Ba(t),ya(this,4))}}function _e(e){return dn(e)?e.value:e}const Y3={get:(e,t,n)=>_e(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return dn(r)&&!dn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Iy(e){return wi(e)?e:new Proxy(e,Y3)}class X3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>np(this),()=>ya(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Z3(e){return new X3(e)}function J3(e){const t=pt(e)?new Array(e.length):{};for(const n in e)t[n]=My(e,n);return t}class Q3{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return R3(Ot(this._object),this._key)}}class e4{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ze(e,t,n){return dn(e)?e:vt(e)?new e4(e):Qt(e)&&arguments.length>1?My(e,t,n):H(e)}function My(e,t,n){const o=e[t];return dn(o)?o:new Q3(e,t,n)}/** +**/let Wn;class hy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wn,!t&&Wn&&(this.index=(Wn.scopes||(Wn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wn;try{return Wn=this,t()}finally{Wn=n}}}on(){Wn=this}off(){Wn=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Gr()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Dr,n=xi;try{return Dr=!0,xi=this,this._runnings++,Qm(this),this.fn()}finally{Jm(this),this._runnings--,xi=n,Dr=t}}stop(){this.active&&(Qm(this),Jm(this),this.onStop&&this.onStop(),this.active=!1)}}function S3(e){return e.value}function Qm(e){e._trackId++,e._depsLength=0}function Jm(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},fc=new WeakMap,Ci=Symbol(""),Ef=Symbol("");function jn(e,t,n){if(Dr&&xi){let o=fc.get(e);o||fc.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yy(()=>o.delete(n))),vy(xi,r)}}function lr(e,t,n,o,r,i){const a=fc.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&ct(e)){const l=Number(o);a.forEach((c,u)=>{(u==="length"||!Wr(u)&&u>=l)&&s.push(c)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":ct(e)?Kh(n)&&s.push(a.get("length")):(s.push(a.get(Ci)),fa(e)&&s.push(a.get(Ef)));break;case"delete":ct(e)||(s.push(a.get(Ci)),fa(e)&&s.push(a.get(Ef)));break;case"set":fa(e)&&s.push(a.get(Ci));break}Qh();for(const l of s)l&&by(l,4);Jh()}function k3(e,t){const n=fc.get(e);return n&&n.get(t)}const P3=Vh("__proto__,__v_isRef,__isVue"),xy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wr)),Zm=T3();function T3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=It(this);for(let i=0,a=this.length;i{e[t]=function(...n){Kr(),Qh();const o=It(this)[t].apply(this,n);return Jh(),Gr(),o}}),e}function E3(e){Wr(e)||(e=String(e));const t=It(this);return jn(t,"has",e),t.hasOwnProperty(e)}class Cy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?H3:ky:i?Sy:_y).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=ct(t);if(!r){if(a&&Mt(Zm,n))return Reflect.get(Zm,n,o);if(n==="hasOwnProperty")return E3}const s=Reflect.get(t,n,o);return(Wr(n)?xy.has(n):P3(n))||(r||jn(t,"get",n),i)?s:cn(s)?a&&Kh(n)?s:s.value:Qt(s)?r?uo(s):to(s):s}}class wy extends Cy{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=Ei(i);if(!ba(o)&&!Ei(o)&&(i=It(i),o=It(o)),!ct(t)&&cn(i)&&!cn(o))return l?!1:(i.value=o,!0)}const a=ct(t)&&Kh(n)?Number(n)e,qc=e=>Reflect.getPrototypeOf(e);function xl(e,t,n=!1,o=!1){e=e.__v_raw;const r=It(e),i=It(t);n||(Br(t,i)&&jn(r,"get",t),jn(r,"get",i));const{has:a}=qc(r),s=o?Zh:n?np:zs;if(a.call(r,t))return s(e.get(t));if(a.call(r,i))return s(e.get(i));e!==r&&e.get(t)}function Cl(e,t=!1){const n=this.__v_raw,o=It(n),r=It(e);return t||(Br(e,r)&&jn(o,"has",e),jn(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function wl(e,t=!1){return e=e.__v_raw,!t&&jn(It(e),"iterate",Ci),Reflect.get(e,"size",e)}function eg(e,t=!1){!t&&!ba(e)&&!Ei(e)&&(e=It(e));const n=It(this);return qc(n).has.call(n,e)||(n.add(e),lr(n,"add",e,e)),this}function tg(e,t,n=!1){!n&&!ba(t)&&!Ei(t)&&(t=It(t));const o=It(this),{has:r,get:i}=qc(o);let a=r.call(o,e);a||(e=It(e),a=r.call(o,e));const s=i.call(o,e);return o.set(e,t),a?Br(t,s)&&lr(o,"set",e,t):lr(o,"add",e,t),this}function ng(e){const t=It(this),{has:n,get:o}=qc(t);let r=n.call(t,e);r||(e=It(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&lr(t,"delete",e,void 0),i}function og(){const e=It(this),t=e.size!==0,n=e.clear();return t&&lr(e,"clear",void 0,void 0),n}function _l(e,t){return function(o,r){const i=this,a=i.__v_raw,s=It(a),l=t?Zh:e?np:zs;return!e&&jn(s,"iterate",Ci),a.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Sl(e,t,n){return function(...o){const r=this.__v_raw,i=It(r),a=fa(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=r[e](...o),u=n?Zh:t?np:zs;return!t&&jn(i,"iterate",l?Ef:Ci),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:s?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Cr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function O3(){const e={get(i){return xl(this,i)},get size(){return wl(this)},has:Cl,add:eg,set:tg,delete:ng,clear:og,forEach:_l(!1,!1)},t={get(i){return xl(this,i,!1,!0)},get size(){return wl(this)},has:Cl,add(i){return eg.call(this,i,!0)},set(i,a){return tg.call(this,i,a,!0)},delete:ng,clear:og,forEach:_l(!1,!0)},n={get(i){return xl(this,i,!0)},get size(){return wl(this,!0)},has(i){return Cl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:_l(!0,!1)},o={get(i){return xl(this,i,!0,!0)},get size(){return wl(this,!0)},has(i){return Cl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:_l(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Sl(i,!1,!1),n[i]=Sl(i,!0,!1),t[i]=Sl(i,!1,!0),o[i]=Sl(i,!0,!0)}),[e,n,t,o]}const[M3,z3,F3,D3]=O3();function ep(e,t){const n=t?e?D3:F3:e?z3:M3;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Mt(n,r)&&r in o?n:o,r,i)}const L3={get:ep(!1,!1)},B3={get:ep(!1,!0)},N3={get:ep(!0,!1)},_y=new WeakMap,Sy=new WeakMap,ky=new WeakMap,H3=new WeakMap;function j3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function U3(e){return e.__v_skip||!Object.isExtensible(e)?0:j3(h3(e))}function to(e){return Ei(e)?e:tp(e,!1,A3,L3,_y)}function Py(e){return tp(e,!1,I3,B3,Sy)}function uo(e){return tp(e,!0,$3,N3,ky)}function tp(e,t,n,o,r){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=U3(e);if(a===0)return e;const s=new Proxy(e,a===2?o:n);return r.set(e,s),s}function wi(e){return Ei(e)?wi(e.__v_raw):!!(e&&e.__v_isReactive)}function Ei(e){return!!(e&&e.__v_isReadonly)}function ba(e){return!!(e&&e.__v_isShallow)}function Ty(e){return e?!!e.__v_raw:!1}function It(e){const t=e&&e.__v_raw;return t?It(t):e}function Ms(e){return Object.isExtensible(e)&&ly(e,"__v_skip",!0),e}const zs=e=>Qt(e)?to(e):e,np=e=>Qt(e)?uo(e):e;class Ey{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Yh(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=It(this);return(!t._cacheable||t.effect.dirty)&&Br(t._value,t._value=t.effect.run())&&gs(t,4),op(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function V3(e,t,n=!1){let o,r;const i=pt(e);return i?(o=e,r=Gn):(o=e.get,r=e.set),new Ey(o,r,i||!r,n)}function op(e){var t;Dr&&xi&&(e=It(e),vy(xi,(t=e.dep)!=null?t:e.dep=yy(()=>e.dep=void 0,e instanceof Ey?e:void 0)))}function gs(e,t=4,n,o){e=It(e);const r=e.dep;r&&by(r,t)}function cn(e){return!!(e&&e.__v_isRef===!0)}function U(e){return Ry(e,!1)}function Ia(e){return Ry(e,!0)}function Ry(e,t){return cn(e)?e:new W3(e,t)}class W3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:It(t),this._value=n?t:zs(t)}get value(){return op(this),this._value}set value(t){const n=this.__v_isShallow||ba(t)||Ei(t);t=n?t:It(t),Br(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:zs(t),gs(this,4))}}function Se(e){return cn(e)?e.value:e}const q3={get:(e,t,n)=>Se(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return cn(r)&&!cn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ay(e){return wi(e)?e:new Proxy(e,q3)}class K3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>op(this),()=>gs(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function G3(e){return new K3(e)}function X3(e){const t=ct(e)?new Array(e.length):{};for(const n in e)t[n]=$y(e,n);return t}class Y3{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return k3(It(this._object),this._key)}}class Q3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ue(e,t,n){return cn(e)?e:pt(e)?new Q3(e):Qt(e)&&arguments.length>1?$y(e,t,n):U(e)}function $y(e,t,n){const o=e[t];return cn(o)?o:new Y3(e,t,n)}/** * @vue/runtime-core v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Fr(e,t,n,o){try{return o?e(...o):e()}catch(r){Kc(r,t,n)}}function uo(e,t,n,o){if(vt(e)){const r=Fr(e,t,n,o);return r&&ay(r)&&r.catch(i=>{Kc(i,t,n)}),r}if(pt(e)){const r=[];for(let i=0;i>>1,r=On[o],i=Ha(r);iNo&&On.splice(t,1)}function r4(e){pt(e)?gs.push(...e):(!$r||!$r.includes(e,e.allowRecurse?hi+1:hi))&&gs.push(e),zy()}function ig(e,t,n=Na?No+1:0){for(;nHa(n)-Ha(o));if(gs.length=0,$r){$r.push(...t);return}for($r=t,hi=0;hi<$r.length;hi++){const n=$r[hi];n.active!==!1&&n()}$r=null,hi=0}}const Ha=e=>e.id==null?1/0:e.id,i4=(e,t)=>{const n=Ha(e)-Ha(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ly(e){Ef=!1,Na=!0,On.sort(i4);const t=Zn;try{for(No=0;No{o._d&&vg(-1);const i=mc(t);let s;try{s=e(...r)}finally{mc(i),o._d&&vg(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function hn(e,t){if(_n===null)return e;const n=ru(_n),o=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),rn(()=>{e.isUnmounting=!0}),e}const ao=[Function,Array],By={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ao,onEnter:ao,onAfterEnter:ao,onEnterCancelled:ao,onBeforeLeave:ao,onLeave:ao,onAfterLeave:ao,onLeaveCancelled:ao,onBeforeAppear:ao,onAppear:ao,onAfterAppear:ao,onAppearCancelled:ao},Ny=e=>{const t=e.subTree;return t.component?Ny(t.component):t},l4={name:"BaseTransition",props:By,setup(e,{slots:t}){const n=io(),o=Fy();return()=>{const r=t.default&&ip(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==Pn){i=f;break}}const s=Ot(e),{mode:a}=s;if(o.isLeaving)return gd(i);const l=sg(i);if(!l)return gd(i);let c=ja(l,s,o,n,f=>c=f);_s(l,c);const u=n.subTree,d=u&&sg(u);if(d&&d.type!==Pn&&!pi(l,d)&&Ny(n).type!==Pn){const f=ja(d,s,o,n);if(_s(d,f),a==="out-in"&&l.type!==Pn)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},gd(i);a==="in-out"&&l.type!==Pn&&(f.delayLeave=(h,p,m)=>{const g=Hy(o,d);g[String(d.key)]=d,h[Ar]=()=>{p(),h[Ar]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return i}}},c4=l4;function Hy(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function ja(e,t,n,o,r){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:w,onAppearCancelled:C}=t,S=String(e.key),_=Hy(n,e),x=(k,P)=>{k&&uo(k,o,9,P)},y=(k,P)=>{const I=P[1];x(k,P),pt(k)?k.every(R=>R.length<=1)&&I():k.length<=1&&I()},T={mode:s,persisted:a,beforeEnter(k){let P=l;if(!n.isMounted)if(i)P=g||l;else return;k[Ar]&&k[Ar](!0);const I=_[S];I&&pi(e,I)&&I.el[Ar]&&I.el[Ar](),x(P,[k])},enter(k){let P=c,I=u,R=d;if(!n.isMounted)if(i)P=b||c,I=w||u,R=C||d;else return;let W=!1;const O=k[Pl]=M=>{W||(W=!0,M?x(R,[k]):x(I,[k]),T.delayedLeave&&T.delayedLeave(),k[Pl]=void 0)};P?y(P,[k,O]):O()},leave(k,P){const I=String(e.key);if(k[Pl]&&k[Pl](!0),n.isUnmounting)return P();x(f,[k]);let R=!1;const W=k[Ar]=O=>{R||(R=!0,P(),O?x(m,[k]):x(p,[k]),k[Ar]=void 0,_[I]===e&&delete _[I])};_[I]=e,h?y(h,[k,W]):W()},clone(k){const P=ja(k,t,n,o,r);return r&&r(P),P}};return T}function gd(e){if(Yc(e))return e=mo(e),e.children=null,e}function sg(e){if(!Yc(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&vt(n.default))return n.default()}}function _s(e,t){e.shapeFlag&6&&e.component?_s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ip(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ikn({name:e.name},t,{setup:e}))():e}const xa=e=>!!e.type.__asyncLoader,Yc=e=>e.type.__isKeepAlive;function sp(e,t){jy(e,"a",t)}function Xc(e,t){jy(e,"da",t)}function jy(e,t,n=Tn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zc(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Yc(r.parent.vnode)&&u4(o,t,n,r),r=r.parent}}function u4(e,t,n,o){const r=Zc(t,e,o,!0);Fi(()=>{Uh(o[t],r)},n)}function Zc(e,t,n=Tn,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Kr();const a=il(n),l=uo(t,n,e,s);return a(),Gr(),l});return o?r.unshift(i):r.push(i),i}}const dr=e=>(t,n=Tn)=>{(!ou||e==="sp")&&Zc(e,(...o)=>t(...o),n)},mn=dr("bm"),Wt=dr("m"),Vy=dr("bu"),ap=dr("u"),rn=dr("bum"),Fi=dr("um"),d4=dr("sp"),f4=dr("rtg"),h4=dr("rtc");function p4(e,t=Tn){Zc("ec",e,t)}const lp="components";function Jc(e,t){return Uy(lp,e,!0,t)||e}const Wy=Symbol.for("v-ndc");function Qc(e){return un(e)?Uy(lp,e,!1)||e:e||Wy}function Uy(e,t,n=!0,o=!1){const r=_n||Tn;if(r){const i=r.type;if(e===lp){const a=iP(i,!1);if(a&&(a===t||a===Eo(t)||a===Uc(Eo(t))))return i}const s=ag(r[e]||i[e],t)||ag(r.appContext[e],t);return!s&&o?i:s}}function ag(e,t){return e&&(e[t]||e[Eo(t)]||e[Uc(Eo(t))])}function Wn(e,t,n,o){let r;const i=n&&n[o];if(pt(e)||un(e)){r=new Array(e.length);for(let s=0,a=e.length;st(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,l=s.length;aWa(t)?!(t.type===Pn||t.type===st&&!qy(t.children)):!0)?e:null}const $f=e=>e?fx(e)?ru(e):$f(e.parent):null,Ca=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$f(e.parent),$root:e=>$f(e.root),$emit:e=>e.emit,$options:e=>cp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,rp(e.update)}),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>B4.bind(e)}),vd=(e,t)=>e!==on&&!e.__isScriptSetup&&Dt(e,t),m4={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(vd(o,t))return s[t]=1,o[t];if(r!==on&&Dt(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&Dt(c,t))return s[t]=3,i[t];if(n!==on&&Dt(n,t))return s[t]=4,n[t];Af&&(s[t]=0)}}const u=Ca[t];let d,f;if(u)return t==="$attrs"&&Un(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==on&&Dt(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,Dt(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return vd(r,t)?(r[t]=n,!0):o!==on&&Dt(o,t)?(o[t]=n,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==on&&Dt(e,s)||vd(t,s)||(a=i[0])&&Dt(a,s)||Dt(o,s)||Dt(Ca,s)||Dt(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function lg(e){return pt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Af=!0;function g4(e){const t=cp(e),n=e.proxy,o=e.ctx;Af=!1,t.beforeCreate&&cg(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:w,destroyed:C,unmounted:S,render:_,renderTracked:x,renderTriggered:y,errorCaptured:T,serverPrefetch:k,expose:P,inheritAttrs:I,components:R,directives:W,filters:O}=t;if(c&&v4(c,o,null),s)for(const K in s){const J=s[K];vt(J)&&(o[K]=J.bind(n))}if(r){const K=r.call(n,n);Qt(K)&&(e.data=ro(K))}if(Af=!0,i)for(const K in i){const J=i[K],se=vt(J)?J.bind(n,n):vt(J.get)?J.get.bind(n,n):Zn,le=!vt(J)&&vt(J.set)?J.set.bind(n):Zn,F=D({get:se,set:le});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>F.value,set:E=>F.value=E})}if(a)for(const K in a)Ky(a[K],o,n,K);if(l){const K=vt(l)?l.call(n):l;Reflect.ownKeys(K).forEach(J=>{at(J,K[J])})}u&&cg(u,e,"c");function z(K,J){pt(J)?J.forEach(se=>K(se.bind(n))):J&&K(J.bind(n))}if(z(mn,d),z(Wt,f),z(Vy,h),z(ap,p),z(sp,m),z(Xc,g),z(p4,T),z(h4,x),z(f4,y),z(rn,w),z(Fi,S),z(d4,k),pt(P))if(P.length){const K=e.exposed||(e.exposed={});P.forEach(J=>{Object.defineProperty(K,J,{get:()=>n[J],set:se=>n[J]=se})})}else e.exposed||(e.exposed={});_&&e.render===Zn&&(e.render=_),I!=null&&(e.inheritAttrs=I),R&&(e.components=R),W&&(e.directives=W)}function v4(e,t,n=Zn){pt(e)&&(e=If(e));for(const o in e){const r=e[o];let i;Qt(r)?"default"in r?i=We(r.from||o,r.default,!0):i=We(r.from||o):i=We(r),dn(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function cg(e,t,n){uo(pt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ky(e,t,n,o){const r=o.includes(".")?lx(n,o):()=>n[o];if(un(e)){const i=t[e];vt(i)&&dt(r,i)}else if(vt(e))dt(r,e.bind(n));else if(Qt(e))if(pt(e))e.forEach(i=>Ky(i,t,n,o));else{const i=vt(e.handler)?e.handler.bind(n):t[e.handler];vt(i)&&dt(r,i,e)}}function cp(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>gc(l,c,s,!0)),gc(l,t,s)),Qt(t)&&i.set(t,l),l}function gc(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&gc(e,i,n,!0),r&&r.forEach(s=>gc(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=b4[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const b4={data:ug,props:dg,emits:dg,methods:pa,computed:pa,beforeCreate:Fn,created:Fn,beforeMount:Fn,mounted:Fn,beforeUpdate:Fn,updated:Fn,beforeDestroy:Fn,beforeUnmount:Fn,destroyed:Fn,unmounted:Fn,activated:Fn,deactivated:Fn,errorCaptured:Fn,serverPrefetch:Fn,components:pa,directives:pa,watch:x4,provide:ug,inject:y4};function ug(e,t){return t?e?function(){return kn(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function y4(e,t){return pa(If(e),If(t))}function If(e){if(pt(e)){const t={};for(let n=0;n1)return n&&vt(t)?t.call(o&&o.proxy):t}}function _4(){return!!(Tn||_n||_i)}const Yy={},Xy=()=>Object.create(Yy),Zy=e=>Object.getPrototypeOf(e)===Yy;function S4(e,t,n,o=!1){const r={},i=Xy();e.propsDefaults=Object.create(null),Jy(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Ry(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function k4(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Ot(r),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=Qy(d,t,!0);kn(s,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Qt(e)&&o.set(e,ps),ps;if(pt(i))for(let u=0;ue[0]==="_"||e==="$stable",up=e=>pt(e)?e.map(Bo):[Bo(e)],T4=(e,t,n)=>{if(t._n)return t;const o=pe((...r)=>up(t(...r)),n);return o._c=!1,o},tx=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ex(r))continue;const i=e[r];if(vt(i))t[r]=T4(r,i,o);else if(i!=null){const s=up(i);t[r]=()=>s}}},nx=(e,t)=>{const n=up(t);e.slots.default=()=>n},ox=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},R4=(e,t,n)=>{const o=e.slots=Xy();if(e.vnode.shapeFlag&32){const r=t._;r?(ox(o,t,n),n&&uy(o,"_",r,!0)):tx(t,o)}else t&&nx(e,t)},E4=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=on;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ox(r,t,n):(i=!t.$stable,tx(t,r)),s=t}else t&&(nx(e,t),s={default:1});if(i)for(const a in r)!ex(a)&&s[a]==null&&delete r[a]};function Of(e,t,n,o,r=!1){if(pt(e)){e.forEach((f,h)=>Of(f,t&&(pt(t)?t[h]:t),n,o,r));return}if(xa(o)&&!r)return;const i=o.shapeFlag&4?ru(o.component):o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===on?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(un(c)?(u[c]=null,Dt(d,c)&&(d[c]=null)):dn(c)&&(c.value=null)),vt(l))Fr(l,a,12,[s,u]);else{const f=un(l),h=dn(l);if(f||h){const p=()=>{if(e.f){const m=f?Dt(d,l)?d[l]:u[l]:l.value;r?pt(m)&&Uh(m,i):pt(m)?m.includes(i)||m.push(i):f?(u[l]=[i],Dt(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=s,Dt(d,l)&&(d[l]=s)):h&&(l.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Vn(p,n)):p()}}}const rx=Symbol("_vte"),$4=e=>e.__isTeleport,wa=e=>e&&(e.disabled||e.disabled===""),hg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zf=(e,t)=>{const n=e&&e.to;return un(n)?t?t(n):null:n},A4={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:g}}=c,b=wa(t.props);let{shapeFlag:w,children:C,dynamicChildren:S}=t;if(e==null){const _=t.el=m(""),x=t.anchor=m("");h(_,n,o),h(x,n,o);const y=t.target=zf(t.props,p),T=sx(y,t,m,h);y&&(s==="svg"||hg(y)?s="svg":(s==="mathml"||pg(y))&&(s="mathml"));const k=(P,I)=>{w&16&&u(C,P,I,r,i,s,a,l)};b?k(n,x):y&&k(y,T)}else{t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,x=t.target=e.target,y=t.targetAnchor=e.targetAnchor,T=wa(e.props),k=T?n:x,P=T?_:y;if(s==="svg"||hg(x)?s="svg":(s==="mathml"||pg(x))&&(s="mathml"),S?(f(e.dynamicChildren,S,k,r,i,s,a),dp(e,t,!0)):l||d(e,t,k,P,r,i,s,a,!1),b)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Tl(t,n,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=zf(t.props,p);I&&Tl(t,I,null,c,0)}else T&&Tl(t,x,y,c,1)}ix(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),s&16){const h=i||!wa(f);for(let p=0;p{if(U===B)return;U&&!pi(U,B)&&(Se=Q(U),E(U,te,xe,!0),U=null),B.patchFlag===-2&&(N=!1,B.dynamicChildren=null);const{type:ee,ref:we,shapeFlag:de}=B;switch(ee){case zs:g(U,B,ae,Se);break;case Pn:b(U,B,ae,Se);break;case tc:U==null&&w(B,ae,Se,ve);break;case st:R(U,B,ae,Se,te,xe,ve,$,N);break;default:de&1?_(U,B,ae,Se,te,xe,ve,$,N):de&6?W(U,B,ae,Se,te,xe,ve,$,N):(de&64||de&128)&&ee.process(U,B,ae,Se,te,xe,ve,$,N,ye)}we!=null&&te&&Of(we,U&&U.ref,xe,B||U,!B)},g=(U,B,ae,Se)=>{if(U==null)o(B.el=a(B.children),ae,Se);else{const te=B.el=U.el;B.children!==U.children&&c(te,B.children)}},b=(U,B,ae,Se)=>{U==null?o(B.el=l(B.children||""),ae,Se):B.el=U.el},w=(U,B,ae,Se)=>{[U.el,U.anchor]=p(U.children,B,ae,Se,U.el,U.anchor)},C=({el:U,anchor:B},ae,Se)=>{let te;for(;U&&U!==B;)te=f(U),o(U,ae,Se),U=te;o(B,ae,Se)},S=({el:U,anchor:B})=>{let ae;for(;U&&U!==B;)ae=f(U),r(U),U=ae;r(B)},_=(U,B,ae,Se,te,xe,ve,$,N)=>{B.type==="svg"?ve="svg":B.type==="math"&&(ve="mathml"),U==null?x(B,ae,Se,te,xe,ve,$,N):k(U,B,te,xe,ve,$,N)},x=(U,B,ae,Se,te,xe,ve,$)=>{let N,ee;const{props:we,shapeFlag:de,transition:he,dirs:re}=U;if(N=U.el=s(U.type,xe,we&&we.is,we),de&8?u(N,U.children):de&16&&T(U.children,N,null,Se,te,bd(U,xe),ve,$),re&&ri(U,null,Se,"created"),y(N,U,U.scopeId,ve,Se),we){for(const Ne in we)Ne!=="value"&&!ba(Ne)&&i(N,Ne,null,we[Ne],xe,Se);"value"in we&&i(N,"value",null,we.value,xe),(ee=we.onVnodeBeforeMount)&&Do(ee,Se,U)}re&&ri(U,null,Se,"beforeMount");const me=z4(te,he);me&&he.beforeEnter(N),o(N,B,ae),((ee=we&&we.onVnodeMounted)||me||re)&&Vn(()=>{ee&&Do(ee,Se,U),me&&he.enter(N),re&&ri(U,null,Se,"mounted")},te)},y=(U,B,ae,Se,te)=>{if(ae&&h(U,ae),Se)for(let xe=0;xe{for(let ee=N;ee{const $=B.el=U.el;let{patchFlag:N,dynamicChildren:ee,dirs:we}=B;N|=U.patchFlag&16;const de=U.props||on,he=B.props||on;let re;if(ae&&ii(ae,!1),(re=he.onVnodeBeforeUpdate)&&Do(re,ae,B,U),we&&ri(B,U,ae,"beforeUpdate"),ae&&ii(ae,!0),(de.innerHTML&&he.innerHTML==null||de.textContent&&he.textContent==null)&&u($,""),ee?P(U.dynamicChildren,ee,$,ae,Se,bd(B,te),xe):ve||J(U,B,$,null,ae,Se,bd(B,te),xe,!1),N>0){if(N&16)I($,de,he,ae,te);else if(N&2&&de.class!==he.class&&i($,"class",null,he.class,te),N&4&&i($,"style",de.style,he.style,te),N&8){const me=B.dynamicProps;for(let Ne=0;Ne{re&&Do(re,ae,B,U),we&&ri(B,U,ae,"updated")},Se)},P=(U,B,ae,Se,te,xe,ve)=>{for(let $=0;${if(B!==ae){if(B!==on)for(const xe in B)!ba(xe)&&!(xe in ae)&&i(U,xe,B[xe],null,te,Se);for(const xe in ae){if(ba(xe))continue;const ve=ae[xe],$=B[xe];ve!==$&&xe!=="value"&&i(U,xe,$,ve,te,Se)}"value"in ae&&i(U,"value",B.value,ae.value,te)}},R=(U,B,ae,Se,te,xe,ve,$,N)=>{const ee=B.el=U?U.el:a(""),we=B.anchor=U?U.anchor:a("");let{patchFlag:de,dynamicChildren:he,slotScopeIds:re}=B;re&&($=$?$.concat(re):re),U==null?(o(ee,ae,Se),o(we,ae,Se),T(B.children||[],ae,we,te,xe,ve,$,N)):de>0&&de&64&&he&&U.dynamicChildren?(P(U.dynamicChildren,he,ae,te,xe,ve,$),(B.key!=null||te&&B===te.subTree)&&dp(U,B,!0)):J(U,B,ae,we,te,xe,ve,$,N)},W=(U,B,ae,Se,te,xe,ve,$,N)=>{B.slotScopeIds=$,U==null?B.shapeFlag&512?te.ctx.activate(B,ae,Se,ve,N):O(B,ae,Se,te,xe,ve,N):M(U,B,N)},O=(U,B,ae,Se,te,xe,ve)=>{const $=U.component=eP(U,Se,te);if(Yc(U)&&($.ctx.renderer=ye),tP($,!1,ve),$.asyncDep){if(te&&te.registerDep($,z,ve),!U.el){const N=$.subTree=ie(Pn);b(null,N,B,ae)}}else z($,U,B,ae,te,xe,ve)},M=(U,B,ae)=>{const Se=B.component=U.component;if(W4(U,B,ae))if(Se.asyncDep&&!Se.asyncResolved){K(Se,B,ae);return}else Se.next=B,o4(Se.update),Se.effect.dirty=!0,Se.update();else B.el=U.el,Se.vnode=B},z=(U,B,ae,Se,te,xe,ve)=>{const $=()=>{if(U.isMounted){let{next:we,bu:de,u:he,parent:re,vnode:me}=U;{const nt=ax(U);if(nt){we&&(we.el=me.el,K(U,we,ve)),nt.asyncDep.then(()=>{U.isUnmounted||$()});return}}let Ne=we,He;ii(U,!1),we?(we.el=me.el,K(U,we,ve)):we=me,de&&ec(de),(He=we.props&&we.props.onVnodeBeforeUpdate)&&Do(He,re,we,me),ii(U,!0);const De=yd(U),ot=U.subTree;U.subTree=De,m(ot,De,d(ot.el),Q(ot),U,te,xe),we.el=De.el,Ne===null&&U4(U,De.el),he&&Vn(he,te),(He=we.props&&we.props.onVnodeUpdated)&&Vn(()=>Do(He,re,we,me),te)}else{let we;const{el:de,props:he}=B,{bm:re,m:me,parent:Ne}=U,He=xa(B);if(ii(U,!1),re&&ec(re),!He&&(we=he&&he.onVnodeBeforeMount)&&Do(we,Ne,B),ii(U,!0),de&&Le){const De=()=>{U.subTree=yd(U),Le(de,U.subTree,U,te,null)};He?B.type.__asyncLoader().then(()=>!U.isUnmounted&&De()):De()}else{const De=U.subTree=yd(U);m(null,De,ae,Se,U,te,xe),B.el=De.el}if(me&&Vn(me,te),!He&&(we=he&&he.onVnodeMounted)){const De=B;Vn(()=>Do(we,Ne,De),te)}(B.shapeFlag&256||Ne&&xa(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&U.a&&Vn(U.a,te),U.isMounted=!0,B=ae=Se=null}},N=U.effect=new Yh($,Zn,()=>rp(ee),U.scope),ee=U.update=()=>{N.dirty&&N.run()};ee.i=U,ee.id=U.uid,ii(U,!0),ee()},K=(U,B,ae)=>{B.component=U;const Se=U.vnode.props;U.vnode=B,U.next=null,k4(U,B.props,Se,ae),E4(U,B.children,ae),Kr(),ig(U),Gr()},J=(U,B,ae,Se,te,xe,ve,$,N=!1)=>{const ee=U&&U.children,we=U?U.shapeFlag:0,de=B.children,{patchFlag:he,shapeFlag:re}=B;if(he>0){if(he&128){le(ee,de,ae,Se,te,xe,ve,$,N);return}else if(he&256){se(ee,de,ae,Se,te,xe,ve,$,N);return}}re&8?(we&16&&fe(ee,te,xe),de!==ee&&u(ae,de)):we&16?re&16?le(ee,de,ae,Se,te,xe,ve,$,N):fe(ee,te,xe,!0):(we&8&&u(ae,""),re&16&&T(de,ae,Se,te,xe,ve,$,N))},se=(U,B,ae,Se,te,xe,ve,$,N)=>{U=U||ps,B=B||ps;const ee=U.length,we=B.length,de=Math.min(ee,we);let he;for(he=0;hewe?fe(U,te,xe,!0,!1,de):T(B,ae,Se,te,xe,ve,$,N,de)},le=(U,B,ae,Se,te,xe,ve,$,N)=>{let ee=0;const we=B.length;let de=U.length-1,he=we-1;for(;ee<=de&&ee<=he;){const re=U[ee],me=B[ee]=N?Ir(B[ee]):Bo(B[ee]);if(pi(re,me))m(re,me,ae,null,te,xe,ve,$,N);else break;ee++}for(;ee<=de&&ee<=he;){const re=U[de],me=B[he]=N?Ir(B[he]):Bo(B[he]);if(pi(re,me))m(re,me,ae,null,te,xe,ve,$,N);else break;de--,he--}if(ee>de){if(ee<=he){const re=he+1,me=rehe)for(;ee<=de;)E(U[ee],te,xe,!0),ee++;else{const re=ee,me=ee,Ne=new Map;for(ee=me;ee<=he;ee++){const X=B[ee]=N?Ir(B[ee]):Bo(B[ee]);X.key!=null&&Ne.set(X.key,ee)}let He,De=0;const ot=he-me+1;let nt=!1,Ge=0;const Me=new Array(ot);for(ee=0;ee=ot){E(X,te,xe,!0);continue}let ce;if(X.key!=null)ce=Ne.get(X.key);else for(He=me;He<=he;He++)if(Me[He-me]===0&&pi(X,B[He])){ce=He;break}ce===void 0?E(X,te,xe,!0):(Me[ce-me]=ee+1,ce>=Ge?Ge=ce:nt=!0,m(X,B[ce],ae,null,te,xe,ve,$,N),De++)}const tt=nt?D4(Me):ps;for(He=tt.length-1,ee=ot-1;ee>=0;ee--){const X=me+ee,ce=B[X],Ee=X+1{const{el:xe,type:ve,transition:$,children:N,shapeFlag:ee}=U;if(ee&6){F(U.component.subTree,B,ae,Se);return}if(ee&128){U.suspense.move(B,ae,Se);return}if(ee&64){ve.move(U,B,ae,ye);return}if(ve===st){o(xe,B,ae);for(let de=0;de$.enter(xe),te);else{const{leave:de,delayLeave:he,afterLeave:re}=$,me=()=>o(xe,B,ae),Ne=()=>{de(xe,()=>{me(),re&&re()})};he?he(xe,me,Ne):Ne()}else o(xe,B,ae)},E=(U,B,ae,Se=!1,te=!1)=>{const{type:xe,props:ve,ref:$,children:N,dynamicChildren:ee,shapeFlag:we,patchFlag:de,dirs:he,cacheIndex:re}=U;if(de===-2&&(te=!1),$!=null&&Of($,null,ae,U,!0),re!=null&&(B.renderCache[re]=void 0),we&256){B.ctx.deactivate(U);return}const me=we&1&&he,Ne=!xa(U);let He;if(Ne&&(He=ve&&ve.onVnodeBeforeUnmount)&&Do(He,B,U),we&6)ne(U.component,ae,Se);else{if(we&128){U.suspense.unmount(ae,Se);return}me&&ri(U,null,B,"beforeUnmount"),we&64?U.type.remove(U,B,ae,ye,Se):ee&&!ee.hasOnce&&(xe!==st||de>0&&de&64)?fe(ee,B,ae,!1,!0):(xe===st&&de&384||!te&&we&16)&&fe(N,B,ae),Se&&A(U)}(Ne&&(He=ve&&ve.onVnodeUnmounted)||me)&&Vn(()=>{He&&Do(He,B,U),me&&ri(U,null,B,"unmounted")},ae)},A=U=>{const{type:B,el:ae,anchor:Se,transition:te}=U;if(B===st){Y(ae,Se);return}if(B===tc){S(U);return}const xe=()=>{r(ae),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(U.shapeFlag&1&&te&&!te.persisted){const{leave:ve,delayLeave:$}=te,N=()=>ve(ae,xe);$?$(U.el,xe,N):N()}else xe()},Y=(U,B)=>{let ae;for(;U!==B;)ae=f(U),r(U),U=ae;r(B)},ne=(U,B,ae)=>{const{bum:Se,scope:te,update:xe,subTree:ve,um:$,m:N,a:ee}=U;mg(N),mg(ee),Se&&ec(Se),te.stop(),xe&&(xe.active=!1,E(ve,U,B,ae)),$&&Vn($,B),Vn(()=>{U.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},fe=(U,B,ae,Se=!1,te=!1,xe=0)=>{for(let ve=xe;ve{if(U.shapeFlag&6)return Q(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const B=f(U.anchor||U.el),ae=B&&B[rx];return ae?f(ae):B};let Ce=!1;const j=(U,B,ae)=>{U==null?B._vnode&&E(B._vnode,null,null,!0):m(B._vnode||null,U,B,null,null,null,ae),B._vnode=U,Ce||(Ce=!0,ig(),Dy(),Ce=!1)},ye={p:m,um:E,m:F,r:A,mt:O,mc:T,pc:J,pbc:P,n:Q,o:e};let Ie,Le;return t&&([Ie,Le]=t(ye)),{render:j,hydrate:Ie,createApp:w4(j,Ie)}}function bd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ii({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function z4(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dp(e,t,n=!1){const o=e.children,r=t.children;if(pt(o)&&pt(r))for(let i=0;i>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function ax(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ax(t)}function mg(e){if(e)for(let t=0;tWe(L4);function Jt(e,t){return fp(e,null,t)}const Rl={};function dt(e,t,n){return fp(e,t,n)}function fp(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:a}=on){if(t&&i){const x=t;t=(...y)=>{x(...y),_()}}const l=Tn,c=x=>o===!0?x:zr(x,o===!1?1:void 0);let u,d=!1,f=!1;if(dn(e)?(u=()=>e.value,d=ws(e)):wi(e)?(u=()=>c(e),d=!0):pt(e)?(f=!0,d=e.some(x=>wi(x)||ws(x)),u=()=>e.map(x=>{if(dn(x))return x.value;if(wi(x))return c(x);if(vt(x))return Fr(x,l,2)})):vt(e)?t?u=()=>Fr(e,l,2):u=()=>(h&&h(),uo(e,l,3,[p])):u=Zn,t&&o){const x=u;u=()=>zr(x())}let h,p=x=>{h=C.onStop=()=>{Fr(x,l,4),h=C.onStop=void 0}},m;if(ou)if(p=Zn,t?n&&uo(t,l,3,[u(),f?[]:void 0,p]):u(),r==="sync"){const x=F4();m=x.__watcherHandles||(x.__watcherHandles=[])}else return Zn;let g=f?new Array(e.length).fill(Rl):Rl;const b=()=>{if(!(!C.active||!C.dirty))if(t){const x=C.run();(o||d||(f?x.some((y,T)=>Br(y,g[T])):Br(x,g)))&&(h&&h(),uo(t,l,3,[x,g===Rl?void 0:f&&g[0]===Rl?[]:g,p]),g=x)}else C.run()};b.allowRecurse=!!t;let w;r==="sync"?w=b:r==="post"?w=()=>Vn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),w=()=>rp(b));const C=new Yh(u,Zn,w),S=Gh(),_=()=>{C.stop(),S&&Uh(S.effects,C)};return t?n?b():g=C.run():r==="post"?Vn(C.run.bind(C),l&&l.suspense):C.run(),m&&m.push(_),_}function B4(e,t,n){const o=this.proxy,r=un(e)?e.includes(".")?lx(o,e):()=>o[e]:e.bind(o,o);let i;vt(t)?i=t:(i=t.handler,n=t);const s=il(this),a=fp(r,i.bind(o),n);return s(),a}function lx(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r{zr(o,t,n)});else if(cy(e)){for(const o in e)zr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&zr(e[o],t,n)}return e}const N4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Eo(t)}Modifiers`]||e[`${qr(t)}Modifiers`];function H4(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||on;let r=n;const i=t.startsWith("update:"),s=i&&N4(o,t.slice(7));s&&(s.trim&&(r=n.map(u=>un(u)?u.trim():u)),s.number&&(r=n.map(kf)));let a,l=o[a=pd(t)]||o[a=pd(Eo(t))];!l&&i&&(l=o[a=pd(qr(t))]),l&&uo(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,uo(c,e,6,r)}}function cx(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!vt(e)){const l=c=>{const u=cx(c,t,!0);u&&(a=!0,kn(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Qt(e)&&o.set(e,null),null):(pt(i)?i.forEach(l=>s[l]=null):kn(s,i),Qt(e)&&o.set(e,s),s)}function nu(e,t){return!e||!jc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,qr(t))||Dt(e,t))}function yd(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,g=mc(e);let b,w;try{if(n.shapeFlag&4){const S=r||o,_=S;b=Bo(c.call(_,S,u,d,h,f,p)),w=a}else{const S=t;b=Bo(S.length>1?S(d,{attrs:a,slots:s,emit:l}):S(d,null)),w=t.props?a:j4(a)}}catch(S){_a.length=0,Kc(S,e,1),b=ie(Pn)}let C=b;if(w&&m!==!1){const S=Object.keys(w),{shapeFlag:_}=C;S.length&&_&7&&(i&&S.some(Wh)&&(w=V4(w,i)),C=mo(C,w,!1,!0))}return n.dirs&&(C=mo(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),b=C,mc(g),b}const j4=e=>{let t;for(const n in e)(n==="class"||n==="style"||jc(n))&&((t||(t={}))[n]=e[n]);return t},V4=(e,t)=>{const n={};for(const o in e)(!Wh(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function W4(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?gg(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function K4(e,t){t&&t.pendingBranch?pt(e)?t.effects.push(...e):t.effects.push(e):r4(e)}const st=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),Pn=Symbol.for("v-cmt"),tc=Symbol.for("v-stc"),_a=[];let Jn=null;function ge(e=!1){_a.push(Jn=e?null:[])}function G4(){_a.pop(),Jn=_a[_a.length-1]||null}let Va=1;function vg(e){Va+=e,e<0&&Jn&&(Jn.hasOnce=!0)}function ux(e){return e.dynamicChildren=Va>0?Jn||ps:null,G4(),Va>0&&Jn&&Jn.push(e),e}function Oe(e,t,n,o,r,i){return ux(q(e,t,n,o,r,i,!0))}function Ke(e,t,n,o,r){return ux(ie(e,t,n,o,r,!0))}function Wa(e){return e?e.__v_isVNode===!0:!1}function pi(e,t){return e.type===t.type&&e.key===t.key}const dx=({key:e})=>e??null,nc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?un(e)||dn(e)||vt(e)?{i:_n,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,o=0,r=null,i=e===st?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dx(t),ref:t&&nc(t),scopeId:Gc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_n};return a?(hp(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=un(n)?8:16),Va>0&&!s&&Jn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Jn.push(l),l}const ie=Y4;function Y4(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Wy)&&(e=Pn),Wa(e)){const a=mo(e,t,!0);return n&&hp(a,n),Va>0&&!i&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag=-2,a}if(sP(e)&&(e=e.__vccOpts),t){t=X4(t);let{class:a,style:l}=t;a&&!un(a)&&(t.class=ho(a)),Qt(l)&&(Ey(l)&&!pt(l)&&(l=kn({},l)),t.style=Li(l))}const s=un(e)?1:q4(e)?128:$4(e)?64:Qt(e)?4:vt(e)?2:0;return q(e,t,n,o,r,s,i,!0)}function X4(e){return e?Ey(e)||Zy(e)?kn({},e):e:null}function mo(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:a,transition:l}=e,c=t?Ln(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&dx(c),ref:t&&t.ref?n&&i?pt(i)?i.concat(nc(t)):[i,nc(t)]:nc(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mo(e.ssContent),ssFallback:e.ssFallback&&mo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&_s(u,l.clone(u)),u}function it(e=" ",t=0){return ie(zs,null,e,t)}function Z4(e,t){const n=ie(tc,null,e);return n.staticCount=t,n}function gt(e="",t=!1){return t?(ge(),Ke(Pn,null,e)):ie(Pn,null,e)}function Bo(e){return e==null||typeof e=="boolean"?ie(Pn):pt(e)?ie(st,null,e.slice()):typeof e=="object"?Ir(e):ie(zs,null,String(e))}function Ir(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mo(e)}function hp(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(pt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),hp(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Zy(t)?t._ctx=_n:r===3&&_n&&(_n.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),o&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ln(...e){const t={};for(let n=0;nTn||_n;let vc,Df;{const e=dy(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};vc=t("__VUE_INSTANCE_SETTERS__",n=>Tn=n),Df=t("__VUE_SSR_SETTERS__",n=>ou=n)}const il=e=>{const t=Tn;return vc(e),e.scope.on(),()=>{e.scope.off(),vc(t)}},bg=()=>{Tn&&Tn.scope.off(),vc(null)};function fx(e){return e.vnode.shapeFlag&4}let ou=!1;function tP(e,t=!1,n=!1){t&&Df(t);const{props:o,children:r}=e.vnode,i=fx(e);S4(e,o,i,t),R4(e,r,n);const s=i?nP(e,t):void 0;return t&&Df(!1),s}function nP(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,m4);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?rP(e):null,i=il(e);Kr();const s=Fr(o,e,0,[e.props,r]);if(Gr(),i(),ay(s)){if(s.then(bg,bg),t)return s.then(a=>{yg(e,a,t)}).catch(a=>{Kc(a,e,0)});e.asyncDep=s}else yg(e,s,t)}else hx(e,t)}function yg(e,t,n){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=Iy(t)),hx(e,n)}let xg;function hx(e,t,n){const o=e.type;if(!e.render){if(!t&&xg&&!o.render){const r=o.template||cp(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=kn(kn({isCustomElement:i,delimiters:a},s),l);o.render=xg(r,c)}}e.render=o.render||Zn}{const r=il(e);Kr();try{g4(e)}finally{Gr(),r()}}}const oP={get(e,t){return Un(e,"get",""),e[t]}};function rP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,oP),slots:e.slots,emit:e.emit,expose:t}}function ru(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Iy(Fa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ca)return Ca[n](e)},has(t,n){return n in t||n in Ca}})):e.proxy}function iP(e,t=!0){return vt(e)?e.displayName||e.name:e.name||t&&e.__name}function sP(e){return vt(e)&&"__vccOpts"in e}const D=(e,t)=>K3(e,t,ou);function v(e,t,n){const o=arguments.length;return o===2?Qt(t)&&!pt(t)?Wa(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wa(n)&&(n=[n]),ie(e,t,n))}const aP="3.4.38";/** +**/function Lr(e,t,n,o){try{return o?e(...o):e()}catch(r){Kc(r,t,n)}}function so(e,t,n,o){if(pt(e)){const r=Lr(e,t,n,o);return r&&iy(r)&&r.catch(i=>{Kc(i,t,n)}),r}if(ct(e)){const r=[];for(let i=0;i>>1,r=An[o],i=Ds(r);iNo&&An.splice(t,1)}function tP(e){ct(e)?ha.push(...e):(!Ar||!Ar.includes(e,e.allowRecurse?hi+1:hi))&&ha.push(e),Oy()}function rg(e,t,n=Fs?No+1:0){for(;nDs(n)-Ds(o));if(ha.length=0,Ar){Ar.push(...t);return}for(Ar=t,hi=0;hie.id==null?1/0:e.id,nP=(e,t)=>{const n=Ds(e)-Ds(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zy(e){Rf=!1,Fs=!0,An.sort(nP);const t=Gn;try{for(No=0;No{o._d&&gg(-1);const i=hc(t);let a;try{a=e(...r)}finally{hc(i),o._d&&gg(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function dn(e,t){if(xn===null)return e;const n=nu(xn),o=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const ro=[Function,Array],Ly={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ro,onEnter:ro,onAfterEnter:ro,onEnterCancelled:ro,onBeforeLeave:ro,onLeave:ro,onAfterLeave:ro,onLeaveCancelled:ro,onBeforeAppear:ro,onAppear:ro,onAfterAppear:ro,onAppearCancelled:ro},By=e=>{const t=e.subTree;return t.component?By(t.component):t},oP={name:"BaseTransition",props:Ly,setup(e,{slots:t}){const n=no(),o=Dy();return()=>{const r=t.default&&ap(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==_n){i=f;break}}const a=It(e),{mode:s}=a;if(o.isLeaving)return md(i);const l=ig(i);if(!l)return md(i);let c=Ls(l,a,o,n,f=>c=f);ya(l,c);const u=n.subTree,d=u&&ig(u);if(d&&d.type!==_n&&!pi(l,d)&&By(n).type!==_n){const f=Ls(d,a,o,n);if(ya(d,f),s==="out-in"&&l.type!==_n)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},md(i);s==="in-out"&&l.type!==_n&&(f.delayLeave=(h,p,g)=>{const m=Ny(o,d);m[String(d.key)]=d,h[$r]=()=>{p(),h[$r]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}},rP=oP;function Ny(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ls(e,t,n,o,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:b,onAfterAppear:w,onAppearCancelled:C}=t,_=String(e.key),S=Ny(n,e),y=(k,T)=>{k&&so(k,o,9,T)},x=(k,T)=>{const R=T[1];y(k,T),ct(k)?k.every(E=>E.length<=1)&&R():k.length<=1&&R()},P={mode:a,persisted:s,beforeEnter(k){let T=l;if(!n.isMounted)if(i)T=m||l;else return;k[$r]&&k[$r](!0);const R=S[_];R&&pi(e,R)&&R.el[$r]&&R.el[$r](),y(T,[k])},enter(k){let T=c,R=u,E=d;if(!n.isMounted)if(i)T=b||c,R=w||u,E=C||d;else return;let q=!1;const D=k[kl]=B=>{q||(q=!0,B?y(E,[k]):y(R,[k]),P.delayedLeave&&P.delayedLeave(),k[kl]=void 0)};T?x(T,[k,D]):D()},leave(k,T){const R=String(e.key);if(k[kl]&&k[kl](!0),n.isUnmounting)return T();y(f,[k]);let E=!1;const q=k[$r]=D=>{E||(E=!0,T(),D?y(g,[k]):y(p,[k]),k[$r]=void 0,S[R]===e&&delete S[R])};S[R]=e,h?x(h,[k,q]):q()},clone(k){const T=Ls(k,t,n,o,r);return r&&r(T),T}};return P}function md(e){if(Gc(e))return e=fo(e),e.children=null,e}function ig(e){if(!Gc(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pt(n.default))return n.default()}}function ya(e,t){e.shapeFlag&6&&e.component?ya(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ap(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iwn({name:e.name},t,{setup:e}))():e}const vs=e=>!!e.type.__asyncLoader,Gc=e=>e.type.__isKeepAlive;function sp(e,t){Hy(e,"a",t)}function Xc(e,t){Hy(e,"da",t)}function Hy(e,t,n=Sn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Yc(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Gc(r.parent.vnode)&&iP(o,t,n,r),r=r.parent}}function iP(e,t,n,o){const r=Yc(t,e,o,!0);Oa(()=>{qh(o[t],r)},n)}function Yc(e,t,n=Sn,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Kr();const s=ol(n),l=so(t,n,e,a);return s(),Gr(),l});return o?r.unshift(i):r.push(i),i}}const fr=e=>(t,n=Sn)=>{(!tu||e==="sp")&&Yc(e,(...o)=>t(...o),n)},hn=fr("bm"),jt=fr("m"),jy=fr("bu"),lp=fr("u"),on=fr("bum"),Oa=fr("um"),aP=fr("sp"),sP=fr("rtg"),lP=fr("rtc");function cP(e,t=Sn){Yc("ec",e,t)}const cp="components";function Qc(e,t){return Vy(cp,e,!0,t)||e}const Uy=Symbol.for("v-ndc");function xa(e){return ln(e)?Vy(cp,e,!1)||e:e||Uy}function Vy(e,t,n=!0,o=!1){const r=xn||Sn;if(r){const i=r.type;if(e===cp){const s=ZP(i,!1);if(s&&(s===t||s===Eo(t)||s===Wc(Eo(t))))return i}const a=ag(r[e]||i[e],t)||ag(r.appContext[e],t);return!a&&o?i:a}}function ag(e,t){return e&&(e[t]||e[Eo(t)]||e[Wc(Eo(t))])}function Fn(e,t,n,o){let r;const i=n&&n[o];if(ct(e)||ln(e)){r=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,l=a.length;sNs(t)?!(t.type===_n||t.type===rt&&!Wy(t.children)):!0)?e:null}const Af=e=>e?dx(e)?nu(e):Af(e.parent):null,bs=wn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Af(e.parent),$root:e=>Af(e.root),$emit:e=>e.emit,$options:e=>up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ip(e.update)}),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>MP.bind(e)}),gd=(e,t)=>e!==nn&&!e.__isScriptSetup&&Mt(e,t),uP={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(gd(o,t))return a[t]=1,o[t];if(r!==nn&&Mt(r,t))return a[t]=2,r[t];if((c=e.propsOptions[0])&&Mt(c,t))return a[t]=3,i[t];if(n!==nn&&Mt(n,t))return a[t]=4,n[t];$f&&(a[t]=0)}}const u=bs[t];let d,f;if(u)return t==="$attrs"&&jn(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==nn&&Mt(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return gd(r,t)?(r[t]=n,!0):o!==nn&&Mt(o,t)?(o[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},a){let s;return!!n[a]||e!==nn&&Mt(e,a)||gd(t,a)||(s=i[0])&&Mt(s,a)||Mt(o,a)||Mt(bs,a)||Mt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sg(e){return ct(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $f=!0;function dP(e){const t=up(e),n=e.proxy,o=e.ctx;$f=!1,t.beforeCreate&&lg(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:w,destroyed:C,unmounted:_,render:S,renderTracked:y,renderTriggered:x,errorCaptured:P,serverPrefetch:k,expose:T,inheritAttrs:R,components:E,directives:q,filters:D}=t;if(c&&fP(c,o,null),a)for(const K in a){const V=a[K];pt(V)&&(o[K]=V.bind(n))}if(r){const K=r.call(n,n);Qt(K)&&(e.data=to(K))}if($f=!0,i)for(const K in i){const V=i[K],ae=pt(V)?V.bind(n,n):pt(V.get)?V.get.bind(n,n):Gn,pe=!pt(V)&&pt(V.set)?V.set.bind(n):Gn,Z=I({get:ae,set:pe});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>Z.value,set:N=>Z.value=N})}if(s)for(const K in s)qy(s[K],o,n,K);if(l){const K=pt(l)?l.call(n):l;Reflect.ownKeys(K).forEach(V=>{at(V,K[V])})}u&&lg(u,e,"c");function M(K,V){ct(V)?V.forEach(ae=>K(ae.bind(n))):V&&K(V.bind(n))}if(M(hn,d),M(jt,f),M(jy,h),M(lp,p),M(sp,g),M(Xc,m),M(cP,P),M(lP,y),M(sP,x),M(on,w),M(Oa,_),M(aP,k),ct(T))if(T.length){const K=e.exposed||(e.exposed={});T.forEach(V=>{Object.defineProperty(K,V,{get:()=>n[V],set:ae=>n[V]=ae})})}else e.exposed||(e.exposed={});S&&e.render===Gn&&(e.render=S),R!=null&&(e.inheritAttrs=R),E&&(e.components=E),q&&(e.directives=q)}function fP(e,t,n=Gn){ct(e)&&(e=If(e));for(const o in e){const r=e[o];let i;Qt(r)?"default"in r?i=Ve(r.from||o,r.default,!0):i=Ve(r.from||o):i=Ve(r),cn(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function lg(e,t,n){so(ct(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function qy(e,t,n,o){const r=o.includes(".")?sx(n,o):()=>n[o];if(ln(e)){const i=t[e];pt(i)&&ft(r,i)}else if(pt(e))ft(r,e.bind(n));else if(Qt(e))if(ct(e))e.forEach(i=>qy(i,t,n,o));else{const i=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(i)&&ft(r,i,e)}}function up(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>pc(l,c,a,!0)),pc(l,t,a)),Qt(t)&&i.set(t,l),l}function pc(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&pc(e,i,n,!0),r&&r.forEach(a=>pc(e,a,n,!0));for(const a in t)if(!(o&&a==="expose")){const s=hP[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const hP={data:cg,props:ug,emits:ug,methods:ds,computed:ds,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:ds,directives:ds,watch:mP,provide:cg,inject:pP};function cg(e,t){return t?e?function(){return wn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function pP(e,t){return ds(If(e),If(t))}function If(e){if(ct(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(o&&o.proxy):t}}function bP(){return!!(Sn||xn||_i)}const Gy={},Xy=()=>Object.create(Gy),Yy=e=>Object.getPrototypeOf(e)===Gy;function yP(e,t,n,o=!1){const r={},i=Xy();e.propsDefaults=Object.create(null),Qy(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=o?r:Py(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xP(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=It(r),[l]=e.propsOptions;let c=!1;if((o||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=Jy(d,t,!0);wn(a,f),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Qt(e)&&o.set(e,da),da;if(ct(i))for(let u=0;ue[0]==="_"||e==="$stable",dp=e=>ct(e)?e.map(Bo):[Bo(e)],wP=(e,t,n)=>{if(t._n)return t;const o=me((...r)=>dp(t(...r)),n);return o._c=!1,o},ex=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Zy(r))continue;const i=e[r];if(pt(i))t[r]=wP(r,i,o);else if(i!=null){const a=dp(i);t[r]=()=>a}}},tx=(e,t)=>{const n=dp(t);e.slots.default=()=>n},nx=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},_P=(e,t,n)=>{const o=e.slots=Xy();if(e.vnode.shapeFlag&32){const r=t._;r?(nx(o,t,n),n&&ly(o,"_",r,!0)):ex(t,o)}else t&&tx(e,t)},SP=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,a=nn;if(o.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:nx(r,t,n):(i=!t.$stable,ex(t,r)),a=t}else t&&(tx(e,t),a={default:1});if(i)for(const s in r)!Zy(s)&&a[s]==null&&delete r[s]};function Mf(e,t,n,o,r=!1){if(ct(e)){e.forEach((f,h)=>Mf(f,t&&(ct(t)?t[h]:t),n,o,r));return}if(vs(o)&&!r)return;const i=o.shapeFlag&4?nu(o.component):o.el,a=r?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===nn?s.refs={}:s.refs,d=s.setupState;if(c!=null&&c!==l&&(ln(c)?(u[c]=null,Mt(d,c)&&(d[c]=null)):cn(c)&&(c.value=null)),pt(l))Lr(l,s,12,[a,u]);else{const f=ln(l),h=cn(l);if(f||h){const p=()=>{if(e.f){const g=f?Mt(d,l)?d[l]:u[l]:l.value;r?ct(g)&&qh(g,i):ct(g)?g.includes(i)||g.push(i):f?(u[l]=[i],Mt(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=a,Mt(d,l)&&(d[l]=a)):h&&(l.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,Hn(p,n)):p()}}}const ox=Symbol("_vte"),kP=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),fg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zf=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},PP={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,a,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:m}}=c,b=ys(t.props);let{shapeFlag:w,children:C,dynamicChildren:_}=t;if(e==null){const S=t.el=g(""),y=t.anchor=g("");h(S,n,o),h(y,n,o);const x=t.target=zf(t.props,p),P=ix(x,t,g,h);x&&(a==="svg"||fg(x)?a="svg":(a==="mathml"||hg(x))&&(a="mathml"));const k=(T,R)=>{w&16&&u(C,T,R,r,i,a,s,l)};b?k(n,y):x&&k(x,P)}else{t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,y=t.target=e.target,x=t.targetAnchor=e.targetAnchor,P=ys(e.props),k=P?n:y,T=P?S:x;if(a==="svg"||fg(y)?a="svg":(a==="mathml"||hg(y))&&(a="mathml"),_?(f(e.dynamicChildren,_,k,r,i,a,s),fp(e,t,!0)):l||d(e,t,k,T,r,i,a,s,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Pl(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=zf(t.props,p);R&&Pl(t,R,null,c,0)}else P&&Pl(t,y,x,c,1)}rx(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),a&16){const h=i||!ys(f);for(let p=0;p{if(F===A)return;F&&!pi(F,A)&&(we=X(F),N(F,oe,ve,!0),F=null),A.patchFlag===-2&&(H=!1,A.dynamicChildren=null);const{type:te,ref:Ce,shapeFlag:de}=A;switch(te){case Ma:m(F,A,re,we);break;case _n:b(F,A,re,we);break;case yd:F==null&&w(A,re,we,ke);break;case rt:E(F,A,re,we,oe,ve,ke,$,H);break;default:de&1?S(F,A,re,we,oe,ve,ke,$,H):de&6?q(F,A,re,we,oe,ve,ke,$,H):(de&64||de&128)&&te.process(F,A,re,we,oe,ve,ke,$,H,be)}Ce!=null&&oe&&Mf(Ce,F&&F.ref,ve,A||F,!A)},m=(F,A,re,we)=>{if(F==null)o(A.el=s(A.children),re,we);else{const oe=A.el=F.el;A.children!==F.children&&c(oe,A.children)}},b=(F,A,re,we)=>{F==null?o(A.el=l(A.children||""),re,we):A.el=F.el},w=(F,A,re,we)=>{[F.el,F.anchor]=p(F.children,A,re,we,F.el,F.anchor)},C=({el:F,anchor:A},re,we)=>{let oe;for(;F&&F!==A;)oe=f(F),o(F,re,we),F=oe;o(A,re,we)},_=({el:F,anchor:A})=>{let re;for(;F&&F!==A;)re=f(F),r(F),F=re;r(A)},S=(F,A,re,we,oe,ve,ke,$,H)=>{A.type==="svg"?ke="svg":A.type==="math"&&(ke="mathml"),F==null?y(A,re,we,oe,ve,ke,$,H):k(F,A,oe,ve,ke,$,H)},y=(F,A,re,we,oe,ve,ke,$)=>{let H,te;const{props:Ce,shapeFlag:de,transition:ue,dirs:ie}=F;if(H=F.el=a(F.type,ve,Ce&&Ce.is,Ce),de&8?u(H,F.children):de&16&&P(F.children,H,null,we,oe,vd(F,ve),ke,$),ie&&ri(F,null,we,"created"),x(H,F,F.scopeId,ke,we),Ce){for(const Fe in Ce)Fe!=="value"&&!ms(Fe)&&i(H,Fe,null,Ce[Fe],ve,we);"value"in Ce&&i(H,"value",null,Ce.value,ve),(te=Ce.onVnodeBeforeMount)&&Fo(te,we,F)}ie&&ri(F,null,we,"beforeMount");const fe=AP(oe,ue);fe&&ue.beforeEnter(H),o(H,A,re),((te=Ce&&Ce.onVnodeMounted)||fe||ie)&&Hn(()=>{te&&Fo(te,we,F),fe&&ue.enter(H),ie&&ri(F,null,we,"mounted")},oe)},x=(F,A,re,we,oe)=>{if(re&&h(F,re),we)for(let ve=0;ve{for(let te=H;te{const $=A.el=F.el;let{patchFlag:H,dynamicChildren:te,dirs:Ce}=A;H|=F.patchFlag&16;const de=F.props||nn,ue=A.props||nn;let ie;if(re&&ii(re,!1),(ie=ue.onVnodeBeforeUpdate)&&Fo(ie,re,A,F),Ce&&ri(A,F,re,"beforeUpdate"),re&&ii(re,!0),(de.innerHTML&&ue.innerHTML==null||de.textContent&&ue.textContent==null)&&u($,""),te?T(F.dynamicChildren,te,$,re,we,vd(A,oe),ve):ke||V(F,A,$,null,re,we,vd(A,oe),ve,!1),H>0){if(H&16)R($,de,ue,re,oe);else if(H&2&&de.class!==ue.class&&i($,"class",null,ue.class,oe),H&4&&i($,"style",de.style,ue.style,oe),H&8){const fe=A.dynamicProps;for(let Fe=0;Fe{ie&&Fo(ie,re,A,F),Ce&&ri(A,F,re,"updated")},we)},T=(F,A,re,we,oe,ve,ke)=>{for(let $=0;${if(A!==re){if(A!==nn)for(const ve in A)!ms(ve)&&!(ve in re)&&i(F,ve,A[ve],null,oe,we);for(const ve in re){if(ms(ve))continue;const ke=re[ve],$=A[ve];ke!==$&&ve!=="value"&&i(F,ve,$,ke,oe,we)}"value"in re&&i(F,"value",A.value,re.value,oe)}},E=(F,A,re,we,oe,ve,ke,$,H)=>{const te=A.el=F?F.el:s(""),Ce=A.anchor=F?F.anchor:s("");let{patchFlag:de,dynamicChildren:ue,slotScopeIds:ie}=A;ie&&($=$?$.concat(ie):ie),F==null?(o(te,re,we),o(Ce,re,we),P(A.children||[],re,Ce,oe,ve,ke,$,H)):de>0&&de&64&&ue&&F.dynamicChildren?(T(F.dynamicChildren,ue,re,oe,ve,ke,$),(A.key!=null||oe&&A===oe.subTree)&&fp(F,A,!0)):V(F,A,re,Ce,oe,ve,ke,$,H)},q=(F,A,re,we,oe,ve,ke,$,H)=>{A.slotScopeIds=$,F==null?A.shapeFlag&512?oe.ctx.activate(A,re,we,ke,H):D(A,re,we,oe,ve,ke,H):B(F,A,H)},D=(F,A,re,we,oe,ve,ke)=>{const $=F.component=GP(F,we,oe);if(Gc(F)&&($.ctx.renderer=be),XP($,!1,ke),$.asyncDep){if(oe&&oe.registerDep($,M,ke),!F.el){const H=$.subTree=se(_n);b(null,H,A,re)}}else M($,F,A,re,oe,ve,ke)},B=(F,A,re)=>{const we=A.component=F.component;if(BP(F,A,re))if(we.asyncDep&&!we.asyncResolved){K(we,A,re);return}else we.next=A,eP(we.update),we.effect.dirty=!0,we.update();else A.el=F.el,we.vnode=A},M=(F,A,re,we,oe,ve,ke)=>{const $=()=>{if(F.isMounted){let{next:Ce,bu:de,u:ue,parent:ie,vnode:fe}=F;{const et=ax(F);if(et){Ce&&(Ce.el=fe.el,K(F,Ce,ke)),et.asyncDep.then(()=>{F.isUnmounted||$()});return}}let Fe=Ce,De;ii(F,!1),Ce?(Ce.el=fe.el,K(F,Ce,ke)):Ce=fe,de&&Zl(de),(De=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Fo(De,ie,Ce,fe),ii(F,!0);const Me=bd(F),Ne=F.subTree;F.subTree=Me,g(Ne,Me,d(Ne.el),X(Ne),F,oe,ve),Ce.el=Me.el,Fe===null&&NP(F,Me.el),ue&&Hn(ue,oe),(De=Ce.props&&Ce.props.onVnodeUpdated)&&Hn(()=>Fo(De,ie,Ce,fe),oe)}else{let Ce;const{el:de,props:ue}=A,{bm:ie,m:fe,parent:Fe}=F,De=vs(A);if(ii(F,!1),ie&&Zl(ie),!De&&(Ce=ue&&ue.onVnodeBeforeMount)&&Fo(Ce,Fe,A),ii(F,!0),de&&je){const Me=()=>{F.subTree=bd(F),je(de,F.subTree,F,oe,null)};De?A.type.__asyncLoader().then(()=>!F.isUnmounted&&Me()):Me()}else{const Me=F.subTree=bd(F);g(null,Me,re,we,F,oe,ve),A.el=Me.el}if(fe&&Hn(fe,oe),!De&&(Ce=ue&&ue.onVnodeMounted)){const Me=A;Hn(()=>Fo(Ce,Fe,Me),oe)}(A.shapeFlag&256||Fe&&vs(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&F.a&&Hn(F.a,oe),F.isMounted=!0,A=re=we=null}},H=F.effect=new Yh($,Gn,()=>ip(te),F.scope),te=F.update=()=>{H.dirty&&H.run()};te.i=F,te.id=F.uid,ii(F,!0),te()},K=(F,A,re)=>{A.component=F;const we=F.vnode.props;F.vnode=A,F.next=null,xP(F,A.props,we,re),SP(F,A.children,re),Kr(),rg(F),Gr()},V=(F,A,re,we,oe,ve,ke,$,H=!1)=>{const te=F&&F.children,Ce=F?F.shapeFlag:0,de=A.children,{patchFlag:ue,shapeFlag:ie}=A;if(ue>0){if(ue&128){pe(te,de,re,we,oe,ve,ke,$,H);return}else if(ue&256){ae(te,de,re,we,oe,ve,ke,$,H);return}}ie&8?(Ce&16&&ne(te,oe,ve),de!==te&&u(re,de)):Ce&16?ie&16?pe(te,de,re,we,oe,ve,ke,$,H):ne(te,oe,ve,!0):(Ce&8&&u(re,""),ie&16&&P(de,re,we,oe,ve,ke,$,H))},ae=(F,A,re,we,oe,ve,ke,$,H)=>{F=F||da,A=A||da;const te=F.length,Ce=A.length,de=Math.min(te,Ce);let ue;for(ue=0;ueCe?ne(F,oe,ve,!0,!1,de):P(A,re,we,oe,ve,ke,$,H,de)},pe=(F,A,re,we,oe,ve,ke,$,H)=>{let te=0;const Ce=A.length;let de=F.length-1,ue=Ce-1;for(;te<=de&&te<=ue;){const ie=F[te],fe=A[te]=H?Ir(A[te]):Bo(A[te]);if(pi(ie,fe))g(ie,fe,re,null,oe,ve,ke,$,H);else break;te++}for(;te<=de&&te<=ue;){const ie=F[de],fe=A[ue]=H?Ir(A[ue]):Bo(A[ue]);if(pi(ie,fe))g(ie,fe,re,null,oe,ve,ke,$,H);else break;de--,ue--}if(te>de){if(te<=ue){const ie=ue+1,fe=ieue)for(;te<=de;)N(F[te],oe,ve,!0),te++;else{const ie=te,fe=te,Fe=new Map;for(te=fe;te<=ue;te++){const Q=A[te]=H?Ir(A[te]):Bo(A[te]);Q.key!=null&&Fe.set(Q.key,te)}let De,Me=0;const Ne=ue-fe+1;let et=!1,$e=0;const Xe=new Array(Ne);for(te=0;te=Ne){N(Q,oe,ve,!0);continue}let ye;if(Q.key!=null)ye=Fe.get(Q.key);else for(De=fe;De<=ue;De++)if(Xe[De-fe]===0&&pi(Q,A[De])){ye=De;break}ye===void 0?N(Q,oe,ve,!0):(Xe[ye-fe]=te+1,ye>=$e?$e=ye:et=!0,g(Q,A[ye],re,null,oe,ve,ke,$,H),Me++)}const gt=et?$P(Xe):da;for(De=gt.length-1,te=Ne-1;te>=0;te--){const Q=fe+te,ye=A[Q],Ae=Q+1{const{el:ve,type:ke,transition:$,children:H,shapeFlag:te}=F;if(te&6){Z(F.component.subTree,A,re,we);return}if(te&128){F.suspense.move(A,re,we);return}if(te&64){ke.move(F,A,re,be);return}if(ke===rt){o(ve,A,re);for(let de=0;de$.enter(ve),oe);else{const{leave:de,delayLeave:ue,afterLeave:ie}=$,fe=()=>o(ve,A,re),Fe=()=>{de(ve,()=>{fe(),ie&&ie()})};ue?ue(ve,fe,Fe):Fe()}else o(ve,A,re)},N=(F,A,re,we=!1,oe=!1)=>{const{type:ve,props:ke,ref:$,children:H,dynamicChildren:te,shapeFlag:Ce,patchFlag:de,dirs:ue,cacheIndex:ie}=F;if(de===-2&&(oe=!1),$!=null&&Mf($,null,re,F,!0),ie!=null&&(A.renderCache[ie]=void 0),Ce&256){A.ctx.deactivate(F);return}const fe=Ce&1&&ue,Fe=!vs(F);let De;if(Fe&&(De=ke&&ke.onVnodeBeforeUnmount)&&Fo(De,A,F),Ce&6)G(F.component,re,we);else{if(Ce&128){F.suspense.unmount(re,we);return}fe&&ri(F,null,A,"beforeUnmount"),Ce&64?F.type.remove(F,A,re,be,we):te&&!te.hasOnce&&(ve!==rt||de>0&&de&64)?ne(te,A,re,!1,!0):(ve===rt&&de&384||!oe&&Ce&16)&&ne(H,A,re),we&&O(F)}(Fe&&(De=ke&&ke.onVnodeUnmounted)||fe)&&Hn(()=>{De&&Fo(De,A,F),fe&&ri(F,null,A,"unmounted")},re)},O=F=>{const{type:A,el:re,anchor:we,transition:oe}=F;if(A===rt){ee(re,we);return}if(A===yd){_(F);return}const ve=()=>{r(re),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(F.shapeFlag&1&&oe&&!oe.persisted){const{leave:ke,delayLeave:$}=oe,H=()=>ke(re,ve);$?$(F.el,ve,H):H()}else ve()},ee=(F,A)=>{let re;for(;F!==A;)re=f(F),r(F),F=re;r(A)},G=(F,A,re)=>{const{bum:we,scope:oe,update:ve,subTree:ke,um:$,m:H,a:te}=F;pg(H),pg(te),we&&Zl(we),oe.stop(),ve&&(ve.active=!1,N(ke,F,A,re)),$&&Hn($,A),Hn(()=>{F.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ne=(F,A,re,we=!1,oe=!1,ve=0)=>{for(let ke=ve;ke{if(F.shapeFlag&6)return X(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const A=f(F.anchor||F.el),re=A&&A[ox];return re?f(re):A};let ce=!1;const L=(F,A,re)=>{F==null?A._vnode&&N(A._vnode,null,null,!0):g(A._vnode||null,F,A,null,null,null,re),A._vnode=F,ce||(ce=!0,rg(),My(),ce=!1)},be={p:g,um:N,m:Z,r:O,mt:D,mc:P,pc:V,pbc:T,n:X,o:e};let Oe,je;return t&&([Oe,je]=t(be)),{render:L,hydrate:Oe,createApp:vP(L,Oe)}}function vd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ii({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function AP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fp(e,t,n=!1){const o=e.children,r=t.children;if(ct(o)&&ct(r))for(let i=0;i>1,e[n[s]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function ax(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ax(t)}function pg(e){if(e)for(let t=0;tVe(IP);function Yt(e,t){return hp(e,null,t)}const Tl={};function ft(e,t,n){return hp(e,t,n)}function hp(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:a,onTrigger:s}=nn){if(t&&i){const y=t;t=(...x)=>{y(...x),S()}}const l=Sn,c=y=>o===!0?y:zr(y,o===!1?1:void 0);let u,d=!1,f=!1;if(cn(e)?(u=()=>e.value,d=ba(e)):wi(e)?(u=()=>c(e),d=!0):ct(e)?(f=!0,d=e.some(y=>wi(y)||ba(y)),u=()=>e.map(y=>{if(cn(y))return y.value;if(wi(y))return c(y);if(pt(y))return Lr(y,l,2)})):pt(e)?t?u=()=>Lr(e,l,2):u=()=>(h&&h(),so(e,l,3,[p])):u=Gn,t&&o){const y=u;u=()=>zr(y())}let h,p=y=>{h=C.onStop=()=>{Lr(y,l,4),h=C.onStop=void 0}},g;if(tu)if(p=Gn,t?n&&so(t,l,3,[u(),f?[]:void 0,p]):u(),r==="sync"){const y=OP();g=y.__watcherHandles||(y.__watcherHandles=[])}else return Gn;let m=f?new Array(e.length).fill(Tl):Tl;const b=()=>{if(!(!C.active||!C.dirty))if(t){const y=C.run();(o||d||(f?y.some((x,P)=>Br(x,m[P])):Br(y,m)))&&(h&&h(),so(t,l,3,[y,m===Tl?void 0:f&&m[0]===Tl?[]:m,p]),m=y)}else C.run()};b.allowRecurse=!!t;let w;r==="sync"?w=b:r==="post"?w=()=>Hn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),w=()=>ip(b));const C=new Yh(u,Gn,w),_=Xh(),S=()=>{C.stop(),_&&qh(_.effects,C)};return t?n?b():m=C.run():r==="post"?Hn(C.run.bind(C),l&&l.suspense):C.run(),g&&g.push(S),S}function MP(e,t,n){const o=this.proxy,r=ln(e)?e.includes(".")?sx(o,e):()=>o[e]:e.bind(o,o);let i;pt(t)?i=t:(i=t.handler,n=t);const a=ol(this),s=hp(r,i.bind(o),n);return a(),s}function sx(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r{zr(o,t,n)});else if(sy(e)){for(const o in e)zr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&zr(e[o],t,n)}return e}const zP=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Eo(t)}Modifiers`]||e[`${qr(t)}Modifiers`];function FP(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||nn;let r=n;const i=t.startsWith("update:"),a=i&&zP(o,t.slice(7));a&&(a.trim&&(r=n.map(u=>ln(u)?u.trim():u)),a.number&&(r=n.map(kf)));let s,l=o[s=hd(t)]||o[s=hd(Eo(t))];!l&&i&&(l=o[s=hd(qr(t))]),l&&so(l,e,6,r);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,so(c,e,6,r)}}function lx(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let a={},s=!1;if(!pt(e)){const l=c=>{const u=lx(c,t,!0);u&&(s=!0,wn(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Qt(e)&&o.set(e,null),null):(ct(i)?i.forEach(l=>a[l]=null):wn(a,i),Qt(e)&&o.set(e,a),a)}function eu(e,t){return!e||!jc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,qr(t))||Mt(e,t))}function bd(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,m=hc(e);let b,w;try{if(n.shapeFlag&4){const _=r||o,S=_;b=Bo(c.call(S,_,u,d,h,f,p)),w=s}else{const _=t;b=Bo(_.length>1?_(d,{attrs:s,slots:a,emit:l}):_(d,null)),w=t.props?s:DP(s)}}catch(_){xs.length=0,Kc(_,e,1),b=se(_n)}let C=b;if(w&&g!==!1){const _=Object.keys(w),{shapeFlag:S}=C;_.length&&S&7&&(i&&_.some(Wh)&&(w=LP(w,i)),C=fo(C,w,!1,!0))}return n.dirs&&(C=fo(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),b=C,hc(m),b}const DP=e=>{let t;for(const n in e)(n==="class"||n==="style"||jc(n))&&((t||(t={}))[n]=e[n]);return t},LP=(e,t)=>{const n={};for(const o in e)(!Wh(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function BP(e,t,n){const{props:o,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?mg(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function jP(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):tP(e)}const rt=Symbol.for("v-fgt"),Ma=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),xs=[];let Xn=null;function ge(e=!1){xs.push(Xn=e?null:[])}function UP(){xs.pop(),Xn=xs[xs.length-1]||null}let Bs=1;function gg(e){Bs+=e,e<0&&Xn&&(Xn.hasOnce=!0)}function cx(e){return e.dynamicChildren=Bs>0?Xn||da:null,UP(),Bs>0&&Xn&&Xn.push(e),e}function ze(e,t,n,o,r,i){return cx(Y(e,t,n,o,r,i,!0))}function We(e,t,n,o,r){return cx(se(e,t,n,o,r,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function pi(e,t){return e.type===t.type&&e.key===t.key}const ux=({key:e})=>e??null,ec=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ln(e)||cn(e)||pt(e)?{i:xn,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===rt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ux(t),ref:t&&ec(t),scopeId:Fy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:xn};return s?(pp(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ln(n)?8:16),Bs>0&&!a&&Xn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xn.push(l),l}const se=VP;function VP(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Uy)&&(e=_n),Ns(e)){const s=fo(e,t,!0);return n&&pp(s,n),Bs>0&&!i&&Xn&&(s.shapeFlag&6?Xn[Xn.indexOf(e)]=s:Xn.push(s)),s.patchFlag=-2,s}if(eT(e)&&(e=e.__vccOpts),t){t=WP(t);let{class:s,style:l}=t;s&&!ln(s)&&(t.class=qn(s)),Qt(l)&&(Ty(l)&&!ct(l)&&(l=wn({},l)),t.style=Fi(l))}const a=ln(e)?1:HP(e)?128:kP(e)?64:Qt(e)?4:pt(e)?2:0;return Y(e,t,n,o,r,a,i,!0)}function WP(e){return e?Ty(e)||Yy(e)?wn({},e):e:null}function fo(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?Ln(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ux(c),ref:t&&t.ref?n&&i?ct(i)?i.concat(ec(t)):[i,ec(t)]:ec(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&ya(u,l.clone(u)),u}function nt(e=" ",t=0){return se(Ma,null,e,t)}function Ct(e="",t=!1){return t?(ge(),We(_n,null,e)):se(_n,null,e)}function Bo(e){return e==null||typeof e=="boolean"?se(_n):ct(e)?se(rt,null,e.slice()):typeof e=="object"?Ir(e):se(Ma,null,String(e))}function Ir(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function pp(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ct(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),pp(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Yy(t)?t._ctx=xn:r===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),o&64?(n=16,t=[nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ln(...e){const t={};for(let n=0;nSn||xn;let mc,Ff;{const e=cy(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};mc=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),Ff=t("__VUE_SSR_SETTERS__",n=>tu=n)}const ol=e=>{const t=Sn;return mc(e),e.scope.on(),()=>{e.scope.off(),mc(t)}},vg=()=>{Sn&&Sn.scope.off(),mc(null)};function dx(e){return e.vnode.shapeFlag&4}let tu=!1;function XP(e,t=!1,n=!1){t&&Ff(t);const{props:o,children:r}=e.vnode,i=dx(e);yP(e,o,i,t),_P(e,r,n);const a=i?YP(e,t):void 0;return t&&Ff(!1),a}function YP(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uP);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?JP(e):null,i=ol(e);Kr();const a=Lr(o,e,0,[e.props,r]);if(Gr(),i(),iy(a)){if(a.then(vg,vg),t)return a.then(s=>{bg(e,s,t)}).catch(s=>{Kc(s,e,0)});e.asyncDep=a}else bg(e,a,t)}else fx(e,t)}function bg(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=Ay(t)),fx(e,n)}let yg;function fx(e,t,n){const o=e.type;if(!e.render){if(!t&&yg&&!o.render){const r=o.template||up(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=o,c=wn(wn({isCustomElement:i,delimiters:s},a),l);o.render=yg(r,c)}}e.render=o.render||Gn}{const r=ol(e);Kr();try{dP(e)}finally{Gr(),r()}}}const QP={get(e,t){return jn(e,"get",""),e[t]}};function JP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,QP),slots:e.slots,emit:e.emit,expose:t}}function nu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ay(Ms(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}})):e.proxy}function ZP(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function eT(e){return pt(e)&&"__vccOpts"in e}const I=(e,t)=>V3(e,t,tu);function v(e,t,n){const o=arguments.length;return o===2?Qt(t)&&!ct(t)?Ns(t)?se(e,null,[t]):se(e,t):se(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ns(n)&&(n=[n]),se(e,t,n))}const tT="3.4.38";/** * @vue/runtime-dom v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const lP="http://www.w3.org/2000/svg",cP="http://www.w3.org/1998/Math/MathML",sr=typeof document<"u"?document:null,Cg=sr&&sr.createElement("template"),uP={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?sr.createElementNS(lP,e):t==="mathml"?sr.createElementNS(cP,e):n?sr.createElement(e,{is:n}):sr.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Cg.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const a=Cg.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wr="transition",ra="animation",Ss=Symbol("_vtc"),pn=(e,{slots:t})=>v(c4,mx(e),t);pn.displayName="Transition";const px={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dP=pn.props=kn({},By,px),si=(e,t=[])=>{pt(e)?e.forEach(n=>n(...t)):e&&e(...t)},wg=e=>e?pt(e)?e.some(t=>t.length>1):e.length>1:!1;function mx(e){const t={};for(const R in e)R in px||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=fP(r),m=p&&p[0],g=p&&p[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:C,onLeave:S,onLeaveCancelled:_,onBeforeAppear:x=b,onAppear:y=w,onAppearCancelled:T=C}=t,k=(R,W,O)=>{Rr(R,W?u:a),Rr(R,W?c:s),O&&O()},P=(R,W)=>{R._isLeaving=!1,Rr(R,d),Rr(R,h),Rr(R,f),W&&W()},I=R=>(W,O)=>{const M=R?y:w,z=()=>k(W,R,O);si(M,[W,z]),_g(()=>{Rr(W,R?l:i),ir(W,R?u:a),wg(M)||Sg(W,o,m,z)})};return kn(t,{onBeforeEnter(R){si(b,[R]),ir(R,i),ir(R,s)},onBeforeAppear(R){si(x,[R]),ir(R,l),ir(R,c)},onEnter:I(!1),onAppear:I(!0),onLeave(R,W){R._isLeaving=!0;const O=()=>P(R,W);ir(R,d),ir(R,f),vx(),_g(()=>{R._isLeaving&&(Rr(R,d),ir(R,h),wg(S)||Sg(R,o,g,O))}),si(S,[R,O])},onEnterCancelled(R){k(R,!1),si(C,[R])},onAppearCancelled(R){k(R,!0),si(T,[R])},onLeaveCancelled(R){P(R),si(_,[R])}})}function fP(e){if(e==null)return null;if(Qt(e))return[xd(e.enter),xd(e.leave)];{const t=xd(e);return[t,t]}}function xd(e){return y3(e)}function ir(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ss]||(e[Ss]=new Set)).add(t)}function Rr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Ss];n&&(n.delete(t),n.size||(e[Ss]=void 0))}function _g(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hP=0;function Sg(e,t,n,o){const r=e._endId=++hP,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=gx(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),r=o(`${wr}Delay`),i=o(`${wr}Duration`),s=kg(r,i),a=o(`${ra}Delay`),l=o(`${ra}Duration`),c=kg(a,l);let u=null,d=0,f=0;t===wr?s>0&&(u=wr,d=s,f=i.length):t===ra?c>0&&(u=ra,d=c,f=l.length):(d=Math.max(s,c),u=d>0?s>c?wr:ra:null,f=u?u===wr?i.length:l.length:0);const h=u===wr&&/\b(transform|all)(,|$)/.test(o(`${wr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function kg(e,t){for(;e.lengthPg(n)+Pg(e[o])))}function Pg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vx(){return document.body.offsetHeight}function pP(e,t,n){const o=e[Ss];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bc=Symbol("_vod"),bx=Symbol("_vsh"),Nn={beforeMount(e,{value:t},{transition:n}){e[bc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ia(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ia(e,!0),o.enter(e)):o.leave(e,()=>{ia(e,!1)}):ia(e,t))},beforeUnmount(e,{value:t}){ia(e,t)}};function ia(e,t){e.style.display=t?e[bc]:"none",e[bx]=!t}const mP=Symbol(""),gP=/(^|;)\s*display\s*:/;function vP(e,t,n){const o=e.style,r=un(n);let i=!1;if(n&&!r){if(t)if(un(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&oc(o,a,"")}else for(const s in t)n[s]==null&&oc(o,s,"");for(const s in n)s==="display"&&(i=!0),oc(o,s,n[s])}else if(r){if(t!==n){const s=o[mP];s&&(n+=";"+s),o.cssText=n,i=gP.test(n)}}else t&&e.removeAttribute("style");bc in e&&(e[bc]=i?o.display:"",e[bx]&&(o.display="none"))}const Tg=/\s*!important$/;function oc(e,t,n){if(pt(n))n.forEach(o=>oc(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=bP(e,t);Tg.test(n)?e.setProperty(qr(o),n.replace(Tg,""),"important"):e[o]=n}}const Rg=["Webkit","Moz","ms"],Cd={};function bP(e,t){const n=Cd[t];if(n)return n;let o=Eo(t);if(o!=="filter"&&o in e)return Cd[t]=o;o=Uc(o);for(let r=0;rwd||(_P.then(()=>wd=0),wd=Date.now());function kP(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;uo(PP(o,n.value),t,5,[o])};return n.value=e,n.attached=SP(),n}function PP(e,t){if(pt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Mg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,TP=(e,t,n,o,r,i)=>{const s=r==="svg";t==="class"?pP(e,o,s):t==="style"?vP(e,n,o):jc(t)?Wh(t)||CP(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):RP(e,t,o,s))?(yP(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$g(e,t,o,s,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),$g(e,t,o,s))};function RP(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mg(t)&&vt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Mg(t)&&un(n)?!1:t in e}const yx=new WeakMap,xx=new WeakMap,yc=Symbol("_moveCb"),Og=Symbol("_enterCb"),Cx={name:"TransitionGroup",props:kn({},dP,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=io(),o=Fy();let r,i;return ap(()=>{if(!r.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!OP(r[0].el,n.vnode.el,s))return;r.forEach(AP),r.forEach(IP);const a=r.filter(MP);vx(),a.forEach(l=>{const c=l.el,u=c.style;ir(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[yc]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[yc]=null,Rr(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=Ot(e),a=mx(s);let l=s.tag||st;if(r=[],i)for(let c=0;cdelete e.mode;Cx.props;const $P=Cx;function AP(e){const t=e.el;t[yc]&&t[yc](),t[Og]&&t[Og]()}function IP(e){xx.set(e,e.el.getBoundingClientRect())}function MP(e){const t=yx.get(e),n=xx.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function OP(e,t,n){const o=e.cloneNode(),r=e[Ss];r&&r.forEach(a=>{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=gx(o);return i.removeChild(o),s}const zg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pt(t)?n=>ec(t,n):t};function zP(e){e.target.composing=!0}function Dg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _d=Symbol("_assign"),DP={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[_d]=zg(r);const i=o||r.props&&r.props.type==="number";ls(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=kf(a)),e[_d](a)}),n&&ls(e,"change",()=>{e.value=e.value.trim()}),t||(ls(e,"compositionstart",zP),ls(e,"compositionend",Dg),ls(e,"change",Dg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[_d]=zg(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?kf(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l))}},LP=["ctrl","shift","alt","meta"],FP={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>LP.some(n=>e[`${n}Key`]&&!t.includes(n))},BP=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=qr(r.key);if(t.some(s=>s===i||NP[s]===i))return e(r)})},HP=kn({patchProp:TP},uP);let Lg;function jP(){return Lg||(Lg=M4(HP))}const wx=(...e)=>{const t=jP().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=WP(o);if(!r)return;const i=t._component;!vt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,VP(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function VP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function WP(e){return un(e)?document.querySelector(e):e}/*! +**/const nT="http://www.w3.org/2000/svg",oT="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,xg=ar&&ar.createElement("template"),rT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?ar.createElementNS(nT,e):t==="mathml"?ar.createElementNS(oT,e):n?ar.createElement(e,{is:n}):ar.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{xg.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const s=xg.content;if(o==="svg"||o==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wr="transition",ts="animation",Ca=Symbol("_vtc"),fn=(e,{slots:t})=>v(rP,px(e),t);fn.displayName="Transition";const hx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iT=fn.props=wn({},Ly,hx),ai=(e,t=[])=>{ct(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cg=e=>e?ct(e)?e.some(t=>t.length>1):e.length>1:!1;function px(e){const t={};for(const E in e)E in hx||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=aT(r),g=p&&p[0],m=p&&p[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:C,onLeave:_,onLeaveCancelled:S,onBeforeAppear:y=b,onAppear:x=w,onAppearCancelled:P=C}=t,k=(E,q,D)=>{Er(E,q?u:s),Er(E,q?c:a),D&&D()},T=(E,q)=>{E._isLeaving=!1,Er(E,d),Er(E,h),Er(E,f),q&&q()},R=E=>(q,D)=>{const B=E?x:w,M=()=>k(q,E,D);ai(B,[q,M]),wg(()=>{Er(q,E?l:i),ir(q,E?u:s),Cg(B)||_g(q,o,g,M)})};return wn(t,{onBeforeEnter(E){ai(b,[E]),ir(E,i),ir(E,a)},onBeforeAppear(E){ai(y,[E]),ir(E,l),ir(E,c)},onEnter:R(!1),onAppear:R(!0),onLeave(E,q){E._isLeaving=!0;const D=()=>T(E,q);ir(E,d),ir(E,f),gx(),wg(()=>{E._isLeaving&&(Er(E,d),ir(E,h),Cg(_)||_g(E,o,m,D))}),ai(_,[E,D])},onEnterCancelled(E){k(E,!1),ai(C,[E])},onAppearCancelled(E){k(E,!0),ai(P,[E])},onLeaveCancelled(E){T(E),ai(S,[E])}})}function aT(e){if(e==null)return null;if(Qt(e))return[xd(e.enter),xd(e.leave)];{const t=xd(e);return[t,t]}}function xd(e){return g3(e)}function ir(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ca]||(e[Ca]=new Set)).add(t)}function Er(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Ca];n&&(n.delete(t),n.size||(e[Ca]=void 0))}function wg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sT=0;function _g(e,t,n,o){const r=e._endId=++sT,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=mx(e,t);if(!a)return o();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),r=o(`${wr}Delay`),i=o(`${wr}Duration`),a=Sg(r,i),s=o(`${ts}Delay`),l=o(`${ts}Duration`),c=Sg(s,l);let u=null,d=0,f=0;t===wr?a>0&&(u=wr,d=a,f=i.length):t===ts?c>0&&(u=ts,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?wr:ts:null,f=u?u===wr?i.length:l.length:0);const h=u===wr&&/\b(transform|all)(,|$)/.test(o(`${wr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function Sg(e,t){for(;e.lengthkg(n)+kg(e[o])))}function kg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function gx(){return document.body.offsetHeight}function lT(e,t,n){const o=e[Ca];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gc=Symbol("_vod"),vx=Symbol("_vsh"),Mn={beforeMount(e,{value:t},{transition:n}){e[gc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ns(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ns(e,!0),o.enter(e)):o.leave(e,()=>{ns(e,!1)}):ns(e,t))},beforeUnmount(e,{value:t}){ns(e,t)}};function ns(e,t){e.style.display=t?e[gc]:"none",e[vx]=!t}const cT=Symbol(""),uT=/(^|;)\s*display\s*:/;function dT(e,t,n){const o=e.style,r=ln(n);let i=!1;if(n&&!r){if(t)if(ln(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&tc(o,s,"")}else for(const a in t)n[a]==null&&tc(o,a,"");for(const a in n)a==="display"&&(i=!0),tc(o,a,n[a])}else if(r){if(t!==n){const a=o[cT];a&&(n+=";"+a),o.cssText=n,i=uT.test(n)}}else t&&e.removeAttribute("style");gc in e&&(e[gc]=i?o.display:"",e[vx]&&(o.display="none"))}const Pg=/\s*!important$/;function tc(e,t,n){if(ct(n))n.forEach(o=>tc(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=fT(e,t);Pg.test(n)?e.setProperty(qr(o),n.replace(Pg,""),"important"):e[o]=n}}const Tg=["Webkit","Moz","ms"],Cd={};function fT(e,t){const n=Cd[t];if(n)return n;let o=Eo(t);if(o!=="filter"&&o in e)return Cd[t]=o;o=Wc(o);for(let r=0;rwd||(vT.then(()=>wd=0),wd=Date.now());function yT(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;so(xT(o,n.value),t,5,[o])};return n.value=e,n.attached=bT(),n}function xT(e,t){if(ct(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ig=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,CT=(e,t,n,o,r,i)=>{const a=r==="svg";t==="class"?lT(e,o,a):t==="style"?dT(e,n,o):jc(t)?Wh(t)||mT(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wT(e,t,o,a))?(hT(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rg(e,t,o,a,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Rg(e,t,o,a))};function wT(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ig(t)&&pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ig(t)&&ln(n)?!1:t in e}const bx=new WeakMap,yx=new WeakMap,vc=Symbol("_moveCb"),Og=Symbol("_enterCb"),xx={name:"TransitionGroup",props:wn({},iT,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=no(),o=Dy();let r,i;return lp(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!ET(r[0].el,n.vnode.el,a))return;r.forEach(kT),r.forEach(PT);const s=r.filter(TT);gx(),s.forEach(l=>{const c=l.el,u=c.style;ir(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[vc]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[vc]=null,Er(c,a))};c.addEventListener("transitionend",d)})}),()=>{const a=It(e),s=px(a);let l=a.tag||rt;if(r=[],i)for(let c=0;cdelete e.mode;xx.props;const ST=xx;function kT(e){const t=e.el;t[vc]&&t[vc](),t[Og]&&t[Og]()}function PT(e){yx.set(e,e.el.getBoundingClientRect())}function TT(e){const t=bx.get(e),n=yx.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function ET(e,t,n){const o=e.cloneNode(),r=e[Ca];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:a}=mx(o);return i.removeChild(o),a}const Mg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ct(t)?n=>Zl(t,n):t};function RT(e){e.target.composing=!0}function zg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _d=Symbol("_assign"),AT={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[_d]=Mg(r);const i=o||r.props&&r.props.type==="number";ia(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=kf(s)),e[_d](s)}),n&&ia(e,"change",()=>{e.value=e.value.trim()}),t||(ia(e,"compositionstart",RT),ia(e,"compositionend",zg),ia(e,"change",zg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},a){if(e[_d]=Mg(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?kf(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l))}},$T=["ctrl","shift","alt","meta"],IT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>$T.some(n=>e[`${n}Key`]&&!t.includes(n))},OT=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=qr(r.key);if(t.some(a=>a===i||MT[a]===i))return e(r)})},zT=wn({patchProp:CT},rT);let Fg;function FT(){return Fg||(Fg=EP(zT))}const Cx=(...e)=>{const t=FT().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=LT(o);if(!r)return;const i=t._component;!pt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,DT(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function DT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function LT(e){return ln(e)?document.querySelector(e):e}/*! * vue-router v4.4.3 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const cs=typeof document<"u";function UP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ut=Object.assign;function Sd(e,t){const n={};for(const o in t){const r=t[o];n[o]=$o(r)?r.map(e):e(r)}return n}const ka=()=>{},$o=Array.isArray,_x=/#/g,qP=/&/g,KP=/\//g,GP=/=/g,YP=/\?/g,Sx=/\+/g,XP=/%5B/g,ZP=/%5D/g,kx=/%5E/g,JP=/%60/g,Px=/%7B/g,QP=/%7C/g,Tx=/%7D/g,eT=/%20/g;function pp(e){return encodeURI(""+e).replace(QP,"|").replace(XP,"[").replace(ZP,"]")}function tT(e){return pp(e).replace(Px,"{").replace(Tx,"}").replace(kx,"^")}function Lf(e){return pp(e).replace(Sx,"%2B").replace(eT,"+").replace(_x,"%23").replace(qP,"%26").replace(JP,"`").replace(Px,"{").replace(Tx,"}").replace(kx,"^")}function nT(e){return Lf(e).replace(GP,"%3D")}function oT(e){return pp(e).replace(_x,"%23").replace(YP,"%3F")}function rT(e){return e==null?"":oT(e).replace(KP,"%2F")}function Ua(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const iT=/\/$/,sT=e=>e.replace(iT,"");function kd(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=uT(o??t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Ua(s)}}function aT(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lT(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ks(t.matched[o],n.matched[r])&&Rx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ks(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cT(e[n],t[n]))return!1;return!0}function cT(e,t){return $o(e)?Bg(e,t):$o(t)?Bg(t,e):e===t}function Bg(e,t){return $o(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function uT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,s,a;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(s).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var qa;(function(e){e.pop="pop",e.push="push"})(qa||(qa={}));var Pa;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pa||(Pa={}));function dT(e){if(!e)if(cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sT(e)}const fT=/^[^#]+#/;function hT(e,t){return e.replace(fT,"#")+t}function pT(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const iu=()=>({left:window.scrollX,top:window.scrollY});function mT(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=pT(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 Ng(e,t){return(history.state?history.state.position-t:-1)+e}const Ff=new Map;function gT(e,t){Ff.set(e,t)}function vT(e){const t=Ff.get(e);return Ff.delete(e),t}let bT=()=>location.protocol+"//"+location.host;function Ex(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Fg(l,"")}return Fg(n,e)+o+r}function yT(e,t,n,o){let r=[],i=[],s=null;const a=({state:f})=>{const h=Ex(e,location),p=n.value,m=t.value;let g=0;if(f){if(n.value=h,t.value=f,s&&s===p){s=null;return}g=m?f.position-m.position:0}else o(h);r.forEach(b=>{b(n.value,p,{delta:g,type:qa.pop,direction:g?g>0?Pa.forward:Pa.back:Pa.unknown})})};function l(){s=n.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Ut({},f.state,{scroll:iu()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Hg(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?iu():null}}function xT(e){const{history:t,location:n}=window,o={value:Ex(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:bT()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function s(l,c){const u=Ut({},t.state,Hg(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),o.value=l}function a(l,c){const u=Ut({},r.value,t.state,{forward:l,scroll:iu()});i(u.current,u,!0);const d=Ut({},Hg(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:r,push:a,replace:s}}function CT(e){e=dT(e);const t=xT(e),n=yT(e,t.state,t.location,t.replace);function o(i,s=!0){s||n.pauseListeners(),history.go(i)}const r=Ut({location:"",base:e,go:o,createHref:hT.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function wT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),CT(e)}function _T(e){return typeof e=="string"||e&&typeof e=="object"}function $x(e){return typeof e=="string"||typeof e=="symbol"}const Ax=Symbol("");var jg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jg||(jg={}));function Ps(e,t){return Ut(new Error,{type:e,[Ax]:!0},t)}function er(e,t){return e instanceof Error&&Ax in e&&(t==null||!!(e.type&t))}const Vg="[^/]+?",ST={sensitive:!1,strict:!1,start:!0,end:!0},kT=/[.+*?^${}()[\]/\\]/g;function PT(e,t){const n=Ut({},ST,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ix(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const RT={type:0,value:""},ET=/[a-zA-Z0-9_]/;function $T(e){if(!e)return[[]];if(e==="/")return[[RT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,o=n;const r=[];let i;function s(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===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:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{s(C)}:ka}function s(d){if($x(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function l(d){const f=DT(d,n);n.splice(f,0,d),d.record.name&&!qg(d)&&o.set(d.record.name,d)}function c(d,f){let h,p={},m,g;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw Ps(1,{location:d});g=h.record.name,p=Ut(Ug(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Ug(d.params,h.keys.map(C=>C.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=n.find(C=>C.re.test(m)),h&&(p=h.parse(m),g=h.record.name);else{if(h=f.name?o.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw Ps(1,{location:d,currentLocation:f});g=h.record.name,p=Ut({},f.params,d.params),m=h.stringify(p)}const b=[];let w=h;for(;w;)b.unshift(w.record),w=w.parent;return{name:g,path:m,params:p,matched:b,meta:zT(b)}}e.forEach(d=>i(d));function u(){n.length=0,o.clear()}return{addRoute:i,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Ug(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function MT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:OT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function OT(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function qg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zT(e){return e.reduce((t,n)=>Ut(t,n.meta),{})}function Kg(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function DT(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;Ix(e,t[i])<0?o=i:n=i+1}const r=LT(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function LT(e){let t=e;for(;t=t.parent;)if(Mx(t)&&Ix(e,t)===0)return t}function Mx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function FT(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Lf(i)):[o&&Lf(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function BT(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=$o(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const NT=Symbol(""),Yg=Symbol(""),su=Symbol(""),mp=Symbol(""),Bf=Symbol("");function sa(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mr(e,t,n,o,r,i=s=>s()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Ps(4,{from:n,to:t})):f instanceof Error?l(f):_T(f)?l(Ps(2,{from:t,to:f})):(s&&o.enterCallbacks[r]===s&&typeof f=="function"&&s.push(f),a())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Pd(e,t,n,o,r=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(HT(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Mr(u,n,o,s,a,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${s.path}"`));const d=UP(u)?u.default:u;s.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Mr(h,n,o,s,a,r)()}))}}return i}function HT(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xg(e){const t=We(su),n=We(mp),o=D(()=>{const l=_e(e.to);return t.resolve(l)}),r=D(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(ks.bind(null,u));if(f>-1)return f;const h=Zg(l[c-2]);return c>1&&Zg(u)===h&&d[d.length-1].path!==h?d.findIndex(ks.bind(null,l[c-2])):f}),i=D(()=>r.value>-1&&UT(n.params,o.value.params)),s=D(()=>r.value>-1&&r.value===n.matched.length-1&&Rx(n.params,o.value.params));function a(l={}){return WT(l)?t[_e(e.replace)?"replace":"push"](_e(e.to)).catch(ka):Promise.resolve()}return{route:o,href:D(()=>o.value.href),isActive:i,isExactActive:s,navigate:a}}const jT=be({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:Xg,setup(e,{slots:t}){const n=ro(Xg(e)),{options:o}=We(su),r=D(()=>({[Jg(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jg(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:v("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),VT=jT;function WT(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 UT(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!$o(r)||r.length!==o.length||o.some((i,s)=>i!==r[s]))return!1}return!0}function Zg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jg=(e,t,n)=>e??t??n,qT=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=We(Bf),r=D(()=>e.route||o.value),i=We(Yg,0),s=D(()=>{let c=_e(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=D(()=>r.value.matched[s.value]);at(Yg,D(()=>s.value+1)),at(NT,a),at(Bf,r);const l=H();return dt(()=>[l.value,a.value,e.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!ks(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Qg(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=v(f,Ut({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Qg(n.default,{Component:g,route:c})||g}}});function Qg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const KT=qT;function GT(e){const t=IT(e.routes,e),n=e.parseQuery||FT,o=e.stringifyQuery||Gg,r=e.history,i=sa(),s=sa(),a=sa(),l=Os(_r);let c=_r;cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sd.bind(null,Q=>""+Q),d=Sd.bind(null,rT),f=Sd.bind(null,Ua);function h(Q,Ce){let j,ye;return $x(Q)?(j=t.getRecordMatcher(Q),ye=Ce):ye=Q,t.addRoute(ye,j)}function p(Q){const Ce=t.getRecordMatcher(Q);Ce&&t.removeRoute(Ce)}function m(){return t.getRoutes().map(Q=>Q.record)}function g(Q){return!!t.getRecordMatcher(Q)}function b(Q,Ce){if(Ce=Ut({},Ce||l.value),typeof Q=="string"){const B=kd(n,Q,Ce.path),ae=t.resolve({path:B.path},Ce),Se=r.createHref(B.fullPath);return Ut(B,ae,{params:f(ae.params),hash:Ua(B.hash),redirectedFrom:void 0,href:Se})}let j;if(Q.path!=null)j=Ut({},Q,{path:kd(n,Q.path,Ce.path).path});else{const B=Ut({},Q.params);for(const ae in B)B[ae]==null&&delete B[ae];j=Ut({},Q,{params:d(B)}),Ce.params=d(Ce.params)}const ye=t.resolve(j,Ce),Ie=Q.hash||"";ye.params=u(f(ye.params));const Le=aT(o,Ut({},Q,{hash:tT(Ie),path:ye.path})),U=r.createHref(Le);return Ut({fullPath:Le,hash:Ie,query:o===Gg?BT(Q.query):Q.query||{}},ye,{redirectedFrom:void 0,href:U})}function w(Q){return typeof Q=="string"?kd(n,Q,l.value.path):Ut({},Q)}function C(Q,Ce){if(c!==Q)return Ps(8,{from:Ce,to:Q})}function S(Q){return y(Q)}function _(Q){return S(Ut(w(Q),{replace:!0}))}function x(Q){const Ce=Q.matched[Q.matched.length-1];if(Ce&&Ce.redirect){const{redirect:j}=Ce;let ye=typeof j=="function"?j(Q):j;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=w(ye):{path:ye},ye.params={}),Ut({query:Q.query,hash:Q.hash,params:ye.path!=null?{}:Q.params},ye)}}function y(Q,Ce){const j=c=b(Q),ye=l.value,Ie=Q.state,Le=Q.force,U=Q.replace===!0,B=x(j);if(B)return y(Ut(w(B),{state:typeof B=="object"?Ut({},Ie,B.state):Ie,force:Le,replace:U}),Ce||j);const ae=j;ae.redirectedFrom=Ce;let Se;return!Le&&lT(o,ye,j)&&(Se=Ps(16,{to:ae,from:ye}),F(ye,ye,!0,!1)),(Se?Promise.resolve(Se):P(ae,ye)).catch(te=>er(te)?er(te,2)?te:le(te):J(te,ae,ye)).then(te=>{if(te){if(er(te,2))return y(Ut({replace:U},w(te.to),{state:typeof te.to=="object"?Ut({},Ie,te.to.state):Ie,force:Le}),Ce||ae)}else te=R(ae,ye,!0,U,Ie);return I(ae,ye,te),te})}function T(Q,Ce){const j=C(Q,Ce);return j?Promise.reject(j):Promise.resolve()}function k(Q){const Ce=Y.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(Q):Q()}function P(Q,Ce){let j;const[ye,Ie,Le]=YT(Q,Ce);j=Pd(ye.reverse(),"beforeRouteLeave",Q,Ce);for(const B of ye)B.leaveGuards.forEach(ae=>{j.push(Mr(ae,Q,Ce))});const U=T.bind(null,Q,Ce);return j.push(U),fe(j).then(()=>{j=[];for(const B of i.list())j.push(Mr(B,Q,Ce));return j.push(U),fe(j)}).then(()=>{j=Pd(Ie,"beforeRouteUpdate",Q,Ce);for(const B of Ie)B.updateGuards.forEach(ae=>{j.push(Mr(ae,Q,Ce))});return j.push(U),fe(j)}).then(()=>{j=[];for(const B of Le)if(B.beforeEnter)if($o(B.beforeEnter))for(const ae of B.beforeEnter)j.push(Mr(ae,Q,Ce));else j.push(Mr(B.beforeEnter,Q,Ce));return j.push(U),fe(j)}).then(()=>(Q.matched.forEach(B=>B.enterCallbacks={}),j=Pd(Le,"beforeRouteEnter",Q,Ce,k),j.push(U),fe(j))).then(()=>{j=[];for(const B of s.list())j.push(Mr(B,Q,Ce));return j.push(U),fe(j)}).catch(B=>er(B,8)?B:Promise.reject(B))}function I(Q,Ce,j){a.list().forEach(ye=>k(()=>ye(Q,Ce,j)))}function R(Q,Ce,j,ye,Ie){const Le=C(Q,Ce);if(Le)return Le;const U=Ce===_r,B=cs?history.state:{};j&&(ye||U?r.replace(Q.fullPath,Ut({scroll:U&&B&&B.scroll},Ie)):r.push(Q.fullPath,Ie)),l.value=Q,F(Q,Ce,j,U),le()}let W;function O(){W||(W=r.listen((Q,Ce,j)=>{if(!ne.listening)return;const ye=b(Q),Ie=x(ye);if(Ie){y(Ut(Ie,{replace:!0}),ye).catch(ka);return}c=ye;const Le=l.value;cs&&gT(Ng(Le.fullPath,j.delta),iu()),P(ye,Le).catch(U=>er(U,12)?U:er(U,2)?(y(U.to,ye).then(B=>{er(B,20)&&!j.delta&&j.type===qa.pop&&r.go(-1,!1)}).catch(ka),Promise.reject()):(j.delta&&r.go(-j.delta,!1),J(U,ye,Le))).then(U=>{U=U||R(ye,Le,!1),U&&(j.delta&&!er(U,8)?r.go(-j.delta,!1):j.type===qa.pop&&er(U,20)&&r.go(-1,!1)),I(ye,Le,U)}).catch(ka)}))}let M=sa(),z=sa(),K;function J(Q,Ce,j){le(Q);const ye=z.list();return ye.length?ye.forEach(Ie=>Ie(Q,Ce,j)):console.error(Q),Promise.reject(Q)}function se(){return K&&l.value!==_r?Promise.resolve():new Promise((Q,Ce)=>{M.add([Q,Ce])})}function le(Q){return K||(K=!Q,O(),M.list().forEach(([Ce,j])=>Q?j(Q):Ce()),M.reset()),Q}function F(Q,Ce,j,ye){const{scrollBehavior:Ie}=e;if(!cs||!Ie)return Promise.resolve();const Le=!j&&vT(Ng(Q.fullPath,0))||(ye||!j)&&history.state&&history.state.scroll||null;return Vt().then(()=>Ie(Q,Ce,Le)).then(U=>U&&mT(U)).catch(U=>J(U,Q,Ce))}const E=Q=>r.go(Q);let A;const Y=new Set,ne={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:b,options:e,push:S,replace:_,go:E,back:()=>E(-1),forward:()=>E(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:z.add,isReady:se,install(Q){const Ce=this;Q.component("RouterLink",VT),Q.component("RouterView",KT),Q.config.globalProperties.$router=Ce,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>_e(l)}),cs&&!A&&l.value===_r&&(A=!0,S(r.location).catch(Ie=>{}));const j={};for(const Ie in _r)Object.defineProperty(j,Ie,{get:()=>l.value[Ie],enumerable:!0});Q.provide(su,Ce),Q.provide(mp,Ry(j)),Q.provide(Bf,l);const ye=Q.unmount;Y.add(Q),Q.unmount=function(){Y.delete(Q),Y.size<1&&(c=_r,W&&W(),W=null,l.value=_r,A=!1,K=!1),ye()}}};function fe(Q){return Q.reduce((Ce,j)=>Ce.then(()=>k(j)),Promise.resolve())}return ne}function YT(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sks(c,a))?o.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(c=>ks(c,l))||r.push(l))}return[n,o,r]}function Ox(){return We(su)}function Ds(e){return We(mp)}const XT="modulepreload",ZT=function(e){return"/"+e},ev={},_t=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=ZT(i),i in ev)return;ev[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":XT,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},JT=()=>_t(()=>Promise.resolve().then(()=>br),void 0),QT={name:"dashboard",path:"/",component:JT,redirect:"dashboard",meta:{isHidden:!1},children:[{name:"dashboard",path:"/dashboard",component:()=>_t(()=>Promise.resolve().then(()=>oLe),void 0),meta:{title:"仪表盘",icon:"mdi:home",order:0}}]},e5=Object.freeze(Object.defineProperty({__proto__:null,default:QT},Symbol.toStringTag,{value:"Module"})),t5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),n5={name:"Invite",path:"/",component:t5,redirect:"/invite",meta:{isHidden:!1},children:[{name:"Invite",path:"invite",component:()=>_t(()=>Promise.resolve().then(()=>BLe),void 0),meta:{title:"我的邀请",icon:"mdi:invite",order:1,group:{key:"finance",label:"财务"}}}]},o5=Object.freeze(Object.defineProperty({__proto__:null,default:n5},Symbol.toStringTag,{value:"Module"})),r5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),i5={name:"knowledge",path:"/",component:r5,redirect:"/knowledge",meta:{isHidden:!1},children:[{name:"Knowledge",path:"knowledge",component:()=>_t(()=>Promise.resolve().then(()=>ULe),void 0),meta:{title:"使用文档",icon:"mdi-book-open-variant",order:10}}]},s5=Object.freeze(Object.defineProperty({__proto__:null,default:i5},Symbol.toStringTag,{value:"Module"})),a5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),l5={name:"Node",path:"/",component:a5,redirect:"/node",meta:{isHidden:!1},children:[{name:"Node",path:"node",component:()=>_t(()=>Promise.resolve().then(()=>fFe),void 0),meta:{title:"节点状态",icon:"mdi-check-circle-outline",order:11,group:{key:"subscribe",label:"订阅"}}}]},c5=Object.freeze(Object.defineProperty({__proto__:null,default:l5},Symbol.toStringTag,{value:"Module"})),u5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),d5={name:"Order",path:"/",component:u5,redirect:"/order",meta:{isHidden:!1},children:[{name:"Order",path:"order",component:()=>_t(()=>Promise.resolve().then(()=>pFe),void 0),meta:{title:"我的订单",icon:"mdi-format-list-bulleted",order:0,group:{key:"finance",label:"财务"}}},{name:"OrderDetail",path:"order/:trade_no",component:()=>_t(()=>Promise.resolve().then(()=>U9e),void 0),meta:{title:"订单详情",icon:"mdi:doc",order:1,isHidden:!0}}]},f5=Object.freeze(Object.defineProperty({__proto__:null,default:d5},Symbol.toStringTag,{value:"Module"})),h5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),p5={name:"plan",path:"/",component:h5,redirect:"/plan",meta:{isHidden:!1},children:[{name:"Plan",path:"plan",component:()=>_t(()=>Promise.resolve().then(()=>p7e),void 0),meta:{title:"购买订阅",icon:"mdi-shopping-outline",order:10,group:{key:"subscribe",label:"订阅"}}},{name:"PlanDetail",path:"plan/:plan_id",component:()=>_t(()=>Promise.resolve().then(()=>V7e),void 0),meta:{title:"配置订阅",icon:"mdi:doc",order:1,isHidden:!0}}]},m5=Object.freeze(Object.defineProperty({__proto__:null,default:p5},Symbol.toStringTag,{value:"Module"})),g5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),v5={name:"profile",path:"/",component:g5,redirect:"/profile",meta:{isHidden:!1},children:[{name:"Profile",path:"profile",component:()=>_t(()=>Promise.resolve().then(()=>hBe),void 0),meta:{title:"个人中心",icon:"mdi-account-outline",order:0,group:{key:"user",label:"用户"}}}]},b5=Object.freeze(Object.defineProperty({__proto__:null,default:v5},Symbol.toStringTag,{value:"Module"})),y5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),x5={name:"ticket",path:"/",component:y5,redirect:"/ticket",meta:{isHidden:!1},children:[{name:"Ticket",path:"ticket",component:()=>_t(()=>Promise.resolve().then(()=>gBe),void 0),meta:{title:"我的工单",icon:"mdi-comment-alert-outline",order:0,group:{key:"user",label:"用户"}}},{name:"TicketDetail",path:"ticket/:ticket_id",component:()=>_t(()=>Promise.resolve().then(()=>CBe),void 0),meta:{title:"工单详情",order:0,isHidden:!0}}]},C5=Object.freeze(Object.defineProperty({__proto__:null,default:x5},Symbol.toStringTag,{value:"Module"})),w5=()=>_t(()=>Promise.resolve().then(()=>br),void 0),_5={name:"traffic",path:"/",component:w5,redirect:"/traffic",meta:{isHidden:!1},children:[{name:"Traffic",path:"traffic",component:()=>_t(()=>Promise.resolve().then(()=>_Be),void 0),meta:{title:"流量明细",icon:"mdi-poll",order:0,group:{key:"user",label:"用户"}}}]},S5=Object.freeze(Object.defineProperty({__proto__:null,default:_5},Symbol.toStringTag,{value:"Module"})),zx=[{path:"/",name:"Root",redirect:"/dashboard",meta:{isHidden:!0}},{name:"404",path:"/404",component:()=>_t(()=>Promise.resolve().then(()=>RBe),void 0),meta:{title:"404",isHidden:!0}},{name:"LOGIN",path:"/login",component:()=>_t(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"登录页",isHidden:!0}},{name:"Register",path:"/register",component:()=>_t(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"注册",isHidden:!0}},{name:"forgetpassword",path:"/forgetpassword",component:()=>_t(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"重置密码",isHidden:!0}}],k5={name:"NotFound",path:"/:pathMatch(.*)*",redirect:"/404",meta:{title:"Not Found"}},tv=Object.assign({"/src/views/dashboard/route.ts":e5,"/src/views/invite/route.ts":o5,"/src/views/knowledge/route.ts":s5,"/src/views/node/route.ts":c5,"/src/views/order/route.ts":f5,"/src/views/plan/route.ts":m5,"/src/views/profile/route.ts":b5,"/src/views/ticket/route.ts":C5,"/src/views/traffic/route.ts":S5}),Dx=[];Object.keys(tv).forEach(e=>{Dx.push(tv[e].default)});function P5(e){e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{setTimeout(()=>{var t;(t=window.$loadingBar)==null||t.finish()},200)}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})}var iy;const nv=((iy=window.settings)==null?void 0:iy.title)||"Xboard";function T5(e){e.afterEach(t=>{var o;const n=(o=t.meta)==null?void 0:o.title;n?document.title=`${n} | ${nv}`:document.title=nv})}var R5=!1;/*! + */const aa=typeof document<"u";function BT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ut=Object.assign;function Sd(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ro(r)?r.map(e):e(r)}return n}const ws=()=>{},Ro=Array.isArray,wx=/#/g,NT=/&/g,HT=/\//g,jT=/=/g,UT=/\?/g,_x=/\+/g,VT=/%5B/g,WT=/%5D/g,Sx=/%5E/g,qT=/%60/g,kx=/%7B/g,KT=/%7C/g,Px=/%7D/g,GT=/%20/g;function mp(e){return encodeURI(""+e).replace(KT,"|").replace(VT,"[").replace(WT,"]")}function XT(e){return mp(e).replace(kx,"{").replace(Px,"}").replace(Sx,"^")}function Df(e){return mp(e).replace(_x,"%2B").replace(GT,"+").replace(wx,"%23").replace(NT,"%26").replace(qT,"`").replace(kx,"{").replace(Px,"}").replace(Sx,"^")}function YT(e){return Df(e).replace(jT,"%3D")}function QT(e){return mp(e).replace(wx,"%23").replace(UT,"%3F")}function JT(e){return e==null?"":QT(e).replace(HT,"%2F")}function Hs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ZT=/\/$/,e4=e=>e.replace(ZT,"");function kd(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=r4(o??t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:Hs(a)}}function t4(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function n4(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&wa(t.matched[o],n.matched[r])&&Tx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Tx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!o4(e[n],t[n]))return!1;return!0}function o4(e,t){return Ro(e)?Lg(e,t):Ro(t)?Lg(t,e):e===t}function Lg(e,t){return Ro(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function r4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,a,s;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(a).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var js;(function(e){e.pop="pop",e.push="push"})(js||(js={}));var _s;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_s||(_s={}));function i4(e){if(!e)if(aa){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),e4(e)}const a4=/^[^#]+#/;function s4(e,t){return e.replace(a4,"#")+t}function l4(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const ou=()=>({left:window.scrollX,top:window.scrollY});function c4(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=l4(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 Bg(e,t){return(history.state?history.state.position-t:-1)+e}const Lf=new Map;function u4(e,t){Lf.set(e,t)}function d4(e){const t=Lf.get(e);return Lf.delete(e),t}let f4=()=>location.protocol+"//"+location.host;function Ex(e,t){const{pathname:n,search:o,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),Dg(l,"")}return Dg(n,e)+o+r}function h4(e,t,n,o){let r=[],i=[],a=null;const s=({state:f})=>{const h=Ex(e,location),p=n.value,g=t.value;let m=0;if(f){if(n.value=h,t.value=f,a&&a===p){a=null;return}m=g?f.position-g.position:0}else o(h);r.forEach(b=>{b(n.value,p,{delta:m,type:js.pop,direction:m?m>0?_s.forward:_s.back:_s.unknown})})};function l(){a=n.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Ut({},f.state,{scroll:ou()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Ng(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ou():null}}function p4(e){const{history:t,location:n}=window,o={value:Ex(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:f4()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function a(l,c){const u=Ut({},t.state,Ng(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),o.value=l}function s(l,c){const u=Ut({},r.value,t.state,{forward:l,scroll:ou()});i(u.current,u,!0);const d=Ut({},Ng(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:r,push:s,replace:a}}function m4(e){e=i4(e);const t=p4(e),n=h4(e,t.state,t.location,t.replace);function o(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=Ut({location:"",base:e,go:o,createHref:s4.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function g4(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),m4(e)}function v4(e){return typeof e=="string"||e&&typeof e=="object"}function Rx(e){return typeof e=="string"||typeof e=="symbol"}const Ax=Symbol("");var Hg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Hg||(Hg={}));function _a(e,t){return Ut(new Error,{type:e,[Ax]:!0},t)}function er(e,t){return e instanceof Error&&Ax in e&&(t==null||!!(e.type&t))}const jg="[^/]+?",b4={sensitive:!1,strict:!1,start:!0,end:!0},y4=/[.+*?^${}()[\]/\\]/g;function x4(e,t){const n=Ut({},b4,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $x(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const w4={type:0,value:""},_4=/[a-zA-Z0-9_]/;function S4(e){if(!e)return[[]];if(e==="/")return[[w4]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===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:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s{a(C)}:ws}function a(d){if(Rx(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function s(){return n}function l(d){const f=A4(d,n);n.splice(f,0,d),d.record.name&&!Wg(d)&&o.set(d.record.name,d)}function c(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw _a(1,{location:d});m=h.record.name,p=Ut(Vg(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Vg(d.params,h.keys.map(C=>C.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(C=>C.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?o.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw _a(1,{location:d,currentLocation:f});m=h.record.name,p=Ut({},f.params,d.params),g=h.stringify(p)}const b=[];let w=h;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:g,params:p,matched:b,meta:R4(b)}}e.forEach(d=>i(d));function u(){n.length=0,o.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:r}}function Vg(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function T4(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:E4(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function E4(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Wg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function R4(e){return e.reduce((t,n)=>Ut(t,n.meta),{})}function qg(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function A4(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;$x(e,t[i])<0?o=i:n=i+1}const r=$4(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function $4(e){let t=e;for(;t=t.parent;)if(Ix(t)&&$x(e,t)===0)return t}function Ix({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function I4(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Df(i)):[o&&Df(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function O4(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Ro(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const M4=Symbol(""),Gg=Symbol(""),ru=Symbol(""),gp=Symbol(""),Bf=Symbol("");function os(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Or(e,t,n,o,r,i=a=>a()){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(_a(4,{from:n,to:t})):f instanceof Error?l(f):v4(f)?l(_a(2,{from:t,to:f})):(a&&o.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Pd(e,t,n,o,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(z4(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Or(u,n,o,a,s,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=BT(u)?u.default:u;a.components[s]=d;const h=(d.__vccOpts||d)[t];return h&&Or(h,n,o,a,s,r)()}))}}return i}function z4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xg(e){const t=Ve(ru),n=Ve(gp),o=I(()=>{const l=Se(e.to);return t.resolve(l)}),r=I(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(wa.bind(null,u));if(f>-1)return f;const h=Yg(l[c-2]);return c>1&&Yg(u)===h&&d[d.length-1].path!==h?d.findIndex(wa.bind(null,l[c-2])):f}),i=I(()=>r.value>-1&&B4(n.params,o.value.params)),a=I(()=>r.value>-1&&r.value===n.matched.length-1&&Tx(n.params,o.value.params));function s(l={}){return L4(l)?t[Se(e.replace)?"replace":"push"](Se(e.to)).catch(ws):Promise.resolve()}return{route:o,href:I(()=>o.value.href),isActive:i,isExactActive:a,navigate:s}}const F4=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Xg,setup(e,{slots:t}){const n=to(Xg(e)),{options:o}=Ve(ru),r=I(()=>({[Qg(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Qg(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:v("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),D4=F4;function L4(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 B4(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!Ro(r)||r.length!==o.length||o.some((i,a)=>i!==r[a]))return!1}return!0}function Yg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qg=(e,t,n)=>e??t??n,N4=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ve(Bf),r=I(()=>e.route||o.value),i=Ve(Gg,0),a=I(()=>{let c=Se(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),s=I(()=>r.value.matched[a.value]);at(Gg,I(()=>a.value+1)),at(M4,s),at(Bf,r);const l=U();return ft(()=>[l.value,s.value,e.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!wa(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=s.value,f=d&&d.components[u];if(!f)return Jg(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,m=v(f,Ut({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Jg(n.default,{Component:m,route:c})||m}}});function Jg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const H4=N4;function j4(e){const t=P4(e.routes,e),n=e.parseQuery||I4,o=e.stringifyQuery||Kg,r=e.history,i=os(),a=os(),s=os(),l=Ia(_r);let c=_r;aa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sd.bind(null,X=>""+X),d=Sd.bind(null,JT),f=Sd.bind(null,Hs);function h(X,ce){let L,be;return Rx(X)?(L=t.getRecordMatcher(X),be=ce):be=X,t.addRoute(be,L)}function p(X){const ce=t.getRecordMatcher(X);ce&&t.removeRoute(ce)}function g(){return t.getRoutes().map(X=>X.record)}function m(X){return!!t.getRecordMatcher(X)}function b(X,ce){if(ce=Ut({},ce||l.value),typeof X=="string"){const A=kd(n,X,ce.path),re=t.resolve({path:A.path},ce),we=r.createHref(A.fullPath);return Ut(A,re,{params:f(re.params),hash:Hs(A.hash),redirectedFrom:void 0,href:we})}let L;if(X.path!=null)L=Ut({},X,{path:kd(n,X.path,ce.path).path});else{const A=Ut({},X.params);for(const re in A)A[re]==null&&delete A[re];L=Ut({},X,{params:d(A)}),ce.params=d(ce.params)}const be=t.resolve(L,ce),Oe=X.hash||"";be.params=u(f(be.params));const je=t4(o,Ut({},X,{hash:XT(Oe),path:be.path})),F=r.createHref(je);return Ut({fullPath:je,hash:Oe,query:o===Kg?O4(X.query):X.query||{}},be,{redirectedFrom:void 0,href:F})}function w(X){return typeof X=="string"?kd(n,X,l.value.path):Ut({},X)}function C(X,ce){if(c!==X)return _a(8,{from:ce,to:X})}function _(X){return x(X)}function S(X){return _(Ut(w(X),{replace:!0}))}function y(X){const ce=X.matched[X.matched.length-1];if(ce&&ce.redirect){const{redirect:L}=ce;let be=typeof L=="function"?L(X):L;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=w(be):{path:be},be.params={}),Ut({query:X.query,hash:X.hash,params:be.path!=null?{}:X.params},be)}}function x(X,ce){const L=c=b(X),be=l.value,Oe=X.state,je=X.force,F=X.replace===!0,A=y(L);if(A)return x(Ut(w(A),{state:typeof A=="object"?Ut({},Oe,A.state):Oe,force:je,replace:F}),ce||L);const re=L;re.redirectedFrom=ce;let we;return!je&&n4(o,be,L)&&(we=_a(16,{to:re,from:be}),Z(be,be,!0,!1)),(we?Promise.resolve(we):T(re,be)).catch(oe=>er(oe)?er(oe,2)?oe:pe(oe):V(oe,re,be)).then(oe=>{if(oe){if(er(oe,2))return x(Ut({replace:F},w(oe.to),{state:typeof oe.to=="object"?Ut({},Oe,oe.to.state):Oe,force:je}),ce||re)}else oe=E(re,be,!0,F,Oe);return R(re,be,oe),oe})}function P(X,ce){const L=C(X,ce);return L?Promise.reject(L):Promise.resolve()}function k(X){const ce=ee.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(X):X()}function T(X,ce){let L;const[be,Oe,je]=U4(X,ce);L=Pd(be.reverse(),"beforeRouteLeave",X,ce);for(const A of be)A.leaveGuards.forEach(re=>{L.push(Or(re,X,ce))});const F=P.bind(null,X,ce);return L.push(F),ne(L).then(()=>{L=[];for(const A of i.list())L.push(Or(A,X,ce));return L.push(F),ne(L)}).then(()=>{L=Pd(Oe,"beforeRouteUpdate",X,ce);for(const A of Oe)A.updateGuards.forEach(re=>{L.push(Or(re,X,ce))});return L.push(F),ne(L)}).then(()=>{L=[];for(const A of je)if(A.beforeEnter)if(Ro(A.beforeEnter))for(const re of A.beforeEnter)L.push(Or(re,X,ce));else L.push(Or(A.beforeEnter,X,ce));return L.push(F),ne(L)}).then(()=>(X.matched.forEach(A=>A.enterCallbacks={}),L=Pd(je,"beforeRouteEnter",X,ce,k),L.push(F),ne(L))).then(()=>{L=[];for(const A of a.list())L.push(Or(A,X,ce));return L.push(F),ne(L)}).catch(A=>er(A,8)?A:Promise.reject(A))}function R(X,ce,L){s.list().forEach(be=>k(()=>be(X,ce,L)))}function E(X,ce,L,be,Oe){const je=C(X,ce);if(je)return je;const F=ce===_r,A=aa?history.state:{};L&&(be||F?r.replace(X.fullPath,Ut({scroll:F&&A&&A.scroll},Oe)):r.push(X.fullPath,Oe)),l.value=X,Z(X,ce,L,F),pe()}let q;function D(){q||(q=r.listen((X,ce,L)=>{if(!G.listening)return;const be=b(X),Oe=y(be);if(Oe){x(Ut(Oe,{replace:!0}),be).catch(ws);return}c=be;const je=l.value;aa&&u4(Bg(je.fullPath,L.delta),ou()),T(be,je).catch(F=>er(F,12)?F:er(F,2)?(x(F.to,be).then(A=>{er(A,20)&&!L.delta&&L.type===js.pop&&r.go(-1,!1)}).catch(ws),Promise.reject()):(L.delta&&r.go(-L.delta,!1),V(F,be,je))).then(F=>{F=F||E(be,je,!1),F&&(L.delta&&!er(F,8)?r.go(-L.delta,!1):L.type===js.pop&&er(F,20)&&r.go(-1,!1)),R(be,je,F)}).catch(ws)}))}let B=os(),M=os(),K;function V(X,ce,L){pe(X);const be=M.list();return be.length?be.forEach(Oe=>Oe(X,ce,L)):console.error(X),Promise.reject(X)}function ae(){return K&&l.value!==_r?Promise.resolve():new Promise((X,ce)=>{B.add([X,ce])})}function pe(X){return K||(K=!X,D(),B.list().forEach(([ce,L])=>X?L(X):ce()),B.reset()),X}function Z(X,ce,L,be){const{scrollBehavior:Oe}=e;if(!aa||!Oe)return Promise.resolve();const je=!L&&d4(Bg(X.fullPath,0))||(be||!L)&&history.state&&history.state.scroll||null;return Ht().then(()=>Oe(X,ce,je)).then(F=>F&&c4(F)).catch(F=>V(F,X,ce))}const N=X=>r.go(X);let O;const ee=new Set,G={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:b,options:e,push:_,replace:S,go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:M.add,isReady:ae,install(X){const ce=this;X.component("RouterLink",D4),X.component("RouterView",H4),X.config.globalProperties.$router=ce,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>Se(l)}),aa&&!O&&l.value===_r&&(O=!0,_(r.location).catch(Oe=>{}));const L={};for(const Oe in _r)Object.defineProperty(L,Oe,{get:()=>l.value[Oe],enumerable:!0});X.provide(ru,ce),X.provide(gp,Py(L)),X.provide(Bf,l);const be=X.unmount;ee.add(X),X.unmount=function(){ee.delete(X),ee.size<1&&(c=_r,q&&q(),q=null,l.value=_r,O=!1,K=!1),be()}}};function ne(X){return X.reduce((ce,L)=>ce.then(()=>k(L)),Promise.resolve())}return G}function U4(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;awa(c,s))?o.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(c=>wa(c,l))||r.push(l))}return[n,o,r]}function Ox(){return Ve(ru)}function za(e){return Ve(gp)}const V4="modulepreload",W4=function(e){return"/"+e},Zg={},wt=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=W4(i),i in Zg)return;Zg[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":V4,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},q4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),K4={name:"dashboard",path:"/",component:q4,redirect:"dashboard",meta:{isHidden:!1},children:[{name:"dashboard",path:"/dashboard",component:()=>wt(()=>Promise.resolve().then(()=>_Fe),void 0),meta:{title:"仪表盘",icon:"mdi:home",order:0}}]},G4=Object.freeze(Object.defineProperty({__proto__:null,default:K4},Symbol.toStringTag,{value:"Module"})),X4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),Y4={name:"Invite",path:"/",component:X4,redirect:"/invite",meta:{isHidden:!1},children:[{name:"Invite",path:"invite",component:()=>wt(()=>Promise.resolve().then(()=>iDe),void 0),meta:{title:"我的邀请",icon:"mdi:invite",order:1,group:{key:"finance",label:"财务"}}}]},Q4=Object.freeze(Object.defineProperty({__proto__:null,default:Y4},Symbol.toStringTag,{value:"Module"})),J4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),Z4={name:"knowledge",path:"/",component:J4,redirect:"/knowledge",meta:{isHidden:!1},children:[{name:"Knowledge",path:"knowledge",component:()=>wt(()=>Promise.resolve().then(()=>dDe),void 0),meta:{title:"使用文档",icon:"mdi-book-open-variant",order:10}}]},eE=Object.freeze(Object.defineProperty({__proto__:null,default:Z4},Symbol.toStringTag,{value:"Module"})),tE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),nE={name:"Node",path:"/",component:tE,redirect:"/node",meta:{isHidden:!1},children:[{name:"Node",path:"node",component:()=>wt(()=>Promise.resolve().then(()=>IDe),void 0),meta:{title:"节点状态",icon:"mdi-check-circle-outline",order:11,group:{key:"subscribe",label:"订阅"}}}]},oE=Object.freeze(Object.defineProperty({__proto__:null,default:nE},Symbol.toStringTag,{value:"Module"})),rE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),iE={name:"Order",path:"/",component:rE,redirect:"/order",meta:{isHidden:!1},children:[{name:"Order",path:"order",component:()=>wt(()=>Promise.resolve().then(()=>MDe),void 0),meta:{title:"我的订单",icon:"mdi-format-list-bulleted",order:0,group:{key:"finance",label:"财务"}}},{name:"OrderDetail",path:"order/:trade_no",component:()=>wt(()=>Promise.resolve().then(()=>dBe),void 0),meta:{title:"订单详情",icon:"mdi:doc",order:1,isHidden:!0}}]},aE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),sE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),lE={name:"plan",path:"/",component:sE,redirect:"/plan",meta:{isHidden:!1},children:[{name:"Plan",path:"plan",component:()=>wt(()=>Promise.resolve().then(()=>MBe),void 0),meta:{title:"购买订阅",icon:"mdi-shopping-outline",order:10,group:{key:"subscribe",label:"订阅"}}},{name:"PlanDetail",path:"plan/:plan_id",component:()=>wt(()=>Promise.resolve().then(()=>s9e),void 0),meta:{title:"配置订阅",icon:"mdi:doc",order:1,isHidden:!0}}]},cE=Object.freeze(Object.defineProperty({__proto__:null,default:lE},Symbol.toStringTag,{value:"Module"})),uE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),dE={name:"profile",path:"/",component:uE,redirect:"/profile",meta:{isHidden:!1},children:[{name:"Profile",path:"profile",component:()=>wt(()=>Promise.resolve().then(()=>$9e),void 0),meta:{title:"个人中心",icon:"mdi-account-outline",order:0,group:{key:"user",label:"用户"}}}]},fE=Object.freeze(Object.defineProperty({__proto__:null,default:dE},Symbol.toStringTag,{value:"Module"})),hE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),pE={name:"ticket",path:"/",component:hE,redirect:"/ticket",meta:{isHidden:!1},children:[{name:"Ticket",path:"ticket",component:()=>wt(()=>Promise.resolve().then(()=>M9e),void 0),meta:{title:"我的工单",icon:"mdi-comment-alert-outline",order:0,group:{key:"user",label:"用户"}}},{name:"TicketDetail",path:"ticket/:ticket_id",component:()=>wt(()=>Promise.resolve().then(()=>B9e),void 0),meta:{title:"工单详情",order:0,isHidden:!0}}]},mE=Object.freeze(Object.defineProperty({__proto__:null,default:pE},Symbol.toStringTag,{value:"Module"})),gE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),vE={name:"traffic",path:"/",component:gE,redirect:"/traffic",meta:{isHidden:!1},children:[{name:"Traffic",path:"traffic",component:()=>wt(()=>Promise.resolve().then(()=>H9e),void 0),meta:{title:"流量明细",icon:"mdi-poll",order:0,group:{key:"user",label:"用户"}}}]},bE=Object.freeze(Object.defineProperty({__proto__:null,default:vE},Symbol.toStringTag,{value:"Module"})),Mx=[{name:"404",path:"/404",component:()=>wt(()=>Promise.resolve().then(()=>q9e),void 0),meta:{title:"404",isHidden:!0}},{name:"LOGIN",path:"/login",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"登录页",isHidden:!0}},{name:"Register",path:"/register",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"注册",isHidden:!0}},{name:"forgetpassword",path:"/forgetpassword",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"重置密码",isHidden:!0}}],yE={name:"NotFound",path:"/:pathMatch(.*)*",redirect:"/404",meta:{title:"Not Found"}},ev=Object.assign({"/src/views/dashboard/route.ts":G4,"/src/views/invite/route.ts":Q4,"/src/views/knowledge/route.ts":eE,"/src/views/node/route.ts":oE,"/src/views/order/route.ts":aE,"/src/views/plan/route.ts":cE,"/src/views/profile/route.ts":fE,"/src/views/ticket/route.ts":mE,"/src/views/traffic/route.ts":bE}),zx=[];Object.keys(ev).forEach(e=>{zx.push(ev[e].default)});function xE(e){e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{setTimeout(()=>{var t;(t=window.$loadingBar)==null||t.finish()},200)}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})}var oy;const tv=((oy=window.settings)==null?void 0:oy.title)||"Xboard";function CE(e){e.afterEach(t=>{var o;const n=(o=t.meta)==null?void 0:o.title;n?document.title=`${n} | ${tv}`:document.title=tv})}var wE=!1;/*! * pinia v2.2.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let Lx;const au=e=>Lx=e,Fx=Symbol();function Nf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ta;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ta||(Ta={}));function E5(){const e=Kh(!0),t=e.run(()=>H({}));let n=[],o=[];const r=Fa({install(i){au(r),r._a=i,i.provide(Fx,r),i.config.globalProperties.$pinia=r,o.forEach(s=>n.push(s)),o=[]},use(i){return!this._a&&!R5?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Bx=()=>{};function ov(e,t,n,o=Bx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&Gh()&&gy(r),r}function ns(e,...t){e.slice().forEach(n=>{n(...t)})}const $5=e=>e(),rv=Symbol(),Td=Symbol();function Hf(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Nf(r)&&Nf(o)&&e.hasOwnProperty(n)&&!dn(o)&&!wi(o)?e[n]=Hf(r,o):e[n]=o}return e}const A5=Symbol();function I5(e){return!Nf(e)||!e.hasOwnProperty(A5)}const{assign:Er}=Object;function M5(e){return!!(dn(e)&&e.effect)}function O5(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const u=J3(n.state.value[e]);return Er(u,i,Object.keys(s||{}).reduce((d,f)=>(d[f]=Fa(D(()=>{au(n);const h=n._s.get(e);return s[f].call(h,h)})),d),{}))}return l=Nx(e,c,t,n,o,!0),l}function Nx(e,t,n={},o,r,i){let s;const a=Er({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const p=o.state.value[e];!i&&!p&&(o.state.value[e]={}),H({});let m;function g(T){let k;c=u=!1,typeof T=="function"?(T(o.state.value[e]),k={type:Ta.patchFunction,storeId:e,events:h}):(Hf(o.state.value[e],T),k={type:Ta.patchObject,payload:T,storeId:e,events:h});const P=m=Symbol();Vt().then(()=>{m===P&&(c=!0)}),u=!0,ns(d,k,o.state.value[e])}const b=i?function(){const{state:k}=n,P=k?k():{};this.$patch(I=>{Er(I,P)})}:Bx;function w(){s.stop(),d=[],f=[],o._s.delete(e)}const C=(T,k="")=>{if(rv in T)return T[Td]=k,T;const P=function(){au(o);const I=Array.from(arguments),R=[],W=[];function O(K){R.push(K)}function M(K){W.push(K)}ns(f,{args:I,name:P[Td],store:_,after:O,onError:M});let z;try{z=T.apply(this&&this.$id===e?this:_,I)}catch(K){throw ns(W,K),K}return z instanceof Promise?z.then(K=>(ns(R,K),K)).catch(K=>(ns(W,K),Promise.reject(K))):(ns(R,z),z)};return P[rv]=!0,P[Td]=k,P},S={_p:o,$id:e,$onAction:ov.bind(null,f),$patch:g,$reset:b,$subscribe(T,k={}){const P=ov(d,T,k.detached,()=>I()),I=s.run(()=>dt(()=>o.state.value[e],R=>{(k.flush==="sync"?u:c)&&T({storeId:e,type:Ta.direct,events:h},R)},Er({},l,k)));return P},$dispose:w},_=ro(S);o._s.set(e,_);const y=(o._a&&o._a.runWithContext||$5)(()=>o._e.run(()=>(s=Kh()).run(()=>t({action:C}))));for(const T in y){const k=y[T];if(dn(k)&&!M5(k)||wi(k))i||(p&&I5(k)&&(dn(k)?k.value=p[T]:Hf(k,p[T])),o.state.value[e][T]=k);else if(typeof k=="function"){const P=C(k,T);y[T]=P,a.actions[T]=k}}return Er(_,y),Er(Ot(_),y),Object.defineProperty(_,"$state",{get:()=>o.state.value[e],set:T=>{g(k=>{Er(k,T)})}}),o._p.forEach(T=>{Er(_,s.run(()=>T({store:_,app:o._a,pinia:o,options:a})))}),p&&i&&n.hydrate&&n.hydrate(_.$state,p),c=!0,u=!0,_}function lu(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function s(a,l){const c=_4();return a=a||(c?We(Fx,null):null),a&&au(a),a=Lx,a._s.has(o)||(i?Nx(o,t,r,a):O5(o,r,a)),a._s.get(o)}return s.$id=o,s}function Hx(e,t){return function(){return e.apply(t,arguments)}}const{toString:z5}=Object.prototype,{getPrototypeOf:gp}=Object,cu=(e=>t=>{const n=z5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>cu(t)===e),uu=e=>t=>typeof t===e,{isArray:Ls}=Array,Ka=uu("undefined");function D5(e){return e!==null&&!Ka(e)&&e.constructor!==null&&!Ka(e.constructor)&&to(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jx=Ao("ArrayBuffer");function L5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jx(e.buffer),t}const F5=uu("string"),to=uu("function"),Vx=uu("number"),du=e=>e!==null&&typeof e=="object",B5=e=>e===!0||e===!1,rc=e=>{if(cu(e)!=="object")return!1;const t=gp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},N5=Ao("Date"),H5=Ao("File"),j5=Ao("Blob"),V5=Ao("FileList"),W5=e=>du(e)&&to(e.pipe),U5=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||to(e.append)&&((t=cu(e))==="formdata"||t==="object"&&to(e.toString)&&e.toString()==="[object FormData]"))},q5=Ao("URLSearchParams"),[K5,G5,Y5,X5]=["ReadableStream","Request","Response","Headers"].map(Ao),Z5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Ls(e))for(o=0,r=e.length;o0;)if(r=n[o],t===r.toLowerCase())return r;return null}const mi=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ux=e=>!Ka(e)&&e!==mi;function jf(){const{caseless:e}=Ux(this)&&this||{},t={},n=(o,r)=>{const i=e&&Wx(t,r)||r;rc(t[i])&&rc(o)?t[i]=jf(t[i],o):rc(o)?t[i]=jf({},o):Ls(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o(sl(t,(r,i)=>{n&&to(r)?e[i]=Hx(r,n):e[i]=r},{allOwnKeys:o}),e),Q5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),eR=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tR=(e,t,n,o)=>{let r,i,s;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!o||o(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&gp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},oR=e=>{if(!e)return null;if(Ls(e))return e;let t=e.length;if(!Vx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gp(Uint8Array)),iR=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},sR=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},aR=Ao("HTMLFormElement"),lR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),iv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cR=Ao("RegExp"),qx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};sl(n,(r,i)=>{let s;(s=t(r,i,e))!==!1&&(o[i]=s||r)}),Object.defineProperties(e,o)},uR=e=>{qx(e,(t,n)=>{if(to(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(to(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dR=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return Ls(e)?o(e):o(String(e).split(t)),n},fR=()=>{},hR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Rd="abcdefghijklmnopqrstuvwxyz",sv="0123456789",Kx={DIGIT:sv,ALPHA:Rd,ALPHA_DIGIT:Rd+Rd.toUpperCase()+sv},pR=(e=16,t=Kx.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function mR(e){return!!(e&&to(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const gR=e=>{const t=new Array(10),n=(o,r)=>{if(du(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=Ls(o)?[]:{};return sl(o,(s,a)=>{const l=n(s,r+1);!Ka(l)&&(i[a]=l)}),t[r]=void 0,i}}return o};return n(e,0)},vR=Ao("AsyncFunction"),bR=e=>e&&(du(e)||to(e))&&to(e.then)&&to(e.catch),Gx=((e,t)=>e?setImmediate:t?((n,o)=>(mi.addEventListener("message",({source:r,data:i})=>{r===mi&&i===n&&o.length&&o.shift()()},!1),r=>{o.push(r),mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",to(mi.postMessage)),yR=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||Gx,Pe={isArray:Ls,isArrayBuffer:jx,isBuffer:D5,isFormData:U5,isArrayBufferView:L5,isString:F5,isNumber:Vx,isBoolean:B5,isObject:du,isPlainObject:rc,isReadableStream:K5,isRequest:G5,isResponse:Y5,isHeaders:X5,isUndefined:Ka,isDate:N5,isFile:H5,isBlob:j5,isRegExp:cR,isFunction:to,isStream:W5,isURLSearchParams:q5,isTypedArray:rR,isFileList:V5,forEach:sl,merge:jf,extend:J5,trim:Z5,stripBOM:Q5,inherits:eR,toFlatObject:tR,kindOf:cu,kindOfTest:Ao,endsWith:nR,toArray:oR,forEachEntry:iR,matchAll:sR,isHTMLForm:aR,hasOwnProperty:iv,hasOwnProp:iv,reduceDescriptors:qx,freezeMethods:uR,toObjectSet:dR,toCamelCase:lR,noop:fR,toFiniteNumber:hR,findKey:Wx,global:mi,isContextDefined:Ux,ALPHABET:Kx,generateString:pR,isSpecCompliantForm:mR,toJSONObject:gR,isAsyncFn:vR,isThenable:bR,setImmediate:Gx,asap:yR};function yt(e,t,n,o,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),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}Pe.inherits(yt,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:Pe.toJSONObject(this.config),code:this.code,status:this.status}}});const Yx=yt.prototype,Xx={};["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=>{Xx[e]={value:e}});Object.defineProperties(yt,Xx);Object.defineProperty(Yx,"isAxiosError",{value:!0});yt.from=(e,t,n,o,r,i)=>{const s=Object.create(Yx);return Pe.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),yt.call(s,e.message,t,n,o,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const xR=null;function Vf(e){return Pe.isPlainObject(e)||Pe.isArray(e)}function Zx(e){return Pe.endsWith(e,"[]")?e.slice(0,-2):e}function av(e,t,n){return e?e.concat(t).map(function(r,i){return r=Zx(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function CR(e){return Pe.isArray(e)&&!e.some(Vf)}const wR=Pe.toFlatObject(Pe,{},null,function(t){return/^is[A-Z]/.test(t)});function fu(e,t,n){if(!Pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!Pe.isUndefined(g[m])});const o=n.metaTokens,r=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Pe.isSpecCompliantForm(t);if(!Pe.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Pe.isDate(p))return p.toISOString();if(!l&&Pe.isBlob(p))throw new yt("Blob is not supported. Use a Buffer instead.");return Pe.isArrayBuffer(p)||Pe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let b=p;if(p&&!g&&typeof p=="object"){if(Pe.endsWith(m,"{}"))m=o?m:m.slice(0,-2),p=JSON.stringify(p);else if(Pe.isArray(p)&&CR(p)||(Pe.isFileList(p)||Pe.endsWith(m,"[]"))&&(b=Pe.toArray(p)))return m=Zx(m),b.forEach(function(C,S){!(Pe.isUndefined(C)||C===null)&&t.append(s===!0?av([m],S,i):s===null?m:m+"[]",c(C))}),!1}return Vf(p)?!0:(t.append(av(g,m,i),c(p)),!1)}const d=[],f=Object.assign(wR,{defaultVisitor:u,convertValue:c,isVisitable:Vf});function h(p,m){if(!Pe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),Pe.forEach(p,function(b,w){(!(Pe.isUndefined(b)||b===null)&&r.call(t,b,Pe.isString(w)?w.trim():w,m,f))===!0&&h(b,m?m.concat(w):[w])}),d.pop()}}if(!Pe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function lv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function vp(e,t){this._pairs=[],e&&fu(e,this,t)}const Jx=vp.prototype;Jx.append=function(t,n){this._pairs.push([t,n])};Jx.toString=function(t){const n=t?function(o){return t.call(this,o,lv)}:lv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function _R(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qx(e,t,n){if(!t)return e;const o=n&&n.encode||_R,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Pe.isURLSearchParams(t)?t.toString():new vp(t,n).toString(o),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class SR{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const cv=SR,eC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kR=typeof URLSearchParams<"u"?URLSearchParams:vp,PR=typeof FormData<"u"?FormData:null,TR=typeof Blob<"u"?Blob:null,RR={isBrowser:!0,classes:{URLSearchParams:kR,FormData:PR,Blob:TR},protocols:["http","https","file","blob","url","data"]},bp=typeof window<"u"&&typeof document<"u",Wf=typeof navigator=="object"&&navigator||void 0,ER=bp&&(!Wf||["ReactNative","NativeScript","NS"].indexOf(Wf.product)<0),$R=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),AR=bp&&window.location.href||"http://localhost",IR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bp,hasStandardBrowserEnv:ER,hasStandardBrowserWebWorkerEnv:$R,navigator:Wf,origin:AR},Symbol.toStringTag,{value:"Module"})),no={...IR,...RR};function MR(e,t){return fu(e,new no.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return no.isNode&&Pe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function OR(e){return Pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zR(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o=n.length;return s=!s&&Pe.isArray(r)?r.length:s,l?(Pe.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!a):((!r[s]||!Pe.isObject(r[s]))&&(r[s]=[]),t(n,o,r[s],i)&&Pe.isArray(r[s])&&(r[s]=zR(r[s])),!a)}if(Pe.isFormData(e)&&Pe.isFunction(e.entries)){const n={};return Pe.forEachEntry(e,(o,r)=>{t(OR(o),r,n,0)}),n}return null}function DR(e,t,n){if(Pe.isString(e))try{return(t||JSON.parse)(e),Pe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const yp={transitional:eC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=Pe.isObject(t);if(i&&Pe.isHTMLForm(t)&&(t=new FormData(t)),Pe.isFormData(t))return r?JSON.stringify(tC(t)):t;if(Pe.isArrayBuffer(t)||Pe.isBuffer(t)||Pe.isStream(t)||Pe.isFile(t)||Pe.isBlob(t)||Pe.isReadableStream(t))return t;if(Pe.isArrayBufferView(t))return t.buffer;if(Pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return MR(t,this.formSerializer).toString();if((a=Pe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fu(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),DR(t)):t}],transformResponse:[function(t){const n=this.transitional||yp.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Pe.isResponse(t)||Pe.isReadableStream(t))return t;if(t&&Pe.isString(t)&&(o&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:no.classes.FormData,Blob:no.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pe.forEach(["delete","get","head","post","put","patch"],e=>{yp.headers[e]={}});const xp=yp,LR=Pe.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"]),FR=e=>{const t={};let n,o,r;return e&&e.split(` -`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!n||t[n]&&LR[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},uv=Symbol("internals");function aa(e){return e&&String(e).trim().toLowerCase()}function ic(e){return e===!1||e==null?e:Pe.isArray(e)?e.map(ic):String(e)}function BR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const NR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ed(e,t,n,o,r){if(Pe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!Pe.isString(t)){if(Pe.isString(o))return t.indexOf(o)!==-1;if(Pe.isRegExp(o))return o.test(t)}}function HR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function jR(e,t){const n=Pe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,s){return this[o].call(this,t,r,i,s)},configurable:!0})})}class hu{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(a,l,c){const u=aa(l);if(!u)throw new Error("header name must be a non-empty string");const d=Pe.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=ic(a))}const s=(a,l)=>Pe.forEach(a,(c,u)=>i(c,u,l));if(Pe.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Pe.isString(t)&&(t=t.trim())&&!NR(t))s(FR(t),n);else if(Pe.isHeaders(t))for(const[a,l]of t.entries())i(l,a,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=aa(t),t){const o=Pe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return BR(r);if(Pe.isFunction(n))return n.call(this,r,o);if(Pe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=aa(t),t){const o=Pe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ed(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(s){if(s=aa(s),s){const a=Pe.findKey(o,s);a&&(!n||Ed(o,o[a],a,n))&&(delete o[a],r=!0)}}return Pe.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Ed(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return Pe.forEach(this,(r,i)=>{const s=Pe.findKey(o,i);if(s){n[s]=ic(r),delete n[i];return}const a=t?HR(i):String(i).trim();a!==i&&delete n[i],n[a]=ic(r),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Pe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&Pe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[uv]=this[uv]={accessors:{}}).accessors,r=this.prototype;function i(s){const a=aa(s);o[a]||(jR(r,s),o[a]=!0)}return Pe.isArray(t)?t.forEach(i):i(t),this}}hu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(hu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Pe.freezeMethods(hu);const Ro=hu;function $d(e,t){const n=this||xp,o=t||n,r=Ro.from(o.headers);let i=o.data;return Pe.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function nC(e){return!!(e&&e.__CANCEL__)}function Fs(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Pe.inherits(Fs,yt,{__CANCEL__:!0});function oC(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function VR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WR(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=o[i];s||(s=c),n[r]=l,o[r]=c;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-s{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=o?s(c,u):(r=c,i||(i=setTimeout(()=>{i=null,s(r)},o-d)))},()=>r&&s(r)]}const xc=(e,t,n=3)=>{let o=0;const r=WR(50,250);return UR(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-o,c=r(l),u=s<=a;o=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},dv=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},fv=e=>(...t)=>Pe.asap(()=>e(...t)),qR=no.hasStandardBrowserEnv?function(){const t=no.navigator&&/(msie|trident)/i.test(no.navigator.userAgent),n=document.createElement("a");let o;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(s){const a=Pe.isString(s)?r(s):s;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}(),KR=no.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const s=[e+"="+encodeURIComponent(t)];Pe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Pe.isString(o)&&s.push("path="+o),Pe.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.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 GR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function YR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rC(e,t){return e&&!GR(t)?YR(e,t):t}const hv=e=>e instanceof Ro?{...e}:e;function Ei(e,t){t=t||{};const n={};function o(c,u,d){return Pe.isPlainObject(c)&&Pe.isPlainObject(u)?Pe.merge.call({caseless:d},c,u):Pe.isPlainObject(u)?Pe.merge({},u):Pe.isArray(u)?u.slice():u}function r(c,u,d){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!Pe.isUndefined(u))return o(void 0,u)}function s(c,u){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function a(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>r(hv(c),hv(u),!0)};return Pe.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,f=d(e[u],t[u],u);Pe.isUndefined(f)&&d!==a||(n[u]=f)}),n}const iC=e=>{const t=Ei({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ro.from(s),t.url=Qx(rC(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Pe.isFormData(n)){if(no.hasStandardBrowserEnv||no.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(no.hasStandardBrowserEnv&&(o&&Pe.isFunction(o)&&(o=o(t)),o||o!==!1&&qR(t.url))){const c=r&&i&&KR.read(i);c&&s.set(r,c)}return t},XR=typeof XMLHttpRequest<"u",ZR=XR&&function(e){return new Promise(function(n,o){const r=iC(e);let i=r.data;const s=Ro.from(r.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,h,p;function m(){h&&h(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function b(){if(!g)return;const C=Ro.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};oC(function(y){n(y),m()},function(y){o(y),m()},_),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(o(new yt("Request aborted",yt.ECONNABORTED,e,g)),g=null)},g.onerror=function(){o(new yt("Network Error",yt.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const _=r.transitional||eC;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),o(new yt(S,_.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&Pe.forEach(s.toJSON(),function(S,_){g.setRequestHeader(_,S)}),Pe.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),a&&a!=="json"&&(g.responseType=r.responseType),c&&([f,p]=xc(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=xc(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=C=>{g&&(o(!C||C.type?new Fs(null,e,g):C),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=VR(r.url);if(w&&no.protocols.indexOf(w)===-1){o(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e));return}g.send(i||null)})},JR=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof yt?c:new Fs(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{r(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},QR=JR,eE=function*(e,t){let n=e.byteLength;if(!t||n{const i=tE(e,t,r);let s=0,a,l=c=>{a||(a=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=s+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},pu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sC=pu&&typeof ReadableStream=="function",Uf=pu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),aC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nE=sC&&aC(()=>{let e=!1;const t=new Request(no.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mv=64*1024,qf=sC&&aC(()=>Pe.isReadableStream(new Response("").body)),Cc={stream:qf&&(e=>e.body)};pu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cc[t]&&(Cc[t]=Pe.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,o)})})})(new Response);const oE=async e=>{if(e==null)return 0;if(Pe.isBlob(e))return e.size;if(Pe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Pe.isArrayBufferView(e)||Pe.isArrayBuffer(e))return e.byteLength;if(Pe.isURLSearchParams(e)&&(e=e+""),Pe.isString(e))return(await Uf(e)).byteLength},rE=async(e,t)=>{const n=Pe.toFiniteNumber(e.getContentLength());return n??oE(t)},iE=pu&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=iC(e);c=c?(c+"").toLowerCase():"text";let[h,p]=r||i||s?QR([r,i],s):[],m,g;const b=()=>{!m&&setTimeout(()=>{h&&h.unsubscribe()}),m=!0};let w;try{if(l&&nE&&n!=="get"&&n!=="head"&&(w=await rE(u,o))!==0){let y=new Request(t,{method:"POST",body:o,duplex:"half"}),T;if(Pe.isFormData(o)&&(T=y.headers.get("content-type"))&&u.setContentType(T),y.body){const[k,P]=dv(w,xc(fv(l)));o=pv(y.body,mv,k,P,Uf)}}Pe.isString(d)||(d=d?"include":"omit");const C="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?d:void 0});let S=await fetch(g);const _=qf&&(c==="stream"||c==="response");if(qf&&(a||_)){const y={};["status","statusText","headers"].forEach(I=>{y[I]=S[I]});const T=Pe.toFiniteNumber(S.headers.get("content-length")),[k,P]=a&&dv(T,xc(fv(a),!0))||[];S=new Response(pv(S.body,mv,k,()=>{P&&P(),_&&b()},Uf),y)}c=c||"text";let x=await Cc[Pe.findKey(Cc,c)||"text"](S,e);return!_&&b(),p&&p(),await new Promise((y,T)=>{oC(y,T,{data:x,headers:Ro.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(C){throw b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,g),{cause:C.cause||C}):yt.from(C,C&&C.code,e,g)}}),Kf={http:xR,xhr:ZR,fetch:iE};Pe.forEach(Kf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gv=e=>`- ${e}`,sE=e=>Pe.isFunction(e)||e===null||e===!1,lC={getAdapter:e=>{e=Pe.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : -`+i.map(gv).join(` -`):" "+gv(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:Kf};function Ad(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fs(null,e)}function vv(e){return Ad(e),e.headers=Ro.from(e.headers),e.data=$d.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lC.getAdapter(e.adapter||xp.adapter)(e).then(function(o){return Ad(e),o.data=$d.call(e,e.transformResponse,o),o.headers=Ro.from(o.headers),o},function(o){return nC(o)||(Ad(e),o&&o.response&&(o.response.data=$d.call(e,e.transformResponse,o.response),o.response.headers=Ro.from(o.response.headers))),Promise.reject(o)})}const cC="1.7.5",Cp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cp[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const bv={};Cp.transitional=function(t,n,o){function r(i,s){return"[Axios v"+cC+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,a)=>{if(t===!1)throw new yt(r(s," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!bv[s]&&(bv[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function aE(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new yt("option "+i+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const Gf={assertOptions:aE,validators:Cp},Sr=Gf.validators;class wc{constructor(t){this.defaults=t,this.interceptors={request:new cv,response:new cv}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ei(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Gf.assertOptions(o,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:Gf.assertOptions(r,{encode:Sr.function,serialize:Sr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ro.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[vv.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(a=>{o.subscribe(a),i=a}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},t(function(i,s,a){o.reason||(o.reason=new Fs(i,s,a),n(o.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new wp(function(r){t=r}),cancel:t}}}const lE=wp;function cE(e){return function(n){return e.apply(null,n)}}function uE(e){return Pe.isObject(e)&&e.isAxiosError===!0}const Yf={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(Yf).forEach(([e,t])=>{Yf[t]=e});const dE=Yf;function uC(e){const t=new sc(e),n=Hx(sc.prototype.request,t);return Pe.extend(n,sc.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return uC(Ei(e,r))},n}const bn=uC(xp);bn.Axios=sc;bn.CanceledError=Fs;bn.CancelToken=lE;bn.isCancel=nC;bn.VERSION=cC;bn.toFormData=fu;bn.AxiosError=yt;bn.Cancel=bn.CanceledError;bn.all=function(t){return Promise.all(t)};bn.spread=cE;bn.isAxiosError=uE;bn.mergeConfig=Ei;bn.AxiosHeaders=Ro;bn.formToJSON=e=>tC(Pe.isHTMLForm(e)?new FormData(e):e);bn.getAdapter=lC.getAdapter;bn.HttpStatusCode=dE;bn.default=bn;const fE=bn,hE=[{url:"/passport/auth/login",method:"POST"},{url:"/passport/auth/token2Login",method:"GET"},{url:"/passport/auth/register",method:"POST"},{url:"/passport/auth/register",method:"POST"},{url:"/guest/comm/config",method:"GET"},{url:"/passport/comm/sendEmailVerify",method:"POST"},{url:"/passport/auth/forget",method:"POST"}];function pE({url:e,method:t=""}){return hE.some(n=>n.url===e.split("?")[0]&&n.method===t.toUpperCase())}function mE(e){return typeof e>"u"}function gE(e){return e===null}function vE(e){return gE(e)||mE(e)}function dC(e){try{if(typeof JSON.parse(e)=="object")return!0}catch{return!1}}class bE{constructor(t){hd(this,"storage");hd(this,"prefixKey");this.storage=t.storage,this.prefixKey=t.prefixKey}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,n,o=null){const r=JSON.stringify({value:n,time:Date.now(),expire:o!==null?new Date().getTime()+o*1e3:null});this.storage.setItem(this.getKey(t),r)}get(t,n=null){const o=this.storage.getItem(this.getKey(t));if(!o)return{value:n,time:0};try{const r=JSON.parse(o),{value:i,time:s,expire:a}=r;return vE(a)||a>new Date().getTime()?{value:i,time:s}:(this.remove(t),{value:n,time:0})}catch{return this.remove(t),{value:n,time:0}}}remove(t){this.storage.removeItem(this.getKey(t))}clear(){this.storage.clear()}}function fC({prefixKey:e="",storage:t=sessionStorage}){return new bE({prefixKey:e,storage:t})}const hC="Vue_Naive_",yE=function(e={}){return fC({prefixKey:e.prefixKey||"",storage:localStorage})},xE=function(e={}){return fC({prefixKey:e.prefixKey||"",storage:sessionStorage})},al=yE({prefixKey:hC}),_c=xE({prefixKey:hC}),pC="access_token";function mC(){return al.get(pC)}function gC(){al.remove(pC)}function _p(){const e=_e(Xt.currentRoute),t=!e.meta.requireAuth&&!["/404","/login"].includes(Xt.currentRoute.value.path);Xt.replace({path:"/login",query:t?{...e.query,redirect:e.path}:{}})}var vC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var bC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vC,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var M=["th","st","nd","rd"],z=O%100;return"["+O+(M[(z-20)%10]||M[z]||M[0])+"]"}},C=function(O,M,z){var K=String(O);return!K||K.length>=M?O:""+Array(M+1-K.length).join(z)+O},S={s:C,z:function(O){var M=-O.utcOffset(),z=Math.abs(M),K=Math.floor(z/60),J=z%60;return(M<=0?"+":"-")+C(K,2,"0")+":"+C(J,2,"0")},m:function O(M,z){if(M.date()1)return O(le[0])}else{var F=M.name;x[F]=M,J=F}return!K&&J&&(_=J),J||!K&&_},P=function(O,M){if(T(O))return O.clone();var z=typeof M=="object"?M:{};return z.date=O,z.args=arguments,new R(z)},I=S;I.l=k,I.i=T,I.w=function(O,M){return P(O,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var R=function(){function O(z){this.$L=k(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[y]=!0}var M=O.prototype;return M.parse=function(z){this.$d=function(K){var J=K.date,se=K.utc;if(J===null)return new Date(NaN);if(I.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var le=J.match(g);if(le){var F=le[2]-1||0,E=(le[7]||"0").substring(0,3);return se?new Date(Date.UTC(le[1],F,le[3]||1,le[4]||0,le[5]||0,le[6]||0,E)):new Date(le[1],F,le[3]||1,le[4]||0,le[5]||0,le[6]||0,E)}}return new Date(J)}(z),this.init()},M.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},M.$utils=function(){return I},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(z,K){var J=P(z);return this.startOf(K)<=J&&J<=this.endOf(K)},M.isAfter=function(z,K){return P(z)Fx=e,Dx=Symbol();function Nf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function _E(){const e=Gh(!0),t=e.run(()=>U({}));let n=[],o=[];const r=Ms({install(i){iu(r),r._a=i,i.provide(Dx,r),i.config.globalProperties.$pinia=r,o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!wE?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Lx=()=>{};function nv(e,t,n,o=Lx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&Xh()&&py(r),r}function Zi(e,...t){e.slice().forEach(n=>{n(...t)})}const SE=e=>e(),ov=Symbol(),Td=Symbol();function Hf(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Nf(r)&&Nf(o)&&e.hasOwnProperty(n)&&!cn(o)&&!wi(o)?e[n]=Hf(r,o):e[n]=o}return e}const kE=Symbol();function PE(e){return!Nf(e)||!e.hasOwnProperty(kE)}const{assign:Rr}=Object;function TE(e){return!!(cn(e)&&e.effect)}function EE(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let l;function c(){s||(n.state.value[e]=r?r():{});const u=X3(n.state.value[e]);return Rr(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=Ms(I(()=>{iu(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return l=Bx(e,c,t,n,o,!0),l}function Bx(e,t,n={},o,r,i){let a;const s=Rr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const p=o.state.value[e];!i&&!p&&(o.state.value[e]={}),U({});let g;function m(P){let k;c=u=!1,typeof P=="function"?(P(o.state.value[e]),k={type:Ss.patchFunction,storeId:e,events:h}):(Hf(o.state.value[e],P),k={type:Ss.patchObject,payload:P,storeId:e,events:h});const T=g=Symbol();Ht().then(()=>{g===T&&(c=!0)}),u=!0,Zi(d,k,o.state.value[e])}const b=i?function(){const{state:k}=n,T=k?k():{};this.$patch(R=>{Rr(R,T)})}:Lx;function w(){a.stop(),d=[],f=[],o._s.delete(e)}const C=(P,k="")=>{if(ov in P)return P[Td]=k,P;const T=function(){iu(o);const R=Array.from(arguments),E=[],q=[];function D(K){E.push(K)}function B(K){q.push(K)}Zi(f,{args:R,name:T[Td],store:S,after:D,onError:B});let M;try{M=P.apply(this&&this.$id===e?this:S,R)}catch(K){throw Zi(q,K),K}return M instanceof Promise?M.then(K=>(Zi(E,K),K)).catch(K=>(Zi(q,K),Promise.reject(K))):(Zi(E,M),M)};return T[ov]=!0,T[Td]=k,T},_={_p:o,$id:e,$onAction:nv.bind(null,f),$patch:m,$reset:b,$subscribe(P,k={}){const T=nv(d,P,k.detached,()=>R()),R=a.run(()=>ft(()=>o.state.value[e],E=>{(k.flush==="sync"?u:c)&&P({storeId:e,type:Ss.direct,events:h},E)},Rr({},l,k)));return T},$dispose:w},S=to(_);o._s.set(e,S);const x=(o._a&&o._a.runWithContext||SE)(()=>o._e.run(()=>(a=Gh()).run(()=>t({action:C}))));for(const P in x){const k=x[P];if(cn(k)&&!TE(k)||wi(k))i||(p&&PE(k)&&(cn(k)?k.value=p[P]:Hf(k,p[P])),o.state.value[e][P]=k);else if(typeof k=="function"){const T=C(k,P);x[P]=T,s.actions[P]=k}}return Rr(S,x),Rr(It(S),x),Object.defineProperty(S,"$state",{get:()=>o.state.value[e],set:P=>{m(k=>{Rr(k,P)})}}),o._p.forEach(P=>{Rr(S,a.run(()=>P({store:S,app:o._a,pinia:o,options:s})))}),p&&i&&n.hydrate&&n.hydrate(S.$state,p),c=!0,u=!0,S}function au(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function a(s,l){const c=bP();return s=s||(c?Ve(Dx,null):null),s&&iu(s),s=Fx,s._s.has(o)||(i?Bx(o,t,r,s):EE(o,r,s)),s._s.get(o)}return a.$id=o,a}function Nx(e,t){return function(){return e.apply(t,arguments)}}const{toString:RE}=Object.prototype,{getPrototypeOf:vp}=Object,su=(e=>t=>{const n=RE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$o=e=>(e=e.toLowerCase(),t=>su(t)===e),lu=e=>t=>typeof t===e,{isArray:Fa}=Array,Us=lu("undefined");function AE(e){return e!==null&&!Us(e)&&e.constructor!==null&&!Us(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hx=$o("ArrayBuffer");function $E(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hx(e.buffer),t}const IE=lu("string"),Jn=lu("function"),jx=lu("number"),cu=e=>e!==null&&typeof e=="object",OE=e=>e===!0||e===!1,nc=e=>{if(su(e)!=="object")return!1;const t=vp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ME=$o("Date"),zE=$o("File"),FE=$o("Blob"),DE=$o("FileList"),LE=e=>cu(e)&&Jn(e.pipe),BE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=su(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},NE=$o("URLSearchParams"),[HE,jE,UE,VE]=["ReadableStream","Request","Response","Headers"].map($o),WE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Fa(e))for(o=0,r=e.length;o0;)if(r=n[o],t===r.toLowerCase())return r;return null}const mi=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vx=e=>!Us(e)&&e!==mi;function jf(){const{caseless:e}=Vx(this)&&this||{},t={},n=(o,r)=>{const i=e&&Ux(t,r)||r;nc(t[i])&&nc(o)?t[i]=jf(t[i],o):nc(o)?t[i]=jf({},o):Fa(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o(rl(t,(r,i)=>{n&&Jn(r)?e[i]=Nx(r,n):e[i]=r},{allOwnKeys:o}),e),KE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GE=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},XE=(e,t,n,o)=>{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],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&vp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},YE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},QE=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!jx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},JE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vp(Uint8Array)),ZE=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},eR=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},tR=$o("HTMLFormElement"),nR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),rv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oR=$o("RegExp"),Wx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};rl(n,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(o[i]=a||r)}),Object.defineProperties(e,o)},rR=e=>{Wx(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Jn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iR=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return Fa(e)?o(e):o(String(e).split(t)),n},aR=()=>{},sR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ed="abcdefghijklmnopqrstuvwxyz",iv="0123456789",qx={DIGIT:iv,ALPHA:Ed,ALPHA_DIGIT:Ed+Ed.toUpperCase()+iv},lR=(e=16,t=qx.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function cR(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uR=e=>{const t=new Array(10),n=(o,r)=>{if(cu(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=Fa(o)?[]:{};return rl(o,(a,s)=>{const l=n(a,r+1);!Us(l)&&(i[s]=l)}),t[r]=void 0,i}}return o};return n(e,0)},dR=$o("AsyncFunction"),fR=e=>e&&(cu(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),Kx=((e,t)=>e?setImmediate:t?((n,o)=>(mi.addEventListener("message",({source:r,data:i})=>{r===mi&&i===n&&o.length&&o.shift()()},!1),r=>{o.push(r),mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(mi.postMessage)),hR=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||Kx,Pe={isArray:Fa,isArrayBuffer:Hx,isBuffer:AE,isFormData:BE,isArrayBufferView:$E,isString:IE,isNumber:jx,isBoolean:OE,isObject:cu,isPlainObject:nc,isReadableStream:HE,isRequest:jE,isResponse:UE,isHeaders:VE,isUndefined:Us,isDate:ME,isFile:zE,isBlob:FE,isRegExp:oR,isFunction:Jn,isStream:LE,isURLSearchParams:NE,isTypedArray:JE,isFileList:DE,forEach:rl,merge:jf,extend:qE,trim:WE,stripBOM:KE,inherits:GE,toFlatObject:XE,kindOf:su,kindOfTest:$o,endsWith:YE,toArray:QE,forEachEntry:ZE,matchAll:eR,isHTMLForm:tR,hasOwnProperty:rv,hasOwnProp:rv,reduceDescriptors:Wx,freezeMethods:rR,toObjectSet:iR,toCamelCase:nR,noop:aR,toFiniteNumber:sR,findKey:Ux,global:mi,isContextDefined:Vx,ALPHABET:qx,generateString:lR,isSpecCompliantForm:cR,toJSONObject:uR,isAsyncFn:dR,isThenable:fR,setImmediate:Kx,asap:hR};function yt(e,t,n,o,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),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}Pe.inherits(yt,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:Pe.toJSONObject(this.config),code:this.code,status:this.status}}});const Gx=yt.prototype,Xx={};["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=>{Xx[e]={value:e}});Object.defineProperties(yt,Xx);Object.defineProperty(Gx,"isAxiosError",{value:!0});yt.from=(e,t,n,o,r,i)=>{const a=Object.create(Gx);return Pe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yt.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const pR=null;function Uf(e){return Pe.isPlainObject(e)||Pe.isArray(e)}function Yx(e){return Pe.endsWith(e,"[]")?e.slice(0,-2):e}function av(e,t,n){return e?e.concat(t).map(function(r,i){return r=Yx(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function mR(e){return Pe.isArray(e)&&!e.some(Uf)}const gR=Pe.toFlatObject(Pe,{},null,function(t){return/^is[A-Z]/.test(t)});function uu(e,t,n){if(!Pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Pe.isUndefined(m[g])});const o=n.metaTokens,r=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Pe.isSpecCompliantForm(t);if(!Pe.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Pe.isDate(p))return p.toISOString();if(!l&&Pe.isBlob(p))throw new yt("Blob is not supported. Use a Buffer instead.");return Pe.isArrayBuffer(p)||Pe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,m){let b=p;if(p&&!m&&typeof p=="object"){if(Pe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),p=JSON.stringify(p);else if(Pe.isArray(p)&&mR(p)||(Pe.isFileList(p)||Pe.endsWith(g,"[]"))&&(b=Pe.toArray(p)))return g=Yx(g),b.forEach(function(C,_){!(Pe.isUndefined(C)||C===null)&&t.append(a===!0?av([g],_,i):a===null?g:g+"[]",c(C))}),!1}return Uf(p)?!0:(t.append(av(m,g,i),c(p)),!1)}const d=[],f=Object.assign(gR,{defaultVisitor:u,convertValue:c,isVisitable:Uf});function h(p,g){if(!Pe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),Pe.forEach(p,function(b,w){(!(Pe.isUndefined(b)||b===null)&&r.call(t,b,Pe.isString(w)?w.trim():w,g,f))===!0&&h(b,g?g.concat(w):[w])}),d.pop()}}if(!Pe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function sv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function bp(e,t){this._pairs=[],e&&uu(e,this,t)}const Qx=bp.prototype;Qx.append=function(t,n){this._pairs.push([t,n])};Qx.toString=function(t){const n=t?function(o){return t.call(this,o,sv)}:sv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function vR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jx(e,t,n){if(!t)return e;const o=n&&n.encode||vR,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Pe.isURLSearchParams(t)?t.toString():new bp(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class bR{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const lv=bR,Zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yR=typeof URLSearchParams<"u"?URLSearchParams:bp,xR=typeof FormData<"u"?FormData:null,CR=typeof Blob<"u"?Blob:null,wR={isBrowser:!0,classes:{URLSearchParams:yR,FormData:xR,Blob:CR},protocols:["http","https","file","blob","url","data"]},yp=typeof window<"u"&&typeof document<"u",Vf=typeof navigator=="object"&&navigator||void 0,_R=yp&&(!Vf||["ReactNative","NativeScript","NS"].indexOf(Vf.product)<0),SR=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kR=yp&&window.location.href||"http://localhost",PR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yp,hasStandardBrowserEnv:_R,hasStandardBrowserWebWorkerEnv:SR,navigator:Vf,origin:kR},Symbol.toStringTag,{value:"Module"})),Zn={...PR,...wR};function TR(e,t){return uu(e,new Zn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return Zn.isNode&&Pe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ER(e){return Pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RR(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o=n.length;return a=!a&&Pe.isArray(r)?r.length:a,l?(Pe.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!s):((!r[a]||!Pe.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],i)&&Pe.isArray(r[a])&&(r[a]=RR(r[a])),!s)}if(Pe.isFormData(e)&&Pe.isFunction(e.entries)){const n={};return Pe.forEachEntry(e,(o,r)=>{t(ER(o),r,n,0)}),n}return null}function AR(e,t,n){if(Pe.isString(e))try{return(t||JSON.parse)(e),Pe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const xp={transitional:Zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=Pe.isObject(t);if(i&&Pe.isHTMLForm(t)&&(t=new FormData(t)),Pe.isFormData(t))return r?JSON.stringify(eC(t)):t;if(Pe.isArrayBuffer(t)||Pe.isBuffer(t)||Pe.isStream(t)||Pe.isFile(t)||Pe.isBlob(t)||Pe.isReadableStream(t))return t;if(Pe.isArrayBufferView(t))return t.buffer;if(Pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return TR(t,this.formSerializer).toString();if((s=Pe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return uu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),AR(t)):t}],transformResponse:[function(t){const n=this.transitional||xp.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Pe.isResponse(t)||Pe.isReadableStream(t))return t;if(t&&Pe.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yt.from(s,yt.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:Zn.classes.FormData,Blob:Zn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pe.forEach(["delete","get","head","post","put","patch"],e=>{xp.headers[e]={}});const Cp=xp,$R=Pe.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"]),IR=e=>{const t={};let n,o,r;return e&&e.split(` +`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&$R[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},cv=Symbol("internals");function rs(e){return e&&String(e).trim().toLowerCase()}function oc(e){return e===!1||e==null?e:Pe.isArray(e)?e.map(oc):String(e)}function OR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const MR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rd(e,t,n,o,r){if(Pe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!Pe.isString(t)){if(Pe.isString(o))return t.indexOf(o)!==-1;if(Pe.isRegExp(o))return o.test(t)}}function zR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function FR(e,t){const n=Pe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,a){return this[o].call(this,t,r,i,a)},configurable:!0})})}class du{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(s,l,c){const u=rs(l);if(!u)throw new Error("header name must be a non-empty string");const d=Pe.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=oc(s))}const a=(s,l)=>Pe.forEach(s,(c,u)=>i(c,u,l));if(Pe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Pe.isString(t)&&(t=t.trim())&&!MR(t))a(IR(t),n);else if(Pe.isHeaders(t))for(const[s,l]of t.entries())i(l,s,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=rs(t),t){const o=Pe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return OR(r);if(Pe.isFunction(n))return n.call(this,r,o);if(Pe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rs(t),t){const o=Pe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Rd(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(a){if(a=rs(a),a){const s=Pe.findKey(o,a);s&&(!n||Rd(o,o[s],s,n))&&(delete o[s],r=!0)}}return Pe.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Rd(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return Pe.forEach(this,(r,i)=>{const a=Pe.findKey(o,i);if(a){n[a]=oc(r),delete n[i];return}const s=t?zR(i):String(i).trim();s!==i&&delete n[i],n[s]=oc(r),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Pe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&Pe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[cv]=this[cv]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=rs(a);o[s]||(FR(r,a),o[s]=!0)}return Pe.isArray(t)?t.forEach(i):i(t),this}}du.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(du.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Pe.freezeMethods(du);const To=du;function Ad(e,t){const n=this||Cp,o=t||n,r=To.from(o.headers);let i=o.data;return Pe.forEach(e,function(s){i=s.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function tC(e){return!!(e&&e.__CANCEL__)}function Da(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Pe.inherits(Da,yt,{__CANCEL__:!0});function nC(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LR(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=o[i];a||(a=c),n[r]=l,o[r]=c;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=o?a(c,u):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},o-d)))},()=>r&&a(r)]}const bc=(e,t,n=3)=>{let o=0;const r=LR(50,250);return BR(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-o,c=r(l),u=a<=s;o=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},uv=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},dv=e=>(...t)=>Pe.asap(()=>e(...t)),NR=Zn.hasStandardBrowserEnv?function(){const t=Zn.navigator&&/(msie|trident)/i.test(Zn.navigator.userAgent),n=document.createElement("a");let o;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const s=Pe.isString(a)?r(a):a;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}(),HR=Zn.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];Pe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pe.isString(o)&&a.push("path="+o),Pe.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 jR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oC(e,t){return e&&!jR(t)?UR(e,t):t}const fv=e=>e instanceof To?{...e}:e;function Ri(e,t){t=t||{};const n={};function o(c,u,d){return Pe.isPlainObject(c)&&Pe.isPlainObject(u)?Pe.merge.call({caseless:d},c,u):Pe.isPlainObject(u)?Pe.merge({},u):Pe.isArray(u)?u.slice():u}function r(c,u,d){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!Pe.isUndefined(u))return o(void 0,u)}function a(c,u){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,d){if(d in t)return o(c,u);if(d in e)return o(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,u)=>r(fv(c),fv(u),!0)};return Pe.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,f=d(e[u],t[u],u);Pe.isUndefined(f)&&d!==s||(n[u]=f)}),n}const rC=e=>{const t=Ri({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=To.from(a),t.url=Jx(oC(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(Pe.isFormData(n)){if(Zn.hasStandardBrowserEnv||Zn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Zn.hasStandardBrowserEnv&&(o&&Pe.isFunction(o)&&(o=o(t)),o||o!==!1&&NR(t.url))){const c=r&&i&&HR.read(i);c&&a.set(r,c)}return t},VR=typeof XMLHttpRequest<"u",WR=VR&&function(e){return new Promise(function(n,o){const r=rC(e);let i=r.data;const a=To.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,h,p;function g(){h&&h(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const C=To.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};nC(function(x){n(x),g()},function(x){o(x),g()},S),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(o(new yt("Request aborted",yt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new yt("Network Error",yt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||Zx;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),o(new yt(_,S.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),"setRequestHeader"in m&&Pe.forEach(a.toJSON(),function(_,S){m.setRequestHeader(S,_)}),Pe.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),s&&s!=="json"&&(m.responseType=r.responseType),c&&([f,p]=bc(c,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,h]=bc(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=C=>{m&&(o(!C||C.type?new Da(null,e,m):C),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=DR(r.url);if(w&&Zn.protocols.indexOf(w)===-1){o(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e));return}m.send(i||null)})},qR=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof yt?c:new Da(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{r(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},KR=qR,GR=function*(e,t){let n=e.byteLength;if(!t||n{const i=XR(e,t,r);let a=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},fu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iC=fu&&typeof ReadableStream=="function",Wf=fu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),aC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YR=iC&&aC(()=>{let e=!1;const t=new Request(Zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pv=64*1024,qf=iC&&aC(()=>Pe.isReadableStream(new Response("").body)),yc={stream:qf&&(e=>e.body)};fu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!yc[t]&&(yc[t]=Pe.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,o)})})})(new Response);const QR=async e=>{if(e==null)return 0;if(Pe.isBlob(e))return e.size;if(Pe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Pe.isArrayBufferView(e)||Pe.isArrayBuffer(e))return e.byteLength;if(Pe.isURLSearchParams(e)&&(e=e+""),Pe.isString(e))return(await Wf(e)).byteLength},JR=async(e,t)=>{const n=Pe.toFiniteNumber(e.getContentLength());return n??QR(t)},ZR=fu&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=rC(e);c=c?(c+"").toLowerCase():"text";let[h,p]=r||i||a?KR([r,i],a):[],g,m;const b=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let w;try{if(l&&YR&&n!=="get"&&n!=="head"&&(w=await JR(u,o))!==0){let x=new Request(t,{method:"POST",body:o,duplex:"half"}),P;if(Pe.isFormData(o)&&(P=x.headers.get("content-type"))&&u.setContentType(P),x.body){const[k,T]=uv(w,bc(dv(l)));o=hv(x.body,pv,k,T,Wf)}}Pe.isString(d)||(d=d?"include":"omit");const C="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?d:void 0});let _=await fetch(m);const S=qf&&(c==="stream"||c==="response");if(qf&&(s||S)){const x={};["status","statusText","headers"].forEach(R=>{x[R]=_[R]});const P=Pe.toFiniteNumber(_.headers.get("content-length")),[k,T]=s&&uv(P,bc(dv(s),!0))||[];_=new Response(hv(_.body,pv,k,()=>{T&&T(),S&&b()},Wf),x)}c=c||"text";let y=await yc[Pe.findKey(yc,c)||"text"](_,e);return!S&&b(),p&&p(),await new Promise((x,P)=>{nC(x,P,{data:y,headers:To.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:m})})}catch(C){throw b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,m),{cause:C.cause||C}):yt.from(C,C&&C.code,e,m)}}),Kf={http:pR,xhr:WR,fetch:ZR};Pe.forEach(Kf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mv=e=>`- ${e}`,eA=e=>Pe.isFunction(e)||e===null||e===!1,sC={getAdapter:e=>{e=Pe.isArray(e)?e:[e];const{length:t}=e;let n,o;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(mv).join(` +`):" "+mv(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Kf};function $d(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Da(null,e)}function gv(e){return $d(e),e.headers=To.from(e.headers),e.data=Ad.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sC.getAdapter(e.adapter||Cp.adapter)(e).then(function(o){return $d(e),o.data=Ad.call(e,e.transformResponse,o),o.headers=To.from(o.headers),o},function(o){return tC(o)||($d(e),o&&o.response&&(o.response.data=Ad.call(e,e.transformResponse,o.response),o.response.headers=To.from(o.response.headers))),Promise.reject(o)})}const lC="1.7.5",wp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wp[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const vv={};wp.transitional=function(t,n,o){function r(i,a){return"[Axios v"+lC+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,s)=>{if(t===!1)throw new yt(r(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!vv[a]&&(vv[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function tA(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new yt("option "+i+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const Gf={assertOptions:tA,validators:wp},Sr=Gf.validators;class xc{constructor(t){this.defaults=t,this.interceptors={request:new lv,response:new lv}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` +`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ri(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Gf.assertOptions(o,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:Gf.assertOptions(r,{encode:Sr.function,serialize:Sr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=To.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const p=[gv.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(s=>{o.subscribe(s),i=s}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,s){o.reason||(o.reason=new Da(i,a,s),n(o.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _p(function(r){t=r}),cancel:t}}}const nA=_p;function oA(e){return function(n){return e.apply(null,n)}}function rA(e){return Pe.isObject(e)&&e.isAxiosError===!0}const Xf={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(Xf).forEach(([e,t])=>{Xf[t]=e});const iA=Xf;function cC(e){const t=new rc(e),n=Nx(rc.prototype.request,t);return Pe.extend(n,rc.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return cC(Ri(e,r))},n}const gn=cC(Cp);gn.Axios=rc;gn.CanceledError=Da;gn.CancelToken=nA;gn.isCancel=tC;gn.VERSION=lC;gn.toFormData=uu;gn.AxiosError=yt;gn.Cancel=gn.CanceledError;gn.all=function(t){return Promise.all(t)};gn.spread=oA;gn.isAxiosError=rA;gn.mergeConfig=Ri;gn.AxiosHeaders=To;gn.formToJSON=e=>eC(Pe.isHTMLForm(e)?new FormData(e):e);gn.getAdapter=sC.getAdapter;gn.HttpStatusCode=iA;gn.default=gn;const aA=gn,sA=[{url:"/passport/auth/login",method:"POST"},{url:"/passport/auth/token2Login",method:"GET"},{url:"/passport/auth/register",method:"POST"},{url:"/passport/auth/register",method:"POST"},{url:"/guest/comm/config",method:"GET"},{url:"/passport/comm/sendEmailVerify",method:"POST"},{url:"/passport/auth/forget",method:"POST"}];function lA({url:e,method:t=""}){return sA.some(n=>n.url===e.split("?")[0]&&n.method===t.toUpperCase())}function cA(e){return typeof e>"u"}function uA(e){return e===null}function dA(e){return uA(e)||cA(e)}function fA(e){try{if(typeof JSON.parse(e)=="object")return!0}catch{return!1}}class hA{constructor(t){fd(this,"storage");fd(this,"prefixKey");this.storage=t.storage,this.prefixKey=t.prefixKey}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,n,o=null){const r=JSON.stringify({value:n,time:Date.now(),expire:o!==null?new Date().getTime()+o*1e3:null});this.storage.setItem(this.getKey(t),r)}get(t,n=null){const o=this.storage.getItem(this.getKey(t));if(!o)return{value:n,time:0};try{const r=JSON.parse(o),{value:i,time:a,expire:s}=r;return dA(s)||s>new Date().getTime()?{value:i,time:a}:(this.remove(t),{value:n,time:0})}catch{return this.remove(t),{value:n,time:0}}}remove(t){this.storage.removeItem(this.getKey(t))}clear(){this.storage.clear()}}function uC({prefixKey:e="",storage:t=sessionStorage}){return new hA({prefixKey:e,storage:t})}const dC="Vue_Naive_",pA=function(e={}){return uC({prefixKey:e.prefixKey||"",storage:localStorage})},mA=function(e={}){return uC({prefixKey:e.prefixKey||"",storage:sessionStorage})},il=pA({prefixKey:dC}),Cc=mA({prefixKey:dC}),fC="access_token";function hC(){return il.get(fC)}function pC(){il.remove(fC)}function Sp(){const e=Se(Gt.currentRoute),t=!e.meta.requireAuth&&!["/404","/login"].includes(Gt.currentRoute.value.path);Gt.replace({path:"/login",query:t?{...e.query,redirect:e.path}:{}})}var mC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var gC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mC,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var B=["th","st","nd","rd"],M=D%100;return"["+D+(B[(M-20)%10]||B[M]||B[0])+"]"}},C=function(D,B,M){var K=String(D);return!K||K.length>=B?D:""+Array(B+1-K.length).join(M)+D},_={s:C,z:function(D){var B=-D.utcOffset(),M=Math.abs(B),K=Math.floor(M/60),V=M%60;return(B<=0?"+":"-")+C(K,2,"0")+":"+C(V,2,"0")},m:function D(B,M){if(B.date()1)return D(pe[0])}else{var Z=B.name;y[Z]=B,V=Z}return!K&&V&&(S=V),V||!K&&S},T=function(D,B){if(P(D))return D.clone();var M=typeof B=="object"?B:{};return M.date=D,M.args=arguments,new E(M)},R=_;R.l=k,R.i=P,R.w=function(D,B){return T(D,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function D(M){this.$L=k(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[x]=!0}var B=D.prototype;return B.parse=function(M){this.$d=function(K){var V=K.date,ae=K.utc;if(V===null)return new Date(NaN);if(R.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var pe=V.match(m);if(pe){var Z=pe[2]-1||0,N=(pe[7]||"0").substring(0,3);return ae?new Date(Date.UTC(pe[1],Z,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,N)):new Date(pe[1],Z,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,N)}}return new Date(V)}(M),this.init()},B.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},B.$utils=function(){return R},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(M,K){var V=T(M);return this.startOf(K)<=V&&V<=this.endOf(K)},B.isAfter=function(M,K){return T(M)1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ne="";return typeof A=="string"?ne=w(A,Y):A instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(A==null?void 0:A.type)?ne=w(A.value,Y):(ne=h()(A),p("copy")),ne},S=C;function _(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Y){return typeof Y}:_=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},_(E)}var x=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=A.action,ne=Y===void 0?"copy":Y,fe=A.container,Q=A.target,Ce=A.text;if(ne!=="copy"&&ne!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&_(Q)==="object"&&Q.nodeType===1){if(ne==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ne==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ce)return S(Ce,{container:fe});if(Q)return ne==="cut"?g(Q):S(Q,{container:fe})},y=x;function T(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(Y){return typeof Y}:T=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},T(E)}function k(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function P(E,A){for(var Y=0;Y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function J(E){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},J(E)}function se(E,A){var Y="data-clipboard-".concat(E);if(A.hasAttribute(Y))return A.getAttribute(Y)}var le=function(E){R(Y,E);var A=O(Y);function Y(ne,fe){var Q;return k(this,Y),Q=A.call(this),Q.resolveOptions(fe),Q.listenClick(ne),Q}return I(Y,[{key:"resolveOptions",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof fe.action=="function"?fe.action:this.defaultAction,this.target=typeof fe.target=="function"?fe.target:this.defaultTarget,this.text=typeof fe.text=="function"?fe.text:this.defaultText,this.container=T(fe.container)==="object"?fe.container:document.body}},{key:"listenClick",value:function(fe){var Q=this;this.listener=d()(fe,"click",function(Ce){return Q.onClick(Ce)})}},{key:"onClick",value:function(fe){var Q=fe.delegateTarget||fe.currentTarget,Ce=this.action(Q)||"copy",j=y({action:Ce,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(j?"success":"error",{action:Ce,text:j,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(fe){return se("action",fe)}},{key:"defaultTarget",value:function(fe){var Q=se("target",fe);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(fe){return se("text",fe)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(fe){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(fe,Q)}},{key:"cut",value:function(fe){return g(fe)}},{key:"isSupported",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof fe=="string"?[fe]:fe,Ce=!!document.queryCommandSupported;return Q.forEach(function(j){Ce=Ce&&!!document.queryCommandSupported(j)}),Ce}}]),Y}(c()),F=le},828:function(i){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==s;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,s,a){var l=a(828);function c(f,h,p,m,g){var b=d.apply(this,arguments);return f.addEventListener(p,b,g),{destroy:function(){f.removeEventListener(p,b,g)}}}function u(f,h,p,m,g){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof p=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return c(b,h,p,m,g)}))}function d(f,h,p,m){return function(g){g.delegateTarget=l(g.target,h),g.delegateTarget&&m.call(f,g)}}i.exports=u},879:function(i,s){s.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},s.nodeList=function(a){var l=Object.prototype.toString.call(a);return a!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in a&&(a.length===0||s.node(a[0]))},s.string=function(a){return typeof a=="string"||a instanceof String},s.fn=function(a){var l=Object.prototype.toString.call(a);return l==="[object Function]"}},370:function(i,s,a){var l=a(879),c=a(438);function u(p,m,g){if(!p&&!m&&!g)throw new Error("Missing required arguments");if(!l.string(m))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,m,g);if(l.nodeList(p))return f(p,m,g);if(l.string(p))return h(p,m,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,m,g){return p.addEventListener(m,g),{destroy:function(){p.removeEventListener(m,g)}}}function f(p,m,g){return Array.prototype.forEach.call(p,function(b){b.addEventListener(m,g)}),{destroy:function(){Array.prototype.forEach.call(p,function(b){b.removeEventListener(m,g)})}}}function h(p,m,g){return c(document.body,p,m,g)}i.exports=u},817:function(i){function s(a){var l;if(a.nodeName==="SELECT")a.focus(),l=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var c=a.hasAttribute("readonly");c||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),c||a.removeAttribute("readonly"),l=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(a),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=s},279:function(i){function s(){}s.prototype={on:function(a,l,c){var u=this.e||(this.e={});return(u[a]||(u[a]=[])).push({fn:l,ctx:c}),this},once:function(a,l,c){var u=this;function d(){u.off(a,d),l.apply(c,arguments)}return d._=l,this.on(a,d,c)},emit:function(a){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),u=0,d=c.length;for(u;u{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})};/*! + */(function(e,t){(function(o,r){e.exports=r()})(mC,function(){return function(){var n={686:function(i,a,s){s.d(a,{default:function(){return Z}});var l=s(279),c=s.n(l),u=s(370),d=s.n(u),f=s(817),h=s.n(f);function p(N){try{return document.execCommand(N)}catch{return!1}}var g=function(O){var ee=h()(O);return p("cut"),ee},m=g;function b(N){var O=document.documentElement.getAttribute("dir")==="rtl",ee=document.createElement("textarea");ee.style.fontSize="12pt",ee.style.border="0",ee.style.padding="0",ee.style.margin="0",ee.style.position="absolute",ee.style[O?"right":"left"]="-9999px";var G=window.pageYOffset||document.documentElement.scrollTop;return ee.style.top="".concat(G,"px"),ee.setAttribute("readonly",""),ee.value=N,ee}var w=function(O,ee){var G=b(O);ee.container.appendChild(G);var ne=h()(G);return p("copy"),G.remove(),ne},C=function(O){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},G="";return typeof O=="string"?G=w(O,ee):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O==null?void 0:O.type)?G=w(O.value,ee):(G=h()(O),p("copy")),G},_=C;function S(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(ee){return typeof ee}:S=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},S(N)}var y=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee=O.action,G=ee===void 0?"copy":ee,ne=O.container,X=O.target,ce=O.text;if(G!=="copy"&&G!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&S(X)==="object"&&X.nodeType===1){if(G==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(G==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ce)return _(ce,{container:ne});if(X)return G==="cut"?m(X):_(X,{container:ne})},x=y;function P(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(ee){return typeof ee}:P=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},P(N)}function k(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function T(N,O){for(var ee=0;ee"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function V(N){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},V(N)}function ae(N,O){var ee="data-clipboard-".concat(N);if(O.hasAttribute(ee))return O.getAttribute(ee)}var pe=function(N){E(ee,N);var O=D(ee);function ee(G,ne){var X;return k(this,ee),X=O.call(this),X.resolveOptions(ne),X.listenClick(G),X}return R(ee,[{key:"resolveOptions",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ne.action=="function"?ne.action:this.defaultAction,this.target=typeof ne.target=="function"?ne.target:this.defaultTarget,this.text=typeof ne.text=="function"?ne.text:this.defaultText,this.container=P(ne.container)==="object"?ne.container:document.body}},{key:"listenClick",value:function(ne){var X=this;this.listener=d()(ne,"click",function(ce){return X.onClick(ce)})}},{key:"onClick",value:function(ne){var X=ne.delegateTarget||ne.currentTarget,ce=this.action(X)||"copy",L=x({action:ce,container:this.container,target:this.target(X),text:this.text(X)});this.emit(L?"success":"error",{action:ce,text:L,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ne){return ae("action",ne)}},{key:"defaultTarget",value:function(ne){var X=ae("target",ne);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(ne){return ae("text",ne)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ne){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _(ne,X)}},{key:"cut",value:function(ne){return m(ne)}},{key:"isSupported",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof ne=="string"?[ne]:ne,ce=!!document.queryCommandSupported;return X.forEach(function(L){ce=ce&&!!document.queryCommandSupported(L)}),ce}}]),ee}(c()),Z=pe},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,a,s){var l=s(828);function c(f,h,p,g,m){var b=d.apply(this,arguments);return f.addEventListener(p,b,m),{destroy:function(){f.removeEventListener(p,b,m)}}}function u(f,h,p,g,m){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof p=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return c(b,h,p,g,m)}))}function d(f,h,p,g){return function(m){m.delegateTarget=l(m.target,h),m.delegateTarget&&g.call(f,m)}}i.exports=u},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,a,s){var l=s(879),c=s(438);function u(p,g,m){if(!p&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,g,m);if(l.nodeList(p))return f(p,g,m);if(l.string(p))return h(p,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,g,m){return p.addEventListener(g,m),{destroy:function(){p.removeEventListener(g,m)}}}function f(p,g,m){return Array.prototype.forEach.call(p,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(p,function(b){b.removeEventListener(g,m)})}}}function h(p,g,m){return c(document.body,p,g,m)}i.exports=u},817:function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(s),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function d(){u.off(s,d),l.apply(c,arguments)}return d._=l,this.on(s,d,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,d=c.length;for(u;u{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})};/*! * shared v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Sc=typeof window<"u",Yr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),TE=(e,t,n)=>RE({l:e,k:t,s:n}),RE=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wn=e=>typeof e=="number"&&isFinite(e),EE=e=>CC(e)==="[object Date]",Nr=e=>CC(e)==="[object RegExp]",mu=e=>bt(e)&&Object.keys(e).length===0,$n=Object.assign;let yv;const ar=()=>yv||(yv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const $E=Object.prototype.hasOwnProperty;function kc(e,t){return $E.call(e,t)}const tn=Array.isArray,Zt=e=>typeof e=="function",Ze=e=>typeof e=="string",Pt=e=>typeof e=="boolean",jt=e=>e!==null&&typeof e=="object",AE=e=>jt(e)&&Zt(e.then)&&Zt(e.catch),xC=Object.prototype.toString,CC=e=>xC.call(e),bt=e=>{if(!jt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},IE=e=>e==null?"":tn(e)||bt(e)&&e.toString===xC?JSON.stringify(e,null,2):String(e);function ME(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}function gu(e){let t=e;return()=>++t}function OE(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const El=e=>!jt(e)||tn(e);function ac(e,t){if(El(e)||El(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(i=>{El(o[i])||El(r[i])?r[i]=o[i]:n.push({src:o[i],des:r[i]})})}}/*! + */const wc=typeof window<"u",Xr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wA=(e,t,n)=>_A({l:e,k:t,s:n}),_A=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yn=e=>typeof e=="number"&&isFinite(e),SA=e=>yC(e)==="[object Date]",Nr=e=>yC(e)==="[object RegExp]",hu=e=>mt(e)&&Object.keys(e).length===0,Pn=Object.assign;let bv;const sr=()=>bv||(bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const kA=Object.prototype.hasOwnProperty;function _c(e,t){return kA.call(e,t)}const tn=Array.isArray,Xt=e=>typeof e=="function",Ge=e=>typeof e=="string",St=e=>typeof e=="boolean",Nt=e=>e!==null&&typeof e=="object",PA=e=>Nt(e)&&Xt(e.then)&&Xt(e.catch),bC=Object.prototype.toString,yC=e=>bC.call(e),mt=e=>{if(!Nt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},TA=e=>e==null?"":tn(e)||mt(e)&&e.toString===bC?JSON.stringify(e,null,2):String(e);function EA(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}function pu(e){let t=e;return()=>++t}function RA(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const El=e=>!Nt(e)||tn(e);function ic(e,t){if(El(e)||El(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(i=>{El(o[i])||El(r[i])?r[i]=o[i]:n.push({src:o[i],des:r[i]})})}}/*! * message-compiler v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function zE(e,t,n){return{line:e,column:t,offset:n}}function Pc(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const DE=/\{([0-9a-zA-Z]+)\}/g;function wC(e,...t){return t.length===1&&LE(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(DE,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const _C=Object.assign,Cv=e=>typeof e=="string",LE=e=>e!==null&&typeof e=="object";function SC(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}const kp={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},FE={[kp.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function BE(e,t,...n){const o=wC(FE[e]||"",...n||[]),r={message:String(o),code:e};return t&&(r.location=t),r}const mt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},NE={[mt.EXPECTED_TOKEN]:"Expected token: '{0}'",[mt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[mt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[mt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[mt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[mt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[mt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[mt.EMPTY_PLACEHOLDER]:"Empty placeholder",[mt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[mt.INVALID_LINKED_FORMAT]:"Invalid linked format",[mt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[mt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[mt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[mt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[mt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[mt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Bs(e,t,n={}){const{domain:o,messages:r,args:i}=n,s=wC((r||NE)[e]||"",...i||[]),a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=o,a}function HE(e){throw e}const tr=" ",jE="\r",Bn=` -`,VE=String.fromCharCode(8232),WE=String.fromCharCode(8233);function UE(e){const t=e;let n=0,o=1,r=1,i=0;const s=y=>t[y]===jE&&t[y+1]===Bn,a=y=>t[y]===Bn,l=y=>t[y]===WE,c=y=>t[y]===VE,u=y=>s(y)||a(y)||l(y)||c(y),d=()=>n,f=()=>o,h=()=>r,p=()=>i,m=y=>s(y)||l(y)||c(y)?Bn:t[y],g=()=>m(n),b=()=>m(n+i);function w(){return i=0,u(n)&&(o++,r=0),s(n)&&n++,n++,r++,t[n]}function C(){return s(n+i)&&i++,i++,t[n+i]}function S(){n=0,o=1,r=1,i=0}function _(y=0){i=y}function x(){const y=n+i;for(;y!==n;)w();i=0}return{index:d,line:f,column:h,peekOffset:p,charAt:m,currentChar:g,currentPeek:b,next:w,peek:C,reset:S,resetPeek:_,skipToPeek:x}}const kr=void 0,qE=".",wv="'",KE="tokenizer";function GE(e,t={}){const n=t.location!==!1,o=UE(e),r=()=>o.index(),i=()=>zE(o.line(),o.column(),o.index()),s=i(),a=r(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d($,N,ee,...we){const de=c();if(N.column+=ee,N.offset+=ee,u){const he=n?Pc(de.startLoc,N):null,re=Bs($,he,{domain:KE,args:we});u(re)}}function f($,N,ee){$.endLoc=i(),$.currentType=N;const we={type:N};return n&&(we.loc=Pc($.startLoc,$.endLoc)),ee!=null&&(we.value=ee),we}const h=$=>f($,14);function p($,N){return $.currentChar()===N?($.next(),N):(d(mt.EXPECTED_TOKEN,i(),0,N),"")}function m($){let N="";for(;$.currentPeek()===tr||$.currentPeek()===Bn;)N+=$.currentPeek(),$.peek();return N}function g($){const N=m($);return $.skipToPeek(),N}function b($){if($===kr)return!1;const N=$.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function w($){if($===kr)return!1;const N=$.charCodeAt(0);return N>=48&&N<=57}function C($,N){const{currentType:ee}=N;if(ee!==2)return!1;m($);const we=b($.currentPeek());return $.resetPeek(),we}function S($,N){const{currentType:ee}=N;if(ee!==2)return!1;m($);const we=$.currentPeek()==="-"?$.peek():$.currentPeek(),de=w(we);return $.resetPeek(),de}function _($,N){const{currentType:ee}=N;if(ee!==2)return!1;m($);const we=$.currentPeek()===wv;return $.resetPeek(),we}function x($,N){const{currentType:ee}=N;if(ee!==8)return!1;m($);const we=$.currentPeek()===".";return $.resetPeek(),we}function y($,N){const{currentType:ee}=N;if(ee!==9)return!1;m($);const we=b($.currentPeek());return $.resetPeek(),we}function T($,N){const{currentType:ee}=N;if(!(ee===8||ee===12))return!1;m($);const we=$.currentPeek()===":";return $.resetPeek(),we}function k($,N){const{currentType:ee}=N;if(ee!==10)return!1;const we=()=>{const he=$.currentPeek();return he==="{"?b($.peek()):he==="@"||he==="%"||he==="|"||he===":"||he==="."||he===tr||!he?!1:he===Bn?($.peek(),we()):R($,!1)},de=we();return $.resetPeek(),de}function P($){m($);const N=$.currentPeek()==="|";return $.resetPeek(),N}function I($){const N=m($),ee=$.currentPeek()==="%"&&$.peek()==="{";return $.resetPeek(),{isModulo:ee,hasSpace:N.length>0}}function R($,N=!0){const ee=(de=!1,he="",re=!1)=>{const me=$.currentPeek();return me==="{"?he==="%"?!1:de:me==="@"||!me?he==="%"?!0:de:me==="%"?($.peek(),ee(de,"%",!0)):me==="|"?he==="%"||re?!0:!(he===tr||he===Bn):me===tr?($.peek(),ee(!0,tr,re)):me===Bn?($.peek(),ee(!0,Bn,re)):!0},we=ee();return N&&$.resetPeek(),we}function W($,N){const ee=$.currentChar();return ee===kr?kr:N(ee)?($.next(),ee):null}function O($){const N=$.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36}function M($){return W($,O)}function z($){const N=$.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36||N===45}function K($){return W($,z)}function J($){const N=$.charCodeAt(0);return N>=48&&N<=57}function se($){return W($,J)}function le($){const N=$.charCodeAt(0);return N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102}function F($){return W($,le)}function E($){let N="",ee="";for(;N=se($);)ee+=N;return ee}function A($){g($);const N=$.currentChar();return N!=="%"&&d(mt.EXPECTED_TOKEN,i(),0,N),$.next(),"%"}function Y($){let N="";for(;;){const ee=$.currentChar();if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee==="%")if(R($))N+=ee,$.next();else break;else if(ee===tr||ee===Bn)if(R($))N+=ee,$.next();else{if(P($))break;N+=ee,$.next()}else N+=ee,$.next()}return N}function ne($){g($);let N="",ee="";for(;N=K($);)ee+=N;return $.currentChar()===kr&&d(mt.UNTERMINATED_CLOSING_BRACE,i(),0),ee}function fe($){g($);let N="";return $.currentChar()==="-"?($.next(),N+=`-${E($)}`):N+=E($),$.currentChar()===kr&&d(mt.UNTERMINATED_CLOSING_BRACE,i(),0),N}function Q($){return $!==wv&&$!==Bn}function Ce($){g($),p($,"'");let N="",ee="";for(;N=W($,Q);)N==="\\"?ee+=j($):ee+=N;const we=$.currentChar();return we===Bn||we===kr?(d(mt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),we===Bn&&($.next(),p($,"'")),ee):(p($,"'"),ee)}function j($){const N=$.currentChar();switch(N){case"\\":case"'":return $.next(),`\\${N}`;case"u":return ye($,N,4);case"U":return ye($,N,6);default:return d(mt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,N),""}}function ye($,N,ee){p($,N);let we="";for(let de=0;de{const we=$.currentChar();return we==="{"||we==="%"||we==="@"||we==="|"||we==="("||we===")"||!we||we===tr?ee:(ee+=we,$.next(),N(ee))};return N("")}function ae($){g($);const N=p($,"|");return g($),N}function Se($,N){let ee=null;switch($.currentChar()){case"{":return N.braceNest>=1&&d(mt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),$.next(),ee=f(N,2,"{"),g($),N.braceNest++,ee;case"}":return N.braceNest>0&&N.currentType===2&&d(mt.EMPTY_PLACEHOLDER,i(),0),$.next(),ee=f(N,3,"}"),N.braceNest--,N.braceNest>0&&g($),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),ee;case"@":return N.braceNest>0&&d(mt.UNTERMINATED_CLOSING_BRACE,i(),0),ee=te($,N)||h(N),N.braceNest=0,ee;default:{let de=!0,he=!0,re=!0;if(P($))return N.braceNest>0&&d(mt.UNTERMINATED_CLOSING_BRACE,i(),0),ee=f(N,1,ae($)),N.braceNest=0,N.inLinked=!1,ee;if(N.braceNest>0&&(N.currentType===5||N.currentType===6||N.currentType===7))return d(mt.UNTERMINATED_CLOSING_BRACE,i(),0),N.braceNest=0,xe($,N);if(de=C($,N))return ee=f(N,5,ne($)),g($),ee;if(he=S($,N))return ee=f(N,6,fe($)),g($),ee;if(re=_($,N))return ee=f(N,7,Ce($)),g($),ee;if(!de&&!he&&!re)return ee=f(N,13,Le($)),d(mt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,ee.value),g($),ee;break}}return ee}function te($,N){const{currentType:ee}=N;let we=null;const de=$.currentChar();switch((ee===8||ee===9||ee===12||ee===10)&&(de===Bn||de===tr)&&d(mt.INVALID_LINKED_FORMAT,i(),0),de){case"@":return $.next(),we=f(N,8,"@"),N.inLinked=!0,we;case".":return g($),$.next(),f(N,9,".");case":":return g($),$.next(),f(N,10,":");default:return P($)?(we=f(N,1,ae($)),N.braceNest=0,N.inLinked=!1,we):x($,N)||T($,N)?(g($),te($,N)):y($,N)?(g($),f(N,12,U($))):k($,N)?(g($),de==="{"?Se($,N)||we:f(N,11,B($))):(ee===8&&d(mt.INVALID_LINKED_FORMAT,i(),0),N.braceNest=0,N.inLinked=!1,xe($,N))}}function xe($,N){let ee={type:14};if(N.braceNest>0)return Se($,N)||h(N);if(N.inLinked)return te($,N)||h(N);switch($.currentChar()){case"{":return Se($,N)||h(N);case"}":return d(mt.UNBALANCED_CLOSING_BRACE,i(),0),$.next(),f(N,3,"}");case"@":return te($,N)||h(N);default:{if(P($))return ee=f(N,1,ae($)),N.braceNest=0,N.inLinked=!1,ee;const{isModulo:de,hasSpace:he}=I($);if(de)return he?f(N,0,Y($)):f(N,4,A($));if(R($))return f(N,0,Y($));break}}return ee}function ve(){const{currentType:$,offset:N,startLoc:ee,endLoc:we}=l;return l.lastType=$,l.lastOffset=N,l.lastStartLoc=ee,l.lastEndLoc=we,l.offset=r(),l.startLoc=i(),o.currentChar()===kr?f(l,14):xe(o,l)}return{nextToken:ve,currentOffset:r,currentPosition:i,context:c}}const YE="parser",XE=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ZE(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function JE(e={}){const t=e.location!==!1,{onError:n,onWarn:o}=e;function r(C,S,_,x,...y){const T=C.currentPosition();if(T.offset+=x,T.column+=x,n){const k=t?Pc(_,T):null,P=Bs(S,k,{domain:YE,args:y});n(P)}}function i(C,S,_,x,...y){const T=C.currentPosition();if(T.offset+=x,T.column+=x,o){const k=t?Pc(_,T):null;o(BE(S,k,y))}}function s(C,S,_){const x={type:C};return t&&(x.start=S,x.end=S,x.loc={start:_,end:_}),x}function a(C,S,_,x){x&&(C.type=x),t&&(C.end=S,C.loc&&(C.loc.end=_))}function l(C,S){const _=C.context(),x=s(3,_.offset,_.startLoc);return x.value=S,a(x,C.currentOffset(),C.currentPosition()),x}function c(C,S){const _=C.context(),{lastOffset:x,lastStartLoc:y}=_,T=s(5,x,y);return T.index=parseInt(S,10),C.nextToken(),a(T,C.currentOffset(),C.currentPosition()),T}function u(C,S,_){const x=C.context(),{lastOffset:y,lastStartLoc:T}=x,k=s(4,y,T);return k.key=S,_===!0&&(k.modulo=!0),C.nextToken(),a(k,C.currentOffset(),C.currentPosition()),k}function d(C,S){const _=C.context(),{lastOffset:x,lastStartLoc:y}=_,T=s(9,x,y);return T.value=S.replace(XE,ZE),C.nextToken(),a(T,C.currentOffset(),C.currentPosition()),T}function f(C){const S=C.nextToken(),_=C.context(),{lastOffset:x,lastStartLoc:y}=_,T=s(8,x,y);return S.type!==12?(r(C,mt.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),T.value="",a(T,x,y),{nextConsumeToken:S,node:T}):(S.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,_o(S)),T.value=S.value||"",a(T,C.currentOffset(),C.currentPosition()),{node:T})}function h(C,S){const _=C.context(),x=s(7,_.offset,_.startLoc);return x.value=S,a(x,C.currentOffset(),C.currentPosition()),x}function p(C){const S=C.context(),_=s(6,S.offset,S.startLoc);let x=C.nextToken();if(x.type===9){const y=f(C);_.modifier=y.node,x=y.nextConsumeToken||C.nextToken()}switch(x.type!==10&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(x)),x=C.nextToken(),x.type===2&&(x=C.nextToken()),x.type){case 11:x.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(x)),_.key=h(C,x.value||"");break;case 5:x.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(x)),_.key=u(C,x.value||"");break;case 6:x.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(x)),_.key=c(C,x.value||"");break;case 7:x.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(x)),_.key=d(C,x.value||"");break;default:{r(C,mt.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const y=C.context(),T=s(7,y.offset,y.startLoc);return T.value="",a(T,y.offset,y.startLoc),_.key=T,a(_,y.offset,y.startLoc),{nextConsumeToken:x,node:_}}}return a(_,C.currentOffset(),C.currentPosition()),{node:_}}function m(C){const S=C.context(),_=S.currentType===1?C.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,y=s(2,_,x);y.items=[];let T=null,k=null;do{const R=T||C.nextToken();switch(T=null,R.type){case 0:R.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(R)),y.items.push(l(C,R.value||""));break;case 6:R.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(R)),y.items.push(c(C,R.value||""));break;case 4:k=!0;break;case 5:R.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(R)),y.items.push(u(C,R.value||"",!!k)),k&&(i(C,kp.USE_MODULO_SYNTAX,S.lastStartLoc,0,_o(R)),k=null);break;case 7:R.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_o(R)),y.items.push(d(C,R.value||""));break;case 8:{const W=p(C);y.items.push(W.node),T=W.nextConsumeToken||null;break}}}while(S.currentType!==14&&S.currentType!==1);const P=S.currentType===1?S.lastOffset:C.currentOffset(),I=S.currentType===1?S.lastEndLoc:C.currentPosition();return a(y,P,I),y}function g(C,S,_,x){const y=C.context();let T=x.items.length===0;const k=s(1,S,_);k.cases=[],k.cases.push(x);do{const P=m(C);T||(T=P.items.length===0),k.cases.push(P)}while(y.currentType!==14);return T&&r(C,mt.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),a(k,C.currentOffset(),C.currentPosition()),k}function b(C){const S=C.context(),{offset:_,startLoc:x}=S,y=m(C);return S.currentType===14?y:g(C,_,x,y)}function w(C){const S=GE(C,_C({},e)),_=S.context(),x=s(0,_.offset,_.startLoc);return t&&x.loc&&(x.loc.source=C),x.body=b(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(C)),_.currentType!==14&&r(S,mt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,C[_.offset]||""),a(x,S.currentOffset(),S.currentPosition()),x}return{parse:w}}function _o(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function QE(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function _v(e,t){for(let n=0;nSv(n)),e}function Sv(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;na;function c(g,b){a.code+=g}function u(g,b=!0){const w=b?r:"";c(i?w+" ".repeat(g):w)}function d(g=!0){const b=++a.indentLevel;g&&u(b)}function f(g=!0){const b=--a.indentLevel;g&&u(b)}function h(){u(a.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>a.needIndent}}function i$(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ts(e,t.key),t.modifier?(e.push(", "),Ts(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function s$(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const r=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let i=0;i{const n=Cv(t.mode)?t.mode:"normal",o=Cv(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,s=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=r$(e,{mode:n,filename:o,sourceMap:r,breakLineCode:i,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${SC(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Ts(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function u$(e,t={}){const n=_C({},t),o=!!n.jit,r=!!n.minify,i=n.optimize==null?!0:n.optimize,a=JE(n).parse(e);return o?(i&&t$(a),r&&us(a),{ast:a,code:""}):(e$(a,n),c$(a,n))}/*! + */function AA(e,t,n){return{line:e,column:t,offset:n}}function Sc(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const $A=/\{([0-9a-zA-Z]+)\}/g;function xC(e,...t){return t.length===1&&IA(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace($A,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const CC=Object.assign,xv=e=>typeof e=="string",IA=e=>e!==null&&typeof e=="object";function wC(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}const Pp={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},OA={[Pp.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function MA(e,t,...n){const o=xC(OA[e]||"",...n||[]),r={message:String(o),code:e};return t&&(r.location=t),r}const dt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},zA={[dt.EXPECTED_TOKEN]:"Expected token: '{0}'",[dt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[dt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[dt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[dt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[dt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[dt.EMPTY_PLACEHOLDER]:"Empty placeholder",[dt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[dt.INVALID_LINKED_FORMAT]:"Invalid linked format",[dt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[dt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[dt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[dt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[dt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[dt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function La(e,t,n={}){const{domain:o,messages:r,args:i}=n,a=xC((r||zA)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=o,s}function FA(e){throw e}const tr=" ",DA="\r",On=` +`,LA=String.fromCharCode(8232),BA=String.fromCharCode(8233);function NA(e){const t=e;let n=0,o=1,r=1,i=0;const a=x=>t[x]===DA&&t[x+1]===On,s=x=>t[x]===On,l=x=>t[x]===BA,c=x=>t[x]===LA,u=x=>a(x)||s(x)||l(x)||c(x),d=()=>n,f=()=>o,h=()=>r,p=()=>i,g=x=>a(x)||l(x)||c(x)?On:t[x],m=()=>g(n),b=()=>g(n+i);function w(){return i=0,u(n)&&(o++,r=0),a(n)&&n++,n++,r++,t[n]}function C(){return a(n+i)&&i++,i++,t[n+i]}function _(){n=0,o=1,r=1,i=0}function S(x=0){i=x}function y(){const x=n+i;for(;x!==n;)w();i=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:m,currentPeek:b,next:w,peek:C,reset:_,resetPeek:S,skipToPeek:y}}const kr=void 0,HA=".",Cv="'",jA="tokenizer";function UA(e,t={}){const n=t.location!==!1,o=NA(e),r=()=>o.index(),i=()=>AA(o.line(),o.column(),o.index()),a=i(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d($,H,te,...Ce){const de=c();if(H.column+=te,H.offset+=te,u){const ue=n?Sc(de.startLoc,H):null,ie=La($,ue,{domain:jA,args:Ce});u(ie)}}function f($,H,te){$.endLoc=i(),$.currentType=H;const Ce={type:H};return n&&(Ce.loc=Sc($.startLoc,$.endLoc)),te!=null&&(Ce.value=te),Ce}const h=$=>f($,14);function p($,H){return $.currentChar()===H?($.next(),H):(d(dt.EXPECTED_TOKEN,i(),0,H),"")}function g($){let H="";for(;$.currentPeek()===tr||$.currentPeek()===On;)H+=$.currentPeek(),$.peek();return H}function m($){const H=g($);return $.skipToPeek(),H}function b($){if($===kr)return!1;const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H===95}function w($){if($===kr)return!1;const H=$.charCodeAt(0);return H>=48&&H<=57}function C($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=b($.currentPeek());return $.resetPeek(),Ce}function _($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=$.currentPeek()==="-"?$.peek():$.currentPeek(),de=w(Ce);return $.resetPeek(),de}function S($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=$.currentPeek()===Cv;return $.resetPeek(),Ce}function y($,H){const{currentType:te}=H;if(te!==8)return!1;g($);const Ce=$.currentPeek()===".";return $.resetPeek(),Ce}function x($,H){const{currentType:te}=H;if(te!==9)return!1;g($);const Ce=b($.currentPeek());return $.resetPeek(),Ce}function P($,H){const{currentType:te}=H;if(!(te===8||te===12))return!1;g($);const Ce=$.currentPeek()===":";return $.resetPeek(),Ce}function k($,H){const{currentType:te}=H;if(te!==10)return!1;const Ce=()=>{const ue=$.currentPeek();return ue==="{"?b($.peek()):ue==="@"||ue==="%"||ue==="|"||ue===":"||ue==="."||ue===tr||!ue?!1:ue===On?($.peek(),Ce()):E($,!1)},de=Ce();return $.resetPeek(),de}function T($){g($);const H=$.currentPeek()==="|";return $.resetPeek(),H}function R($){const H=g($),te=$.currentPeek()==="%"&&$.peek()==="{";return $.resetPeek(),{isModulo:te,hasSpace:H.length>0}}function E($,H=!0){const te=(de=!1,ue="",ie=!1)=>{const fe=$.currentPeek();return fe==="{"?ue==="%"?!1:de:fe==="@"||!fe?ue==="%"?!0:de:fe==="%"?($.peek(),te(de,"%",!0)):fe==="|"?ue==="%"||ie?!0:!(ue===tr||ue===On):fe===tr?($.peek(),te(!0,tr,ie)):fe===On?($.peek(),te(!0,On,ie)):!0},Ce=te();return H&&$.resetPeek(),Ce}function q($,H){const te=$.currentChar();return te===kr?kr:H(te)?($.next(),te):null}function D($){const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36}function B($){return q($,D)}function M($){const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36||H===45}function K($){return q($,M)}function V($){const H=$.charCodeAt(0);return H>=48&&H<=57}function ae($){return q($,V)}function pe($){const H=$.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102}function Z($){return q($,pe)}function N($){let H="",te="";for(;H=ae($);)te+=H;return te}function O($){m($);const H=$.currentChar();return H!=="%"&&d(dt.EXPECTED_TOKEN,i(),0,H),$.next(),"%"}function ee($){let H="";for(;;){const te=$.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te==="%")if(E($))H+=te,$.next();else break;else if(te===tr||te===On)if(E($))H+=te,$.next();else{if(T($))break;H+=te,$.next()}else H+=te,$.next()}return H}function G($){m($);let H="",te="";for(;H=K($);)te+=H;return $.currentChar()===kr&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te}function ne($){m($);let H="";return $.currentChar()==="-"?($.next(),H+=`-${N($)}`):H+=N($),$.currentChar()===kr&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),H}function X($){return $!==Cv&&$!==On}function ce($){m($),p($,"'");let H="",te="";for(;H=q($,X);)H==="\\"?te+=L($):te+=H;const Ce=$.currentChar();return Ce===On||Ce===kr?(d(dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Ce===On&&($.next(),p($,"'")),te):(p($,"'"),te)}function L($){const H=$.currentChar();switch(H){case"\\":case"'":return $.next(),`\\${H}`;case"u":return be($,H,4);case"U":return be($,H,6);default:return d(dt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,H),""}}function be($,H,te){p($,H);let Ce="";for(let de=0;de{const Ce=$.currentChar();return Ce==="{"||Ce==="%"||Ce==="@"||Ce==="|"||Ce==="("||Ce===")"||!Ce||Ce===tr?te:(te+=Ce,$.next(),H(te))};return H("")}function re($){m($);const H=p($,"|");return m($),H}function we($,H){let te=null;switch($.currentChar()){case"{":return H.braceNest>=1&&d(dt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),$.next(),te=f(H,2,"{"),m($),H.braceNest++,te;case"}":return H.braceNest>0&&H.currentType===2&&d(dt.EMPTY_PLACEHOLDER,i(),0),$.next(),te=f(H,3,"}"),H.braceNest--,H.braceNest>0&&m($),H.inLinked&&H.braceNest===0&&(H.inLinked=!1),te;case"@":return H.braceNest>0&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te=oe($,H)||h(H),H.braceNest=0,te;default:{let de=!0,ue=!0,ie=!0;if(T($))return H.braceNest>0&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,te;if(H.braceNest>0&&(H.currentType===5||H.currentType===6||H.currentType===7))return d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),H.braceNest=0,ve($,H);if(de=C($,H))return te=f(H,5,G($)),m($),te;if(ue=_($,H))return te=f(H,6,ne($)),m($),te;if(ie=S($,H))return te=f(H,7,ce($)),m($),te;if(!de&&!ue&&!ie)return te=f(H,13,je($)),d(dt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,te.value),m($),te;break}}return te}function oe($,H){const{currentType:te}=H;let Ce=null;const de=$.currentChar();switch((te===8||te===9||te===12||te===10)&&(de===On||de===tr)&&d(dt.INVALID_LINKED_FORMAT,i(),0),de){case"@":return $.next(),Ce=f(H,8,"@"),H.inLinked=!0,Ce;case".":return m($),$.next(),f(H,9,".");case":":return m($),$.next(),f(H,10,":");default:return T($)?(Ce=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,Ce):y($,H)||P($,H)?(m($),oe($,H)):x($,H)?(m($),f(H,12,F($))):k($,H)?(m($),de==="{"?we($,H)||Ce:f(H,11,A($))):(te===8&&d(dt.INVALID_LINKED_FORMAT,i(),0),H.braceNest=0,H.inLinked=!1,ve($,H))}}function ve($,H){let te={type:14};if(H.braceNest>0)return we($,H)||h(H);if(H.inLinked)return oe($,H)||h(H);switch($.currentChar()){case"{":return we($,H)||h(H);case"}":return d(dt.UNBALANCED_CLOSING_BRACE,i(),0),$.next(),f(H,3,"}");case"@":return oe($,H)||h(H);default:{if(T($))return te=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,te;const{isModulo:de,hasSpace:ue}=R($);if(de)return ue?f(H,0,ee($)):f(H,4,O($));if(E($))return f(H,0,ee($));break}}return te}function ke(){const{currentType:$,offset:H,startLoc:te,endLoc:Ce}=l;return l.lastType=$,l.lastOffset=H,l.lastStartLoc=te,l.lastEndLoc=Ce,l.offset=r(),l.startLoc=i(),o.currentChar()===kr?f(l,14):ve(o,l)}return{nextToken:ke,currentOffset:r,currentPosition:i,context:c}}const VA="parser",WA=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function qA(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function KA(e={}){const t=e.location!==!1,{onError:n,onWarn:o}=e;function r(C,_,S,y,...x){const P=C.currentPosition();if(P.offset+=y,P.column+=y,n){const k=t?Sc(S,P):null,T=La(_,k,{domain:VA,args:x});n(T)}}function i(C,_,S,y,...x){const P=C.currentPosition();if(P.offset+=y,P.column+=y,o){const k=t?Sc(S,P):null;o(MA(_,k,x))}}function a(C,_,S){const y={type:C};return t&&(y.start=_,y.end=_,y.loc={start:S,end:S}),y}function s(C,_,S,y){y&&(C.type=y),t&&(C.end=_,C.loc&&(C.loc.end=S))}function l(C,_){const S=C.context(),y=a(3,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function c(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(5,y,x);return P.index=parseInt(_,10),C.nextToken(),s(P,C.currentOffset(),C.currentPosition()),P}function u(C,_,S){const y=C.context(),{lastOffset:x,lastStartLoc:P}=y,k=a(4,x,P);return k.key=_,S===!0&&(k.modulo=!0),C.nextToken(),s(k,C.currentOffset(),C.currentPosition()),k}function d(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(9,y,x);return P.value=_.replace(WA,qA),C.nextToken(),s(P,C.currentOffset(),C.currentPosition()),P}function f(C){const _=C.nextToken(),S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(8,y,x);return _.type!==12?(r(C,dt.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),P.value="",s(P,y,x),{nextConsumeToken:_,node:P}):(_.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wo(_)),P.value=_.value||"",s(P,C.currentOffset(),C.currentPosition()),{node:P})}function h(C,_){const S=C.context(),y=a(7,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function p(C){const _=C.context(),S=a(6,_.offset,_.startLoc);let y=C.nextToken();if(y.type===9){const x=f(C);S.modifier=x.node,y=x.nextConsumeToken||C.nextToken()}switch(y.type!==10&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),y=C.nextToken(),y.type===2&&(y=C.nextToken()),y.type){case 11:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=h(C,y.value||"");break;case 5:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=u(C,y.value||"");break;case 6:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=c(C,y.value||"");break;case 7:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=d(C,y.value||"");break;default:{r(C,dt.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const x=C.context(),P=a(7,x.offset,x.startLoc);return P.value="",s(P,x.offset,x.startLoc),S.key=P,s(S,x.offset,x.startLoc),{nextConsumeToken:y,node:S}}}return s(S,C.currentOffset(),C.currentPosition()),{node:S}}function g(C){const _=C.context(),S=_.currentType===1?C.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,x=a(2,S,y);x.items=[];let P=null,k=null;do{const E=P||C.nextToken();switch(P=null,E.type){case 0:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(l(C,E.value||""));break;case 6:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(c(C,E.value||""));break;case 4:k=!0;break;case 5:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(u(C,E.value||"",!!k)),k&&(i(C,Pp.USE_MODULO_SYNTAX,_.lastStartLoc,0,wo(E)),k=null);break;case 7:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(d(C,E.value||""));break;case 8:{const q=p(C);x.items.push(q.node),P=q.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const T=_.currentType===1?_.lastOffset:C.currentOffset(),R=_.currentType===1?_.lastEndLoc:C.currentPosition();return s(x,T,R),x}function m(C,_,S,y){const x=C.context();let P=y.items.length===0;const k=a(1,_,S);k.cases=[],k.cases.push(y);do{const T=g(C);P||(P=T.items.length===0),k.cases.push(T)}while(x.currentType!==14);return P&&r(C,dt.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),s(k,C.currentOffset(),C.currentPosition()),k}function b(C){const _=C.context(),{offset:S,startLoc:y}=_,x=g(C);return _.currentType===14?x:m(C,S,y,x)}function w(C){const _=UA(C,CC({},e)),S=_.context(),y=a(0,S.offset,S.startLoc);return t&&y.loc&&(y.loc.source=C),y.body=b(_),e.onCacheKey&&(y.cacheKey=e.onCacheKey(C)),S.currentType!==14&&r(_,dt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,C[S.offset]||""),s(y,_.currentOffset(),_.currentPosition()),y}return{parse:w}}function wo(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function GA(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function wv(e,t){for(let n=0;n_v(n)),e}function _v(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ns;function c(m,b){s.code+=m}function u(m,b=!0){const w=b?r:"";c(i?w+" ".repeat(m):w)}function d(m=!0){const b=++s.indentLevel;m&&u(b)}function f(m=!0){const b=--s.indentLevel;m&&u(b)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function e5(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Sa(e,t.key),t.modifier?(e.push(", "),Sa(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function t5(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const r=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let i=0;i{const n=xv(t.mode)?t.mode:"normal",o=xv(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=ZA(e,{mode:n,filename:o,sourceMap:r,breakLineCode:i,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${wC(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Sa(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function i5(e,t={}){const n=CC({},t),o=!!n.jit,r=!!n.minify,i=n.optimize==null?!0:n.optimize,s=KA(n).parse(e);return o?(i&&YA(s),r&&sa(s),{ast:s,code:""}):(XA(s,n),r5(s,n))}/*! * core-base v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function d$(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ar().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ar().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ar().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Xr=[];Xr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Xr[1]={w:[1],".":[2],"[":[4],o:[7]};Xr[2]={w:[2],i:[3,0],0:[3,0]};Xr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Xr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Xr[5]={"'":[4,0],o:8,l:[5,0]};Xr[6]={'"':[4,0],o:8,l:[6,0]};const f$=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function h$(e){return f$.test(e)}function p$(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function m$(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function g$(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:h$(t)?p$(t):"*"+t}function v$(e){const t=[];let n=-1,o=0,r=0,i,s,a,l,c,u,d;const f=[];f[0]=()=>{s===void 0?s=a:s+=a},f[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,o=4,f[0]();else{if(r=0,s===void 0||(s=g$(s),s===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,a="\\"+p,f[0](),!0}for(;o!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=m$(i),d=Xr[o],c=d[l]||d.l||8,c===8||(o=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=i,u()===!1))))return;if(o===7)return t}}const kv=new Map;function b$(e,t){return jt(e)?e[t]:null}function y$(e,t){if(!jt(e))return null;let n=kv.get(t);if(n||(n=v$(t),n&&kv.set(t,n)),!n)return null;const o=n.length;let r=e,i=0;for(;ie,C$=e=>"",w$="text",_$=e=>e.length===0?"":ME(e),S$=IE;function Pv(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function k$(e){const t=wn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wn(e.named.count)||wn(e.named.n))?wn(e.named.count)?e.named.count:wn(e.named.n)?e.named.n:t:t}function P$(e,t){t.count||(t.count=e),t.n||(t.n=e)}function T$(e={}){const t=e.locale,n=k$(e),o=jt(e.pluralRules)&&Ze(t)&&Zt(e.pluralRules[t])?e.pluralRules[t]:Pv,r=jt(e.pluralRules)&&Ze(t)&&Zt(e.pluralRules[t])?Pv:void 0,i=b=>b[o(n,b.length,r)],s=e.list||[],a=b=>s[b],l=e.named||{};wn(e.pluralIndex)&&P$(n,l);const c=b=>l[b];function u(b){const w=Zt(e.messages)?e.messages(b):jt(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):C$)}const d=b=>e.modifiers?e.modifiers[b]:x$,f=bt(e.processor)&&Zt(e.processor.normalize)?e.processor.normalize:_$,h=bt(e.processor)&&Zt(e.processor.interpolate)?e.processor.interpolate:S$,p=bt(e.processor)&&Ze(e.processor.type)?e.processor.type:w$,g={list:a,named:c,plural:i,linked:(b,...w)=>{const[C,S]=w;let _="text",x="";w.length===1?jt(C)?(x=C.modifier||x,_=C.type||_):Ze(C)&&(x=C||x):w.length===2&&(Ze(C)&&(x=C||x),Ze(S)&&(_=S||_));const y=u(b)(g),T=_==="vnode"&&tn(y)&&x?y[0]:y;return x?d(x)(T,_):T},message:u,type:p,interpolate:h,normalize:f,values:$n({},s,l)};return g}let Ga=null;function R$(e){Ga=e}function E$(e,t,n){Ga&&Ga.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const $$=A$("function:translate");function A$(e){return t=>Ga&&Ga.emit(e,t)}const kC=kp.__EXTEND_POINT__,ai=gu(kC),I$={NOT_FOUND_KEY:kC,FALLBACK_TO_TRANSLATE:ai(),CANNOT_FORMAT_NUMBER:ai(),FALLBACK_TO_NUMBER_FORMAT:ai(),CANNOT_FORMAT_DATE:ai(),FALLBACK_TO_DATE_FORMAT:ai(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ai(),__EXTEND_POINT__:ai()},PC=mt.__EXTEND_POINT__,li=gu(PC),Po={INVALID_ARGUMENT:PC,INVALID_DATE_ARGUMENT:li(),INVALID_ISO_DATE_ARGUMENT:li(),NOT_SUPPORT_NON_STRING_MESSAGE:li(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:li(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:li(),NOT_SUPPORT_LOCALE_TYPE:li(),__EXTEND_POINT__:li()};function Ho(e){return Bs(e,null,void 0)}function Tp(e,t){return t.locale!=null?Tv(t.locale):Tv(e.locale)}let Id;function Tv(e){if(Ze(e))return e;if(Zt(e)){if(e.resolvedOnce&&Id!=null)return Id;if(e.constructor.name==="Function"){const t=e();if(AE(t))throw Ho(Po.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Id=t}else throw Ho(Po.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ho(Po.NOT_SUPPORT_LOCALE_TYPE)}function M$(e,t,n){return[...new Set([n,...tn(t)?t:jt(t)?Object.keys(t):Ze(t)?[t]:[n]])]}function TC(e,t,n){const o=Ze(n)?n:Rs,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(o);if(!i){i=[];let s=[n];for(;tn(s);)s=Rv(i,s,t);const a=tn(t)||!bt(t)?t:t.default?t.default:null;s=Ze(a)?[a]:a,tn(s)&&Rv(i,s,!1),r.__localeChainCache.set(o,i)}return i}function Rv(e,t,n){let o=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function L$(){return{upper:(e,t)=>t==="text"&&Ze(e)?e.toUpperCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ze(e)?e.toLowerCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ze(e)?$v(e):t==="vnode"&&jt(e)&&"__v_isVNode"in e?$v(e.children):e}}let RC;function Av(e){RC=e}let EC;function F$(e){EC=e}let $C;function B$(e){$C=e}let AC=null;const N$=e=>{AC=e},H$=()=>AC;let IC=null;const Iv=e=>{IC=e},j$=()=>IC;let Mv=0;function V$(e={}){const t=Zt(e.onWarn)?e.onWarn:OE,n=Ze(e.version)?e.version:D$,o=Ze(e.locale)||Zt(e.locale)?e.locale:Rs,r=Zt(o)?Rs:o,i=tn(e.fallbackLocale)||bt(e.fallbackLocale)||Ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,s=bt(e.messages)?e.messages:{[r]:{}},a=bt(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=bt(e.numberFormats)?e.numberFormats:{[r]:{}},c=$n({},e.modifiers||{},L$()),u=e.pluralRules||{},d=Zt(e.missing)?e.missing:null,f=Pt(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,h=Pt(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,m=!!e.unresolving,g=Zt(e.postTranslation)?e.postTranslation:null,b=bt(e.processor)?e.processor:null,w=Pt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,S=Zt(e.messageCompiler)?e.messageCompiler:RC,_=Zt(e.messageResolver)?e.messageResolver:EC||b$,x=Zt(e.localeFallbacker)?e.localeFallbacker:$C||M$,y=jt(e.fallbackContext)?e.fallbackContext:void 0,T=e,k=jt(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,P=jt(T.__numberFormatters)?T.__numberFormatters:new Map,I=jt(T.__meta)?T.__meta:{};Mv++;const R={version:n,cid:Mv,locale:o,fallbackLocale:i,messages:s,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:m,postTranslation:g,processor:b,warnHtmlMessage:w,escapeParameter:C,messageCompiler:S,messageResolver:_,localeFallbacker:x,fallbackContext:y,onWarn:t,__meta:I};return R.datetimeFormats=a,R.numberFormats=l,R.__datetimeFormatters=k,R.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&E$(R,n,I),R}function Rp(e,t,n,o,r){const{missing:i,onWarn:s}=e;if(i!==null){const a=i(e,n,t,r);return Ze(a)?a:t}else return t}function la(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function W$(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function U$(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;oq$(n,e)}function q$(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,r=o.c||o.cases;return e.plural(r.reduce((i,s)=>[...i,Ov(e,s)],[]))}else return Ov(e,n)}function Ov(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((r,i)=>[...r,Xf(e,i)],[]);return e.normalize(o)}}function Xf(e,t){const n=t.t||t.type;switch(n){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,r=o.m||o.modifier;return e.linked(Xf(e,o.k||o.key),r?Xf(e,r):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const MC=e=>e;let fs=Object.create(null);const Es=e=>jt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function OC(e,t={}){let n=!1;const o=t.onError||HE;return t.onError=r=>{n=!0,o(r)},{...u$(e,t),detectError:n}}const K$=(e,t)=>{if(!Ze(e))throw Ho(Po.NOT_SUPPORT_NON_STRING_MESSAGE);{Pt(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||MC)(e),r=fs[o];if(r)return r;const{code:i,detectError:s}=OC(e,t),a=new Function(`return ${i}`)();return s?a:fs[o]=a}};function G$(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ze(e)){Pt(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||MC)(e),r=fs[o];if(r)return r;const{ast:i,detectError:s}=OC(e,{...t,location:!1,jit:!0}),a=Md(i);return s?a:fs[o]=a}else{const n=e.cacheKey;if(n){const o=fs[n];return o||(fs[n]=Md(e))}else return Md(e)}}const zv=()=>"",co=e=>Zt(e);function Dv(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=e,[l,c]=Zf(...t),u=Pt(c.missingWarn)?c.missingWarn:e.missingWarn,d=Pt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=Pt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=Ze(c.default)||Pt(c.default)?Pt(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",m=n||p!=="",g=Tp(e,c);f&&Y$(c);let[b,w,C]=h?[l,g,a[g]||{}]:zC(e,l,g,s,d,u),S=b,_=l;if(!h&&!(Ze(S)||Es(S)||co(S))&&m&&(S=p,_=S),!h&&(!(Ze(S)||Es(S)||co(S))||!Ze(w)))return r?vu:l;let x=!1;const y=()=>{x=!0},T=co(S)?S:DC(e,l,w,S,_,y);if(x)return S;const k=J$(e,w,C,c),P=T$(k),I=X$(e,T,P),R=o?o(I,l):I;if(__INTLIFY_PROD_DEVTOOLS__){const W={timestamp:Date.now(),key:Ze(l)?l:co(S)?S.key:"",locale:w||(co(S)?S.locale:""),format:Ze(S)?S:co(S)?S.source:"",message:R};W.meta=$n({},e.__meta,H$()||{}),$$(W)}return R}function Y$(e){tn(e.list)?e.list=e.list.map(t=>Ze(t)?xv(t):t):jt(e.named)&&Object.keys(e.named).forEach(t=>{Ze(e.named[t])&&(e.named[t]=xv(e.named[t]))})}function zC(e,t,n,o,r,i){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d={},f,h=null;const p="translate";for(let m=0;mo;return c.locale=n,c.key=t,c}const l=s(o,Z$(e,n,r,o,a,i));return l.locale=n,l.key=t,l.source=o,l}function X$(e,t,n){return t(n)}function Zf(...e){const[t,n,o]=e,r={};if(!Ze(t)&&!wn(t)&&!co(t)&&!Es(t))throw Ho(Po.INVALID_ARGUMENT);const i=wn(t)?String(t):(co(t),t);return wn(n)?r.plural=n:Ze(n)?r.default=n:bt(n)&&!mu(n)?r.named=n:tn(n)&&(r.list=n),wn(o)?r.plural=o:Ze(o)?r.default=o:bt(o)&&$n(r,o),[i,r]}function Z$(e,t,n,o,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:s=>{throw i&&i(s),s},onCacheKey:s=>TE(t,n,s)}}function J$(e,t,n,o){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:i,messages:h=>{let p=s(n,h);if(p==null&&u){const[,,m]=zC(u,h,t,a,l,c);p=s(m,h)}if(Ze(p)||Es(p)){let m=!1;const b=DC(e,h,t,p,h,()=>{m=!0});return m?zv:b}else return co(p)?p:zv}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),wn(o.plural)&&(f.pluralIndex=o.plural),f}function Lv(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[l,c,u,d]=Jf(...t),f=Pt(u.missingWarn)?u.missingWarn:e.missingWarn;Pt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Tp(e,u),m=s(e,r,p);if(!Ze(l)||l==="")return new Intl.DateTimeFormat(p,d).format(c);let g={},b,w=null;const C="datetime format";for(let x=0;x{LC.includes(l)?s[l]=n[l]:i[l]=n[l]}),Ze(o)?i.locale=o:bt(o)&&(s=o),bt(r)&&(s=r),[i.key||"",a,i,s]}function Fv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Bv(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:a}=e,[l,c,u,d]=Qf(...t),f=Pt(u.missingWarn)?u.missingWarn:e.missingWarn;Pt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Tp(e,u),m=s(e,r,p);if(!Ze(l)||l==="")return new Intl.NumberFormat(p,d).format(c);let g={},b,w=null;const C="number format";for(let x=0;x{FC.includes(l)?s[l]=n[l]:i[l]=n[l]}),Ze(o)?i.locale=o:bt(o)&&(s=o),bt(r)&&(s=r),[i.key||"",a,i,s]}function Nv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}d$();/*! + */function a5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Yr=[];Yr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Yr[1]={w:[1],".":[2],"[":[4],o:[7]};Yr[2]={w:[2],i:[3,0],0:[3,0]};Yr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Yr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Yr[5]={"'":[4,0],o:8,l:[5,0]};Yr[6]={'"':[4,0],o:8,l:[6,0]};const s5=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function l5(e){return s5.test(e)}function c5(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function u5(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function d5(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:l5(t)?c5(t):"*"+t}function f5(e){const t=[];let n=-1,o=0,r=0,i,a,s,l,c,u,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,o=4,f[0]();else{if(r=0,a===void 0||(a=d5(a),a===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;o!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=u5(i),d=Yr[o],c=d[l]||d.l||8,c===8||(o=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(s=i,u()===!1))))return;if(o===7)return t}}const Sv=new Map;function h5(e,t){return Nt(e)?e[t]:null}function p5(e,t){if(!Nt(e))return null;let n=Sv.get(t);if(n||(n=f5(t),n&&Sv.set(t,n)),!n)return null;const o=n.length;let r=e,i=0;for(;ie,g5=e=>"",v5="text",b5=e=>e.length===0?"":EA(e),y5=TA;function kv(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function x5(e){const t=yn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(yn(e.named.count)||yn(e.named.n))?yn(e.named.count)?e.named.count:yn(e.named.n)?e.named.n:t:t}function C5(e,t){t.count||(t.count=e),t.n||(t.n=e)}function w5(e={}){const t=e.locale,n=x5(e),o=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?e.pluralRules[t]:kv,r=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?kv:void 0,i=b=>b[o(n,b.length,r)],a=e.list||[],s=b=>a[b],l=e.named||{};yn(e.pluralIndex)&&C5(n,l);const c=b=>l[b];function u(b){const w=Xt(e.messages)?e.messages(b):Nt(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):g5)}const d=b=>e.modifiers?e.modifiers[b]:m5,f=mt(e.processor)&&Xt(e.processor.normalize)?e.processor.normalize:b5,h=mt(e.processor)&&Xt(e.processor.interpolate)?e.processor.interpolate:y5,p=mt(e.processor)&&Ge(e.processor.type)?e.processor.type:v5,m={list:s,named:c,plural:i,linked:(b,...w)=>{const[C,_]=w;let S="text",y="";w.length===1?Nt(C)?(y=C.modifier||y,S=C.type||S):Ge(C)&&(y=C||y):w.length===2&&(Ge(C)&&(y=C||y),Ge(_)&&(S=_||S));const x=u(b)(m),P=S==="vnode"&&tn(x)&&y?x[0]:x;return y?d(y)(P,S):P},message:u,type:p,interpolate:h,normalize:f,values:Pn({},a,l)};return m}let Vs=null;function _5(e){Vs=e}function S5(e,t,n){Vs&&Vs.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const k5=P5("function:translate");function P5(e){return t=>Vs&&Vs.emit(e,t)}const _C=Pp.__EXTEND_POINT__,si=pu(_C),T5={NOT_FOUND_KEY:_C,FALLBACK_TO_TRANSLATE:si(),CANNOT_FORMAT_NUMBER:si(),FALLBACK_TO_NUMBER_FORMAT:si(),CANNOT_FORMAT_DATE:si(),FALLBACK_TO_DATE_FORMAT:si(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:si(),__EXTEND_POINT__:si()},SC=dt.__EXTEND_POINT__,li=pu(SC),ko={INVALID_ARGUMENT:SC,INVALID_DATE_ARGUMENT:li(),INVALID_ISO_DATE_ARGUMENT:li(),NOT_SUPPORT_NON_STRING_MESSAGE:li(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:li(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:li(),NOT_SUPPORT_LOCALE_TYPE:li(),__EXTEND_POINT__:li()};function Ho(e){return La(e,null,void 0)}function Ep(e,t){return t.locale!=null?Pv(t.locale):Pv(e.locale)}let Id;function Pv(e){if(Ge(e))return e;if(Xt(e)){if(e.resolvedOnce&&Id!=null)return Id;if(e.constructor.name==="Function"){const t=e();if(PA(t))throw Ho(ko.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Id=t}else throw Ho(ko.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ho(ko.NOT_SUPPORT_LOCALE_TYPE)}function E5(e,t,n){return[...new Set([n,...tn(t)?t:Nt(t)?Object.keys(t):Ge(t)?[t]:[n]])]}function kC(e,t,n){const o=Ge(n)?n:ka,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(o);if(!i){i=[];let a=[n];for(;tn(a);)a=Tv(i,a,t);const s=tn(t)||!mt(t)?t:t.default?t.default:null;a=Ge(s)?[s]:s,tn(a)&&Tv(i,a,!1),r.__localeChainCache.set(o,i)}return i}function Tv(e,t,n){let o=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function I5(){return{upper:(e,t)=>t==="text"&&Ge(e)?e.toUpperCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ge(e)?e.toLowerCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ge(e)?Rv(e):t==="vnode"&&Nt(e)&&"__v_isVNode"in e?Rv(e.children):e}}let PC;function Av(e){PC=e}let TC;function O5(e){TC=e}let EC;function M5(e){EC=e}let RC=null;const z5=e=>{RC=e},F5=()=>RC;let AC=null;const $v=e=>{AC=e},D5=()=>AC;let Iv=0;function L5(e={}){const t=Xt(e.onWarn)?e.onWarn:RA,n=Ge(e.version)?e.version:$5,o=Ge(e.locale)||Xt(e.locale)?e.locale:ka,r=Xt(o)?ka:o,i=tn(e.fallbackLocale)||mt(e.fallbackLocale)||Ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=mt(e.messages)?e.messages:{[r]:{}},s=mt(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=mt(e.numberFormats)?e.numberFormats:{[r]:{}},c=Pn({},e.modifiers||{},I5()),u=e.pluralRules||{},d=Xt(e.missing)?e.missing:null,f=St(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,h=St(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,m=Xt(e.postTranslation)?e.postTranslation:null,b=mt(e.processor)?e.processor:null,w=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,_=Xt(e.messageCompiler)?e.messageCompiler:PC,S=Xt(e.messageResolver)?e.messageResolver:TC||h5,y=Xt(e.localeFallbacker)?e.localeFallbacker:EC||E5,x=Nt(e.fallbackContext)?e.fallbackContext:void 0,P=e,k=Nt(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,T=Nt(P.__numberFormatters)?P.__numberFormatters:new Map,R=Nt(P.__meta)?P.__meta:{};Iv++;const E={version:n,cid:Iv,locale:o,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:m,processor:b,warnHtmlMessage:w,escapeParameter:C,messageCompiler:_,messageResolver:S,localeFallbacker:y,fallbackContext:x,onWarn:t,__meta:R};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=k,E.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&S5(E,n,R),E}function Rp(e,t,n,o,r){const{missing:i,onWarn:a}=e;if(i!==null){const s=i(e,n,t,r);return Ge(s)?s:t}else return t}function is(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function B5(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function N5(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;oH5(n,e)}function H5(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,r=o.c||o.cases;return e.plural(r.reduce((i,a)=>[...i,Ov(e,a)],[]))}else return Ov(e,n)}function Ov(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((r,i)=>[...r,Yf(e,i)],[]);return e.normalize(o)}}function Yf(e,t){const n=t.t||t.type;switch(n){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,r=o.m||o.modifier;return e.linked(Yf(e,o.k||o.key),r?Yf(e,r):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const $C=e=>e;let ca=Object.create(null);const Pa=e=>Nt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function IC(e,t={}){let n=!1;const o=t.onError||FA;return t.onError=r=>{n=!0,o(r)},{...i5(e,t),detectError:n}}const j5=(e,t)=>{if(!Ge(e))throw Ho(ko.NOT_SUPPORT_NON_STRING_MESSAGE);{St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||$C)(e),r=ca[o];if(r)return r;const{code:i,detectError:a}=IC(e,t),s=new Function(`return ${i}`)();return a?s:ca[o]=s}};function U5(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ge(e)){St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||$C)(e),r=ca[o];if(r)return r;const{ast:i,detectError:a}=IC(e,{...t,location:!1,jit:!0}),s=Od(i);return a?s:ca[o]=s}else{const n=e.cacheKey;if(n){const o=ca[n];return o||(ca[n]=Od(e))}else return Od(e)}}const Mv=()=>"",ao=e=>Xt(e);function zv(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=Qf(...t),u=St(c.missingWarn)?c.missingWarn:e.missingWarn,d=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=St(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=Ge(c.default)||St(c.default)?St(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",g=n||p!=="",m=Ep(e,c);f&&V5(c);let[b,w,C]=h?[l,m,s[m]||{}]:OC(e,l,m,a,d,u),_=b,S=l;if(!h&&!(Ge(_)||Pa(_)||ao(_))&&g&&(_=p,S=_),!h&&(!(Ge(_)||Pa(_)||ao(_))||!Ge(w)))return r?mu:l;let y=!1;const x=()=>{y=!0},P=ao(_)?_:MC(e,l,w,_,S,x);if(y)return _;const k=K5(e,w,C,c),T=w5(k),R=W5(e,P,T),E=o?o(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const q={timestamp:Date.now(),key:Ge(l)?l:ao(_)?_.key:"",locale:w||(ao(_)?_.locale:""),format:Ge(_)?_:ao(_)?_.source:"",message:E};q.meta=Pn({},e.__meta,F5()||{}),k5(q)}return E}function V5(e){tn(e.list)?e.list=e.list.map(t=>Ge(t)?yv(t):t):Nt(e.named)&&Object.keys(e.named).forEach(t=>{Ge(e.named[t])&&(e.named[t]=yv(e.named[t]))})}function OC(e,t,n,o,r,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d={},f,h=null;const p="translate";for(let g=0;go;return c.locale=n,c.key=t,c}const l=a(o,q5(e,n,r,o,s,i));return l.locale=n,l.key=t,l.source=o,l}function W5(e,t,n){return t(n)}function Qf(...e){const[t,n,o]=e,r={};if(!Ge(t)&&!yn(t)&&!ao(t)&&!Pa(t))throw Ho(ko.INVALID_ARGUMENT);const i=yn(t)?String(t):(ao(t),t);return yn(n)?r.plural=n:Ge(n)?r.default=n:mt(n)&&!hu(n)?r.named=n:tn(n)&&(r.list=n),yn(o)?r.plural=o:Ge(o)?r.default=o:mt(o)&&Pn(r,o),[i,r]}function q5(e,t,n,o,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw i&&i(a),a},onCacheKey:a=>wA(t,n,a)}}function K5(e,t,n,o){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:i,messages:h=>{let p=a(n,h);if(p==null&&u){const[,,g]=OC(u,h,t,s,l,c);p=a(g,h)}if(Ge(p)||Pa(p)){let g=!1;const b=MC(e,h,t,p,h,()=>{g=!0});return g?Mv:b}else return ao(p)?p:Mv}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),yn(o.plural)&&(f.pluralIndex=o.plural),f}function Fv(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=Jf(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Ep(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.DateTimeFormat(p,d).format(c);let m={},b,w=null;const C="datetime format";for(let y=0;y{zC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function Dv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Lv(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,d]=Zf(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Ep(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.NumberFormat(p,d).format(c);let m={},b,w=null;const C="number format";for(let y=0;y{FC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function Bv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}a5();/*! * vue-i18n v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Q$="9.14.0";function eA(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ar().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ar().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ar().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ar().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ar().__INTLIFY_PROD_DEVTOOLS__=!1)}const BC=I$.__EXTEND_POINT__,nr=gu(BC);nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr();const NC=Po.__EXTEND_POINT__,Hn=gu(NC),Sn={UNEXPECTED_RETURN_TYPE:NC,INVALID_ARGUMENT:Hn(),MUST_BE_CALL_SETUP_TOP:Hn(),NOT_INSTALLED:Hn(),NOT_AVAILABLE_IN_LEGACY_MODE:Hn(),REQUIRED_VALUE:Hn(),INVALID_VALUE:Hn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Hn(),NOT_INSTALLED_WITH_PROVIDE:Hn(),UNEXPECTED_ERROR:Hn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Hn(),BRIDGE_SUPPORT_VUE_2_ONLY:Hn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Hn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Hn(),__EXTEND_POINT__:Hn()};function Rn(e,...t){return Bs(e,null,void 0)}const eh=Yr("__translateVNode"),th=Yr("__datetimeParts"),nh=Yr("__numberParts"),HC=Yr("__setPluralRules"),jC=Yr("__injectWithOption"),oh=Yr("__dispose");function Ya(e){if(!jt(e))return e;for(const t in e)if(kc(e,t))if(!t.includes("."))jt(e[t])&&Ya(e[t]);else{const n=t.split("."),o=n.length-1;let r=e,i=!1;for(let s=0;s{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(s[l]=s[l]||{},ac(c,s[l])):ac(c,s)}else Ze(a)&&ac(JSON.parse(a),s)}),r==null&&i)for(const a in s)kc(s,a)&&Ya(s[a]);return s}function VC(e){return e.type}function WC(e,t,n){let o=jt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=bu(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(jt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(jt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Hv(e){return ie(zs,null,e,0)}const jv="__INTLIFY_META__",Vv=()=>[],tA=()=>!1;let Wv=0;function Uv(e){return(t,n,o,r)=>e(n,o,io()||void 0,r)}const nA=()=>{const e=io();let t=null;return e&&(t=VC(e)[jv])?{[jv]:t}:null};function Ep(e={},t){const{__root:n,__injectWithOption:o}=e,r=n===void 0,i=e.flatJson,s=Sc?H:Os,a=!!e.translateExistCompatible;let l=Pt(e.inheritLocale)?e.inheritLocale:!0;const c=s(n&&l?n.locale.value:Ze(e.locale)?e.locale:Rs),u=s(n&&l?n.fallbackLocale.value:Ze(e.fallbackLocale)||tn(e.fallbackLocale)||bt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=s(bu(c.value,e)),f=s(bt(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=s(bt(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:Pt(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:Pt(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:Pt(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=Zt(e.missing)?e.missing:null,C=Zt(e.missing)?Uv(e.missing):null,S=Zt(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:Pt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const y=n?n.modifiers:bt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,k;k=(()=>{r&&Iv(null);const re={version:Q$,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:y,pluralRules:T,missing:C===null?void 0:C,missingWarn:p,fallbackWarn:m,fallbackFormat:b,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:_,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=f.value,re.numberFormats=h.value,re.__datetimeFormatters=bt(k)?k.__datetimeFormatters:void 0,re.__numberFormatters=bt(k)?k.__numberFormatters:void 0;const me=V$(re);return r&&Iv(me),me})(),la(k,c.value,u.value);function I(){return[c.value,u.value,d.value,f.value,h.value]}const R=D({get:()=>c.value,set:re=>{c.value=re,k.locale=c.value}}),W=D({get:()=>u.value,set:re=>{u.value=re,k.fallbackLocale=u.value,la(k,c.value,re)}}),O=D(()=>d.value),M=D(()=>f.value),z=D(()=>h.value);function K(){return Zt(S)?S:null}function J(re){S=re,k.postTranslation=re}function se(){return w}function le(re){re!==null&&(C=Uv(re)),w=re,k.missing=C}const F=(re,me,Ne,He,De,ot)=>{I();let nt;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=n?j$():void 0),nt=re(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if(Ne!=="translate exists"&&wn(nt)&&nt===vu||Ne==="translate exists"&&!nt){const[Ge,Me]=me();return n&&g?He(n):De(Ge)}else{if(ot(nt))return nt;throw Rn(Sn.UNEXPECTED_RETURN_TYPE)}};function E(...re){return F(me=>Reflect.apply(Dv,null,[me,...re]),()=>Zf(...re),"translate",me=>Reflect.apply(me.t,me,[...re]),me=>me,me=>Ze(me))}function A(...re){const[me,Ne,He]=re;if(He&&!jt(He))throw Rn(Sn.INVALID_ARGUMENT);return E(me,Ne,$n({resolvedMessage:!0},He||{}))}function Y(...re){return F(me=>Reflect.apply(Lv,null,[me,...re]),()=>Jf(...re),"datetime format",me=>Reflect.apply(me.d,me,[...re]),()=>Ev,me=>Ze(me))}function ne(...re){return F(me=>Reflect.apply(Bv,null,[me,...re]),()=>Qf(...re),"number format",me=>Reflect.apply(me.n,me,[...re]),()=>Ev,me=>Ze(me))}function fe(re){return re.map(me=>Ze(me)||wn(me)||Pt(me)?Hv(String(me)):me)}const Ce={normalize:fe,interpolate:re=>re,type:"vnode"};function j(...re){return F(me=>{let Ne;const He=me;try{He.processor=Ce,Ne=Reflect.apply(Dv,null,[He,...re])}finally{He.processor=null}return Ne},()=>Zf(...re),"translate",me=>me[eh](...re),me=>[Hv(me)],me=>tn(me))}function ye(...re){return F(me=>Reflect.apply(Bv,null,[me,...re]),()=>Qf(...re),"number format",me=>me[nh](...re),Vv,me=>Ze(me)||tn(me))}function Ie(...re){return F(me=>Reflect.apply(Lv,null,[me,...re]),()=>Jf(...re),"datetime format",me=>me[th](...re),Vv,me=>Ze(me)||tn(me))}function Le(re){T=re,k.pluralRules=T}function U(re,me){return F(()=>{if(!re)return!1;const Ne=Ze(me)?me:c.value,He=Se(Ne),De=k.messageResolver(He,re);return a?De!=null:Es(De)||co(De)||Ze(De)},()=>[re],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[re,me]),tA,Ne=>Pt(Ne))}function B(re){let me=null;const Ne=TC(k,u.value,c.value);for(let He=0;He{l&&(c.value=re,k.locale=re,la(k,c.value,u.value))}),dt(n.fallbackLocale,re=>{l&&(u.value=re,k.fallbackLocale=re,la(k,c.value,u.value))}));const he={id:Wv,locale:R,fallbackLocale:W,get inheritLocale(){return l},set inheritLocale(re){l=re,re&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,la(k,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:O,get modifiers(){return y},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(re){p=re,k.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(re){m=re,k.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(re){g=re},get fallbackFormat(){return b},set fallbackFormat(re){b=re,k.fallbackFormat=b},get warnHtmlMessage(){return _},set warnHtmlMessage(re){_=re,k.warnHtmlMessage=re},get escapeParameter(){return x},set escapeParameter(re){x=re,k.escapeParameter=re},t:E,getLocaleMessage:Se,setLocaleMessage:te,mergeLocaleMessage:xe,getPostTranslationHandler:K,setPostTranslationHandler:J,getMissingHandler:se,setMissingHandler:le,[HC]:Le};return he.datetimeFormats=M,he.numberFormats=z,he.rt=A,he.te=U,he.tm=ae,he.d=Y,he.n=ne,he.getDateTimeFormat=ve,he.setDateTimeFormat=$,he.mergeDateTimeFormat=N,he.getNumberFormat=ee,he.setNumberFormat=we,he.mergeNumberFormat=de,he[jC]=o,he[eh]=j,he[th]=Ie,he[nh]=ye,he}function oA(e){const t=Ze(e.locale)?e.locale:Rs,n=Ze(e.fallbackLocale)||tn(e.fallbackLocale)||bt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Zt(e.missing)?e.missing:void 0,r=Pt(e.silentTranslationWarn)||Nr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Pt(e.silentFallbackWarn)||Nr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Pt(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=bt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Zt(e.postTranslation)?e.postTranslation:void 0,d=Ze(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=Pt(e.sync)?e.sync:!0;let p=e.messages;if(bt(e.sharedMessages)){const x=e.sharedMessages;p=Object.keys(x).reduce((T,k)=>{const P=T[k]||(T[k]={});return $n(P,x[k]),T},p||{})}const{__i18n:m,__root:g,__injectWithOption:b}=e,w=e.datetimeFormats,C=e.numberFormats,S=e.flatJson,_=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:S,datetimeFormats:w,numberFormats:C,missing:o,missingWarn:r,fallbackWarn:i,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:_,__i18n:m,__root:g,__injectWithOption:b}}function rh(e={},t){{const n=Ep(oA(e)),{__extender:o}=e,r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return Pt(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Pt(i)?!i:i},get silentFallbackWarn(){return Pt(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Pt(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[s,a,l]=i,c={};let u=null,d=null;if(!Ze(s))throw Rn(Sn.INVALID_ARGUMENT);const f=s;return Ze(a)?c.locale=a:tn(a)?u=a:bt(a)&&(d=a),tn(l)?u=l:bt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[s,a,l]=i,c={plural:1};let u=null,d=null;if(!Ze(s))throw Rn(Sn.INVALID_ARGUMENT);const f=s;return Ze(a)?c.locale=a:wn(a)?c.plural=a:tn(a)?u=a:bt(a)&&(d=a),Ze(l)?c.locale=l:tn(l)?u=l:bt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(i,s){return n.te(i,s)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,s){n.setLocaleMessage(i,s)},mergeLocaleMessage(i,s){n.mergeLocaleMessage(i,s)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,s){n.setDateTimeFormat(i,s)},mergeDateTimeFormat(i,s){n.mergeDateTimeFormat(i,s)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,s){n.setNumberFormat(i,s)},mergeNumberFormat(i,s){n.mergeNumberFormat(i,s)},getChoiceIndex(i,s){return-1}};return r.__extender=o,r}}const $p={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rA({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,r)=>[...o,...r.type===st?r.children:[r]],[]):t.reduce((n,o)=>{const r=e[o];return r&&(n[o]=r()),n},{})}function UC(e){return st}const iA=be({name:"i18n-t",props:$n({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wn(e)||!isNaN(e)}},$p),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||Ap({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=Ze(e.plural)?+e.plural:e.plural);const a=rA(t,i),l=r[eh](e.keypath,a,s),c=$n({},o),u=Ze(e.tag)||jt(e.tag)?e.tag:UC();return v(u,c,l)}}}),qv=iA;function sA(e){return tn(e)&&!Ze(e[0])}function qC(e,t,n,o){const{slots:r,attrs:i}=t;return()=>{const s={part:!0};let a={};e.locale&&(s.locale=e.locale),Ze(e.format)?s.key=e.format:jt(e.format)&&(Ze(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((f,h)=>n.includes(h)?$n({},f,{[h]:e.format[h]}):f,{}));const l=o(e.value,s,a);let c=[s.key];tn(l)?c=l.map((f,h)=>{const p=r[f.type],m=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return sA(m)&&(m[0].key=`${f.type}-${h}`),m}):Ze(l)&&(c=[l]);const u=$n({},i),d=Ze(e.tag)||jt(e.tag)?e.tag:UC();return v(d,u,c)}}const aA=be({name:"i18n-n",props:$n({value:{type:Number,required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ap({useScope:e.scope,__useComponent:!0});return qC(e,t,FC,(...o)=>n[nh](...o))}}),Kv=aA,lA=be({name:"i18n-d",props:$n({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ap({useScope:e.scope,__useComponent:!0});return qC(e,t,LC,(...o)=>n[th](...o))}}),Gv=lA;function cA(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function uA(e){const t=s=>{const{instance:a,modifiers:l,value:c}=s;if(!a||!a.$)throw Rn(Sn.UNEXPECTED_ERROR);const u=cA(e,a.$),d=Yv(c);return[Reflect.apply(u.t,u,[...Xv(d)]),u]};return{created:(s,a)=>{const[l,c]=t(a);Sc&&e.global===c&&(s.__i18nWatcher=dt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=c,s.textContent=l},unmounted:s=>{Sc&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const l=s.__composer,c=Yv(a);s.textContent=Reflect.apply(l.t,l,[...Xv(c)])}},getSSRProps:s=>{const[a]=t(s);return{textContent:a}}}}function Yv(e){if(Ze(e))return{path:e};if(bt(e)){if(!("path"in e))throw Rn(Sn.REQUIRED_VALUE,"path");return e}else throw Rn(Sn.INVALID_VALUE)}function Xv(e){const{path:t,locale:n,args:o,choice:r,plural:i}=e,s={},a=o||{};return Ze(n)&&(s.locale=n),wn(r)&&(s.plural=r),wn(i)&&(s.plural=i),[t,a,s]}function dA(e,t,...n){const o=bt(n[0])?n[0]:{},r=!!o.useI18nComponentName;(Pt(o.globalInstall)?o.globalInstall:!0)&&([r?"i18n":qv.name,"I18nT"].forEach(s=>e.component(s,qv)),[Kv.name,"I18nN"].forEach(s=>e.component(s,Kv)),[Gv.name,"I18nD"].forEach(s=>e.component(s,Gv))),e.directive("t",uA(t))}function fA(e,t,n){return{beforeCreate(){const o=io();if(!o)throw Rn(Sn.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Zv(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=rh(i);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Zv(e,r);else{this.$i18n=rh({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&WC(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,s)=>this.$i18n.te(i,s),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=io();if(!o)throw Rn(Sn.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(o),delete this.$i18n}}}function Zv(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[HC](t.pluralizationRules||e.pluralizationRules);const n=bu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const hA=Yr("global-vue-i18n");function pA(e={},t){const n=__VUE_I18N_LEGACY_API__&&Pt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=Pt(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[s,a]=mA(e,n),l=Yr("");function c(f){return i.get(f)||null}function u(f,h){i.set(f,h)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),bt(p[0])){const b=p[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let m=null;!n&&o&&(m=SA(h,f.global)),__VUE_I18N_FULL_INSTALL__&&dA(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(fA(a,a.__composer,f));const g=h.unmount;h.unmount=()=>{m&&m(),f.dispose(),g()}},get global(){return a},dispose(){s.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Ap(e={}){const t=io();if(t==null)throw Rn(Sn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Rn(Sn.NOT_INSTALLED);const n=gA(t),o=bA(n),r=VC(t),i=vA(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Rn(Sn.NOT_AVAILABLE_IN_LEGACY_MODE);return wA(t,i,o,e)}if(i==="global")return WC(o,e,r),o;if(i==="parent"){let l=yA(n,t,e.__useComponent);return l==null&&(l=o),l}const s=n;let a=s.__getInstance(t);if(a==null){const l=$n({},e);"__i18n"in r&&(l.__i18n=r.__i18n),o&&(l.__root=o),a=Ep(l),s.__composerExtend&&(a[oh]=s.__composerExtend(a)),CA(s,t,a),s.__setInstance(t,a)}return a}function mA(e,t,n){const o=Kh();{const r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>rh(e)):o.run(()=>Ep(e));if(r==null)throw Rn(Sn.UNEXPECTED_ERROR);return[o,r]}}function gA(e){{const t=We(e.isCE?hA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Rn(e.isCE?Sn.NOT_INSTALLED_WITH_PROVIDE:Sn.UNEXPECTED_ERROR);return t}}function vA(e,t){return mu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function bA(e){return e.mode==="composition"?e.global:e.global.__composer}function yA(e,t,n=!1){let o=null;const r=t.root;let i=xA(t,n);for(;i!=null;){const s=e;if(e.mode==="composition")o=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(o=a.__composer,n&&o&&!o[jC]&&(o=null))}if(o!=null||r===i)break;i=i.parent}return o}function xA(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function CA(e,t,n){Wt(()=>{},t),Fi(()=>{const o=n;e.__deleteInstance(t);const r=o[oh];r&&(r(),delete o[oh])},t)}function wA(e,t,n,o={}){const r=t==="local",i=Os(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rn(Sn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=Pt(o.inheritLocale)?o.inheritLocale:!Ze(o.locale),a=H(!r||s?n.locale.value:Ze(o.locale)?o.locale:Rs),l=H(!r||s?n.fallbackLocale.value:Ze(o.fallbackLocale)||tn(o.fallbackLocale)||bt(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:a.value),c=H(bu(a.value,o)),u=H(bt(o.datetimeFormats)?o.datetimeFormats:{[a.value]:{}}),d=H(bt(o.numberFormats)?o.numberFormats:{[a.value]:{}}),f=r?n.missingWarn:Pt(o.missingWarn)||Nr(o.missingWarn)?o.missingWarn:!0,h=r?n.fallbackWarn:Pt(o.fallbackWarn)||Nr(o.fallbackWarn)?o.fallbackWarn:!0,p=r?n.fallbackRoot:Pt(o.fallbackRoot)?o.fallbackRoot:!0,m=!!o.fallbackFormat,g=Zt(o.missing)?o.missing:null,b=Zt(o.postTranslation)?o.postTranslation:null,w=r?n.warnHtmlMessage:Pt(o.warnHtmlMessage)?o.warnHtmlMessage:!0,C=!!o.escapeParameter,S=r?n.modifiers:bt(o.modifiers)?o.modifiers:{},_=o.pluralRules||r&&n.pluralRules;function x(){return[a.value,l.value,c.value,u.value,d.value]}const y=D({get:()=>i.value?i.value.locale.value:a.value,set:B=>{i.value&&(i.value.locale.value=B),a.value=B}}),T=D({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:B=>{i.value&&(i.value.fallbackLocale.value=B),l.value=B}}),k=D(()=>i.value?i.value.messages.value:c.value),P=D(()=>u.value),I=D(()=>d.value);function R(){return i.value?i.value.getPostTranslationHandler():b}function W(B){i.value&&i.value.setPostTranslationHandler(B)}function O(){return i.value?i.value.getMissingHandler():g}function M(B){i.value&&i.value.setMissingHandler(B)}function z(B){return x(),B()}function K(...B){return i.value?z(()=>Reflect.apply(i.value.t,null,[...B])):z(()=>"")}function J(...B){return i.value?Reflect.apply(i.value.rt,null,[...B]):""}function se(...B){return i.value?z(()=>Reflect.apply(i.value.d,null,[...B])):z(()=>"")}function le(...B){return i.value?z(()=>Reflect.apply(i.value.n,null,[...B])):z(()=>"")}function F(B){return i.value?i.value.tm(B):{}}function E(B,ae){return i.value?i.value.te(B,ae):!1}function A(B){return i.value?i.value.getLocaleMessage(B):{}}function Y(B,ae){i.value&&(i.value.setLocaleMessage(B,ae),c.value[B]=ae)}function ne(B,ae){i.value&&i.value.mergeLocaleMessage(B,ae)}function fe(B){return i.value?i.value.getDateTimeFormat(B):{}}function Q(B,ae){i.value&&(i.value.setDateTimeFormat(B,ae),u.value[B]=ae)}function Ce(B,ae){i.value&&i.value.mergeDateTimeFormat(B,ae)}function j(B){return i.value?i.value.getNumberFormat(B):{}}function ye(B,ae){i.value&&(i.value.setNumberFormat(B,ae),d.value[B]=ae)}function Ie(B,ae){i.value&&i.value.mergeNumberFormat(B,ae)}const Le={get id(){return i.value?i.value.id:-1},locale:y,fallbackLocale:T,messages:k,datetimeFormats:P,numberFormats:I,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(B){i.value&&(i.value.inheritLocale=B)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:S},get pluralRules(){return i.value?i.value.pluralRules:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(B){i.value&&(i.value.missingWarn=B)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(B){i.value&&(i.value.missingWarn=B)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(B){i.value&&(i.value.fallbackRoot=B)},get fallbackFormat(){return i.value?i.value.fallbackFormat:m},set fallbackFormat(B){i.value&&(i.value.fallbackFormat=B)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(B){i.value&&(i.value.warnHtmlMessage=B)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(B){i.value&&(i.value.escapeParameter=B)},t:K,getPostTranslationHandler:R,setPostTranslationHandler:W,getMissingHandler:O,setMissingHandler:M,rt:J,d:se,n:le,tm:F,te:E,getLocaleMessage:A,setLocaleMessage:Y,mergeLocaleMessage:ne,getDateTimeFormat:fe,setDateTimeFormat:Q,mergeDateTimeFormat:Ce,getNumberFormat:j,setNumberFormat:ye,mergeNumberFormat:Ie};function U(B){B.locale.value=a.value,B.fallbackLocale.value=l.value,Object.keys(c.value).forEach(ae=>{B.mergeLocaleMessage(ae,c.value[ae])}),Object.keys(u.value).forEach(ae=>{B.mergeDateTimeFormat(ae,u.value[ae])}),Object.keys(d.value).forEach(ae=>{B.mergeNumberFormat(ae,d.value[ae])}),B.escapeParameter=C,B.fallbackFormat=m,B.fallbackRoot=p,B.fallbackWarn=h,B.missingWarn=f,B.warnHtmlMessage=w}return mn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rn(Sn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const B=i.value=e.proxy.$i18n.__composer;t==="global"?(a.value=B.locale.value,l.value=B.fallbackLocale.value,c.value=B.messages.value,u.value=B.datetimeFormats.value,d.value=B.numberFormats.value):r&&U(B)}),Le}const _A=["locale","fallbackLocale","availableLocales"],Jv=["t","rt","d","n","tm","te"];function SA(e,t){const n=Object.create(null);return _A.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw Rn(Sn.UNEXPECTED_ERROR);const s=dn(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,s)}),e.config.globalProperties.$i18n=n,Jv.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw Rn(Sn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,Jv.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}eA();__INTLIFY_JIT_COMPILATION__?Av(G$):Av(K$);F$(y$);B$(TC);if(__INTLIFY_PROD_DEVTOOLS__){const e=ar();e.__INTLIFY__=!0,R$(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const KC="locale";function yu(){return al.get(KC)}function GC(e){al.set(KC,e)}const YC=Object.keys(Object.assign({"./lang/en-US.json":()=>_t(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/fa-IR.json":()=>_t(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>_t(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/ko-KR.json":()=>_t(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/vi-VN.json":()=>_t(()=>Promise.resolve().then(()=>Hk),void 0),"./lang/zh-CN.json":()=>_t(()=>Promise.resolve().then(()=>jk),void 0),"./lang/zh-TW.json":()=>_t(()=>Promise.resolve().then(()=>Vk),void 0)})).map(e=>e.slice(7,-5));function kA(){const e=navigator.language,t="zh-CN",o=YC.includes(e)?e:t;return yu().value||GC(o),o}const vn=pA({locale:yu().value||kA(),fallbackLocale:"en-US",messages:{}});async function PA(){await Promise.all(YC.map(async e=>{const t=await PE(Object.assign({"./lang/en-US.json":()=>_t(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/fa-IR.json":()=>_t(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>_t(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/ko-KR.json":()=>_t(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/vi-VN.json":()=>_t(()=>Promise.resolve().then(()=>Hk),void 0),"./lang/zh-CN.json":()=>_t(()=>Promise.resolve().then(()=>jk),void 0),"./lang/zh-TW.json":()=>_t(()=>Promise.resolve().then(()=>Vk),void 0)}),`./lang/${e}.json`).then(n=>n.default||n);vn.global.setLocaleMessage(e,t)}))}async function TA(e){e.use(vn),PA()}const ih={"zh-CN":"简体中文","zh-TW":"繁體中文","en-US":"English","fa-IR":"Iran","ja-JP":"日本語","vi-VN":"Tiếng Việt","ko-KR":"한국어"},sh=e=>vn.global.t(e);function Uo(e=void 0,t="YYYY-MM-DD HH:mm:ss"){return e==null?"":(e.toString().length===10&&(e=e*1e3),_E(e).format(t))}function Ip(e=void 0,t="YYYY-MM-DD"){return Uo(e,t)}function hs(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":t.toFixed(2)}function sn(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":(t/100).toFixed(2)}function vs(e){navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{window.$message.success(sh("复制成功"))}).catch(t=>{console.error("复制到剪贴板时出错:",t),Qv(e)}):Qv(e)}function Qv(e){const t=document.createElement("button"),n=new kE(t,{text:()=>e});n.on("success",()=>{window.$message.success(sh("复制成功")),n.destroy()}),n.on("error",()=>{window.$message.error(sh("复制失败")),n.destroy()}),t.click()}function RA(e,t){if(e.length!==t.length)return!1;const n=[...e].sort(),o=[...t].sort();return n.every((r,i)=>r===o[i])}function Ra(e){const t=e/1024,n=t/1024,o=n/1024,r=o/1024;return r>=1?hs(r)+" TB":o>=1?hs(o)+" GB":n>=1?hs(n)+" MB":hs(t)+" KB"}function EA(e){return typeof e>"u"}function $A(e){return e===null}function eb(e){return e&&Array.isArray(e)}function XC(e){return $A(e)||EA(e)}function tb(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ea=/^[a-z0-9]+(-[a-z0-9]+)*$/,xu=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:a};return t&&!lc(c)?null:c}const i=r[0],s=i.split("-");if(s.length>1){const a={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!lc(a)?null:a}if(n&&o===""){const a={provider:o,prefix:"",name:i};return t&&!lc(a,n)?null:a}return null},lc=(e,t)=>e?!!((e.provider===""||e.provider.match(Ea))&&(t&&e.prefix===""||e.prefix.match(Ea))&&e.name.match(Ea)):!1,ZC=Object.freeze({left:0,top:0,width:16,height:16}),Tc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Cu=Object.freeze({...ZC,...Tc}),ah=Object.freeze({...Cu,body:"",hidden:!1});function AA(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function nb(e,t){const n=AA(e,t);for(const o in ah)o in Tc?o in e&&!(o in n)&&(n[o]=Tc[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function IA(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const a=o[s]&&o[s].parent,l=a&&i(a);l&&(r[s]=[a].concat(l))}return r[s]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function MA(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function s(a){i=nb(o[a]||r[a],i)}return s(t),n.forEach(s),nb(e,i)}function JC(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=IA(e);for(const r in o){const i=o[r];i&&(t(r,MA(e,r,i)),n.push(r))}return n}const OA={provider:"",aliases:{},not_found:{},...ZC};function Od(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function QC(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Od(e,OA))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(Ea)||typeof i.body!="string"||!Od(i,ah))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],s=i.parent;if(!r.match(Ea)||typeof s!="string"||!n[s]&&!o[s]||!Od(i,ah))return null}return t}const ob=Object.create(null);function zA(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $i(e,t){const n=ob[e]||(ob[e]=Object.create(null));return n[t]||(n[t]=zA(e,t))}function Mp(e,t){return QC(t)?JC(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function DA(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Xa=!1;function ew(e){return typeof e=="boolean"&&(Xa=e),Xa}function LA(e){const t=typeof e=="string"?xu(e,!0,Xa):e;if(t){const n=$i(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function FA(e,t){const n=xu(e,!0,Xa);if(!n)return!1;const o=$i(n.provider,n.prefix);return DA(o,n.name,t)}function BA(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Xa&&!t&&!e.prefix){let r=!1;return QC(e)&&(e.prefix="",JC(e,(i,s)=>{s&&FA(i,s)&&(r=!0)})),r}const n=e.prefix;if(!lc({provider:t,prefix:n,name:"a"}))return!1;const o=$i(t,n);return!!Mp(o,e)}const tw=Object.freeze({width:null,height:null}),nw=Object.freeze({...tw,...Tc}),NA=/(-?[0-9.]*[0-9]+[0-9.]*)/g,HA=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function rb(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(NA);if(o===null||!o.length)return e;const r=[];let i=o.shift(),s=HA.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");s=!s}}function jA(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),i=e.indexOf("",i);if(s===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,o).trim()+e.slice(s+1)}return{defs:n,content:e}}function VA(e,t){return e?""+e+""+t:t}function WA(e,t,n){const o=jA(e);return VA(o.defs,t+o.content+n)}const UA=e=>e==="unset"||e==="undefined"||e==="none";function qA(e,t){const n={...Cu,...e},o={...nw,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(m=>{const g=[],b=m.hFlip,w=m.vFlip;let C=m.rotate;b?w?C+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):w&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let S;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:S=r.height/2+r.top,g.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:S=r.width/2+r.left,g.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}C%2===1&&(r.left!==r.top&&(S=r.left,r.left=r.top,r.top=S),r.width!==r.height&&(S=r.width,r.width=r.height,r.height=S)),g.length&&(i=WA(i,'',""))});const s=o.width,a=o.height,l=r.width,c=r.height;let u,d;s===null?(d=a===null?"1em":a==="auto"?c:a,u=rb(d,l/c)):(u=s==="auto"?l:s,d=a===null?rb(u,c/l):a==="auto"?c:a);const f={},h=(m,g)=>{UA(g)||(f[m]=g.toString())};h("width",u),h("height",d);const p=[r.left,r.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const KA=/\sid="(\S+)"/g,GA="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let YA=0;function XA(e,t=GA){const n=[];let o;for(;o=KA.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(YA++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const lh=Object.create(null);function ZA(e,t){lh[e]=t}function ch(e){return lh[e]||lh[""]}function Op(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const zp=Object.create(null),ca=["https://api.simplesvg.com","https://api.unisvg.com"],cc=[];for(;ca.length>0;)ca.length===1||Math.random()>.5?cc.push(ca.shift()):cc.push(ca.pop());zp[""]=Op({resources:["https://api.iconify.design"].concat(cc)});function JA(e,t){const n=Op(t);return n===null?!1:(zp[e]=n,!0)}function Dp(e){return zp[e]}const QA=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ib=QA();function e6(e,t){const n=Dp(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(s=>{r=Math.max(r,s.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function t6(e){return e===404}const n6=(e,t,n)=>{const o=[],r=e6(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(o.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),o.push(s),o};function o6(e){if(typeof e=="string"){const t=Dp(e);if(t)return t.path}return"/"}const r6=(e,t,n)=>{if(!ib){n("abort",424);return}let o=o6(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});o+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;ib(e+o).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(t6(s)?"abort":"next",s)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},i6={prepare:n6,send:r6};function s6(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,s=r.prefix,a=r.name,l=n[i]||(n[i]=Object.create(null)),c=l[s]||(l[s]=$i(i,s));let u;a in c.icons?u=t.loaded:s===""||c.missing.has(a)?u=t.missing:u=t.pending;const d={provider:i,prefix:s,name:a};u.push(d)}),t}function ow(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function a6(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(e.icons[c])s.loaded.push({provider:o,prefix:r,name:c});else if(e.missing.has(c))s.missing.push({provider:o,prefix:r,name:c});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||ow([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let l6=0;function c6(e,t,n){const o=l6++,r=ow.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),r}function u6(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?xu(r,t,n):r;i&&o.push(i)}),o}var d6={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function f6(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let x=e.resources.slice(0);for(s=[];x.length>1;){const y=Math.floor(Math.random()*x.length);s.push(x[y]),x=x.slice(0,y).concat(x.slice(y+1))}s=s.concat(x)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof o=="function"&&h.push(o);function p(){d&&(clearTimeout(d),d=null)}function m(){l==="pending"&&(l="aborted"),p(),f.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),f=[]}function g(x,y){y&&(h=[]),typeof x=="function"&&h.push(x)}function b(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:g,abort:m}}function w(){l="failed",h.forEach(x=>{x(void 0,u)})}function C(){f.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),f=[]}function S(x,y,T){const k=y!=="success";switch(f=f.filter(P=>P!==x),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(y==="abort"){u=T,w();return}if(k){u=T,f.length||(s.length?_():w());return}if(p(),C(),!e.random){const P=e.resources.indexOf(x.resource);P!==-1&&P!==e.index&&(e.index=P)}l="completed",h.forEach(P=>{P(T)})}function _(){if(l!=="pending")return;p();const x=s.shift();if(x===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(C(),w())},e.timeout);return}w();return}const y={status:"pending",resource:x,callback:(T,k)=>{S(y,T,k)}};f.push(y),c++,d=setTimeout(_,e.rotate),n(x,t,y.callback)}return setTimeout(_),b}function rw(e){const t={...d6,...e};let n=[];function o(){n=n.filter(a=>a().status==="pending")}function r(a,l,c){const u=f6(t,a,l,(d,f)=>{o(),c&&c(d,f)});return n.push(u),u}function i(a){return n.find(l=>a(l))||null}return{query:r,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:o}}function sb(){}const zd=Object.create(null);function h6(e){if(!zd[e]){const t=Dp(e);if(!t)return;const n=rw(t),o={config:t,redundancy:n};zd[e]=o}return zd[e]}function p6(e,t,n){let o,r;if(typeof e=="string"){const i=ch(e);if(!i)return n(void 0,424),sb;r=i.send;const s=h6(e);s&&(o=s.redundancy)}else{const i=Op(e);if(i){o=rw(i);const s=e.resources?e.resources[0]:"",a=ch(s);a&&(r=a.send)}}return!o||!r?(n(void 0,424),sb):o.query(t,r,n)().abort}const ab="iconify2",Za="iconify",iw=Za+"-count",lb=Za+"-version",sw=36e5,m6=168,g6=50;function uh(e,t){try{return e.getItem(t)}catch{}}function Lp(e,t,n){try{return e.setItem(t,n),!0}catch{}}function cb(e,t){try{e.removeItem(t)}catch{}}function dh(e,t){return Lp(e,iw,t.toString())}function fh(e){return parseInt(uh(e,iw))||0}const wu={local:!0,session:!0},aw={local:new Set,session:new Set};let Fp=!1;function v6(e){Fp=e}let $l=typeof window>"u"?{}:window;function lw(e){const t=e+"Storage";try{if($l&&$l[t]&&typeof $l[t].length=="number")return $l[t]}catch{}wu[e]=!1}function cw(e,t){const n=lw(e);if(!n)return;const o=uh(n,lb);if(o!==ab){if(o){const a=fh(n);for(let l=0;l{const l=Za+a.toString(),c=uh(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}cb(n,l)}};let s=fh(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,dh(n,s)):aw[e].add(a))}function uw(){if(!Fp){v6(!0);for(const e in wu)cw(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=$i(o,r);if(!Mp(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function b6(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in wu)cw(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function y6(e,t){Fp||uw();function n(o){let r;if(!wu[o]||!(r=lw(o)))return;const i=aw[o];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=fh(r),s>=g6||!dh(r,s+1))return;const a={cached:Math.floor(Date.now()/sw),provider:e.provider,data:t};return Lp(r,Za+s.toString(),JSON.stringify(a))}t.lastModified&&!b6(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function ub(){}function x6(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,a6(e)}))}function C6(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=ch(n)))return;i.prepare(n,o,r).forEach(a=>{p6(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Mp(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),y6(e,l)}catch(c){console.error(c)}x6(e)})})}))}const w6=(e,t)=>{const n=u6(e,!0,ew()),o=s6(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,ub)}),()=>{l=!1}}const r=Object.create(null),i=[];let s,a;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===s)return;s=c,a=u,i.push($i(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=$i(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),r[c][u].push(d))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&C6(l,r[c][u])}),t?c6(t,o,i):ub};function _6(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in tw?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const S6=/[\s,]+/;function k6(e,t){t.split(S6).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function P6(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function T6(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function R6(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function E6(e){return"data:image/svg+xml,"+R6(e)}function $6(e){return'url("'+E6(e)+'")'}const db={...nw,inline:!1},A6={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},I6={display:"inline-block"},hh={backgroundColor:"currentColor"},dw={backgroundColor:"transparent"},fb={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},hb={webkitMask:hh,mask:hh,background:dw};for(const e in hb){const t=hb[e];for(const n in fb)t[e+n]=fb[n]}const uc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";uc[e+"-flip"]=t,uc[e.slice(0,1)+"-flip"]=t,uc[e+"Flip"]=t});function pb(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const mb=(e,t)=>{const n=_6(db,t),o={...A6},r=t.mode||"svg",i={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const g=t[m];if(g!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&k6(n,g);break;case"color":i.color=g;break;case"rotate":typeof g=="string"?n[m]=P6(g):typeof g=="number"&&(n[m]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete o["aria-hidden"];break;default:{const b=uc[m];b?(g===!0||g==="true"||g===1)&&(n[b]=!0):db[m]===void 0&&(o[m]=g)}}}const l=qA(e,n),c=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...a},Object.assign(o,c);let m=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),o.innerHTML=XA(l.body,g?()=>g+"ID"+m++:"iconifyVue"),v("svg",o)}const{body:u,width:d,height:f}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),p=T6(u,{...c,width:d+"",height:f+""});return o.style={...i,"--svg":$6(p),width:pb(c.width),height:pb(c.height),...I6,...h?hh:dw,...a},v("span",o)};ew(!0);ZA("",i6);if(typeof document<"u"&&typeof window<"u"){uw();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!BA(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;JA(n,r)||console.error(o)}catch{console.error(o)}}}}const M6={...Cu,body:""},O6=be({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=xu(e,!1,!0))===null)return this.abortLoading(),null;const o=LA(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:w6([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return mb(M6,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),mb({...Cu,...t.data},n)}});function z6(e){let t=".",n="__",o="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(o=p)}const i={install(p){r=p.c;const m=p.context;m.bem={},m.bem.b=null,m.bem.els=null}};function s(p){let m,g;return{before(b){m=b.bem.b,g=b.bem.els,b.bem.els=null},after(b){b.bem.b=m,b.bem.els=g},$({context:b,props:w}){return p=typeof p=="string"?p:p({context:b,props:w}),b.bem.b=p,`${(w==null?void 0:w.bPrefix)||t}${b.bem.b}`}}}function a(p){let m;return{before(g){m=g.bem.els},after(g){g.bem.els=m},$({context:g,props:b}){return p=typeof p=="string"?p:p({context:g,props:b}),g.bem.els=p.split(",").map(w=>w.trim()),g.bem.els.map(w=>`${(b==null?void 0:b.bPrefix)||t}${g.bem.b}${n}${w}`).join(", ")}}}function l(p){return{$({context:m,props:g}){p=typeof p=="string"?p:p({context:m,props:g});const b=p.split(",").map(S=>S.trim());function w(S){return b.map(_=>`&${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${S!==void 0?`${n}${S}`:""}${o}${_}`).join(", ")}const C=m.bem.els;return C!==null?w(C[0]):w()}}}function c(p){return{$({context:m,props:g}){p=typeof p=="string"?p:p({context:m,props:g});const b=m.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${b!==null&&b.length>0?`${n}${b[0]}`:""}${o}${p})`}}}return Object.assign(i,{cB:(...p)=>r(s(p[0]),p[1],p[2]),cE:(...p)=>r(a(p[0]),p[1],p[2]),cM:(...p)=>r(l(p[0]),p[1],p[2]),cNotM:(...p)=>r(c(p[0]),p[1],p[2])}),i}function D6(e){let t=0;for(let n=0;n{let r=D6(o);if(r){if(r===1){e.forEach(s=>{n.push(o.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+o)});return}let i=[o];for(;r--;){const s=[];i.forEach(a=>{e.forEach(l=>{s.push(a.replace("&",l))})}),i=s}i.forEach(s=>n.push(s))}),n}function B6(e,t){const n=[];return t.split(fw).forEach(o=>{e.forEach(r=>{n.push((r&&r+" ")+o)})}),n}function N6(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=F6(t,n):t=B6(t,n))}),t.join(", ").replace(L6," ")}function gb(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function _u(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function H6(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Al(e){return e?/^\s*@(s|m)/.test(e):!1}const j6=/[A-Z]/g;function hw(e){return e.replace(j6,t=>"-"+t.toLowerCase())}function V6(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${hw(n[0])}: ${n[1]};`).join(` + */const G5="9.14.0";function X5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(sr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(sr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1)}const DC=T5.__EXTEND_POINT__,nr=pu(DC);nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr();const LC=ko.__EXTEND_POINT__,Bn=pu(LC),Cn={UNEXPECTED_RETURN_TYPE:LC,INVALID_ARGUMENT:Bn(),MUST_BE_CALL_SETUP_TOP:Bn(),NOT_INSTALLED:Bn(),NOT_AVAILABLE_IN_LEGACY_MODE:Bn(),REQUIRED_VALUE:Bn(),INVALID_VALUE:Bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bn(),NOT_INSTALLED_WITH_PROVIDE:Bn(),UNEXPECTED_ERROR:Bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bn(),BRIDGE_SUPPORT_VUE_2_ONLY:Bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bn(),__EXTEND_POINT__:Bn()};function kn(e,...t){return La(e,null,void 0)}const eh=Xr("__translateVNode"),th=Xr("__datetimeParts"),nh=Xr("__numberParts"),BC=Xr("__setPluralRules"),NC=Xr("__injectWithOption"),oh=Xr("__dispose");function Ws(e){if(!Nt(e))return e;for(const t in e)if(_c(e,t))if(!t.includes("."))Nt(e[t])&&Ws(e[t]);else{const n=t.split("."),o=n.length-1;let r=e,i=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},ic(c,a[l])):ic(c,a)}else Ge(s)&&ic(JSON.parse(s),a)}),r==null&&i)for(const s in a)_c(a,s)&&Ws(a[s]);return a}function HC(e){return e.type}function jC(e,t,n){let o=Nt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=gu(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(Nt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Nt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Nv(e){return se(Ma,null,e,0)}const Hv="__INTLIFY_META__",jv=()=>[],Y5=()=>!1;let Uv=0;function Vv(e){return(t,n,o,r)=>e(n,o,no()||void 0,r)}const Q5=()=>{const e=no();let t=null;return e&&(t=HC(e)[Hv])?{[Hv]:t}:null};function Ap(e={},t){const{__root:n,__injectWithOption:o}=e,r=n===void 0,i=e.flatJson,a=wc?U:Ia,s=!!e.translateExistCompatible;let l=St(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:Ge(e.locale)?e.locale:ka),u=a(n&&l?n.fallbackLocale.value:Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(gu(c.value,e)),f=a(mt(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a(mt(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:St(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:St(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,m=n?n.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=Xt(e.missing)?e.missing:null,C=Xt(e.missing)?Vv(e.missing):null,_=Xt(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=n?n.modifiers:mt(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,k;k=(()=>{r&&$v(null);const ie={version:G5,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:x,pluralRules:P,missing:C===null?void 0:C,missingWarn:p,fallbackWarn:g,fallbackFormat:b,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:S,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=f.value,ie.numberFormats=h.value,ie.__datetimeFormatters=mt(k)?k.__datetimeFormatters:void 0,ie.__numberFormatters=mt(k)?k.__numberFormatters:void 0;const fe=L5(ie);return r&&$v(fe),fe})(),is(k,c.value,u.value);function R(){return[c.value,u.value,d.value,f.value,h.value]}const E=I({get:()=>c.value,set:ie=>{c.value=ie,k.locale=c.value}}),q=I({get:()=>u.value,set:ie=>{u.value=ie,k.fallbackLocale=u.value,is(k,c.value,ie)}}),D=I(()=>d.value),B=I(()=>f.value),M=I(()=>h.value);function K(){return Xt(_)?_:null}function V(ie){_=ie,k.postTranslation=ie}function ae(){return w}function pe(ie){ie!==null&&(C=Vv(ie)),w=ie,k.missing=C}const Z=(ie,fe,Fe,De,Me,Ne)=>{R();let et;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=n?D5():void 0),et=ie(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if(Fe!=="translate exists"&&yn(et)&&et===mu||Fe==="translate exists"&&!et){const[$e,Xe]=fe();return n&&m?De(n):Me($e)}else{if(Ne(et))return et;throw kn(Cn.UNEXPECTED_RETURN_TYPE)}};function N(...ie){return Z(fe=>Reflect.apply(zv,null,[fe,...ie]),()=>Qf(...ie),"translate",fe=>Reflect.apply(fe.t,fe,[...ie]),fe=>fe,fe=>Ge(fe))}function O(...ie){const[fe,Fe,De]=ie;if(De&&!Nt(De))throw kn(Cn.INVALID_ARGUMENT);return N(fe,Fe,Pn({resolvedMessage:!0},De||{}))}function ee(...ie){return Z(fe=>Reflect.apply(Fv,null,[fe,...ie]),()=>Jf(...ie),"datetime format",fe=>Reflect.apply(fe.d,fe,[...ie]),()=>Ev,fe=>Ge(fe))}function G(...ie){return Z(fe=>Reflect.apply(Lv,null,[fe,...ie]),()=>Zf(...ie),"number format",fe=>Reflect.apply(fe.n,fe,[...ie]),()=>Ev,fe=>Ge(fe))}function ne(ie){return ie.map(fe=>Ge(fe)||yn(fe)||St(fe)?Nv(String(fe)):fe)}const ce={normalize:ne,interpolate:ie=>ie,type:"vnode"};function L(...ie){return Z(fe=>{let Fe;const De=fe;try{De.processor=ce,Fe=Reflect.apply(zv,null,[De,...ie])}finally{De.processor=null}return Fe},()=>Qf(...ie),"translate",fe=>fe[eh](...ie),fe=>[Nv(fe)],fe=>tn(fe))}function be(...ie){return Z(fe=>Reflect.apply(Lv,null,[fe,...ie]),()=>Zf(...ie),"number format",fe=>fe[nh](...ie),jv,fe=>Ge(fe)||tn(fe))}function Oe(...ie){return Z(fe=>Reflect.apply(Fv,null,[fe,...ie]),()=>Jf(...ie),"datetime format",fe=>fe[th](...ie),jv,fe=>Ge(fe)||tn(fe))}function je(ie){P=ie,k.pluralRules=P}function F(ie,fe){return Z(()=>{if(!ie)return!1;const Fe=Ge(fe)?fe:c.value,De=we(Fe),Me=k.messageResolver(De,ie);return s?Me!=null:Pa(Me)||ao(Me)||Ge(Me)},()=>[ie],"translate exists",Fe=>Reflect.apply(Fe.te,Fe,[ie,fe]),Y5,Fe=>St(Fe))}function A(ie){let fe=null;const Fe=kC(k,u.value,c.value);for(let De=0;De{l&&(c.value=ie,k.locale=ie,is(k,c.value,u.value))}),ft(n.fallbackLocale,ie=>{l&&(u.value=ie,k.fallbackLocale=ie,is(k,c.value,u.value))}));const ue={id:Uv,locale:E,fallbackLocale:q,get inheritLocale(){return l},set inheritLocale(ie){l=ie,ie&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,is(k,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:D,get modifiers(){return x},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(ie){p=ie,k.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(ie){g=ie,k.fallbackWarn=g},get fallbackRoot(){return m},set fallbackRoot(ie){m=ie},get fallbackFormat(){return b},set fallbackFormat(ie){b=ie,k.fallbackFormat=b},get warnHtmlMessage(){return S},set warnHtmlMessage(ie){S=ie,k.warnHtmlMessage=ie},get escapeParameter(){return y},set escapeParameter(ie){y=ie,k.escapeParameter=ie},t:N,getLocaleMessage:we,setLocaleMessage:oe,mergeLocaleMessage:ve,getPostTranslationHandler:K,setPostTranslationHandler:V,getMissingHandler:ae,setMissingHandler:pe,[BC]:je};return ue.datetimeFormats=B,ue.numberFormats=M,ue.rt=O,ue.te=F,ue.tm=re,ue.d=ee,ue.n=G,ue.getDateTimeFormat=ke,ue.setDateTimeFormat=$,ue.mergeDateTimeFormat=H,ue.getNumberFormat=te,ue.setNumberFormat=Ce,ue.mergeNumberFormat=de,ue[NC]=o,ue[eh]=L,ue[th]=Oe,ue[nh]=be,ue}function J5(e){const t=Ge(e.locale)?e.locale:ka,n=Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Xt(e.missing)?e.missing:void 0,r=St(e.silentTranslationWarn)||Nr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=St(e.silentFallbackWarn)||Nr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=St(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=mt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Xt(e.postTranslation)?e.postTranslation:void 0,d=Ge(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=St(e.sync)?e.sync:!0;let p=e.messages;if(mt(e.sharedMessages)){const y=e.sharedMessages;p=Object.keys(y).reduce((P,k)=>{const T=P[k]||(P[k]={});return Pn(T,y[k]),P},p||{})}const{__i18n:g,__root:m,__injectWithOption:b}=e,w=e.datetimeFormats,C=e.numberFormats,_=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:_,datetimeFormats:w,numberFormats:C,missing:o,missingWarn:r,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:S,__i18n:g,__root:m,__injectWithOption:b}}function rh(e={},t){{const n=Ap(J5(e)),{__extender:o}=e,r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return St(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=St(i)?!i:i},get silentFallbackWarn(){return St(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=St(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[a,s,l]=i,c={};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:tn(s)?u=s:mt(s)&&(d=s),tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[a,s,l]=i,c={plural:1};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:yn(s)?c.plural=s:tn(s)?u=s:mt(s)&&(d=s),Ge(l)?c.locale=l:tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(i,a){return n.te(i,a)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,a){n.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){n.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,a){n.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){n.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,a){n.setNumberFormat(i,a)},mergeNumberFormat(i,a){n.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return r.__extender=o,r}}const $p={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Z5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,r)=>[...o,...r.type===rt?r.children:[r]],[]):t.reduce((n,o)=>{const r=e[o];return r&&(n[o]=r()),n},{})}function UC(e){return rt}const e$=xe({name:"i18n-t",props:Pn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>yn(e)||!isNaN(e)}},$p),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Ge(e.plural)?+e.plural:e.plural);const s=Z5(t,i),l=r[eh](e.keypath,s,a),c=Pn({},o),u=Ge(e.tag)||Nt(e.tag)?e.tag:UC();return v(u,c,l)}}}),Wv=e$;function t$(e){return tn(e)&&!Ge(e[0])}function VC(e,t,n,o){const{slots:r,attrs:i}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),Ge(e.format)?a.key=e.format:Nt(e.format)&&(Ge(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Pn({},f,{[h]:e.format[h]}):f,{}));const l=o(e.value,a,s);let c=[a.key];tn(l)?c=l.map((f,h)=>{const p=r[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return t$(g)&&(g[0].key=`${f.type}-${h}`),g}):Ge(l)&&(c=[l]);const u=Pn({},i),d=Ge(e.tag)||Nt(e.tag)?e.tag:UC();return v(d,u,c)}}const n$=xe({name:"i18n-n",props:Pn({value:{type:Number,required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return VC(e,t,FC,(...o)=>n[nh](...o))}}),qv=n$,o$=xe({name:"i18n-d",props:Pn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return VC(e,t,zC,(...o)=>n[th](...o))}}),Kv=o$;function r$(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function i$(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw kn(Cn.UNEXPECTED_ERROR);const u=r$(e,s.$),d=Gv(c);return[Reflect.apply(u.t,u,[...Xv(d)]),u]};return{created:(a,s)=>{const[l,c]=t(s);wc&&e.global===c&&(a.__i18nWatcher=ft(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{wc&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=Gv(s);a.textContent=Reflect.apply(l.t,l,[...Xv(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function Gv(e){if(Ge(e))return{path:e};if(mt(e)){if(!("path"in e))throw kn(Cn.REQUIRED_VALUE,"path");return e}else throw kn(Cn.INVALID_VALUE)}function Xv(e){const{path:t,locale:n,args:o,choice:r,plural:i}=e,a={},s=o||{};return Ge(n)&&(a.locale=n),yn(r)&&(a.plural=r),yn(i)&&(a.plural=i),[t,s,a]}function a$(e,t,...n){const o=mt(n[0])?n[0]:{},r=!!o.useI18nComponentName;(St(o.globalInstall)?o.globalInstall:!0)&&([r?"i18n":Wv.name,"I18nT"].forEach(a=>e.component(a,Wv)),[qv.name,"I18nN"].forEach(a=>e.component(a,qv)),[Kv.name,"I18nD"].forEach(a=>e.component(a,Kv))),e.directive("t",i$(t))}function s$(e,t,n){return{beforeCreate(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Yv(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=rh(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Yv(e,r);else{this.$i18n=rh({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&jC(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(o),delete this.$i18n}}}function Yv(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[BC](t.pluralizationRules||e.pluralizationRules);const n=gu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const l$=Xr("global-vue-i18n");function c$(e={},t){const n=__VUE_I18N_LEGACY_API__&&St(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=St(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[a,s]=u$(e,n),l=Xr("");function c(f){return i.get(f)||null}function u(f,h){i.set(f,h)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),mt(p[0])){const b=p[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let g=null;!n&&o&&(g=y$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&a$(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(s$(s,s.__composer,f));const m=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),m()}},get global(){return s},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Ip(e={}){const t=no();if(t==null)throw kn(Cn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kn(Cn.NOT_INSTALLED);const n=d$(t),o=h$(n),r=HC(t),i=f$(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kn(Cn.NOT_AVAILABLE_IN_LEGACY_MODE);return v$(t,i,o,e)}if(i==="global")return jC(o,e,r),o;if(i==="parent"){let l=p$(n,t,e.__useComponent);return l==null&&(l=o),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Pn({},e);"__i18n"in r&&(l.__i18n=r.__i18n),o&&(l.__root=o),s=Ap(l),a.__composerExtend&&(s[oh]=a.__composerExtend(s)),g$(a,t,s),a.__setInstance(t,s)}return s}function u$(e,t,n){const o=Gh();{const r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>rh(e)):o.run(()=>Ap(e));if(r==null)throw kn(Cn.UNEXPECTED_ERROR);return[o,r]}}function d$(e){{const t=Ve(e.isCE?l$:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kn(e.isCE?Cn.NOT_INSTALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return t}}function f$(e,t){return hu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function h$(e){return e.mode==="composition"?e.global:e.global.__composer}function p$(e,t,n=!1){let o=null;const r=t.root;let i=m$(t,n);for(;i!=null;){const a=e;if(e.mode==="composition")o=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(o=s.__composer,n&&o&&!o[NC]&&(o=null))}if(o!=null||r===i)break;i=i.parent}return o}function m$(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function g$(e,t,n){jt(()=>{},t),Oa(()=>{const o=n;e.__deleteInstance(t);const r=o[oh];r&&(r(),delete o[oh])},t)}function v$(e,t,n,o={}){const r=t==="local",i=Ia(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kn(Cn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=St(o.inheritLocale)?o.inheritLocale:!Ge(o.locale),s=U(!r||a?n.locale.value:Ge(o.locale)?o.locale:ka),l=U(!r||a?n.fallbackLocale.value:Ge(o.fallbackLocale)||tn(o.fallbackLocale)||mt(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:s.value),c=U(gu(s.value,o)),u=U(mt(o.datetimeFormats)?o.datetimeFormats:{[s.value]:{}}),d=U(mt(o.numberFormats)?o.numberFormats:{[s.value]:{}}),f=r?n.missingWarn:St(o.missingWarn)||Nr(o.missingWarn)?o.missingWarn:!0,h=r?n.fallbackWarn:St(o.fallbackWarn)||Nr(o.fallbackWarn)?o.fallbackWarn:!0,p=r?n.fallbackRoot:St(o.fallbackRoot)?o.fallbackRoot:!0,g=!!o.fallbackFormat,m=Xt(o.missing)?o.missing:null,b=Xt(o.postTranslation)?o.postTranslation:null,w=r?n.warnHtmlMessage:St(o.warnHtmlMessage)?o.warnHtmlMessage:!0,C=!!o.escapeParameter,_=r?n.modifiers:mt(o.modifiers)?o.modifiers:{},S=o.pluralRules||r&&n.pluralRules;function y(){return[s.value,l.value,c.value,u.value,d.value]}const x=I({get:()=>i.value?i.value.locale.value:s.value,set:A=>{i.value&&(i.value.locale.value=A),s.value=A}}),P=I({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:A=>{i.value&&(i.value.fallbackLocale.value=A),l.value=A}}),k=I(()=>i.value?i.value.messages.value:c.value),T=I(()=>u.value),R=I(()=>d.value);function E(){return i.value?i.value.getPostTranslationHandler():b}function q(A){i.value&&i.value.setPostTranslationHandler(A)}function D(){return i.value?i.value.getMissingHandler():m}function B(A){i.value&&i.value.setMissingHandler(A)}function M(A){return y(),A()}function K(...A){return i.value?M(()=>Reflect.apply(i.value.t,null,[...A])):M(()=>"")}function V(...A){return i.value?Reflect.apply(i.value.rt,null,[...A]):""}function ae(...A){return i.value?M(()=>Reflect.apply(i.value.d,null,[...A])):M(()=>"")}function pe(...A){return i.value?M(()=>Reflect.apply(i.value.n,null,[...A])):M(()=>"")}function Z(A){return i.value?i.value.tm(A):{}}function N(A,re){return i.value?i.value.te(A,re):!1}function O(A){return i.value?i.value.getLocaleMessage(A):{}}function ee(A,re){i.value&&(i.value.setLocaleMessage(A,re),c.value[A]=re)}function G(A,re){i.value&&i.value.mergeLocaleMessage(A,re)}function ne(A){return i.value?i.value.getDateTimeFormat(A):{}}function X(A,re){i.value&&(i.value.setDateTimeFormat(A,re),u.value[A]=re)}function ce(A,re){i.value&&i.value.mergeDateTimeFormat(A,re)}function L(A){return i.value?i.value.getNumberFormat(A):{}}function be(A,re){i.value&&(i.value.setNumberFormat(A,re),d.value[A]=re)}function Oe(A,re){i.value&&i.value.mergeNumberFormat(A,re)}const je={get id(){return i.value?i.value.id:-1},locale:x,fallbackLocale:P,messages:k,datetimeFormats:T,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(A){i.value&&(i.value.inheritLocale=A)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:_},get pluralRules(){return i.value?i.value.pluralRules:S},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(A){i.value&&(i.value.fallbackRoot=A)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(A){i.value&&(i.value.fallbackFormat=A)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(A){i.value&&(i.value.warnHtmlMessage=A)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(A){i.value&&(i.value.escapeParameter=A)},t:K,getPostTranslationHandler:E,setPostTranslationHandler:q,getMissingHandler:D,setMissingHandler:B,rt:V,d:ae,n:pe,tm:Z,te:N,getLocaleMessage:O,setLocaleMessage:ee,mergeLocaleMessage:G,getDateTimeFormat:ne,setDateTimeFormat:X,mergeDateTimeFormat:ce,getNumberFormat:L,setNumberFormat:be,mergeNumberFormat:Oe};function F(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(c.value).forEach(re=>{A.mergeLocaleMessage(re,c.value[re])}),Object.keys(u.value).forEach(re=>{A.mergeDateTimeFormat(re,u.value[re])}),Object.keys(d.value).forEach(re=>{A.mergeNumberFormat(re,d.value[re])}),A.escapeParameter=C,A.fallbackFormat=g,A.fallbackRoot=p,A.fallbackWarn=h,A.missingWarn=f,A.warnHtmlMessage=w}return hn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kn(Cn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,c.value=A.messages.value,u.value=A.datetimeFormats.value,d.value=A.numberFormats.value):r&&F(A)}),je}const b$=["locale","fallbackLocale","availableLocales"],Qv=["t","rt","d","n","tm","te"];function y$(e,t){const n=Object.create(null);return b$.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw kn(Cn.UNEXPECTED_ERROR);const a=cn(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,Qv.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw kn(Cn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,Qv.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}X5();__INTLIFY_JIT_COMPILATION__?Av(U5):Av(j5);O5(p5);M5(kC);if(__INTLIFY_PROD_DEVTOOLS__){const e=sr();e.__INTLIFY__=!0,_5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const WC="locale";function vu(){return il.get(WC)}function qC(e){il.set(WC,e)}const KC=Object.keys(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>zk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>Dk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Hk),void 0)})).map(e=>e.slice(7,-5));function x$(){const e=navigator.language,t="zh-CN",o=KC.includes(e)?e:t;return vu().value||qC(o),o}const mn=c$({locale:vu().value||x$(),fallbackLocale:"en-US",messages:{}});async function C$(){await Promise.all(KC.map(async e=>{const t=await CA(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>zk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>Dk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Hk),void 0)}),`./lang/${e}.json`).then(n=>n.default||n);mn.global.setLocaleMessage(e,t)}))}async function w$(e){e.use(mn),C$()}const ih={"zh-CN":"简体中文","zh-TW":"繁體中文","en-US":"English","fa-IR":"Iran","ja-JP":"日本語","vi-VN":"Tiếng Việt","ko-KR":"한국어"},ah=e=>mn.global.t(e);function Wo(e=void 0,t="YYYY-MM-DD HH:mm:ss"){return e==null?"":(e.toString().length===10&&(e=e*1e3),bA(e).format(t))}function Op(e=void 0,t="YYYY-MM-DD"){return Wo(e,t)}function ua(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":t.toFixed(2)}function sn(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":(t/100).toFixed(2)}function qs(e){navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{window.$message.success(ah("复制成功"))}).catch(t=>{console.error("复制到剪贴板时出错:",t),Jv(e)}):Jv(e)}function Jv(e){const t=document.createElement("button"),n=new xA(t,{text:()=>e});n.on("success",()=>{window.$message.success(ah("复制成功")),n.destroy()}),n.on("error",()=>{window.$message.error(ah("复制失败")),n.destroy()}),t.click()}function _$(e,t){if(e.length!==t.length)return!1;const n=[...e].sort(),o=[...t].sort();return n.every((r,i)=>r===o[i])}function ks(e){const t=e/1024,n=t/1024,o=n/1024,r=o/1024;return r>=1?ua(r)+" TB":o>=1?ua(o)+" GB":n>=1?ua(n)+" MB":ua(t)+" KB"}function S$(e){return typeof e>"u"}function k$(e){return e===null}function Zv(e){return e&&Array.isArray(e)}function P$(e){return k$(e)||S$(e)}function eb(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ps=/^[a-z0-9]+(-[a-z0-9]+)*$/,bu=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:s};return t&&!ac(c)?null:c}const i=r[0],a=i.split("-");if(a.length>1){const s={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!ac(s)?null:s}if(n&&o===""){const s={provider:o,prefix:"",name:i};return t&&!ac(s,n)?null:s}return null},ac=(e,t)=>e?!!((e.provider===""||e.provider.match(Ps))&&(t&&e.prefix===""||e.prefix.match(Ps))&&e.name.match(Ps)):!1,GC=Object.freeze({left:0,top:0,width:16,height:16}),kc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yu=Object.freeze({...GC,...kc}),sh=Object.freeze({...yu,body:"",hidden:!1});function T$(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function tb(e,t){const n=T$(e,t);for(const o in sh)o in kc?o in e&&!(o in n)&&(n[o]=kc[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function E$(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const s=o[a]&&o[a].parent,l=s&&i(s);l&&(r[a]=[s].concat(l))}return r[a]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function R$(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(s){i=tb(o[s]||r[s],i)}return a(t),n.forEach(a),tb(e,i)}function XC(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=E$(e);for(const r in o){const i=o[r];i&&(t(r,R$(e,r,i)),n.push(r))}return n}const A$={provider:"",aliases:{},not_found:{},...GC};function Md(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function YC(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Md(e,A$))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(Ps)||typeof i.body!="string"||!Md(i,sh))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],a=i.parent;if(!r.match(Ps)||typeof a!="string"||!n[a]&&!o[a]||!Md(i,sh))return null}return t}const nb=Object.create(null);function $$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ai(e,t){const n=nb[e]||(nb[e]=Object.create(null));return n[t]||(n[t]=$$(e,t))}function Mp(e,t){return YC(t)?XC(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function I$(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ks=!1;function QC(e){return typeof e=="boolean"&&(Ks=e),Ks}function O$(e){const t=typeof e=="string"?bu(e,!0,Ks):e;if(t){const n=Ai(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function M$(e,t){const n=bu(e,!0,Ks);if(!n)return!1;const o=Ai(n.provider,n.prefix);return I$(o,n.name,t)}function z$(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ks&&!t&&!e.prefix){let r=!1;return YC(e)&&(e.prefix="",XC(e,(i,a)=>{a&&M$(i,a)&&(r=!0)})),r}const n=e.prefix;if(!ac({provider:t,prefix:n,name:"a"}))return!1;const o=Ai(t,n);return!!Mp(o,e)}const JC=Object.freeze({width:null,height:null}),ZC=Object.freeze({...JC,...kc}),F$=/(-?[0-9.]*[0-9]+[0-9.]*)/g,D$=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ob(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(F$);if(o===null||!o.length)return e;const r=[];let i=o.shift(),a=D$.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?r.push(i):r.push(Math.ceil(s*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");a=!a}}function L$(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),i=e.indexOf("",i);if(a===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,o).trim()+e.slice(a+1)}return{defs:n,content:e}}function B$(e,t){return e?""+e+""+t:t}function N$(e,t,n){const o=L$(e);return B$(o.defs,t+o.content+n)}const H$=e=>e==="unset"||e==="undefined"||e==="none";function j$(e,t){const n={...yu,...e},o={...ZC,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(g=>{const m=[],b=g.hFlip,w=g.vFlip;let C=g.rotate;b?w?C+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):w&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let _;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:_=r.height/2+r.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:_=r.width/2+r.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}C%2===1&&(r.left!==r.top&&(_=r.left,r.left=r.top,r.top=_),r.width!==r.height&&(_=r.width,r.width=r.height,r.height=_)),m.length&&(i=N$(i,'',""))});const a=o.width,s=o.height,l=r.width,c=r.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?c:s,u=ob(d,l/c)):(u=a==="auto"?l:a,d=s===null?ob(u,c/l):s==="auto"?c:s);const f={},h=(g,m)=>{H$(m)||(f[g]=m.toString())};h("width",u),h("height",d);const p=[r.left,r.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const U$=/\sid="(\S+)"/g,V$="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let W$=0;function q$(e,t=V$){const n=[];let o;for(;o=U$.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(W$++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const lh=Object.create(null);function K$(e,t){lh[e]=t}function ch(e){return lh[e]||lh[""]}function zp(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Fp=Object.create(null),as=["https://api.simplesvg.com","https://api.unisvg.com"],sc=[];for(;as.length>0;)as.length===1||Math.random()>.5?sc.push(as.shift()):sc.push(as.pop());Fp[""]=zp({resources:["https://api.iconify.design"].concat(sc)});function G$(e,t){const n=zp(t);return n===null?!1:(Fp[e]=n,!0)}function Dp(e){return Fp[e]}const X$=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let rb=X$();function Y$(e,t){const n=Dp(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(a=>{r=Math.max(r,a.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function Q$(e){return e===404}const J$=(e,t,n)=>{const o=[],r=Y$(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=r&&c>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),o.push(a),o};function Z$(e){if(typeof e=="string"){const t=Dp(e);if(t)return t.path}return"/"}const eI=(e,t,n)=>{if(!rb){n("abort",424);return}let o=Z$(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});o+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;rb(e+o).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(Q$(a)?"abort":"next",a)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},tI={prepare:J$,send:eI};function nI(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,a=r.prefix,s=r.name,l=n[i]||(n[i]=Object.create(null)),c=l[a]||(l[a]=Ai(i,a));let u;s in c.icons?u=t.loaded:a===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:i,prefix:a,name:s};u.push(d)}),t}function ew(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function oI(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(e.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||ew([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let rI=0;function iI(e,t,n){const o=rI++,r=ew.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),r}function aI(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?bu(r,t,n):r;i&&o.push(i)}),o}var sI={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lI(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let y=e.resources.slice(0);for(a=[];y.length>1;){const x=Math.floor(Math.random()*y.length);a.push(y[x]),y=y.slice(0,x).concat(y.slice(x+1))}a=a.concat(y)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof o=="function"&&h.push(o);function p(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),p(),f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function m(y,x){x&&(h=[]),typeof y=="function"&&h.push(y)}function b(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}function w(){l="failed",h.forEach(y=>{y(void 0,u)})}function C(){f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function _(y,x,P){const k=x!=="success";switch(f=f.filter(T=>T!==y),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=P,w();return}if(k){u=P,f.length||(a.length?S():w());return}if(p(),C(),!e.random){const T=e.resources.indexOf(y.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(P)})}function S(){if(l!=="pending")return;p();const y=a.shift();if(y===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(C(),w())},e.timeout);return}w();return}const x={status:"pending",resource:y,callback:(P,k)=>{_(x,P,k)}};f.push(x),c++,d=setTimeout(S,e.rotate),n(y,t,x.callback)}return setTimeout(S),b}function tw(e){const t={...sI,...e};let n=[];function o(){n=n.filter(s=>s().status==="pending")}function r(s,l,c){const u=lI(t,s,l,(d,f)=>{o(),c&&c(d,f)});return n.push(u),u}function i(s){return n.find(l=>s(l))||null}return{query:r,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:o}}function ib(){}const zd=Object.create(null);function cI(e){if(!zd[e]){const t=Dp(e);if(!t)return;const n=tw(t),o={config:t,redundancy:n};zd[e]=o}return zd[e]}function uI(e,t,n){let o,r;if(typeof e=="string"){const i=ch(e);if(!i)return n(void 0,424),ib;r=i.send;const a=cI(e);a&&(o=a.redundancy)}else{const i=zp(e);if(i){o=tw(i);const a=e.resources?e.resources[0]:"",s=ch(a);s&&(r=s.send)}}return!o||!r?(n(void 0,424),ib):o.query(t,r,n)().abort}const ab="iconify2",Gs="iconify",nw=Gs+"-count",sb=Gs+"-version",ow=36e5,dI=168,fI=50;function uh(e,t){try{return e.getItem(t)}catch{}}function Lp(e,t,n){try{return e.setItem(t,n),!0}catch{}}function lb(e,t){try{e.removeItem(t)}catch{}}function dh(e,t){return Lp(e,nw,t.toString())}function fh(e){return parseInt(uh(e,nw))||0}const xu={local:!0,session:!0},rw={local:new Set,session:new Set};let Bp=!1;function hI(e){Bp=e}let Rl=typeof window>"u"?{}:window;function iw(e){const t=e+"Storage";try{if(Rl&&Rl[t]&&typeof Rl[t].length=="number")return Rl[t]}catch{}xu[e]=!1}function aw(e,t){const n=iw(e);if(!n)return;const o=uh(n,sb);if(o!==ab){if(o){const s=fh(n);for(let l=0;l{const l=Gs+s.toString(),c=uh(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}lb(n,l)}};let a=fh(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,dh(n,a)):rw[e].add(s))}function sw(){if(!Bp){hI(!0);for(const e in xu)aw(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=Ai(o,r);if(!Mp(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function pI(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in xu)aw(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mI(e,t){Bp||sw();function n(o){let r;if(!xu[o]||!(r=iw(o)))return;const i=rw[o];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=fh(r),a>=fI||!dh(r,a+1))return;const s={cached:Math.floor(Date.now()/ow),provider:e.provider,data:t};return Lp(r,Gs+a.toString(),JSON.stringify(s))}t.lastModified&&!pI(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function cb(){}function gI(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,oI(e)}))}function vI(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=ch(n)))return;i.prepare(n,o,r).forEach(s=>{uI(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Mp(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),mI(e,l)}catch(c){console.error(c)}gI(e)})})}))}const bI=(e,t)=>{const n=aI(e,!0,QC()),o=nI(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,cb)}),()=>{l=!1}}const r=Object.create(null),i=[];let a,s;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,i.push(Ai(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=Ai(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),r[c][u].push(d))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&vI(l,r[c][u])}),t?iI(t,o,i):cb};function yI(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in JC?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const xI=/[\s,]+/;function CI(e,t){t.split(xI).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wI(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function _I(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function SI(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function kI(e){return"data:image/svg+xml,"+SI(e)}function PI(e){return'url("'+kI(e)+'")'}const ub={...ZC,inline:!1},TI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},EI={display:"inline-block"},hh={backgroundColor:"currentColor"},lw={backgroundColor:"transparent"},db={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},fb={webkitMask:hh,mask:hh,background:lw};for(const e in fb){const t=fb[e];for(const n in db)t[e+n]=db[n]}const lc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";lc[e+"-flip"]=t,lc[e.slice(0,1)+"-flip"]=t,lc[e+"Flip"]=t});function hb(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const pb=(e,t)=>{const n=yI(ub,t),o={...TI},r=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const m=t[g];if(m!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[g]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&CI(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[g]=wI(m):typeof m=="number"&&(n[g]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete o["aria-hidden"];break;default:{const b=lc[g];b?(m===!0||m==="true"||m===1)&&(n[b]=!0):ub[g]===void 0&&(o[g]=m)}}}const l=j$(e,n),c=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...s},Object.assign(o,c);let g=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),o.innerHTML=q$(l.body,m?()=>m+"ID"+g++:"iconifyVue"),v("svg",o)}const{body:u,width:d,height:f}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),p=_I(u,{...c,width:d+"",height:f+""});return o.style={...i,"--svg":PI(p),width:hb(c.width),height:hb(c.height),...EI,...h?hh:lw,...s},v("span",o)};QC(!0);K$("",tI);if(typeof document<"u"&&typeof window<"u"){sw();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!z$(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;G$(n,r)||console.error(o)}catch{console.error(o)}}}}const RI={...yu,body:""},AI=xe({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=bu(e,!1,!0))===null)return this.abortLoading(),null;const o=O$(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:bI([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return pb(RI,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),pb({...yu,...t.data},n)}});let Pc=[];const cw=new WeakMap;function $I(){Pc.forEach(e=>e(...cw.get(e))),Pc=[]}function Tc(e,...t){cw.set(e,t),!Pc.includes(e)&&Pc.push(e)===1&&requestAnimationFrame($I)}function II(e){return e.nodeType===9?null:e.parentNode}function uw(e){if(e===null)return null;const t=II(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return uw(t)}function OI(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function lo(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $i(e){return e.composedPath()[0]||null}function bn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function zn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function co(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function MI(e,t){const[n,o]=e.split(" ");return t?t==="row"?n:o:{row:n,col:o||n}}const mb={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Ba="^\\s*",Na="\\s*$",gi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",vi="([0-9A-Fa-f])",bi="([0-9A-Fa-f]{2})",zI=new RegExp(`${Ba}rgb\\s*\\(${gi},${gi},${gi}\\)${Na}`),FI=new RegExp(`${Ba}rgba\\s*\\(${gi},${gi},${gi},${gi}\\)${Na}`),DI=new RegExp(`${Ba}#${vi}${vi}${vi}${Na}`),LI=new RegExp(`${Ba}#${bi}${bi}${bi}${Na}`),BI=new RegExp(`${Ba}#${vi}${vi}${vi}${vi}${Na}`),NI=new RegExp(`${Ba}#${bi}${bi}${bi}${bi}${Na}`);function Nn(e){return parseInt(e,16)}function qo(e){try{let t;if(t=LI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),1];if(t=zI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),1];if(t=FI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),Ts(t[13])];if(t=DI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),1];if(t=NI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),Ts(Nn(t[4])/255)];if(t=BI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),Ts(Nn(t[4]+t[4])/255)];if(e in mb)return qo(mb[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function HI(e){return e>1?1:e<0?0:e}function ph(e,t,n,o){return`rgba(${Rn(e)}, ${Rn(t)}, ${Rn(n)}, ${HI(o)})`}function Fd(e,t,n,o,r){return Rn((e*t*(1-o)+n*o)/r)}function Ke(e,t){Array.isArray(e)||(e=qo(e)),Array.isArray(t)||(t=qo(t));const n=e[3],o=t[3],r=Ts(n+o-n*o);return ph(Fd(e[0],n,t[0],o,r),Fd(e[1],n,t[1],o,r),Fd(e[2],n,t[2],o,r),r)}function Ie(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e);return t.alpha?ph(n,o,r,t.alpha):ph(n,o,r,i)}function un(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e),{lightness:a=1,alpha:s=1}=t;return jI([n*a,o*a,r*a,i*s])}function Ts(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function jI(e){const[t,n,o]=e;return 3 in e?`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, ${Ts(e[3])})`:`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, 1)`}function Qr(e=8){return Math.random().toString(16).slice(2,2+e)}function dw(e,t){const n=[];for(let o=0;o{o[r]=e[r]}),Object.assign(o,n)}function Ha(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function Ta(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(nt(String(o)));return}if(Array.isArray(o)){Ta(o,t,n);return}if(o.type===rt){if(o.children===null)return;Array.isArray(o.children)&&Ta(o.children,t,n)}else{if(o.type===_n&&t)return;n.push(o)}}}),n}function Re(e,...t){if(Array.isArray(e))e.forEach(n=>Re(n,...t));else return e(...t)}function Jr(e){return Object.keys(e)}function Vt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?nt(e):typeof e=="number"?nt(String(e)):null}function cr(e,t){console.error(`[naive/${e}]: ${t}`)}function hr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function gb(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function vb(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function mh(e,t="default",n=void 0){const o=e[t];if(!o)return cr("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ta(o(n));return r.length===1?r[0]:(cr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function hw(e){return t=>{t?e.value=t.$el:e.value=null}}function So(e){return e.some(t=>Ns(t)?!(t.type===_n||t.type===rt&&!So(t.children)):!0)?e:null}function $n(e,t){return e&&So(e())||t()}function gh(e,t,n){return e&&So(e(t))||n(t)}function At(e,t){const n=e&&So(e());return t(n||null)}function pa(e){return!(e&&So(e()))}function Es(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}const vh=xe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),VI=/^(\d|\.)+$/,bb=/(\d|\.)+/;function qt(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(VI.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=bb.exec(e);return r?e.replace(bb,String((Number(r[0])+n)*t)):e}return e}function Ec(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function WI(e){const{left:t,right:n,top:o,bottom:r}=co(e);return`${o} ${n} ${r} ${t}`}function qI(e){let t=0;for(let n=0;n{let r=qI(o);if(r){if(r===1){e.forEach(a=>{n.push(o.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+o)});return}let i=[o];for(;r--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function XI(e,t){const n=[];return t.split(pw).forEach(o=>{e.forEach(r=>{n.push((r&&r+" ")+o)})}),n}function YI(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=GI(t,n):t=XI(t,n))}),t.join(", ").replace(KI," ")}function yb(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Cu(e){return document.querySelector(`style[cssr-id="${e}"]`)}function QI(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Al(e){return e?/^\s*@(s|m)/.test(e):!1}const JI=/[A-Z]/g;function mw(e){return e.replace(JI,t=>"-"+t.toLowerCase())}function ZI(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(n=>t+` ${mw(n[0])}: ${n[1]};`).join(` `)+` -`+t+"}":`: ${e};`}function W6(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function vb(e,t,n,o){if(!t)return"";const r=W6(t,n,o);if(!r)return"";if(typeof r=="string")return`${e} { +`+t+"}":`: ${e};`}function e8(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xb(e,t,n,o){if(!t)return"";const r=e8(t,n,o);if(!r)return"";if(typeof r=="string")return`${e} { ${r} }`;const i=Object.keys(r);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const s=e?[e+" {"]:[];return i.forEach(a=>{const l=r[a];if(a==="raw"){s.push(` +}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=r[s];if(s==="raw"){a.push(` `+l+` -`);return}a=hw(a),l!=null&&s.push(` ${a}${V6(l)}`)}),e&&s.push("}"),s.join(` -`)}function ph(e,t,n){e&&e.forEach(o=>{if(Array.isArray(o))ph(o,t,n);else if(typeof o=="function"){const r=o(t);Array.isArray(r)?ph(r,t,n):r&&n(r)}else o&&n(o)})}function pw(e,t,n,o,r){const i=e.$;let s="";if(!i||typeof i=="string")Al(i)?s=i:t.push(i);else if(typeof i=="function"){const c=i({context:o.context,props:r});Al(c)?s=c:t.push(c)}else if(i.before&&i.before(o.context),!i.$||typeof i.$=="string")Al(i.$)?s=i.$:t.push(i.$);else if(i.$){const c=i.$({context:o.context,props:r});Al(c)?s=c:t.push(c)}const a=N6(t),l=vb(a,e.props,o,r);s?n.push(`${s} {`):l.length&&n.push(l),e.children&&ph(e.children,{context:o.context,props:r},c=>{if(typeof c=="string"){const u=vb(a,{raw:c},o,r);n.push(u)}else pw(c,t,n,o,r)}),t.pop(),s&&n.push("}"),i&&i.after&&i.after(o.context)}function U6(e,t,n){const o=[];return pw(e,[],o,t,n),o.join(` +`);return}s=mw(s),l!=null&&a.push(` ${s}${ZI(l)}`)}),e&&a.push("}"),a.join(` +`)}function bh(e,t,n){e&&e.forEach(o=>{if(Array.isArray(o))bh(o,t,n);else if(typeof o=="function"){const r=o(t);Array.isArray(r)?bh(r,t,n):r&&n(r)}else o&&n(o)})}function gw(e,t,n,o,r,i){const a=e.$;let s="";if(!a||typeof a=="string")Al(a)?s=a:t.push(a);else if(typeof a=="function"){const u=a({context:o.context,props:r});Al(u)?s=u:t.push(u)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")Al(a.$)?s=a.$:t.push(a.$);else if(a.$){const u=a.$({context:o.context,props:r});Al(u)?s=u:t.push(u)}const l=YI(t),c=xb(l,e.props,o,r);s?(n.push(`${s} {`),i&&c&&i.insertRule(`${s} { +${c} +} +`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&bh(e.children,{context:o.context,props:r},u=>{if(typeof u=="string"){const d=xb(l,{raw:u},o,r);i?i.insertRule(d):n.push(d)}else gw(u,t,n,o,r,i)}),t.pop(),s&&n.push("}"),a&&a.after&&a.after(o.context)}function vw(e,t,n,o=!1){const r=[];return gw(e,[],r,t,n,o?e.instance.__styleSheet:void 0),o?"":r.join(` -`)}function Ja(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function q6(e,t,n,o){const{els:r}=t;if(n===void 0)r.forEach(gb),t.els=[];else{const i=_u(n,o);i&&r.includes(i)&&(gb(i),t.els=r.filter(s=>s!==i))}}function bb(e,t){e.push(t)}function K6(e,t,n,o,r,i,s,a,l){let c;if(n===void 0&&(c=t.render(o),n=Ja(c)),l){l.adapter(n,c??t.render(o));return}a===void 0&&(a=document.head);const u=_u(n,a);if(u!==null&&!i)return u;const d=u??H6(n);if(c===void 0&&(c=t.render(o)),d.textContent=c,u!==null)return u;if(s){const f=a.querySelector(`meta[name="${s}"]`);if(f)return a.insertBefore(d,f),bb(t.els,d),d}return r?a.insertBefore(d,a.querySelector("style, link")):a.appendChild(d),bb(t.els,d),d}function G6(e){return U6(this,this.instance,e)}function Y6(e={}){const{id:t,ssr:n,props:o,head:r=!1,force:i=!1,anchorMetaName:s,parent:a}=e;return K6(this.instance,this,t,o,r,i,s,a,n)}function X6(e={}){const{id:t,parent:n}=e;q6(this.instance,this,t,n)}const Il=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:G6,mount:Y6,unmount:X6}},Z6=function(e,t,n,o){return Array.isArray(t)?Il(e,{$:null},null,t):Array.isArray(n)?Il(e,t,null,n):Array.isArray(o)?Il(e,t,n,o):Il(e,t,n,null)};function mw(e={}){const t={c:(...n)=>Z6(t,...n),use:(n,...o)=>n.install(t,...o),find:_u,context:{},config:e};return t}function J6(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return _u(e)!==null}const Q6="n",Qa=`.${Q6}-`,e8="__",t8="--",gw=mw(),vw=z6({blockPrefix:Qa,elementPrefix:e8,modifierPrefix:t8});gw.use(vw);const{c:G,find:vNe}=gw,{cB:L,cE:V,cM:Z,cNotM:$t}=vw;function ll(e){return G(({props:{bPrefix:t}})=>`${t||Qa}modal, ${t||Qa}drawer`,[e])}function Su(e){return G(({props:{bPrefix:t}})=>`${t||Qa}popover`,[e])}function bw(e){return G(({props:{bPrefix:t}})=>`&${t||Qa}modal`,e)}const n8=(...e)=>G(">",[L(...e)]);function Re(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let Rc=[];const yw=new WeakMap;function o8(){Rc.forEach(e=>e(...yw.get(e))),Rc=[]}function Ec(e,...t){yw.set(e,t),!Rc.includes(e)&&Rc.push(e)===1&&requestAnimationFrame(o8)}function r8(e){return e.nodeType===9?null:e.parentNode}function xw(e){if(e===null)return null;const t=r8(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return xw(t)}function i8(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function fo(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Ai(e){return e.composedPath()[0]||null}function Cn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function an(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function zn(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function s8(e,t){const[n,o]=e.split(" ");return t?t==="row"?n:o:{row:n,col:o||n}}const yb={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Ns="^\\s*",Hs="\\s*$",gi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",vi="([0-9A-Fa-f])",bi="([0-9A-Fa-f]{2})",a8=new RegExp(`${Ns}rgb\\s*\\(${gi},${gi},${gi}\\)${Hs}`),l8=new RegExp(`${Ns}rgba\\s*\\(${gi},${gi},${gi},${gi}\\)${Hs}`),c8=new RegExp(`${Ns}#${vi}${vi}${vi}${Hs}`),u8=new RegExp(`${Ns}#${bi}${bi}${bi}${Hs}`),d8=new RegExp(`${Ns}#${vi}${vi}${vi}${vi}${Hs}`),f8=new RegExp(`${Ns}#${bi}${bi}${bi}${bi}${Hs}`);function jn(e){return parseInt(e,16)}function qo(e){try{let t;if(t=u8.exec(e))return[jn(t[1]),jn(t[2]),jn(t[3]),1];if(t=a8.exec(e))return[Mn(t[1]),Mn(t[5]),Mn(t[9]),1];if(t=l8.exec(e))return[Mn(t[1]),Mn(t[5]),Mn(t[9]),$a(t[13])];if(t=c8.exec(e))return[jn(t[1]+t[1]),jn(t[2]+t[2]),jn(t[3]+t[3]),1];if(t=f8.exec(e))return[jn(t[1]),jn(t[2]),jn(t[3]),$a(jn(t[4])/255)];if(t=d8.exec(e))return[jn(t[1]+t[1]),jn(t[2]+t[2]),jn(t[3]+t[3]),$a(jn(t[4]+t[4])/255)];if(e in yb)return qo(yb[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function h8(e){return e>1?1:e<0?0:e}function mh(e,t,n,o){return`rgba(${Mn(e)}, ${Mn(t)}, ${Mn(n)}, ${h8(o)})`}function Dd(e,t,n,o,r){return Mn((e*t*(1-o)+n*o)/r)}function Ye(e,t){Array.isArray(e)||(e=qo(e)),Array.isArray(t)||(t=qo(t));const n=e[3],o=t[3],r=$a(n+o-n*o);return mh(Dd(e[0],n,t[0],o,r),Dd(e[1],n,t[1],o,r),Dd(e[2],n,t[2],o,r),r)}function Ae(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e);return t.alpha?mh(n,o,r,t.alpha):mh(n,o,r,i)}function fn(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e),{lightness:s=1,alpha:a=1}=t;return p8([n*s,o*s,r*s,i*a])}function $a(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Mn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function p8(e){const[t,n,o]=e;return 3 in e?`rgba(${Mn(t)}, ${Mn(n)}, ${Mn(o)}, ${$a(e[3])})`:`rgba(${Mn(t)}, ${Mn(n)}, ${Mn(o)}, 1)`}function Zr(e=8){return Math.random().toString(16).slice(2,2+e)}function Cw(e,t){const n=[];for(let o=0;o{t.contains(dc(r))||n(r)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const r=s=>{o=!t.contains(dc(s))},i=s=>{o&&(t.contains(dc(s))||n(s))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function ww(e,t,n){const o=g8[e];let r=o.get(t);r===void 0&&o.set(t,r=new WeakMap);let i=r.get(n);return i===void 0&&r.set(n,i=v8(e,t,n)),i}function b8(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const r=ww(e,t,n);return Object.keys(r).forEach(i=>{St(i,document,r[i],o)}),!0}return!1}function y8(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const r=ww(e,t,n);return Object.keys(r).forEach(i=>{Tt(i,document,r[i],o)}),!0}return!1}function x8(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function r(y,T,k){const P=y[T];return y[T]=function(){return k.apply(y,arguments),P.apply(y,arguments)},y}function i(y,T){y[T]=Event.prototype[T]}const s=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var y;return(y=s.get(this))!==null&&y!==void 0?y:null}function c(y,T){a!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:T??a.get})}const u={bubble:{},capture:{}},d={};function f(){const y=function(T){const{type:k,eventPhase:P,bubbles:I}=T,R=dc(T);if(P===2)return;const W=P===1?"capture":"bubble";let O=R;const M=[];for(;O===null&&(O=window),M.push(O),O!==window;)O=O.parentNode||null;const z=u.capture[k],K=u.bubble[k];if(r(T,"stopPropagation",n),r(T,"stopImmediatePropagation",o),c(T,l),W==="capture"){if(z===void 0)return;for(let J=M.length-1;J>=0&&!e.has(T);--J){const se=M[J],le=z.get(se);if(le!==void 0){s.set(T,se);for(const F of le){if(t.has(T))break;F(T)}}if(J===0&&!I&&K!==void 0){const F=K.get(se);if(F!==void 0)for(const E of F){if(t.has(T))break;E(T)}}}}else if(W==="bubble"){if(K===void 0)return;for(let J=0;JR(T))};return y.displayName="evtdUnifiedWindowEventHandler",y}const p=f(),m=h();function g(y,T){const k=u[y];return k[T]===void 0&&(k[T]=new Map,window.addEventListener(T,p,y==="capture")),k[T]}function b(y){return d[y]===void 0&&(d[y]=new Set,window.addEventListener(y,m)),d[y]}function w(y,T){let k=y.get(T);return k===void 0&&y.set(T,k=new Set),k}function C(y,T,k,P){const I=u[T][k];if(I!==void 0){const R=I.get(y);if(R!==void 0&&R.has(P))return!0}return!1}function S(y,T){const k=d[y];return!!(k!==void 0&&k.has(T))}function _(y,T,k,P){let I;if(typeof P=="object"&&P.once===!0?I=z=>{x(y,T,I,P),k(z)}:I=k,b8(y,T,I,P))return;const W=P===!0||typeof P=="object"&&P.capture===!0?"capture":"bubble",O=g(W,y),M=w(O,T);if(M.has(I)||M.add(I),T===window){const z=b(y);z.has(I)||z.add(I)}}function x(y,T,k,P){if(y8(y,T,k,P))return;const R=P===!0||typeof P=="object"&&P.capture===!0,W=R?"capture":"bubble",O=g(W,y),M=w(O,T);if(T===window&&!C(T,R?"bubble":"capture",y,k)&&S(y,k)){const K=d[y];K.delete(k),K.size===0&&(window.removeEventListener(y,m),d[y]=void 0)}M.has(k)&&M.delete(k),M.size===0&&O.delete(T),O.size===0&&(window.removeEventListener(y,p,W==="capture"),u[W][y]=void 0)}return{on:_,off:x}}const{on:St,off:Tt}=x8();function C8(e){const t=H(!!e.value);if(t.value)return po(t);const n=dt(e,o=>{o&&(t.value=!0,n())});return po(t)}function Ct(e){const t=D(e),n=H(t.value);return dt(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function Bp(){return io()!==null}const Np=typeof window<"u";let bs,Aa;const w8=()=>{var e,t;bs=Np?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Aa=!1,bs!==void 0?bs.then(()=>{Aa=!0}):Aa=!0};w8();function _8(e){if(Aa)return;let t=!1;Wt(()=>{Aa||bs==null||bs.then(()=>{t||e()})}),rn(()=>{t=!0})}const ma=H(null);function xb(e){if(e.clientX>0||e.clientY>0)ma.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:r,height:i}=t.getBoundingClientRect();n>0||o>0?ma.value={x:n+r/2,y:o+i/2}:ma.value={x:0,y:0}}else ma.value=null}}let Ml=0,Cb=!0;function Hp(){if(!Np)return po(H(null));Ml===0&&St("click",document,xb,!0);const e=()=>{Ml+=1};return Cb&&(Cb=Bp())?(mn(e),rn(()=>{Ml-=1,Ml===0&&Tt("click",document,xb,!0)})):e(),po(ma)}const S8=H(void 0);let Ol=0;function wb(){S8.value=Date.now()}let _b=!0;function jp(e){if(!Np)return po(H(!1));const t=H(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function r(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Ol===0&&St("click",window,wb,!0);const i=()=>{Ol+=1,St("click",window,r,!0)};return _b&&(_b=Bp())?(mn(i),rn(()=>{Ol-=1,Ol===0&&Tt("click",window,wb,!0),Tt("click",window,r,!0),o()})):i(),po(t)}function ln(e,t){return dt(e,n=>{n!==void 0&&(t.value=n)}),D(()=>e.value===void 0?t.value:e.value)}function Jr(){const e=H(!1);return Wt(()=>{e.value=!0}),po(e)}function ku(e,t){return D(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const k8=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function P8(){return k8}function T8(e={},t){const n=ro({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:r}=e,i=l=>{switch(l.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==l.key)return;const u=o[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:f=!1}=u;d&&l.stopPropagation(),f&&l.preventDefault(),u.handler(l)}})},s=l=>{switch(l.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==l.key)return;const u=r[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:f=!1}=u;d&&l.stopPropagation(),f&&l.preventDefault(),u.handler(l)}})},a=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,s)),t!==void 0&&dt(t,l=>{l?(St("keydown",document,i),St("keyup",document,s)):(Tt("keydown",document,i),Tt("keyup",document,s))})};return Bp()?(mn(a),rn(()=>{(t===void 0||t.value)&&(Tt("keydown",document,i),Tt("keyup",document,s))})):a(),po(n)}const Vp="n-internal-select-menu",_w="n-internal-select-menu-body",cl="n-drawer-body",Wp="n-drawer",ul="n-modal-body",R8="n-modal-provider",Sw="n-modal",js="n-popover-body",kw="__disabled__";function Ko(e){const t=We(ul,null),n=We(cl,null),o=We(js,null),r=We(_w,null),i=H();if(typeof document<"u"){i.value=document.fullscreenElement;const s=()=>{i.value=document.fullscreenElement};Wt(()=>{St("fullscreenchange",document,s)}),rn(()=>{Tt("fullscreenchange",document,s)})}return Ct(()=>{var s;const{to:a}=e;return a!==void 0?a===!1?kw:a===!0?i.value||"body":a:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:a??(i.value||"body")})}Ko.tdkey=kw;Ko.propTo={type:[String,Object,Boolean],default:void 0};function E8(e,t,n){if(!t)return e;const o=H(e.value);let r=null;return dt(e,i=>{r!==null&&window.clearTimeout(r),i===!0?n&&!n.value?o.value=!0:r=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}const fr=typeof document<"u"&&typeof window<"u";let Sb=!1;function $8(){if(fr&&window.CSS&&!Sb&&(Sb=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const Up=H(!1);function kb(){Up.value=!0}function Pb(){Up.value=!1}let ua=0;function Pw(){return fr&&(mn(()=>{ua||(window.addEventListener("compositionstart",kb),window.addEventListener("compositionend",Pb)),ua++}),rn(()=>{ua<=1?(window.removeEventListener("compositionstart",kb),window.removeEventListener("compositionend",Pb),ua=0):ua--})),Up}let os=0,Tb="",Rb="",Eb="",$b="";const gh=H("0px");function Tw(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=Tb,t.style.overflow=Rb,t.style.overflowX=Eb,t.style.overflowY=$b,gh.value="0px"};Wt(()=>{n=dt(e,i=>{if(i){if(!os){const s=window.innerWidth-t.offsetWidth;s>0&&(Tb=t.style.marginRight,t.style.marginRight=`${s}px`,gh.value=`${s}px`),Rb=t.style.overflow,Eb=t.style.overflowX,$b=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,os++}else os--,os||r(),o=!1},{immediate:!0})}),rn(()=>{n==null||n(),o&&(os--,os||r(),o=!1)})}function qp(e){const t={isDeactivated:!1};let n=!1;return sp(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Xc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function vh(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return o()}function bh(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(it(String(o)));return}if(Array.isArray(o)){bh(o,t,n);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&bh(o.children,t,n)}else o.type!==Pn&&n.push(o)}}),n}function Ab(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const r=bh(o());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Pr=null;function Rw(){if(Pr===null&&(Pr=document.getElementById("v-binder-view-measurer"),Pr===null)){Pr=document.createElement("div"),Pr.id="v-binder-view-measurer";const{style:e}=Pr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Pr)}return Pr.getBoundingClientRect()}function A8(e,t){const n=Rw();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Ld(e){const t=e.getBoundingClientRect(),n=Rw();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function I8(e){return e.nodeType===9?null:e.parentNode}function Ew(e){if(e===null)return null;const t=I8(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return Ew(t)}const M8=be({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;at("VBinder",(t=io())===null||t===void 0?void 0:t.proxy);const n=We("VBinder",null),o=H(null),r=b=>{o.value=b,n&&e.syncTargetWithParent&&n.setTargetRef(b)};let i=[];const s=()=>{let b=o.value;for(;b=Ew(b),b!==null;)i.push(b);for(const w of i)St("scroll",w,d,!0)},a=()=>{for(const b of i)Tt("scroll",b,d,!0);i=[]},l=new Set,c=b=>{l.size===0&&s(),l.has(b)||l.add(b)},u=b=>{l.has(b)&&l.delete(b),l.size===0&&a()},d=()=>{Ec(f)},f=()=>{l.forEach(b=>b())},h=new Set,p=b=>{h.size===0&&St("resize",window,g),h.has(b)||h.add(b)},m=b=>{h.has(b)&&h.delete(b),h.size===0&&Tt("resize",window,g)},g=()=>{h.forEach(b=>b())};return rn(()=>{Tt("resize",window,g),a()}),{targetRef:o,setTargetRef:r,addScrollListener:c,removeScrollListener:u,addResizeListener:p,removeResizeListener:m}},render(){return vh("binder",this.$slots)}}),Kp=M8,Gp=be({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=We("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?hn(Ab("follower",this.$slots),[[t]]):Ab("follower",this.$slots)}}),rs="@@mmoContext",O8={mounted(e,{value:t}){e[rs]={handler:void 0},typeof t=="function"&&(e[rs].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[rs];typeof t=="function"?n.handler?n.handler!==t&&(Tt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[rs].handler=t,St("mousemoveoutside",e,t)):n.handler&&(Tt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[rs];t&&Tt("mousemoveoutside",e,t),e[rs].handler=void 0}},z8=O8,is="@@coContext",D8={mounted(e,{value:t,modifiers:n}){e[is]={handler:void 0},typeof t=="function"&&(e[is].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const o=e[is];typeof t=="function"?o.handler?o.handler!==t&&(Tt("clickoutside",e,o.handler,{capture:n.capture}),o.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[is].handler=t,St("clickoutside",e,t,{capture:n.capture})):o.handler&&(Tt("clickoutside",e,o.handler,{capture:n.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[is];n&&Tt("clickoutside",e,n,{capture:t.capture}),e[is].handler=void 0}},$s=D8;function L8(e,t){console.error(`[vdirs/${e}]: ${t}`)}class F8{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:o}=this;if(n!==void 0){t.style.zIndex=`${n}`,o.delete(t);return}const{nextZIndex:r}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,o.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,n){const{elementZIndex:o}=this;o.has(t)?o.delete(t):n===void 0&&L8("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((n,o)=>n[1]-o[1]),this.nextZIndex=2e3,t.forEach(n=>{const o=n[0],r=this.nextZIndex++;`${r}`!==o.style.zIndex&&(o.style.zIndex=`${r}`)})}}const Fd=new F8,ss="@@ziContext",B8={mounted(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n;e[ss]={enabled:!!r,initialized:!1},r&&(Fd.ensureZIndex(e,o),e[ss].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n,i=e[ss].enabled;r&&!i&&(Fd.ensureZIndex(e,o),e[ss].initialized=!0),e[ss].enabled=!!r},unmounted(e,t){if(!e[ss].initialized)return;const{value:n={}}=t,{zIndex:o}=n;Fd.unregister(e,o)}},Pu=B8,N8="@css-render/vue3-ssr";function H8(e,t){return``}function j8(e,t,n){const{styles:o,ids:r}=n;r.has(e)||o!==null&&(r.add(e),o.push(H8(e,t)))}const V8=typeof document<"u";function Bi(){if(V8)return;const e=We(N8,null);if(e!==null)return{adapter:(t,n)=>j8(t,n,e),context:e}}function Ib(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Dr}=mw(),Yp="vueuc-style";function Mb(e){return e&-e}class $w{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=n[t],t-=Mb(t);return i}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),i=this.sum(r);if(i>t){o=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?vh("lazy-teleport",this.$slots):v(tu,{disabled:this.disabled,to:this.mergedTo},vh("lazy-teleport",this.$slots)):null}}),zl={top:"bottom",bottom:"top",left:"right",right:"left"},zb={start:"end",center:"center",end:"start"},Bd={top:"height",bottom:"height",left:"width",right:"width"},W8={"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"},U8={"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"},q8={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Db={top:!0,bottom:!1,left:!0,right:!1},Lb={top:"end",bottom:"start",left:"end",right:"start"};function K8(e,t,n,o,r,i){if(!r||i)return{placement:e,top:0,left:0};const[s,a]=e.split("-");let l=a??"center",c={top:0,left:0};const u=(h,p,m)=>{let g=0,b=0;const w=n[h]-t[p]-t[h];return w>0&&o&&(m?b=Db[p]?w:-w:g=Db[p]?w:-w),{left:g,top:b}},d=s==="left"||s==="right";if(l!=="center"){const h=q8[e],p=zl[h],m=Bd[h];if(n[m]>t[m]){if(t[h]+t[m]t[p]&&(l=zb[a])}else{const h=s==="bottom"||s==="top"?"left":"top",p=zl[h],m=Bd[h],g=(n[m]-t[m])/2;(t[h]t[p]?(l=Lb[h],c=u(m,h,d)):(l=Lb[p],c=u(m,p,d)))}let f=s;return t[s] *",{pointerEvents:"all"})])]),Xp=be({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=We("VBinder"),n=Ct(()=>e.enabled!==void 0?e.enabled:e.show),o=H(null),r=H(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},s=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Wt(()=>{n.value&&(l(),i())});const a=Bi();X8.mount({id:"vueuc/binder",head:!0,anchorMetaName:Yp,ssr:a}),rn(()=>{s()}),_8(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const f=o.value;if(f===null)return;const h=t.targetRef,{x:p,y:m,overlap:g}=e,b=p!==void 0&&m!==void 0?A8(p,m):Ld(h);f.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:w,minWidth:C,placement:S,internalShift:_,flip:x}=e;f.setAttribute("v-placement",S),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:y}=f;w==="target"?y.width=`${b.width}px`:w!==void 0?y.width=w:y.width="",C==="target"?y.minWidth=`${b.width}px`:C!==void 0?y.minWidth=C:y.minWidth="";const T=Ld(f),k=Ld(r.value),{left:P,top:I,placement:R}=K8(S,b,T,_,x,g),W=G8(R,g),{left:O,top:M,transform:z}=Y8(R,k,b,I,P,g);f.setAttribute("v-placement",R),f.style.setProperty("--v-offset-left",`${Math.round(P)}px`),f.style.setProperty("--v-offset-top",`${Math.round(I)}px`),f.style.transform=`translateX(${O}) translateY(${M}) ${z}`,f.style.setProperty("--v-transform-origin",W),f.style.transformOrigin=W};dt(n,f=>{f?(i(),c()):s()});const c=()=>{Vt().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{dt(ze(e,f),l)}),["teleportDisabled"].forEach(f=>{dt(ze(e,f),c)}),dt(ze(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=Jr(),d=Ct(()=>{const{to:f}=e;if(f!==void 0)return f;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:r,followerRef:o,mergedTo:d,syncPosition:l}},render(){return v(Tu,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("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?hn(n,[[Pu,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Si=[],Z8=function(){return Si.some(function(e){return e.activeTargets.length>0})},J8=function(){return Si.some(function(e){return e.skippedTargets.length>0})},Fb="ResizeObserver loop completed with undelivered notifications.",Q8=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Fb}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Fb),window.dispatchEvent(e)},el;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(el||(el={}));var ki=function(e){return Object.freeze(e)},eI=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ki(this)}return e}(),Aw=function(){function e(t,n,o,r){return this.x=t,this.y=n,this.width=o,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ki(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,r=t.top,i=t.right,s=t.bottom,a=t.left,l=t.width,c=t.height;return{x:n,y:o,top:r,right:i,bottom:s,left:a,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Zp=function(e){return e instanceof SVGElement&&"getBBox"in e},Iw=function(e){if(Zp(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var r=e,i=r.offsetWidth,s=r.offsetHeight;return!(i||s||e.getClientRects().length)},Bb=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},tI=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ia=typeof window<"u"?window:{},Dl=new WeakMap,Nb=/auto|scroll/,nI=/^tb|vertical/,oI=/msie|trident/i.test(Ia.navigator&&Ia.navigator.userAgent),Lo=function(e){return parseFloat(e||"0")},ys=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new eI((n?t:e)||0,(n?e:t)||0)},Hb=ki({devicePixelContentBoxSize:ys(),borderBoxSize:ys(),contentBoxSize:ys(),contentRect:new Aw(0,0,0,0)}),Mw=function(e,t){if(t===void 0&&(t=!1),Dl.has(e)&&!t)return Dl.get(e);if(Iw(e))return Dl.set(e,Hb),Hb;var n=getComputedStyle(e),o=Zp(e)&&e.ownerSVGElement&&e.getBBox(),r=!oI&&n.boxSizing==="border-box",i=nI.test(n.writingMode||""),s=!o&&Nb.test(n.overflowY||""),a=!o&&Nb.test(n.overflowX||""),l=o?0:Lo(n.paddingTop),c=o?0:Lo(n.paddingRight),u=o?0:Lo(n.paddingBottom),d=o?0:Lo(n.paddingLeft),f=o?0:Lo(n.borderTopWidth),h=o?0:Lo(n.borderRightWidth),p=o?0:Lo(n.borderBottomWidth),m=o?0:Lo(n.borderLeftWidth),g=d+c,b=l+u,w=m+h,C=f+p,S=a?e.offsetHeight-C-e.clientHeight:0,_=s?e.offsetWidth-w-e.clientWidth:0,x=r?g+w:0,y=r?b+C:0,T=o?o.width:Lo(n.width)-x-_,k=o?o.height:Lo(n.height)-y-S,P=T+g+_+w,I=k+b+S+C,R=ki({devicePixelContentBoxSize:ys(Math.round(T*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:ys(P,I,i),contentBoxSize:ys(T,k,i),contentRect:new Aw(d,l,T,k)});return Dl.set(e,R),R},Ow=function(e,t,n){var o=Mw(e,n),r=o.borderBoxSize,i=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case el.DEVICE_PIXEL_CONTENT_BOX:return s;case el.BORDER_BOX:return r;default:return i}},rI=function(){function e(t){var n=Mw(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ki([n.borderBoxSize]),this.contentBoxSize=ki([n.contentBoxSize]),this.devicePixelContentBoxSize=ki([n.devicePixelContentBoxSize])}return e}(),zw=function(e){if(Iw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},iI=function(){var e=1/0,t=[];Si.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var u=new rI(c.target),d=zw(c.target);a.push(u),c.lastReportedSize=Ow(c.target,c.observedBox),de?n.activeTargets.push(r):n.skippedTargets.push(r))})})},sI=function(){var e=0;for(jb(e);Z8();)e=iI(),jb(e);return J8()&&Q8(),e>0},Nd,Dw=[],aI=function(){return Dw.splice(0).forEach(function(e){return e()})},lI=function(e){if(!Nd){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return aI()}).observe(n,o),Nd=function(){n.textContent="".concat(t?t--:t++)}}Dw.push(e),Nd()},cI=function(e){lI(function(){requestAnimationFrame(e)})},fc=0,uI=function(){return!!fc},dI=250,fI={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Wb=function(e){return e===void 0&&(e=0),Date.now()+e},Hd=!1,hI=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=dI),!Hd){Hd=!0;var o=Wb(t);cI(function(){var r=!1;try{r=sI()}finally{if(Hd=!1,t=o-Wb(),!uI())return;r?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,fI)};document.body?n():Ia.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vb.forEach(function(n){return Ia.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vb.forEach(function(n){return Ia.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),yh=new hI,Ub=function(e){!fc&&e>0&&yh.start(),fc+=e,!fc&&yh.stop()},pI=function(e){return!Zp(e)&&!tI(e)&&getComputedStyle(e).display==="inline"},mI=function(){function e(t,n){this.target=t,this.observedBox=n||el.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ow(this.target,this.observedBox,!0);return pI(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),gI=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ll=new WeakMap,qb=function(e,t){for(var n=0;n=0&&(i&&Si.splice(Si.indexOf(o),1),o.observationTargets.splice(r,1),Ub(-1))},e.disconnect=function(t){var n=this,o=Ll.get(t);o.observationTargets.slice().forEach(function(r){return n.unobserve(t,r.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),vI=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Fl.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Bb(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Fl.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Bb(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Fl.unobserve(this,t)},e.prototype.disconnect=function(){Fl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class bI{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||vI)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ma=new bI,cr=be({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=io().proxy;function o(r){const{onResize:i}=e;i!==void 0&&i(r)}Wt(()=>{const r=n.$el;if(r===void 0){Ib("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){Ib("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Ma.registerHandler(r.nextElementSibling,o),t=!0)}),rn(()=>{t&&Ma.unregisterHandler(n.$el.nextElementSibling)})},render(){return eu(this.$slots,"default")}});let Bl;function yI(){return typeof document>"u"?!1:(Bl===void 0&&("matchMedia"in window?Bl=window.matchMedia("(pointer:coarse)").matches:Bl=!1),Bl)}let jd;function Kb(){return typeof document>"u"?1:(jd===void 0&&(jd="chrome"in window?window.devicePixelRatio:1),jd)}const Lw="VVirtualListXScroll";function xI({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const o=H(0),r=H(0),i=D(()=>{const c=e.value;if(c.length===0)return null;const u=new $w(c.length,0);return c.forEach((d,f)=>{u.add(f,d.width)}),u}),s=Ct(()=>{const c=i.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),a=c=>{const u=i.value;return u!==null?u.sum(c):0},l=Ct(()=>{const c=i.value;return c!==null?Math.min(c.getBound(r.value+o.value)+1,e.value.length-1):0});return at(Lw,{startIndexRef:s,endIndexRef:l,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:a}),{listWidthRef:o,scrollLeftRef:r}}const Gb=be({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:o,renderColRef:r,renderItemWithColsRef:i}=We(Lw);return{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:o}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:r,getLeft:i,item:s}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:s,getLeft:i});if(o!=null){const a=[];for(let l=e;l<=t;++l){const c=n[l];a.push(o({column:c,left:i(l),item:s}))}return a}return null}}),CI=Dr(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Dr("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Dr("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Jp=be({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Bi();CI.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Yp,ssr:t}),Wt(()=>{const{defaultScrollIndex:W,defaultScrollKey:O}=e;W!=null?g({index:W}):O!=null&&g({key:O})});let n=!1,o=!1;sp(()=>{if(n=!1,!o){o=!0;return}g({top:h.value,left:s.value})}),Xc(()=>{n=!0,o||(o=!0)});const r=Ct(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let W=0;return e.columns.forEach(O=>{W+=O.width}),W}),i=D(()=>{const W=new Map,{keyField:O}=e;return e.items.forEach((M,z)=>{W.set(M[O],z)}),W}),{scrollLeftRef:s,listWidthRef:a}=xI({columnsRef:ze(e,"columns"),renderColRef:ze(e,"renderCol"),renderItemWithColsRef:ze(e,"renderItemWithCols")}),l=H(null),c=H(void 0),u=new Map,d=D(()=>{const{items:W,itemSize:O,keyField:M}=e,z=new $w(W.length,O);return W.forEach((K,J)=>{const se=K[M],le=u.get(se);le!==void 0&&z.add(J,le)}),z}),f=H(0),h=H(0),p=Ct(()=>Math.max(d.value.getBound(h.value-Cn(e.paddingTop))-1,0)),m=D(()=>{const{value:W}=c;if(W===void 0)return[];const{items:O,itemSize:M}=e,z=p.value,K=Math.min(z+Math.ceil(W/M+1),O.length-1),J=[];for(let se=z;se<=K;++se)J.push(O[se]);return J}),g=(W,O)=>{if(typeof W=="number"){S(W,O,"auto");return}const{left:M,top:z,index:K,key:J,position:se,behavior:le,debounce:F=!0}=W;if(M!==void 0||z!==void 0)S(M,z,le);else if(K!==void 0)C(K,le,F);else if(J!==void 0){const E=i.value.get(J);E!==void 0&&C(E,le,F)}else se==="bottom"?S(0,Number.MAX_SAFE_INTEGER,le):se==="top"&&S(0,0,le)};let b,w=null;function C(W,O,M){const{value:z}=d,K=z.sum(W)+Cn(e.paddingTop);if(!M)l.value.scrollTo({left:0,top:K,behavior:O});else{b=W,w!==null&&window.clearTimeout(w),w=window.setTimeout(()=>{b=void 0,w=null},16);const{scrollTop:J,offsetHeight:se}=l.value;if(K>J){const le=z.get(W);K+le<=J+se||l.value.scrollTo({left:0,top:K+le-se,behavior:O})}else l.value.scrollTo({left:0,top:K,behavior:O})}}function S(W,O,M){l.value.scrollTo({left:W,top:O,behavior:M})}function _(W,O){var M,z,K;if(n||e.ignoreItemResize||R(O.target))return;const{value:J}=d,se=i.value.get(W),le=J.get(se),F=(K=(z=(M=O.borderBoxSize)===null||M===void 0?void 0:M[0])===null||z===void 0?void 0:z.blockSize)!==null&&K!==void 0?K:O.contentRect.height;if(F===le)return;F-e.itemSize===0?u.delete(W):u.set(W,F-e.itemSize);const A=F-le;if(A===0)return;J.add(se,A);const Y=l.value;if(Y!=null){if(b===void 0){const ne=J.sum(se);Y.scrollTop>ne&&Y.scrollBy(0,A)}else if(seY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,A)}I()}f.value++}const x=!yI();let y=!1;function T(W){var O;(O=e.onScroll)===null||O===void 0||O.call(e,W),(!x||!y)&&I()}function k(W){var O;if((O=e.onWheel)===null||O===void 0||O.call(e,W),x){const M=l.value;if(M!=null){if(W.deltaX===0&&(M.scrollTop===0&&W.deltaY<=0||M.scrollTop+M.offsetHeight>=M.scrollHeight&&W.deltaY>=0))return;W.preventDefault(),M.scrollTop+=W.deltaY/Kb(),M.scrollLeft+=W.deltaX/Kb(),I(),y=!0,Ec(()=>{y=!1})}}}function P(W){if(n||R(W.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(W.contentRect.height===c.value)return}else if(W.contentRect.height===c.value&&W.contentRect.width===a.value)return;c.value=W.contentRect.height,a.value=W.contentRect.width;const{onResize:O}=e;O!==void 0&&O(W)}function I(){const{value:W}=l;W!=null&&(h.value=W.scrollTop,s.value=W.scrollLeft)}function R(W){let O=W;for(;O!==null;){if(O.style.display==="none")return!0;O=O.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:D(()=>{const{itemResizable:W}=e,O=an(d.value.sum());return f.value,[e.itemsStyle,{boxSizing:"content-box",width:an(r.value),height:W?"":O,minHeight:W?O:"",paddingTop:an(e.paddingTop),paddingBottom:an(e.paddingBottom)}]}),visibleItemsStyle:D(()=>(f.value,{transform:`translateY(${an(d.value.sum(p.value))})`})),viewportItems:m,listElRef:l,itemsElRef:H(null),scrollTo:g,handleListResize:P,handleListScroll:T,handleListWheel:k,handleItemResize:_}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return v(cr,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",Ln(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:s,renderItemWithCols:a}=this;return this.viewportItems.map(l=>{const c=l[t],u=n.get(c),d=s!=null?v(Gb,{index:u,item:l}):void 0,f=a!=null?v(Gb,{index:u,item:l}):void 0,h=this.$slots.default({item:l,renderedCols:d,renderedItemWithCols:f,index:u})[0];return e?v(cr,{key:c,onResize:p=>this.handleItemResize(c,p)},{default:()=>h}):(h.key=c,h)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),or="v-hidden",wI=Dr("[v-hidden]",{display:"none!important"}),xh=be({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=H(null),o=H(null);function r(s){const{value:a}=n,{getCounter:l,getTail:c}=e;let u;if(l!==void 0?u=l():u=o.value,!a||!u)return;u.hasAttribute(or)&&u.removeAttribute(or);const{children:d}=a;if(s.showAllItemsBeforeCalculate)for(const C of d)C.hasAttribute(or)&&C.removeAttribute(or);const f=a.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let m=p?p.offsetWidth:0,g=!1;const b=a.children.length-(t.tail?1:0);for(let C=0;Cf){const{updateCounter:x}=e;for(let y=C;y>=0;--y){const T=b-1-y;x!==void 0?x(T):u.textContent=`${T}`;const k=u.offsetWidth;if(m-=h[y],m+k<=f||y===0){g=!0,C=y-1,p&&(C===-1?(p.style.maxWidth=`${f-k}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:P}=e;P&&P(T);break}}}}const{onUpdateOverflow:w}=e;g?w!==void 0&&w(!0):(w!==void 0&&w(!1),u.setAttribute(or,""))}const i=Bi();return wI.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Yp,ssr:i}),Wt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Vt(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[eu(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Fw(e){return e instanceof HTMLElement}function Bw(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Fw(n)&&(Hw(n)||Nw(n)))return!0}return!1}function Hw(e){if(!_I(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function _I(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 da=[];const Qp=be({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=Zr(),n=H(null),o=H(null);let r=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function a(){return da[da.length-1]===t}function l(g){var b;g.code==="Escape"&&a()&&((b=e.onEsc)===null||b===void 0||b.call(e,g))}Wt(()=>{dt(()=>e.active,g=>{g?(d(),St("keydown",document,l)):(Tt("keydown",document,l),r&&f())},{immediate:!0})}),rn(()=>{Tt("keydown",document,l),r&&f()});function c(g){if(!i&&a()){const b=u();if(b===null||b.contains(Ai(g)))return;h("first")}}function u(){const g=n.value;if(g===null)return null;let b=g;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function d(){var g;if(!e.disabled){if(da.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?h("first"):(g=Ob(b))===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),da=da.filter(w=>w!==t),a()))return;const{finalFocusTo:b}=e;b!==void 0?(g=Ob(b))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function h(g){if(a()&&e.active){const b=n.value,w=o.value;if(b!==null&&w!==null){const C=u();if(C==null||C===w){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const S=g==="first"?Bw(C):Nw(C);i=!1,S||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(g){if(i)return;const b=u();b!==null&&(g.relatedTarget!==null&&b.contains(g.relatedTarget)?h("last"):h("first"))}function m(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:m}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return v(st,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function jw(e,t){t&&(Wt(()=>{const{value:n}=e;n&&Ma.registerHandler(n,t)}),dt(e,(n,o)=>{o&&Ma.unregisterHandler(o)},{deep:!1}),rn(()=>{const{value:n}=e;n&&Ma.unregisterHandler(n)}))}function $c(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const SI=/^(\d|\.)+$/,Yb=/(\d|\.)+/;function qt(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(SI.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=Yb.exec(e);return r?e.replace(Yb,String((Number(r[0])+n)*t)):e}return e}function Xb(e){const{left:t,right:n,top:o,bottom:r}=zn(e);return`${o} ${t} ${r} ${n}`}function kI(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Zb(e){return e.nodeName==="#document"}let Vd;function PI(){return Vd===void 0&&(Vd=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Vd}const Vw=new WeakSet;function TI(e){Vw.add(e)}function Ww(e){return!Vw.has(e)}function Jb(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Qb(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function Go(e,t){console.error(`[naive/${e}]: ${t}`)}function hr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function $e(e,...t){if(Array.isArray(e))e.forEach(n=>$e(n,...t));else return e(...t)}function Uw(e){return t=>{t?e.value=t.$el:e.value=null}}function Ii(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(it(String(o)));return}if(Array.isArray(o)){Ii(o,t,n);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&Ii(o.children,t,n)}else{if(o.type===Pn&&t)return;n.push(o)}}}),n}function RI(e,t="default",n=void 0){const o=e[t];if(!o)return Go("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ii(o(n));return r.length===1?r[0]:(Go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function EI(e,t,n){if(!t)return null;const o=Ii(t(n));return o.length===1?o[0]:(Go("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function qw(e,t="default",n=[]){const r=e.$slots[t];return r===void 0?n:r()}function oo(e,t=[],n){const o={};return t.forEach(r=>{o[r]=e[r]}),Object.assign(o,n)}function Qr(e){return Object.keys(e)}function Oa(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}function Vs(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function Kt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?it(e):typeof e=="number"?it(String(e)):null}function ko(e){return e.some(t=>Wa(t)?!(t.type===Pn||t.type===st&&!ko(t.children)):!0)?e:null}function Dn(e,t){return e&&ko(e())||t()}function Ch(e,t,n){return e&&ko(e(t))||n(t)}function Mt(e,t){const n=e&&ko(e());return t(n||null)}function xs(e){return!(e&&ko(e()))}const wh=be({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),go="n-config-provider",Ac="n";function lt(e={},t={defaultBordered:!0}){const n=We(go,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:D(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:Os(Ac),namespaceRef:D(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Kw(){const e=We(go,null);return e?e.mergedClsPrefixRef:Os(Ac)}function Rt(e,t,n,o){n||hr("useThemeClass","cssVarsRef is not passed");const r=We(go,null),i=r==null?void 0:r.mergedThemeHashRef,s=r==null?void 0:r.styleMountTarget,a=H(""),l=Bi();let c;const u=`__${e}`,d=()=>{let f=u;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+=`-${p}`),h&&(f+=`-${h}`);const{themeOverrides:m,builtinThemeOverrides:g}=o;m&&(f+=`-${Ja(JSON.stringify(m))}`),g&&(f+=`-${Ja(JSON.stringify(g))}`),a.value=f,c=()=>{const b=n.value;let w="";for(const C in b)w+=`${C}: ${b[C]};`;G(`.${f}`,w).mount({id:f,ssr:l,parent:s}),c=void 0}};return Jt(()=>{d()}),{themeClass:a,onRender:()=>{c==null||c()}}}const e0="n-form-item";function pr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=We(e0,null);at(e0,null);const i=D(n?()=>n(r):()=>{const{size:l}=e;if(l)return l;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),s=D(o?()=>o(r):()=>{const{disabled:l}=e;return l!==void 0?l:r?r.disabled.value:!1}),a=D(()=>{const{status:l}=e;return l||(r==null?void 0:r.mergedValidationStatus.value)});return rn(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:a,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const $I={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Gw=$I,AI={name:"fa-IR",global:{undo:"لغو انجام شده",redo:"انجام دوباره",confirm:"تأیید",clear:"پاک کردن"},Popconfirm:{positiveText:"تأیید",negativeText:"لغو"},Cascader:{placeholder:"لطفا انتخاب کنید",loading:"بارگذاری",loadingRequiredMessage:e=>`پس از بارگیری کامل زیرمجموعه های ${e} می توانید انتخاب کنید `},Time:{dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd، H:mm:ss"},DatePicker:{yearFormat:"yyyy سال",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM/yyyy",dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd HH:mm:ss",quarterFormat:"سه ماهه yyyy",weekFormat:"YYYY-w",clear:"پاک کردن",now:"اکنون",confirm:"تأیید",selectTime:"انتخاب زمان",selectDate:"انتخاب تاریخ",datePlaceholder:"انتخاب تاریخ",datetimePlaceholder:"انتخاب تاریخ و زمان",monthPlaceholder:"انتخاب ماه",yearPlaceholder:"انتخاب سال",quarterPlaceholder:"انتخاب سه‌ماهه",weekPlaceholder:"Select Week",startDatePlaceholder:"تاریخ شروع",endDatePlaceholder:"تاریخ پایان",startDatetimePlaceholder:"زمان شروع",endDatetimePlaceholder:"زمان پایان",startMonthPlaceholder:"ماه شروع",endMonthPlaceholder:"ماه پایان",monthBeforeYear:!1,firstDayOfWeek:6,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:"اندازه اصلی تصویر"}},II=AI,MI={name:"ja-JP",global:{undo:"元に戻す",redo:"やり直す",confirm:"OK",clear:"クリア"},Popconfirm:{positiveText:"OK",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:"OK",selectTime:"時間を選択",selectDate:"日付を選択",datePlaceholder:"日付を選択",datetimePlaceholder:"選択",monthPlaceholder:"月を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日",endDatePlaceholder:"終了日",startDatetimePlaceholder:"開始時間",endDatetimePlaceholder:"終了時間",startMonthPlaceholder:"開始月",endMonthPlaceholder:"終了月",monthBeforeYear:!1,firstDayOfWeek:0,today:"今日"},DataTable:{checkTableAll:"全選択",uncheckTableAll:"全選択取消",confirm:"OK",clear:"リセット"},LegacyTransfer:{sourceTitle:"元",targetTitle:"先"},Transfer:{selectAll:"全選択",unselectAll:"全選択取消",clearAll:"リセット",total:e=>`合計 ${e} 項目`,selected:e=>`${e} 個の項目を選択`},Empty:{description:"データなし"},Select:{placeholder:"選択してください"},TimePicker:{placeholder:"選択してください",positiveText:"OK",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:"元のサイズに戻す"}},OI=MI,zI={name:"ko-KR",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:"Select Week",startDatePlaceholder:"시작 날짜",endDatePlaceholder:"종료 날짜",startDatetimePlaceholder:"시작 날짜 및 시간",endDatetimePlaceholder:"종료 날짜 및 시간",startMonthPlaceholder:"시작 월",endMonthPlaceholder:"종료 월",monthBeforeYear:!1,firstDayOfWeek:6,today:"오늘"},DataTable:{checkTableAll:"모두 선택",uncheckTableAll:"모두 선택 해제",confirm:"확인",clear:"지우기"},LegacyTransfer:{sourceTitle:"원본",targetTitle:"타깃"},Transfer:{selectAll:"전체 선택",unselectAll:"전체 해제",clearAll:"전체 삭제",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:"원본 크기로 확대"}},DI=zI,LI={name:"vi-VN",global:{undo:"Hoàn tác",redo:"Làm lại",confirm:"Xác nhận",clear:"xóa"},Popconfirm:{positiveText:"Xác nhận",negativeText:"Hủy"},Cascader:{placeholder:"Vui lòng chọn",loading:"Đang tải",loadingRequiredMessage:e=>`Vui lòng tải tất cả thông tin con của ${e} trước.`},Time:{dateFormat:"",dateTimeFormat:"HH:mm:ss dd-MM-yyyy"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM-yyyy",dateFormat:"dd-MM-yyyy",dateTimeFormat:"HH:mm:ss dd-MM-yyyy",quarterFormat:"qqq-yyyy",weekFormat:"YYYY-w",clear:"Xóa",now:"Hôm nay",confirm:"Xác nhận",selectTime:"Chọn giờ",selectDate:"Chọn ngày",datePlaceholder:"Chọn ngày",datetimePlaceholder:"Chọn ngày giờ",monthPlaceholder:"Chọn tháng",yearPlaceholder:"Chọn năm",quarterPlaceholder:"Chọn quý",weekPlaceholder:"Select Week",startDatePlaceholder:"Ngày bắt đầu",endDatePlaceholder:"Ngày kết thúc",startDatetimePlaceholder:"Thời gian bắt đầu",endDatetimePlaceholder:"Thời gian kết thúc",startMonthPlaceholder:"Tháng bắt đầu",endMonthPlaceholder:"Tháng kết thúc",monthBeforeYear:!0,firstDayOfWeek:0,today:"Hôm nay"},DataTable:{checkTableAll:"Chọn tất cả có trong bảng",uncheckTableAll:"Bỏ chọn tất cả có trong bảng",confirm:"Xác nhận",clear:"Xóa"},LegacyTransfer:{sourceTitle:"Nguồn",targetTitle:"Đích"},Transfer:{selectAll:"Chọn tất cả",unselectAll:"Bỏ chọn tất cả",clearAll:"Xoá tất cả",total:e=>`Tổng cộng ${e} mục`,selected:e=>`${e} mục được chọn`},Empty:{description:"Không có dữ liệu"},Select:{placeholder:"Vui lòng chọn"},TimePicker:{placeholder:"Chọn thời gian",positiveText:"OK",negativeText:"Hủy",now:"Hiện tại",clear:"Xóa"},Pagination:{goto:"Đi đến trang",selectionSuffix:"trang"},DynamicTags:{add:"Thêm"},Log:{loading:"Đang tải"},Input:{placeholder:"Vui lòng nhập"},InputNumber:{placeholder:"Vui lòng nhập"},DynamicInput:{create:"Tạo"},ThemeEditor:{title:"Tùy chỉnh giao diện",clearAllVars:"Xóa tất cả các biến",clearSearch:"Xóa tìm kiếm",filterCompName:"Lọc tên component",filterVarName:"Lọc tên biến",import:"Nhập",export:"Xuất",restore:"Đặt lại mặc định"},Image:{tipPrevious:"Hình trước (←)",tipNext:"Hình tiếp (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Chiều kim đồng hồ",tipZoomOut:"Thu nhỏ",tipZoomIn:"Phóng to",tipDownload:"Tải về",tipClose:"Đóng (Esc)",tipOriginalSize:"Xem kích thước gốc"}},FI=LI,BI={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:"缩放到原始尺寸"}},NI=BI,HI={name:"zh-TW",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:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",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:"縮放到原始尺寸"}},jI=HI;function En(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Nt(e){return(t,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let r;if(o==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function Ht(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const s=i[0],a=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?WI(a,d=>d.test(s)):VI(a,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function VI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function WI(e,t){for(let n=0;n{const o=t.match(e.matchPattern);if(!o)return null;const r=o[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(r.length);return{value:s,rest:a}}}function UI(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 qI={};function KI(){return qI}function t0(e,t){var a,l,c,u;const n=KI(),o=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,r=UI(e),i=r.getDay(),s=(i{let o;const r=YI[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},ZI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JI=(e,t,n,o)=>ZI[e],QI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},oM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iM=(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},sM={ordinalNumber:iM,era:Nt({values:QI,defaultWidth:"wide"}),quarter:Nt({values:eM,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Nt({values:tM,defaultWidth:"wide"}),day:Nt({values:nM,defaultWidth:"wide"}),dayPeriod:Nt({values:oM,defaultWidth:"wide",formattingValues:rM,defaultFormattingWidth:"wide"})},aM=/^(\d+)(th|st|nd|rd)?/i,lM=/\d+/i,cM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uM={any:[/^b/i,/^(a|c)/i]},dM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fM={any:[/1/i,/2/i,/3/i,/4/i]},hM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bM={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yM={ordinalNumber:Ws({matchPattern:aM,parsePattern:lM,valueCallback:e=>parseInt(e,10)}),era:Ht({matchPatterns:cM,defaultMatchWidth:"wide",parsePatterns:uM,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:pM,defaultParseWidth:"any"}),day:Ht({matchPatterns:mM,defaultMatchWidth:"wide",parsePatterns:gM,defaultParseWidth:"any"}),dayPeriod:Ht({matchPatterns:vM,defaultMatchWidth:"any",parsePatterns:bM,defaultParseWidth:"any"})},xM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_M={date:En({formats:xM,defaultWidth:"full"}),time:En({formats:CM,defaultWidth:"full"}),dateTime:En({formats:wM,defaultWidth:"full"})},SM={code:"en-US",formatDistance:XI,formatLong:_M,formatRelative:JI,localize:sM,match:yM,options:{weekStartsOn:0,firstWeekContainsDate:1}},kM={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},PM=(e,t,n)=>{let o;const r=kM[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"در "+o:o+" قبل":o},TM={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},RM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},EM={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$M={date:En({formats:TM,defaultWidth:"full"}),time:En({formats:RM,defaultWidth:"full"}),dateTime:En({formats:EM,defaultWidth:"full"})},AM={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},IM=(e,t,n,o)=>AM[e],MM={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},OM={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},zM={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},DM={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},LM={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:"شب"}},FM={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)=>String(e),NM={ordinalNumber:BM,era:Nt({values:MM,defaultWidth:"wide"}),quarter:Nt({values:OM,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Nt({values:zM,defaultWidth:"wide"}),day:Nt({values:DM,defaultWidth:"wide"}),dayPeriod:Nt({values:LM,defaultWidth:"wide",formattingValues:FM,defaultFormattingWidth:"wide"})},HM=/^(\d+)(th|st|nd|rd)?/i,jM=/\d+/i,VM={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},WM={any:[/^قبل/i,/^بعد/i]},UM={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},qM={any:[/1/i,/2/i,/3/i,/4/i]},KM={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},GM={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},YM={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},XM={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},ZM={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},JM={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},QM={ordinalNumber:Ws({matchPattern:HM,parsePattern:jM,valueCallback:e=>parseInt(e,10)}),era:Ht({matchPatterns:VM,defaultMatchWidth:"wide",parsePatterns:WM,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:UM,defaultMatchWidth:"wide",parsePatterns:qM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:KM,defaultMatchWidth:"wide",parsePatterns:GM,defaultParseWidth:"any"}),day:Ht({matchPatterns:YM,defaultMatchWidth:"wide",parsePatterns:XM,defaultParseWidth:"any"}),dayPeriod:Ht({matchPatterns:ZM,defaultMatchWidth:"wide",parsePatterns:JM,defaultParseWidth:"any"})},eO={code:"fa-IR",formatDistance:PM,formatLong:$M,formatRelative:IM,localize:NM,match:QM,options:{weekStartsOn:6,firstWeekContainsDate:1}},tO={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},nO=(e,t,n)=>{n=n||{};let o;const r=tO[e];return typeof r=="string"?o=r:t===1?n.addSuffix&&r.oneWithSuffix?o=r.oneWithSuffix:o=r.one:n.addSuffix&&r.otherWithSuffix?o=r.otherWithSuffix.replace("{{count}}",String(t)):o=r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?o+"後":o+"前":o},oO={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},rO={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},iO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sO={date:En({formats:oO,defaultWidth:"full"}),time:En({formats:rO,defaultWidth:"full"}),dateTime:En({formats:iO,defaultWidth:"full"})},aO={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},lO=(e,t,n,o)=>aO[e],cO={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},uO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},dO={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},fO={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},hO={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:"深夜"}},pO={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:"深夜"}},mO=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},gO={ordinalNumber:mO,era:Nt({values:cO,defaultWidth:"wide"}),quarter:Nt({values:uO,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:Nt({values:dO,defaultWidth:"wide"}),day:Nt({values:fO,defaultWidth:"wide"}),dayPeriod:Nt({values:hO,defaultWidth:"wide",formattingValues:pO,defaultFormattingWidth:"wide"})},vO=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,bO=/\d+/i,yO={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},xO={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},CO={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},wO={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},_O={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},SO={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},kO={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},PO={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},TO={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},RO={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},EO={ordinalNumber:Ws({matchPattern:vO,parsePattern:bO,valueCallback:function(e){return parseInt(e,10)}}),era:Ht({matchPatterns:yO,defaultMatchWidth:"wide",parsePatterns:xO,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:CO,defaultMatchWidth:"wide",parsePatterns:wO,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:_O,defaultMatchWidth:"wide",parsePatterns:SO,defaultParseWidth:"any"}),day:Ht({matchPatterns:kO,defaultMatchWidth:"wide",parsePatterns:PO,defaultParseWidth:"any"}),dayPeriod:Ht({matchPatterns:TO,defaultMatchWidth:"any",parsePatterns:RO,defaultParseWidth:"any"})},$O={code:"ja",formatDistance:nO,formatLong:sO,formatRelative:lO,localize:gO,match:EO,options:{weekStartsOn:0,firstWeekContainsDate:1}},AO={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},IO=(e,t,n)=>{let o;const r=AO[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+" 후":o+" 전":o},MO={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},OO={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},DO={date:En({formats:MO,defaultWidth:"full"}),time:En({formats:OO,defaultWidth:"full"}),dateTime:En({formats:zO,defaultWidth:"full"})},LO={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},FO=(e,t,n,o)=>LO[e],BO={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},NO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},HO={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},jO={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},VO={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:"밤"}},WO={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:"밤"}},UO=(e,t)=>{const n=Number(e);switch(String(t==null?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},qO={ordinalNumber:UO,era:Nt({values:BO,defaultWidth:"wide"}),quarter:Nt({values:NO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Nt({values:HO,defaultWidth:"wide"}),day:Nt({values:jO,defaultWidth:"wide"}),dayPeriod:Nt({values:VO,defaultWidth:"wide",formattingValues:WO,defaultFormattingWidth:"wide"})},KO=/^(\d+)(일|번째)?/i,GO=/\d+/i,YO={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},XO={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},ZO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},JO={any:[/1/i,/2/i,/3/i,/4/i]},QO={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},ez={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},tz={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},nz={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},oz={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},rz={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},iz={ordinalNumber:Ws({matchPattern:KO,parsePattern:GO,valueCallback:e=>parseInt(e,10)}),era:Ht({matchPatterns:YO,defaultMatchWidth:"wide",parsePatterns:XO,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:ZO,defaultMatchWidth:"wide",parsePatterns:JO,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:ez,defaultParseWidth:"any"}),day:Ht({matchPatterns:tz,defaultMatchWidth:"wide",parsePatterns:nz,defaultParseWidth:"any"}),dayPeriod:Ht({matchPatterns:oz,defaultMatchWidth:"any",parsePatterns:rz,defaultParseWidth:"any"})},sz={code:"ko",formatDistance:IO,formatLong:DO,formatRelative:FO,localize:qO,match:iz,options:{weekStartsOn:0,firstWeekContainsDate:1}},az={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},lz=(e,t,n)=>{let o;const r=az[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+" nữa":o+" trước":o},cz={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},uz={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dz={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},fz={date:En({formats:cz,defaultWidth:"full"}),time:En({formats:uz,defaultWidth:"full"}),dateTime:En({formats:dz,defaultWidth:"full"})},hz={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},pz=(e,t,n,o)=>hz[e],mz={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},gz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},vz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},bz={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},yz={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},xz={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},Cz={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},wz={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},_z=(e,t)=>{const n=Number(e),o=t==null?void 0:t.unit;if(o==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(o==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(o==="week")return n===1?"thứ nhất":"thứ "+n;if(o==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},Sz={ordinalNumber:_z,era:Nt({values:mz,defaultWidth:"wide"}),quarter:Nt({values:gz,defaultWidth:"wide",formattingValues:vz,defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:Nt({values:bz,defaultWidth:"wide",formattingValues:yz,defaultFormattingWidth:"wide"}),day:Nt({values:xz,defaultWidth:"wide"}),dayPeriod:Nt({values:Cz,defaultWidth:"wide",formattingValues:wz,defaultFormattingWidth:"wide"})},kz=/^(\d+)/i,Pz=/\d+/i,Tz={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},Rz={any:[/^t/i,/^s/i]},Ez={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},$z={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},Az={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},Iz={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},Mz={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},Oz={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},zz={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},Dz={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},Lz={ordinalNumber:Ws({matchPattern:kz,parsePattern:Pz,valueCallback:e=>parseInt(e,10)}),era:Ht({matchPatterns:Tz,defaultMatchWidth:"wide",parsePatterns:Rz,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:Ez,defaultMatchWidth:"wide",parsePatterns:$z,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:Az,defaultMatchWidth:"wide",parsePatterns:Iz,defaultParseWidth:"wide"}),day:Ht({matchPatterns:Mz,defaultMatchWidth:"wide",parsePatterns:Oz,defaultParseWidth:"wide"}),dayPeriod:Ht({matchPatterns:zz,defaultMatchWidth:"wide",parsePatterns:Dz,defaultParseWidth:"any"})},Fz={code:"vi",formatDistance:lz,formatLong:fz,formatRelative:pz,localize:Sz,match:Lz,options:{weekStartsOn:1,firstWeekContainsDate:1}},Bz={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},Nz=(e,t,n)=>{let o;const r=Bz[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+"内":o+"前":o},Hz={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},jz={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Vz={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Wz={date:En({formats:Hz,defaultWidth:"full"}),time:En({formats:jz,defaultWidth:"full"}),dateTime:En({formats:Vz,defaultWidth:"full"})};function n0(e,t,n){const o="eeee p";return GI(e,t,n)?o:e.getTime()>t.getTime()?"'下个'"+o:"'上个'"+o}const Uz={lastWeek:n0,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:n0,other:"PP p"},qz=(e,t,n,o)=>{const r=Uz[e];return typeof r=="function"?r(t,n,o):r},Kz={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Gz={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Yz={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Xz={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Zz={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:"夜间"}},Jz={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:"夜间"}},Qz=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},eD={ordinalNumber:Qz,era:Nt({values:Kz,defaultWidth:"wide"}),quarter:Nt({values:Gz,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Nt({values:Yz,defaultWidth:"wide"}),day:Nt({values:Xz,defaultWidth:"wide"}),dayPeriod:Nt({values:Zz,defaultWidth:"wide",formattingValues:Jz,defaultFormattingWidth:"wide"})},tD=/^(第\s*)?\d+(日|时|分|秒)?/i,nD=/\d+/i,oD={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},rD={any:[/^(前)/i,/^(公元)/i]},iD={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},sD={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},aD={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},lD={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]},cD={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},uD={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},dD={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},fD={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},hD={ordinalNumber:Ws({matchPattern:tD,parsePattern:nD,valueCallback:e=>parseInt(e,10)}),era:Ht({matchPatterns:oD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any"}),quarter:Ht({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ht({matchPatterns:aD,defaultMatchWidth:"wide",parsePatterns:lD,defaultParseWidth:"any"}),day:Ht({matchPatterns:cD,defaultMatchWidth:"wide",parsePatterns:uD,defaultParseWidth:"any"}),dayPeriod:Ht({matchPatterns:dD,defaultMatchWidth:"any",parsePatterns:fD,defaultParseWidth:"any"})},pD={code:"zh-CN",formatDistance:Nz,formatLong:Wz,formatRelative:qz,localize:eD,match:hD,options:{weekStartsOn:1,firstWeekContainsDate:4}},mD={name:"en-US",locale:SM},Yw=mD,gD={name:"fa-IR",locale:eO},vD=gD,bD={name:"ja-JP",locale:$O},yD=bD,xD={name:"ko-KR",locale:sz},CD=xD,wD={name:"vi-VN",locale:Fz},_D=wD,SD={name:"zh-CN",locale:pD},o0=SD;var kD=typeof global=="object"&&global&&global.Object===Object&&global;const Xw=kD;var PD=typeof self=="object"&&self&&self.Object===Object&&self,TD=Xw||PD||Function("return this")();const Io=TD;var RD=Io.Symbol;const Hr=RD;var Zw=Object.prototype,ED=Zw.hasOwnProperty,$D=Zw.toString,fa=Hr?Hr.toStringTag:void 0;function AD(e){var t=ED.call(e,fa),n=e[fa];try{e[fa]=void 0;var o=!0}catch{}var r=$D.call(e);return o&&(t?e[fa]=n:delete e[fa]),r}var ID=Object.prototype,MD=ID.toString;function OD(e){return MD.call(e)}var zD="[object Null]",DD="[object Undefined]",r0=Hr?Hr.toStringTag:void 0;function Ni(e){return e==null?e===void 0?DD:zD:r0&&r0 in Object(e)?AD(e):OD(e)}function jr(e){return e!=null&&typeof e=="object"}var LD="[object Symbol]";function Ru(e){return typeof e=="symbol"||jr(e)&&Ni(e)==LD}function Jw(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=yL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _L(e){return function(){return e}}var SL=function(){try{var e=ji(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ic=SL;var kL=Ic?function(e,t){return Ic(e,"toString",{configurable:!0,enumerable:!1,value:_L(t),writable:!0})}:em;const PL=kL;var TL=wL(PL);const RL=TL;var EL=9007199254740991,$L=/^(?:0|[1-9]\d*)$/;function nm(e,t){var n=typeof e;return t=t??EL,!!t&&(n=="number"||n!="symbol"&&$L.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=LL}function Us(e){return e!=null&&rm(e.length)&&!tm(e)}function FL(e,t,n){if(!Yo(n))return!1;var o=typeof t;return(o=="number"?Us(n)&&nm(t,n.length):o=="string"&&t in n)?dl(n[t],e):!1}function BL(e){return DL(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,s&&FL(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function n9(e,t){var n=this.__data__,o=Eu(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function mr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=o?e:P9(e,t,n)}var R9="\\ud800-\\udfff",E9="\\u0300-\\u036f",$9="\\ufe20-\\ufe2f",A9="\\u20d0-\\u20ff",I9=E9+$9+A9,M9="\\ufe0e\\ufe0f",O9="\\u200d",z9=RegExp("["+O9+R9+I9+M9+"]");function d_(e){return z9.test(e)}function D9(e){return e.split("")}var f_="\\ud800-\\udfff",L9="\\u0300-\\u036f",F9="\\ufe20-\\ufe2f",B9="\\u20d0-\\u20ff",N9=L9+F9+B9,H9="\\ufe0e\\ufe0f",j9="["+f_+"]",kh="["+N9+"]",Ph="\\ud83c[\\udffb-\\udfff]",V9="(?:"+kh+"|"+Ph+")",h_="[^"+f_+"]",p_="(?:\\ud83c[\\udde6-\\uddff]){2}",m_="[\\ud800-\\udbff][\\udc00-\\udfff]",W9="\\u200d",g_=V9+"?",v_="["+H9+"]?",U9="(?:"+W9+"(?:"+[h_,p_,m_].join("|")+")"+v_+g_+")*",q9=v_+g_+U9,K9="(?:"+[h_+kh+"?",kh,p_,m_,j9].join("|")+")",G9=RegExp(Ph+"(?="+Ph+")|"+K9+q9,"g");function Y9(e){return e.match(G9)||[]}function X9(e){return d_(e)?Y9(e):D9(e)}function Z9(e){return function(t){t=Oi(t);var n=d_(t)?X9(t):void 0,o=n?n[0]:t.charAt(0),r=n?T9(n,1).join(""):t.slice(1);return o[e]()+r}}var J9=Z9("toUpperCase");const b_=J9;function Q9(e){return b_(Oi(e).toLowerCase())}function e7(e,t,n,o){var r=-1,i=e==null?0:e.length;for(o&&i&&(n=e[++r]);++ra))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&TB?new Dc:void 0;for(i.set(e,t),i.set(t,e);++d{var i,s;return(s=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&s!==void 0?s:Gw[e]});return{dateLocaleRef:D(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:Yw}),localeRef:o}}const As="naive-ui-style";function gn(e,t,n){if(!t)return;const o=Bi(),r=D(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(l)return l}),i=We(go,null),s=()=>{Jt(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(J6(l,o))return;const{value:c}=r;c&&c.style.mount({id:l,head:!0,anchorMetaName:As,props:{bPrefix:a?`.${a}-`:void 0},ssr:o,parent:i==null?void 0:i.styleMountTarget})})};return o?s():mn(s),r}const yo={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:RN,fontFamily:EN,lineHeight:$N}=yo,B_=G("body",` +`}function N8(e,t){const n=Ve(Aw,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:r}=n;r.has(e)||o!==null&&(r.add(e),o.push(B8(e,t)))}const H8=typeof document<"u";function Di(){if(H8)return;const e=Ve(Aw,null);if(e!==null)return{adapter:N8,context:e}}function Eb(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Fr}=bw(),qp="vueuc-style";function Rb(e){return e&-e}class j8{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=n[t],t-=Rb(t);return i}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),i=this.sum(r);if(i>t){o=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?yh("lazy-teleport",this.$slots):v(Zc,{disabled:this.disabled,to:this.mergedTo},yh("lazy-teleport",this.$slots)):null}}),Ml={top:"bottom",bottom:"top",left:"right",right:"left"},$b={start:"end",center:"center",end:"start"},Nd={top:"height",bottom:"height",left:"width",right:"width"},U8={"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"},V8={"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"},W8={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ib={top:!0,bottom:!1,left:!0,right:!1},Ob={top:"end",bottom:"start",left:"end",right:"start"};function q8(e,t,n,o,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 u=(h,p,g)=>{let m=0,b=0;const w=n[h]-t[p]-t[h];return w>0&&o&&(g?b=Ib[p]?w:-w:m=Ib[p]?w:-w),{left:m,top:b}},d=a==="left"||a==="right";if(l!=="center"){const h=W8[e],p=Ml[h],g=Nd[h];if(n[g]>t[g]){if(t[h]+t[g]t[p]&&(l=$b[s])}else{const h=a==="bottom"||a==="top"?"left":"top",p=Ml[h],g=Nd[h],m=(n[g]-t[g])/2;(t[h]t[p]?(l=Ob[h],c=u(g,h,d)):(l=Ob[p],c=u(g,p,d)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),Kp=xe({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ve("VBinder"),n=kt(()=>e.enabled!==void 0?e.enabled:e.show),o=U(null),r=U(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)};jt(()=>{n.value&&(l(),i())});const s=Di();X8.mount({id:"vueuc/binder",head:!0,anchorMetaName:qp,ssr:s}),on(()=>{a()}),b8(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const f=o.value;if(f===null)return;const h=t.targetRef,{x:p,y:g,overlap:m}=e,b=p!==void 0&&g!==void 0?A8(p,g):Ld(h);f.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:w,minWidth:C,placement:_,internalShift:S,flip:y}=e;f.setAttribute("v-placement",_),m?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;w==="target"?x.width=`${b.width}px`:w!==void 0?x.width=w:x.width="",C==="target"?x.minWidth=`${b.width}px`:C!==void 0?x.minWidth=C:x.minWidth="";const P=Ld(f),k=Ld(r.value),{left:T,top:R,placement:E}=q8(_,b,P,S,y,m),q=K8(E,m),{left:D,top:B,transform:M}=G8(E,k,b,R,T,m);f.setAttribute("v-placement",E),f.style.setProperty("--v-offset-left",`${Math.round(T)}px`),f.style.setProperty("--v-offset-top",`${Math.round(R)}px`),f.style.transform=`translateX(${D}) translateY(${B}) ${M}`,f.style.setProperty("--v-transform-origin",q),f.style.transformOrigin=q};ft(n,f=>{f?(i(),c()):a()});const c=()=>{Ht().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{ft(Ue(e,f),l)}),["teleportDisabled"].forEach(f=>{ft(Ue(e,f),c)}),ft(Ue(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=Zr(),d=kt(()=>{const{to:f}=e;if(f!==void 0)return f;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:r,followerRef:o,mergedTo:d,syncPosition:l}},render(){return v(ku,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("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?dn(n,[[Su,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Si=[],Y8=function(){return Si.some(function(e){return e.activeTargets.length>0})},Q8=function(){return Si.some(function(e){return e.skippedTargets.length>0})},Mb="ResizeObserver loop completed with undelivered notifications.",J8=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Mb}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Mb),window.dispatchEvent(e)},Qs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Qs||(Qs={}));var ki=function(e){return Object.freeze(e)},Z8=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ki(this)}return e}(),$w=function(){function e(t,n,o,r){return this.x=t,this.y=n,this.width=o,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ki(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,r=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:o,top:r,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Gp=function(e){return e instanceof SVGElement&&"getBBox"in e},Iw=function(e){if(Gp(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},zb=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},eO=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},As=typeof window<"u"?window:{},zl=new WeakMap,Fb=/auto|scroll/,tO=/^tb|vertical/,nO=/msie|trident/i.test(As.navigator&&As.navigator.userAgent),Do=function(e){return parseFloat(e||"0")},ga=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Z8((n?t:e)||0,(n?e:t)||0)},Db=ki({devicePixelContentBoxSize:ga(),borderBoxSize:ga(),contentBoxSize:ga(),contentRect:new $w(0,0,0,0)}),Ow=function(e,t){if(t===void 0&&(t=!1),zl.has(e)&&!t)return zl.get(e);if(Iw(e))return zl.set(e,Db),Db;var n=getComputedStyle(e),o=Gp(e)&&e.ownerSVGElement&&e.getBBox(),r=!nO&&n.boxSizing==="border-box",i=tO.test(n.writingMode||""),a=!o&&Fb.test(n.overflowY||""),s=!o&&Fb.test(n.overflowX||""),l=o?0:Do(n.paddingTop),c=o?0:Do(n.paddingRight),u=o?0:Do(n.paddingBottom),d=o?0:Do(n.paddingLeft),f=o?0:Do(n.borderTopWidth),h=o?0:Do(n.borderRightWidth),p=o?0:Do(n.borderBottomWidth),g=o?0:Do(n.borderLeftWidth),m=d+c,b=l+u,w=g+h,C=f+p,_=s?e.offsetHeight-C-e.clientHeight:0,S=a?e.offsetWidth-w-e.clientWidth:0,y=r?m+w:0,x=r?b+C:0,P=o?o.width:Do(n.width)-y-S,k=o?o.height:Do(n.height)-x-_,T=P+m+S+w,R=k+b+_+C,E=ki({devicePixelContentBoxSize:ga(Math.round(P*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:ga(T,R,i),contentBoxSize:ga(P,k,i),contentRect:new $w(d,l,P,k)});return zl.set(e,E),E},Mw=function(e,t,n){var o=Ow(e,n),r=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case Qs.DEVICE_PIXEL_CONTENT_BOX:return a;case Qs.BORDER_BOX:return r;default:return i}},oO=function(){function e(t){var n=Ow(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ki([n.borderBoxSize]),this.contentBoxSize=ki([n.contentBoxSize]),this.devicePixelContentBoxSize=ki([n.devicePixelContentBoxSize])}return e}(),zw=function(e){if(Iw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},rO=function(){var e=1/0,t=[];Si.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new oO(c.target),d=zw(c.target);s.push(u),c.lastReportedSize=Mw(c.target,c.observedBox),de?n.activeTargets.push(r):n.skippedTargets.push(r))})})},iO=function(){var e=0;for(Lb(e);Y8();)e=rO(),Lb(e);return Q8()&&J8(),e>0},Hd,Fw=[],aO=function(){return Fw.splice(0).forEach(function(e){return e()})},sO=function(e){if(!Hd){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return aO()}).observe(n,o),Hd=function(){n.textContent="".concat(t?t--:t++)}}Fw.push(e),Hd()},lO=function(e){sO(function(){requestAnimationFrame(e)})},uc=0,cO=function(){return!!uc},uO=250,dO={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Nb=function(e){return e===void 0&&(e=0),Date.now()+e},jd=!1,fO=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=uO),!jd){jd=!0;var o=Nb(t);lO(function(){var r=!1;try{r=iO()}finally{if(jd=!1,t=o-Nb(),!cO())return;r?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,dO)};document.body?n():As.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bb.forEach(function(n){return As.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Bb.forEach(function(n){return As.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ch=new fO,Hb=function(e){!uc&&e>0&&Ch.start(),uc+=e,!uc&&Ch.stop()},hO=function(e){return!Gp(e)&&!eO(e)&&getComputedStyle(e).display==="inline"},pO=function(){function e(t,n){this.target=t,this.observedBox=n||Qs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Mw(this.target,this.observedBox,!0);return hO(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),mO=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Fl=new WeakMap,jb=function(e,t){for(var n=0;n=0&&(i&&Si.splice(Si.indexOf(o),1),o.observationTargets.splice(r,1),Hb(-1))},e.disconnect=function(t){var n=this,o=Fl.get(t);o.observationTargets.slice().forEach(function(r){return n.unobserve(t,r.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),gO=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Dl.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zb(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Dl.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zb(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Dl.unobserve(this,t)},e.prototype.disconnect=function(){Dl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class vO{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||gO)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const $c=new vO,ur=xe({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=no().proxy;function o(r){const{onResize:i}=e;i!==void 0&&i(r)}jt(()=>{const r=n.$el;if(r===void 0){Eb("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){Eb("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&($c.registerHandler(r.nextElementSibling,o),t=!0)}),on(()=>{t&&$c.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jc(this.$slots,"default")}});let Ll;function bO(){return typeof document>"u"?!1:(Ll===void 0&&("matchMedia"in window?Ll=window.matchMedia("(pointer:coarse)").matches:Ll=!1),Ll)}let Ud;function Ub(){return typeof document>"u"?1:(Ud===void 0&&(Ud="chrome"in window?window.devicePixelRatio:1),Ud)}const yO=Fr(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Fr("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Fr("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Dw=xe({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();yO.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:qp,ssr:t}),jt(()=>{const{defaultScrollIndex:R,defaultScrollKey:E}=e;R!=null?p({index:R}):E!=null&&p({key:E})});let n=!1,o=!1;sp(()=>{if(n=!1,!o){o=!0;return}p({top:d.value,left:u})}),Xc(()=>{n=!0,o||(o=!0)});const r=I(()=>{const R=new Map,{keyField:E}=e;return e.items.forEach((q,D)=>{R.set(q[E],D)}),R}),i=U(null),a=U(void 0),s=new Map,l=I(()=>{const{items:R,itemSize:E,keyField:q}=e,D=new j8(R.length,E);return R.forEach((B,M)=>{const K=B[q],V=s.get(K);V!==void 0&&D.add(M,V)}),D}),c=U(0);let u=0;const d=U(0),f=kt(()=>Math.max(l.value.getBound(d.value-bn(e.paddingTop))-1,0)),h=I(()=>{const{value:R}=a;if(R===void 0)return[];const{items:E,itemSize:q}=e,D=f.value,B=Math.min(D+Math.ceil(R/q+1),E.length-1),M=[];for(let K=D;K<=B;++K)M.push(E[K]);return M}),p=(R,E)=>{if(typeof R=="number"){w(R,E,"auto");return}const{left:q,top:D,index:B,key:M,position:K,behavior:V,debounce:ae=!0}=R;if(q!==void 0||D!==void 0)w(q,D,V);else if(B!==void 0)b(B,V,ae);else if(M!==void 0){const pe=r.value.get(M);pe!==void 0&&b(pe,V,ae)}else K==="bottom"?w(0,Number.MAX_SAFE_INTEGER,V):K==="top"&&w(0,0,V)};let g,m=null;function b(R,E,q){const{value:D}=l,B=D.sum(R)+bn(e.paddingTop);if(!q)i.value.scrollTo({left:0,top:B,behavior:E});else{g=R,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{g=void 0,m=null},16);const{scrollTop:M,offsetHeight:K}=i.value;if(B>M){const V=D.get(R);B+V<=M+K||i.value.scrollTo({left:0,top:B+V-K,behavior:E})}else i.value.scrollTo({left:0,top:B,behavior:E})}}function w(R,E,q){i.value.scrollTo({left:R,top:E,behavior:q})}function C(R,E){var q,D,B;if(n||e.ignoreItemResize||T(E.target))return;const{value:M}=l,K=r.value.get(R),V=M.get(K),ae=(B=(D=(q=E.borderBoxSize)===null||q===void 0?void 0:q[0])===null||D===void 0?void 0:D.blockSize)!==null&&B!==void 0?B:E.contentRect.height;if(ae===V)return;ae-e.itemSize===0?s.delete(R):s.set(R,ae-e.itemSize);const Z=ae-V;if(Z===0)return;M.add(K,Z);const N=i.value;if(N!=null){if(g===void 0){const O=M.sum(K);N.scrollTop>O&&N.scrollBy(0,Z)}else if(KN.scrollTop+N.offsetHeight&&N.scrollBy(0,Z)}k()}c.value++}const _=!bO();let S=!1;function y(R){var E;(E=e.onScroll)===null||E===void 0||E.call(e,R),(!_||!S)&&k()}function x(R){var E;if((E=e.onWheel)===null||E===void 0||E.call(e,R),_){const q=i.value;if(q!=null){if(R.deltaX===0&&(q.scrollTop===0&&R.deltaY<=0||q.scrollTop+q.offsetHeight>=q.scrollHeight&&R.deltaY>=0))return;R.preventDefault(),q.scrollTop+=R.deltaY/Ub(),q.scrollLeft+=R.deltaX/Ub(),k(),S=!0,Tc(()=>{S=!1})}}}function P(R){if(n||T(R.target)||R.contentRect.height===a.value)return;a.value=R.contentRect.height;const{onResize:E}=e;E!==void 0&&E(R)}function k(){const{value:R}=i;R!=null&&(d.value=R.scrollTop,u=R.scrollLeft)}function T(R){let E=R;for(;E!==null;){if(E.style.display==="none")return!0;E=E.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:r,itemsStyle:I(()=>{const{itemResizable:R}=e,E=zn(l.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:R?"":E,minHeight:R?E:"",paddingTop:zn(e.paddingTop),paddingBottom:zn(e.paddingBottom)}]}),visibleItemsStyle:I(()=>(c.value,{transform:`translateY(${zn(l.value.sum(f.value))})`})),viewportItems:h,listElRef:i,itemsElRef:U(null),scrollTo:p,handleListResize:P,handleListScroll:y,handleListWheel:x,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return v(ur,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",Ln(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const s=a[t],l=n.get(s),c=this.$slots.default({item:a,index:l})[0];return e?v(ur,{key:s,onResize:u=>this.handleItemResize(s,u)},{default:()=>c}):(c.key=s,c)})})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),or="v-hidden",xO=Fr("[v-hidden]",{display:"none!important"}),wh=xe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=U(null),o=U(null);function r(a){const{value:s}=n,{getCounter:l,getTail:c}=e;let u;if(l!==void 0?u=l():u=o.value,!s||!u)return;u.hasAttribute(or)&&u.removeAttribute(or);const{children:d}=s;if(a.showAllItemsBeforeCalculate)for(const C of d)C.hasAttribute(or)&&C.removeAttribute(or);const f=s.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let g=p?p.offsetWidth:0,m=!1;const b=s.children.length-(t.tail?1:0);for(let C=0;Cf){const{updateCounter:y}=e;for(let x=C;x>=0;--x){const P=b-1-x;y!==void 0?y(P):u.textContent=`${P}`;const k=u.offsetWidth;if(g-=h[x],g+k<=f||x===0){m=!0,C=x-1,p&&(C===-1?(p.style.maxWidth=`${f-k}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:T}=e;T&&T(P);break}}}}const{onUpdateOverflow:w}=e;m?w!==void 0&&w(!0):(w!==void 0&&w(!1),u.setAttribute(or,""))}const i=Di();return xO.mount({id:"vueuc/overflow",head:!0,anchorMetaName:qp,ssr:i}),jt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Ht(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[Jc(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Lw(e){return e instanceof HTMLElement}function Bw(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Lw(n)&&(Hw(n)||Nw(n)))return!0}return!1}function Hw(e){if(!CO(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function CO(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 ss=[];const Xp=xe({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Qr(),n=U(null),o=U(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return ss[ss.length-1]===t}function l(m){var b;m.code==="Escape"&&s()&&((b=e.onEsc)===null||b===void 0||b.call(e,m))}jt(()=>{ft(()=>e.active,m=>{m?(d(),$t("keydown",document,l)):(Tt("keydown",document,l),r&&f())},{immediate:!0})}),on(()=>{Tt("keydown",document,l),r&&f()});function c(m){if(!i&&s()){const b=u();if(b===null||b.contains($i(m)))return;h("first")}}function u(){const m=n.value;if(m===null)return null;let b=m;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function d(){var m;if(!e.disabled){if(ss.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?h("first"):(m=Ab(b))===null||m===void 0||m.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),ss=ss.filter(w=>w!==t),s()))return;const{finalFocusTo:b}=e;b!==void 0?(m=Ab(b))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(m){if(s()&&e.active){const b=n.value,w=o.value;if(b!==null&&w!==null){const C=u();if(C==null||C===w){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=m==="first"?Bw(C):Nw(C);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const b=u();b!==null&&(m.relatedTarget!==null&&b.contains(m.relatedTarget)?h("last"):h("first"))}function g(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return v(rt,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function jw(e,t){t&&(jt(()=>{const{value:n}=e;n&&$c.registerHandler(n,t)}),on(()=>{const{value:n}=e;n&&$c.unregisterHandler(n)}))}let oa=0,Vb="",Wb="",qb="",Kb="";const _h=U("0px");function Uw(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=Vb,t.style.overflow=Wb,t.style.overflowX=qb,t.style.overflowY=Kb,_h.value="0px"};jt(()=>{n=ft(e,i=>{if(i){if(!oa){const a=window.innerWidth-t.offsetWidth;a>0&&(Vb=t.style.marginRight,t.style.marginRight=`${a}px`,_h.value=`${a}px`),Wb=t.style.overflow,qb=t.style.overflowX,Kb=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,oa++}else oa--,oa||r(),o=!1},{immediate:!0})}),on(()=>{n==null||n(),o&&(oa--,oa||r(),o=!1)})}const Yp=U(!1);function Gb(){Yp.value=!0}function Xb(){Yp.value=!1}let ls=0;function Vw(){return pr&&(hn(()=>{ls||(window.addEventListener("compositionstart",Gb),window.addEventListener("compositionend",Xb)),ls++}),on(()=>{ls<=1?(window.removeEventListener("compositionstart",Gb),window.removeEventListener("compositionend",Xb),ls=0):ls--})),Yp}function Qp(e){const t={isDeactivated:!1};let n=!1;return sp(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Xc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Yb(e){return e.nodeName==="#document"}function wO(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}const Qb="n-form-item";function mr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ve(Qb,null);at(Qb,null);const i=I(n?()=>n(r):()=>{const{size:l}=e;if(l)return l;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),a=I(o?()=>o(r):()=>{const{disabled:l}=e;return l!==void 0?l:r?r.disabled.value:!1}),s=I(()=>{const{status:l}=e;return l||(r==null?void 0:r.mergedValidationStatus.value)});return on(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var _O=typeof global=="object"&&global&&global.Object===Object&&global;const Ww=_O;var SO=typeof self=="object"&&self&&self.Object===Object&&self,kO=Ww||SO||Function("return this")();const Io=kO;var PO=Io.Symbol;const Hr=PO;var qw=Object.prototype,TO=qw.hasOwnProperty,EO=qw.toString,cs=Hr?Hr.toStringTag:void 0;function RO(e){var t=TO.call(e,cs),n=e[cs];try{e[cs]=void 0;var o=!0}catch{}var r=EO.call(e);return o&&(t?e[cs]=n:delete e[cs]),r}var AO=Object.prototype,$O=AO.toString;function IO(e){return $O.call(e)}var OO="[object Null]",MO="[object Undefined]",Jb=Hr?Hr.toStringTag:void 0;function Li(e){return e==null?e===void 0?MO:OO:Jb&&Jb in Object(e)?RO(e):IO(e)}function jr(e){return e!=null&&typeof e=="object"}var zO="[object Symbol]";function Pu(e){return typeof e=="symbol"||jr(e)&&Li(e)==zO}function Kw(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=vM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function CM(e){return function(){return e}}var wM=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ic=wM;var _M=Ic?function(e,t){return Ic(e,"toString",{configurable:!0,enumerable:!1,value:CM(t),writable:!0})}:Jp;const SM=_M;var kM=xM(SM);const PM=kM;var TM=9007199254740991,EM=/^(?:0|[1-9]\d*)$/;function em(e,t){var n=typeof e;return t=t??TM,!!t&&(n=="number"||n!="symbol"&&EM.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=zM}function Ua(e){return e!=null&&nm(e.length)&&!Zp(e)}function FM(e,t,n){if(!Go(n))return!1;var o=typeof t;return(o=="number"?Ua(n)&&em(t,n.length):o=="string"&&t in n)?cl(n[t],e):!1}function DM(e){return MM(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&FM(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function ez(e,t){var n=this.__data__,o=Tu(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=o?e:Sz(e,t,n)}var Pz="\\ud800-\\udfff",Tz="\\u0300-\\u036f",Ez="\\ufe20-\\ufe2f",Rz="\\u20d0-\\u20ff",Az=Tz+Ez+Rz,$z="\\ufe0e\\ufe0f",Iz="\\u200d",Oz=RegExp("["+Iz+Pz+Az+$z+"]");function a_(e){return Oz.test(e)}function Mz(e){return e.split("")}var s_="\\ud800-\\udfff",zz="\\u0300-\\u036f",Fz="\\ufe20-\\ufe2f",Dz="\\u20d0-\\u20ff",Lz=zz+Fz+Dz,Bz="\\ufe0e\\ufe0f",Nz="["+s_+"]",Ph="["+Lz+"]",Th="\\ud83c[\\udffb-\\udfff]",Hz="(?:"+Ph+"|"+Th+")",l_="[^"+s_+"]",c_="(?:\\ud83c[\\udde6-\\uddff]){2}",u_="[\\ud800-\\udbff][\\udc00-\\udfff]",jz="\\u200d",d_=Hz+"?",f_="["+Bz+"]?",Uz="(?:"+jz+"(?:"+[l_,c_,u_].join("|")+")"+f_+d_+")*",Vz=f_+d_+Uz,Wz="(?:"+[l_+Ph+"?",Ph,c_,u_,Nz].join("|")+")",qz=RegExp(Th+"(?="+Th+")|"+Wz+Vz,"g");function Kz(e){return e.match(qz)||[]}function Gz(e){return a_(e)?Kz(e):Mz(e)}function Xz(e){return function(t){t=Oi(t);var n=a_(t)?Gz(t):void 0,o=n?n[0]:t.charAt(0),r=n?kz(n,1).join(""):t.slice(1);return o[e]()+r}}var Yz=Xz("toUpperCase");const h_=Yz;function Qz(e){return h_(Oi(e).toLowerCase())}function Jz(e,t,n,o){var r=-1,i=e==null?0:e.length;for(o&&i&&(n=e[++r]);++rs))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&kD?new Fc:void 0;for(i.set(e,t),i.set(t,e);++d{const s=n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:As,props:{bPrefix:s?`.${s}-`:void 0},ssr:o,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||B_.mount({id:"n-global",head:!0,anchorMetaName:As,ssr:o,parent:r==null?void 0:r.styleMountTarget})};o?i():mn(i)}function Be(e,t,n,o,r,i){const s=Bi(),a=We(go,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:As,ssr:s,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||B_.mount({id:"n-global",head:!0,anchorMetaName:As,ssr:s,parent:a==null?void 0:a.styleMountTarget})};s?c():mn(c)}return D(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:m,peers:g}=h,{common:b=void 0,[e]:{common:w=void 0,self:C=void 0,peers:S={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:_=void 0,[e]:x={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:y,peers:T={}}=x,k=ga({},u||w||b||o.common,_,y,m),P=ga((c=d||C||o.self)===null||c===void 0?void 0:c(k),p,x,h);return{common:k,self:P,peers:ga({},o.peers,S,f),peerOverrides:ga({},p.peers,T,g)}})}Be.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const AN=L("base-icon",` + `)]),Ao="n-config-provider",Ra="naive-ui-style";function Le(e,t,n,o,r,i){const a=Di(),s=Ve(Ao,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Ra,ssr:a}),s!=null&&s.preflightStyleDisabled||M_.mount({id:"n-global",head:!0,anchorMetaName:Ra,ssr:a})};a?c():hn(c)}return I(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:g,peers:m}=h,{common:b=void 0,[e]:{common:w=void 0,self:C=void 0,peers:_={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:S=void 0,[e]:y={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:x,peers:P={}}=y,k=hs({},u||w||b||o.common,S,x,g),T=hs((c=d||C||o.self)===null||c===void 0?void 0:c(k),p,y,h);return{common:k,self:T,peers:hs({},o.peers,_,f),peerOverrides:hs({},p.peers,P,m)}})}Le.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const el="n";function st(e={},t={defaultBordered:!0}){const n=Ve(Ao,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:I(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:Ia(el),namespaceRef:I(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function z_(){const e=Ve(Ao,null);return e?e.mergedClsPrefixRef:Ia(el)}const RL={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:"RRRR-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:"缩放到原始尺寸"}},AL=RL,$L={name:"zh-TW",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:"RRRR-w",clear:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",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:"縮放到原始尺寸"}},IL=$L,OL={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},F_=OL,ML={name:"ja-JP",global:{undo:"元に戻す",redo:"やり直す",confirm:"OK",clear:"クリア"},Popconfirm:{positiveText:"OK",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:"RRRR-w",clear:"クリア",now:"現在",confirm:"OK",selectTime:"時間を選択",selectDate:"日付を選択",datePlaceholder:"日付を選択",datetimePlaceholder:"選択",monthPlaceholder:"月を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日",endDatePlaceholder:"終了日",startDatetimePlaceholder:"開始時間",endDatetimePlaceholder:"終了時間",startMonthPlaceholder:"開始月",endMonthPlaceholder:"終了月",monthBeforeYear:!1,firstDayOfWeek:0,today:"今日"},DataTable:{checkTableAll:"全選択",uncheckTableAll:"全選択取消",confirm:"OK",clear:"リセット"},LegacyTransfer:{sourceTitle:"元",targetTitle:"先"},Transfer:{selectAll:"全選択",unselectAll:"全選択取消",clearAll:"リセット",total:e=>`合計 ${e} 項目`,selected:e=>`${e} 個の項目を選択`},Empty:{description:"データなし"},Select:{placeholder:"選択してください"},TimePicker:{placeholder:"選択してください",positiveText:"OK",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:"元のサイズに戻す"}},zL=ML,FL={name:"ko-KR",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:"RRRR-w",clear:"지우기",now:"현재",confirm:"확인",selectTime:"시간 선택",selectDate:"날짜 선택",datePlaceholder:"날짜 선택",datetimePlaceholder:"날짜 및 시간 선택",monthPlaceholder:"월 선택",yearPlaceholder:"년 선택",quarterPlaceholder:"분기 선택",weekPlaceholder:"Select Week",startDatePlaceholder:"시작 날짜",endDatePlaceholder:"종료 날짜",startDatetimePlaceholder:"시작 날짜 및 시간",endDatetimePlaceholder:"종료 날짜 및 시간",startMonthPlaceholder:"시작 월",endMonthPlaceholder:"종료 월",monthBeforeYear:!1,firstDayOfWeek:6,today:"오늘"},DataTable:{checkTableAll:"모두 선택",uncheckTableAll:"모두 선택 해제",confirm:"확인",clear:"지우기"},LegacyTransfer:{sourceTitle:"원본",targetTitle:"타깃"},Transfer:{selectAll:"전체 선택",unselectAll:"전체 해제",clearAll:"전체 삭제",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:"원본 크기로 확대"}},DL=FL,LL={name:"vi-VN",global:{undo:"Hoàn tác",redo:"Làm lại",confirm:"Xác nhận",clear:"xóa"},Popconfirm:{positiveText:"Xác nhận",negativeText:"Hủy"},Cascader:{placeholder:"Vui lòng chọn",loading:"Đang tải",loadingRequiredMessage:e=>`Vui lòng tải tất cả thông tin con của ${e} trước.`},Time:{dateFormat:"",dateTimeFormat:"HH:mm:ss dd-MM-yyyy"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM-yyyy",dateFormat:"dd-MM-yyyy",dateTimeFormat:"HH:mm:ss dd-MM-yyyy",quarterFormat:"qqq-yyyy",weekFormat:"RRRR-w",clear:"Xóa",now:"Hôm nay",confirm:"Xác nhận",selectTime:"Chọn giờ",selectDate:"Chọn ngày",datePlaceholder:"Chọn ngày",datetimePlaceholder:"Chọn ngày giờ",monthPlaceholder:"Chọn tháng",yearPlaceholder:"Chọn năm",quarterPlaceholder:"Chọn quý",weekPlaceholder:"Select Week",startDatePlaceholder:"Ngày bắt đầu",endDatePlaceholder:"Ngày kết thúc",startDatetimePlaceholder:"Thời gian bắt đầu",endDatetimePlaceholder:"Thời gian kết thúc",startMonthPlaceholder:"Tháng bắt đầu",endMonthPlaceholder:"Tháng kết thúc",monthBeforeYear:!0,firstDayOfWeek:0,today:"Hôm nay"},DataTable:{checkTableAll:"Chọn tất cả có trong bảng",uncheckTableAll:"Bỏ chọn tất cả có trong bảng",confirm:"Xác nhận",clear:"Xóa"},LegacyTransfer:{sourceTitle:"Nguồn",targetTitle:"Đích"},Transfer:{selectAll:"Chọn tất cả",unselectAll:"Bỏ chọn tất cả",clearAll:"Xoá tất cả",total:e=>`Tổng cộng ${e} mục`,selected:e=>`${e} mục được chọn`},Empty:{description:"Không có dữ liệu"},Select:{placeholder:"Vui lòng chọn"},TimePicker:{placeholder:"Chọn thời gian",positiveText:"OK",negativeText:"Hủy",now:"Hiện tại",clear:"Xóa"},Pagination:{goto:"Đi đến trang",selectionSuffix:"trang"},DynamicTags:{add:"Thêm"},Log:{loading:"Đang tải"},Input:{placeholder:"Vui lòng nhập"},InputNumber:{placeholder:"Vui lòng nhập"},DynamicInput:{create:"Tạo"},ThemeEditor:{title:"Tùy chỉnh giao diện",clearAllVars:"Xóa tất cả các biến",clearSearch:"Xóa tìm kiếm",filterCompName:"Lọc tên component",filterVarName:"Lọc tên biến",import:"Nhập",export:"Xuất",restore:"Đặt lại mặc định"},Image:{tipPrevious:"Hình trước (←)",tipNext:"Hình tiếp (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Chiều kim đồng hồ",tipZoomOut:"Thu nhỏ",tipZoomIn:"Phóng to",tipDownload:"Tải về",tipClose:"Đóng (Esc)",tipOriginalSize:"Xem kích thước gốc"}},BL=LL,NL={name:"fa-IR",global:{undo:"لغو انجام شده",redo:"انجام دوباره",confirm:"تأیید",clear:"پاک کردن"},Popconfirm:{positiveText:"تأیید",negativeText:"لغو"},Cascader:{placeholder:"لطفا انتخاب کنید",loading:"بارگذاری",loadingRequiredMessage:e=>`پس از بارگیری کامل زیرمجموعه های ${e} می توانید انتخاب کنید `},Time:{dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd، H:mm:ss"},DatePicker:{yearFormat:"yyyy سال",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM/yyyy",dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd HH:mm:ss",quarterFormat:"سه ماهه yyyy",weekFormat:"RRRR-w",clear:"پاک کردن",now:"اکنون",confirm:"تأیید",selectTime:"انتخاب زمان",selectDate:"انتخاب تاریخ",datePlaceholder:"انتخاب تاریخ",datetimePlaceholder:"انتخاب تاریخ و زمان",monthPlaceholder:"انتخاب ماه",yearPlaceholder:"انتخاب سال",quarterPlaceholder:"انتخاب سه‌ماهه",weekPlaceholder:"Select Week",startDatePlaceholder:"تاریخ شروع",endDatePlaceholder:"تاریخ پایان",startDatetimePlaceholder:"زمان شروع",endDatetimePlaceholder:"زمان پایان",startMonthPlaceholder:"ماه شروع",endMonthPlaceholder:"ماه پایان",monthBeforeYear:!1,firstDayOfWeek:6,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:"اندازه اصلی تصویر"}},HL=NL;var jL={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},UL=function(t,n,o){var r,i=jL[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+"内":r+"前":r};const VL=UL;function Dn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var WL={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},qL={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},KL={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},GL={date:Dn({formats:WL,defaultWidth:"full"}),time:Dn({formats:qL,defaultWidth:"full"}),dateTime:Dn({formats:KL,defaultWidth:"full"})};const XL=GL;function cm(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Oh(e){"@babel/helpers - typeof";return Oh=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},Oh(e)}function YL(e){cm(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Oh(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function QL(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var JL={};function ZL(){return JL}function $0(e,t){var n,o,r,i,a,s,l,c;cm(1,arguments);var u=ZL(),d=QL((n=(o=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=YL(e),h=f.getUTCDay(),p=(ht.getTime()?"'下个'"+o:"'上个'"+o}var tB={lastWeek:I0,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:I0,other:"PP p"},nB=function(t,n,o,r){var i=tB[t];return typeof i=="function"?i(n,o,r):i};const oB=nB;function Zt(e){return function(t,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return r[c]}}var rB={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},iB={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},aB={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},sB={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},lB={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:"夜间"}},cB={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:"夜间"}},uB=function(t,n){var o=Number(t);switch(n==null?void 0:n.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()}},dB={ordinalNumber:uB,era:Zt({values:rB,defaultWidth:"wide"}),quarter:Zt({values:iB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:aB,defaultWidth:"wide"}),day:Zt({values:sB,defaultWidth:"wide"}),dayPeriod:Zt({values:lB,defaultWidth:"wide",formattingValues:cB,defaultFormattingWidth:"wide"})};const fB=dB;function en(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?pB(s,function(d){return d.test(a)}):hB(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function hB(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function pB(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(r.length);return{value:a,rest:s}}}var mB=/^(第\s*)?\d+(日|时|分|秒)?/i,gB=/\d+/i,vB={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},bB={any:[/^(前)/i,/^(公元)/i]},yB={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},xB={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},CB={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},wB={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]},_B={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},SB={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},kB={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},PB={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},TB={ordinalNumber:ul({matchPattern:mB,parsePattern:gB,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:vB,defaultMatchWidth:"wide",parsePatterns:bB,defaultParseWidth:"any"}),quarter:en({matchPatterns:yB,defaultMatchWidth:"wide",parsePatterns:xB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:CB,defaultMatchWidth:"wide",parsePatterns:wB,defaultParseWidth:"any"}),day:en({matchPatterns:_B,defaultMatchWidth:"wide",parsePatterns:SB,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:kB,defaultMatchWidth:"any",parsePatterns:PB,defaultParseWidth:"any"})};const EB=TB;var RB={code:"zh-CN",formatDistance:VL,formatLong:XL,formatRelative:oB,localize:fB,match:EB,options:{weekStartsOn:1,firstWeekContainsDate:4}};const D_=RB,AB={name:"zh-CN",locale:D_},O0=AB;var $B={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},IB=function(t,n,o){var r,i=$B[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const OB=IB;var MB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},FB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DB={date:Dn({formats:MB,defaultWidth:"full"}),time:Dn({formats:zB,defaultWidth:"full"}),dateTime:Dn({formats:FB,defaultWidth:"full"})};const LB=DB;var BB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NB=function(t,n,o,r){return BB[t]};const HB=NB;var jB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},UB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},WB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},KB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},GB=function(t,n){var o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},XB={ordinalNumber:GB,era:Zt({values:jB,defaultWidth:"wide"}),quarter:Zt({values:UB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:VB,defaultWidth:"wide"}),day:Zt({values:WB,defaultWidth:"wide"}),dayPeriod:Zt({values:qB,defaultWidth:"wide",formattingValues:KB,defaultFormattingWidth:"wide"})};const YB=XB;var QB=/^(\d+)(th|st|nd|rd)?/i,JB=/\d+/i,ZB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},e9={any:[/^b/i,/^(a|c)/i]},t9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n9={any:[/1/i,/2/i,/3/i,/4/i]},o9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},r9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},i9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},a9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},s9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},l9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},c9={ordinalNumber:ul({matchPattern:QB,parsePattern:JB,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:ZB,defaultMatchWidth:"wide",parsePatterns:e9,defaultParseWidth:"any"}),quarter:en({matchPatterns:t9,defaultMatchWidth:"wide",parsePatterns:n9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:o9,defaultMatchWidth:"wide",parsePatterns:r9,defaultParseWidth:"any"}),day:en({matchPatterns:i9,defaultMatchWidth:"wide",parsePatterns:a9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:s9,defaultMatchWidth:"any",parsePatterns:l9,defaultParseWidth:"any"})};const u9=c9;var d9={code:"en-US",formatDistance:OB,formatLong:LB,formatRelative:HB,localize:YB,match:u9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const f9=d9,h9={name:"en-US",locale:f9},L_=h9;var p9={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},m9=function(t,n,o){o=o||{};var r,i=p9[t];return typeof i=="string"?r=i:n===1?o.addSuffix&&i.oneWithSuffix?r=i.oneWithSuffix:r=i.one:o.addSuffix&&i.otherWithSuffix?r=i.otherWithSuffix.replace("{{count}}",String(n)):r=i.other.replace("{{count}}",String(n)),o.addSuffix?o.comparison&&o.comparison>0?r+"後":r+"前":r};const g9=m9;var v9={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},b9={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},y9={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},x9={date:Dn({formats:v9,defaultWidth:"full"}),time:Dn({formats:b9,defaultWidth:"full"}),dateTime:Dn({formats:y9,defaultWidth:"full"})};const C9=x9;var w9={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},_9=function(t,n,o,r){return w9[t]};const S9=_9;var k9={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},P9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},T9={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},E9={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},R9={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:"深夜"}},A9={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:"深夜"}},$9=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"year":return"".concat(o,"年");case"quarter":return"第".concat(o,"四半期");case"month":return"".concat(o,"月");case"week":return"第".concat(o,"週");case"date":return"".concat(o,"日");case"hour":return"".concat(o,"時");case"minute":return"".concat(o,"分");case"second":return"".concat(o,"秒");default:return"".concat(o)}},I9={ordinalNumber:$9,era:Zt({values:k9,defaultWidth:"wide"}),quarter:Zt({values:P9,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Zt({values:T9,defaultWidth:"wide"}),day:Zt({values:E9,defaultWidth:"wide"}),dayPeriod:Zt({values:R9,defaultWidth:"wide",formattingValues:A9,defaultFormattingWidth:"wide"})};const O9=I9;var M9=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,z9=/\d+/i,F9={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},D9={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},L9={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},B9={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},N9={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},H9={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},j9={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},U9={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},V9={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},W9={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},q9={ordinalNumber:ul({matchPattern:M9,parsePattern:z9,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:F9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),quarter:en({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:B9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:N9,defaultMatchWidth:"wide",parsePatterns:H9,defaultParseWidth:"any"}),day:en({matchPatterns:j9,defaultMatchWidth:"wide",parsePatterns:U9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:V9,defaultMatchWidth:"any",parsePatterns:W9,defaultParseWidth:"any"})};const K9=q9;var G9={code:"ja",formatDistance:g9,formatLong:C9,formatRelative:S9,localize:O9,match:K9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const X9=G9,Y9={name:"ja-JP",locale:X9},Q9=Y9;var J9={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Z9=function(t,n,o){var r,i=J9[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" 후":r+" 전":r};const e7=Z9;var t7={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},n7={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},o7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},r7={date:Dn({formats:t7,defaultWidth:"full"}),time:Dn({formats:n7,defaultWidth:"full"}),dateTime:Dn({formats:o7,defaultWidth:"full"})};const i7=r7;var a7={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s7=function(t,n,o,r){return a7[t]};const l7=s7;var c7={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},u7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},d7={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},f7={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},h7={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:"밤"}},p7={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:"밤"}},m7=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"minute":case"second":return String(o);case"date":return o+"일";default:return o+"번째"}},g7={ordinalNumber:m7,era:Zt({values:c7,defaultWidth:"wide"}),quarter:Zt({values:u7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:d7,defaultWidth:"wide"}),day:Zt({values:f7,defaultWidth:"wide"}),dayPeriod:Zt({values:h7,defaultWidth:"wide",formattingValues:p7,defaultFormattingWidth:"wide"})};const v7=g7;var b7=/^(\d+)(일|번째)?/i,y7=/\d+/i,x7={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},C7={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},w7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},_7={any:[/1/i,/2/i,/3/i,/4/i]},S7={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},k7={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},P7={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},T7={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},E7={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},R7={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},A7={ordinalNumber:ul({matchPattern:b7,parsePattern:y7,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:C7,defaultParseWidth:"any"}),quarter:en({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:_7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),day:en({matchPatterns:P7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:E7,defaultMatchWidth:"any",parsePatterns:R7,defaultParseWidth:"any"})};const $7=A7;var I7={code:"ko",formatDistance:e7,formatLong:i7,formatRelative:l7,localize:v7,match:$7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const O7=I7,M7={name:"ko-KR",locale:O7},z7=M7;var F7={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},D7=function(t,n,o){var r,i=F7[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" nữa":r+" trước":r};const L7=D7;var B7={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},N7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},H7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},j7={date:Dn({formats:B7,defaultWidth:"full"}),time:Dn({formats:N7,defaultWidth:"full"}),dateTime:Dn({formats:H7,defaultWidth:"full"})};const U7=j7;var V7={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},W7=function(t,n,o,r){return V7[t]};const q7=W7;var K7={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},G7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},X7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},Y7={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},Q7={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},J7={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},Z7={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},eN={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},tN=function(t,n){var o=Number(t),r=n==null?void 0:n.unit;if(r==="quarter")switch(o){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(r==="day")switch(o){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(r==="week")return o===1?"thứ nhất":"thứ "+o;if(r==="dayOfYear")return o===1?"đầu tiên":"thứ "+o}return String(o)},nN={ordinalNumber:tN,era:Zt({values:K7,defaultWidth:"wide"}),quarter:Zt({values:G7,defaultWidth:"wide",formattingValues:X7,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:Y7,defaultWidth:"wide",formattingValues:Q7,defaultFormattingWidth:"wide"}),day:Zt({values:J7,defaultWidth:"wide"}),dayPeriod:Zt({values:Z7,defaultWidth:"wide",formattingValues:eN,defaultFormattingWidth:"wide"})};const oN=nN;var rN=/^(\d+)/i,iN=/\d+/i,aN={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},sN={any:[/^t/i,/^s/i]},lN={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},cN={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},uN={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},dN={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},fN={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},hN={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},pN={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},mN={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},gN={ordinalNumber:ul({matchPattern:rN,parsePattern:iN,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:aN,defaultMatchWidth:"wide",parsePatterns:sN,defaultParseWidth:"any"}),quarter:en({matchPatterns:lN,defaultMatchWidth:"wide",parsePatterns:cN,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:uN,defaultMatchWidth:"wide",parsePatterns:dN,defaultParseWidth:"wide"}),day:en({matchPatterns:fN,defaultMatchWidth:"wide",parsePatterns:hN,defaultParseWidth:"wide"}),dayPeriod:en({matchPatterns:pN,defaultMatchWidth:"wide",parsePatterns:mN,defaultParseWidth:"any"})};const vN=gN;var bN={code:"vi",formatDistance:L7,formatLong:U7,formatRelative:q7,localize:oN,match:vN,options:{weekStartsOn:1,firstWeekContainsDate:1}};const yN=bN,xN={name:"vi-VN",locale:yN},CN=xN,wN={name:"fa-IR",locale:D_},_N=wN;function Hi(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ve(Ao,null)||{},o=I(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:F_[e]});return{dateLocaleRef:I(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:L_}),localeRef:o}}function ei(e,t,n){if(!t)return;const o=Di(),r=Ve(Ao,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ra,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),r!=null&&r.preflightStyleDisabled||M_.mount({id:"n-global",head:!0,anchorMetaName:Ra,ssr:o})};o?i():hn(i)}function Pt(e,t,n,o){var r;n||hr("useThemeClass","cssVarsRef is not passed");const i=(r=Ve(Ao,null))===null||r===void 0?void 0:r.mergedThemeHashRef,a=U(""),s=Di();let l;const c=`__${e}`,u=()=>{let d=c;const f=t?t.value:void 0,h=i==null?void 0:i.value;h&&(d+=`-${h}`),f&&(d+=`-${f}`);const{themeOverrides:p,builtinThemeOverrides:g}=o;p&&(d+=`-${Xs(JSON.stringify(p))}`),g&&(d+=`-${Xs(JSON.stringify(g))}`),a.value=d,l=()=>{const m=n.value;let b="";for(const w in m)b+=`${w}: ${m[w]};`;W(`.${d}`,b).mount({id:d,ssr:s}),l=void 0}};return Yt(()=>{u()}),{themeClass:a,onRender:()=>{l==null||l()}}}function pn(e,t,n){if(!t)return;const o=Di(),r=I(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Yt(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(s8(s,o))return;const{value:l}=r;l&&l.style.mount({id:s,head:!0,anchorMetaName:Ra,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():hn(i),r}const SN=xe({name:"Add",render(){return v("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),kN=xe({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Va(e,t){return xe({name:h_(e),setup(){var n;const o=(n=Ve(Ao,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var r;const i=(r=o==null?void 0:o.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const M0=xe({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),PN=xe({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),um=xe({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("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"}))}}),TN=Va("close",v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),EN=xe({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),RN=xe({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),AN=xe({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ji=Va("error",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),z0=xe({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),F0=xe({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("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"}))))}}),$N=xe({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),D0=xe({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ur=Va("info",v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),L0=xe({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),IN=xe({name:"Remove",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}}),Ui=Va("success",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),Vi=Va("warning",v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),B_=xe({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),ON=Va("clear",v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),MN=xe({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("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"}))}}),Wi=xe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Zr();return()=>v(fn,{name:"icon-switch-transition",appear:n.value},t)}}),Au=xe({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function o(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function r(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?ST:fn,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:o,onAfterLeave:r};return s||(f.mode=u),v(d,f,t)}}}),zN=z("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -83,40 +92,10 @@ ${t} position: relative; fill: currentColor; transform: translateZ(0); -`,[G("svg",` +`,[W("svg",` height: 1em; width: 1em; - `)]),Gt=be({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ei("-base-icon",AN,ze(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Wi=be({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Jr();return()=>v(pn,{name:"icon-switch-transition",appear:n.value},t)}}),IN=be({name:"Add",render(){return v("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),MN=be({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function qs(e,t){const n=be({render(){return t()}});return be({name:b_(e),setup(){var o;const r=(o=We(go,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var i;const s=(i=r==null?void 0:r.value)===null||i===void 0?void 0:i[e];return s?s():v(n,null)}}})}const L0=be({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),ON=be({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),N_=be({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),zN=be({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("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"}))}}),dm=be({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("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"}))}}),DN=qs("clear",()=>v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),LN=qs("close",()=>v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),FN=be({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ui=qs("error",()=>v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),BN=be({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),NN=be({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),F0=be({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),B0=be({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("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"}))))}}),HN=be({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),N0=be({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Vr=qs("info",()=>v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),H0=be({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),jN=be({name:"Remove",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),qi=qs("success",()=>v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),Ki=qs("warning",()=>v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("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"}))))),{cubicBezierEaseInOut:VN}=yo;function Xn({originalTransform:e="",left:t=0,top:n=0,transition:o=`all .3s ${VN} !important`}={}){return[G("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),G("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),G("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:o})]}const WN=L("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[G(">",[V("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[G("&:hover",` - color: var(--n-clear-color-hover)!important; - `),G("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),V("placeholder",` - display: flex; - `),V("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Xn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Ih=be({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ei("-base-clear",WN,ze(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(Wi,null,{default:()=>{var t,n;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Dn(this.$slots.icon,()=>[v(Gt,{clsPrefix:e},{default:()=>v(DN,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),UN=L("base-close",` + `)]),Wt=xe({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ei("-base-icon",zN,Ue(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),FN=z("base-close",` display: flex; align-items: center; justify-content: center; @@ -131,10 +110,10 @@ ${t} border: none; position: relative; padding: 0; -`,[Z("absolute",` +`,[J("absolute",` height: var(--n-close-icon-size); width: var(--n-close-icon-size); - `),G("&::before",` + `),W("&::before",` content: ""; position: absolute; width: var(--n-close-size); @@ -144,23 +123,23 @@ ${t} transform: translateY(-50%) translateX(-50%); transition: inherit; border-radius: inherit; - `),$t("disabled",[G("&:hover",` + `),Et("disabled",[W("&:hover",` color: var(--n-close-icon-color-hover); - `),G("&:hover::before",` + `),W("&:hover::before",` background-color: var(--n-close-color-hover); - `),G("&:focus::before",` + `),W("&:focus::before",` background-color: var(--n-close-color-hover); - `),G("&:active",` + `),W("&:active",` color: var(--n-close-icon-color-pressed); - `),G("&:active::before",` + `),W("&:active::before",` background-color: var(--n-close-color-pressed); - `)]),Z("disabled",` + `)]),J("disabled",` cursor: not-allowed; color: var(--n-close-icon-color-disabled); background-color: transparent; - `),Z("round",[G("&::before",` + `),J("round",[W("&::before",` border-radius: 50%; - `)])]),Gi=be({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ei("-base-close",UN,ze(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:o,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},v(Gt,{clsPrefix:t},{default:()=>v(LN,null)}))}}}),Iu=be({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function o(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:l}=e;l&&l()}function r(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(a){if(a.style.transition="none",e.width){const l=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${l}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const l=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${l}px`}a.offsetWidth}function s(a){var l;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:a,width:l,appear:c,mode:u}=e,d=a?$P:pn,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:o,onAfterLeave:r};return a||(f.mode=u),v(d,f,t)}}}),qN=be({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),KN=G([G("@keyframes rotator",` + `)])]),qi=xe({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ei("-base-close",FN,Ue(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:o,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},v(Wt,{clsPrefix:t},{default:()=>v(TN,null)}))}}}),DN=xe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:LN}=mo;function Kn({originalTransform:e="",left:t=0,top:n=0,transition:o=`all .3s ${LN} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:o})]}const BN=W([W("@keyframes rotator",` 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); @@ -168,96 +147,31 @@ ${t} 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); - }`),L("base-loading",` + }`),z("base-loading",` position: relative; line-height: 0; width: 1em; height: 1em; - `,[V("transition-wrapper",` + `,[j("transition-wrapper",` position: absolute; width: 100%; height: 100%; - `,[Xn()]),V("placeholder",` + `,[Kn()]),j("placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[Xn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),V("container",` + `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),j("container",` animation: rotator 3s linear infinite both; - `,[V("icon",` + `,[j("icon",` height: 1em; width: 1em; - `)])])]),Kd="1.6s",GN={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ti=be({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},GN),setup(e){ei("-base-loading",KN,ze(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(Wi,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:j0}=yo;function fl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=j0,leaveCubicBezier:r=j0}={}){return[G(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),G(`&.${e}-transition-leave-active`,{transition:`all ${n} ${r}!important`}),G(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),G(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Je={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)"},YN=qo(Je.neutralBase),H_=qo(Je.neutralInvertBase),XN=`rgba(${H_.slice(0,3).join(", ")}, `;function zt(e){return`${XN+String(e)})`}function ZN(e){const t=Array.from(H_);return t[3]=Number(e),Ye(YN,t)}const JN=Object.assign(Object.assign({name:"common"},yo),{baseColor:Je.neutralBase,primaryColor:Je.primaryDefault,primaryColorHover:Je.primaryHover,primaryColorPressed:Je.primaryActive,primaryColorSuppl:Je.primarySuppl,infoColor:Je.infoDefault,infoColorHover:Je.infoHover,infoColorPressed:Je.infoActive,infoColorSuppl:Je.infoSuppl,successColor:Je.successDefault,successColorHover:Je.successHover,successColorPressed:Je.successActive,successColorSuppl:Je.successSuppl,warningColor:Je.warningDefault,warningColorHover:Je.warningHover,warningColorPressed:Je.warningActive,warningColorSuppl:Je.warningSuppl,errorColor:Je.errorDefault,errorColorHover:Je.errorHover,errorColorPressed:Je.errorActive,errorColorSuppl:Je.errorSuppl,textColorBase:Je.neutralTextBase,textColor1:zt(Je.alpha1),textColor2:zt(Je.alpha2),textColor3:zt(Je.alpha3),textColorDisabled:zt(Je.alpha4),placeholderColor:zt(Je.alpha4),placeholderColorDisabled:zt(Je.alpha5),iconColor:zt(Je.alpha4),iconColorDisabled:zt(Je.alpha5),iconColorHover:zt(Number(Je.alpha4)*1.25),iconColorPressed:zt(Number(Je.alpha4)*.8),opacity1:Je.alpha1,opacity2:Je.alpha2,opacity3:Je.alpha3,opacity4:Je.alpha4,opacity5:Je.alpha5,dividerColor:zt(Je.alphaDivider),borderColor:zt(Je.alphaBorder),closeIconColorHover:zt(Number(Je.alphaClose)),closeIconColor:zt(Number(Je.alphaClose)),closeIconColorPressed:zt(Number(Je.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:zt(Je.alpha4),clearColorHover:fn(zt(Je.alpha4),{alpha:1.25}),clearColorPressed:fn(zt(Je.alpha4),{alpha:.8}),scrollbarColor:zt(Je.alphaScrollbar),scrollbarColorHover:zt(Je.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:zt(Je.alphaProgressRail),railColor:zt(Je.alphaRail),popoverColor:Je.neutralPopover,tableColor:Je.neutralCard,cardColor:Je.neutralCard,modalColor:Je.neutralModal,bodyColor:Je.neutralBody,tagColor:ZN(Je.alphaTag),avatarColor:zt(Je.alphaAvatar),invertedColor:Je.neutralBase,inputColor:zt(Je.alphaInput),codeColor:zt(Je.alphaCode),tabColor:zt(Je.alphaTab),actionColor:zt(Je.alphaAction),tableHeaderColor:zt(Je.alphaAction),hoverColor:zt(Je.alphaPending),tableColorHover:zt(Je.alphaTablePending),tableColorStriped:zt(Je.alphaTableStriped),pressedColor:zt(Je.alphaPressed),opacityDisabled:Je.alphaDisabled,inputColorDisabled:zt(Je.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)"}),je=JN,ut={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},QN=qo(ut.neutralBase),j_=qo(ut.neutralInvertBase),eH=`rgba(${j_.slice(0,3).join(", ")}, `;function V0(e){return`${eH+String(e)})`}function In(e){const t=Array.from(j_);return t[3]=Number(e),Ye(QN,t)}const tH=Object.assign(Object.assign({name:"common"},yo),{baseColor:ut.neutralBase,primaryColor:ut.primaryDefault,primaryColorHover:ut.primaryHover,primaryColorPressed:ut.primaryActive,primaryColorSuppl:ut.primarySuppl,infoColor:ut.infoDefault,infoColorHover:ut.infoHover,infoColorPressed:ut.infoActive,infoColorSuppl:ut.infoSuppl,successColor:ut.successDefault,successColorHover:ut.successHover,successColorPressed:ut.successActive,successColorSuppl:ut.successSuppl,warningColor:ut.warningDefault,warningColorHover:ut.warningHover,warningColorPressed:ut.warningActive,warningColorSuppl:ut.warningSuppl,errorColor:ut.errorDefault,errorColorHover:ut.errorHover,errorColorPressed:ut.errorActive,errorColorSuppl:ut.errorSuppl,textColorBase:ut.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:In(ut.alpha4),placeholderColor:In(ut.alpha4),placeholderColorDisabled:In(ut.alpha5),iconColor:In(ut.alpha4),iconColorHover:fn(In(ut.alpha4),{lightness:.75}),iconColorPressed:fn(In(ut.alpha4),{lightness:.9}),iconColorDisabled:In(ut.alpha5),opacity1:ut.alpha1,opacity2:ut.alpha2,opacity3:ut.alpha3,opacity4:ut.alpha4,opacity5:ut.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:In(Number(ut.alphaClose)),closeIconColorHover:In(Number(ut.alphaClose)),closeIconColorPressed:In(Number(ut.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:In(ut.alpha4),clearColorHover:fn(In(ut.alpha4),{lightness:.75}),clearColorPressed:fn(In(ut.alpha4),{lightness:.9}),scrollbarColor:V0(ut.alphaScrollbar),scrollbarColorHover:V0(ut.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:In(ut.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:ut.neutralPopover,tableColor:ut.neutralCard,cardColor:ut.neutralCard,modalColor:ut.neutralModal,bodyColor:ut.neutralBody,tagColor:"#eee",avatarColor:In(ut.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:In(ut.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:ut.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),xt=tH,nH={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function V_(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:o,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},nH),{height:o,width:r,borderRadius:i,color:t,colorHover:n})}const oH={name:"Scrollbar",common:xt,self:V_},Yi=oH,rH={name:"Scrollbar",common:je,self:V_},qn=rH,iH=L("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[G(">",[L("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - min-height: inherit; - max-height: inherit; - scrollbar-width: none; - `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),G(">",[L("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),G(">, +",[L("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - background: var(--n-scrollbar-rail-color); - -webkit-user-select: none; - `,[Z("horizontal",` - height: var(--n-scrollbar-height); - `,[G(">",[V("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),Z("horizontal--top",` - top: var(--n-scrollbar-rail-top-horizontal-top); - right: var(--n-scrollbar-rail-right-horizontal-top); - bottom: var(--n-scrollbar-rail-bottom-horizontal-top); - left: var(--n-scrollbar-rail-left-horizontal-top); - `),Z("horizontal--bottom",` - top: var(--n-scrollbar-rail-top-horizontal-bottom); - right: var(--n-scrollbar-rail-right-horizontal-bottom); - bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); - left: var(--n-scrollbar-rail-left-horizontal-bottom); - `),Z("vertical",` - width: var(--n-scrollbar-width); - `,[G(">",[V("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),Z("vertical--left",` - top: var(--n-scrollbar-rail-top-vertical-left); - right: var(--n-scrollbar-rail-right-vertical-left); - bottom: var(--n-scrollbar-rail-bottom-vertical-left); - left: var(--n-scrollbar-rail-left-vertical-left); - `),Z("vertical--right",` - top: var(--n-scrollbar-rail-top-vertical-right); - right: var(--n-scrollbar-rail-right-vertical-right); - bottom: var(--n-scrollbar-rail-bottom-vertical-right); - left: var(--n-scrollbar-rail-left-vertical-right); - `),Z("disabled",[G(">",[V("scrollbar","pointer-events: none;")])]),G(">",[V("scrollbar",` - z-index: 1; - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[fl(),G("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),sH=Object.assign(Object.assign({},Be.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),W_=be({name:"Scrollbar",props:sH,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=lt(e),r=gn("Scrollbar",o,t),i=H(null),s=H(null),a=H(null),l=H(null),c=H(null),u=H(null),d=H(null),f=H(null),h=H(null),p=H(null),m=H(null),g=H(0),b=H(0),w=H(!1),C=H(!1);let S=!1,_=!1,x,y,T=0,k=0,P=0,I=0;const R=P8(),W=Be("Scrollbar","-scrollbar",iH,Yi,e,t),O=D(()=>{const{value:X}=f,{value:ce}=u,{value:Ee}=p;return X===null||ce===null||Ee===null?0:Math.min(X,Ee*X/ce+Cn(W.value.self.width)*1.5)}),M=D(()=>`${O.value}px`),z=D(()=>{const{value:X}=h,{value:ce}=d,{value:Ee}=m;return X===null||ce===null||Ee===null?0:Ee*X/ce+Cn(W.value.self.height)*1.5}),K=D(()=>`${z.value}px`),J=D(()=>{const{value:X}=f,{value:ce}=g,{value:Ee}=u,{value:Fe}=p;if(X===null||Ee===null||Fe===null)return 0;{const Ve=Ee-X;return Ve?ce/Ve*(Fe-O.value):0}}),se=D(()=>`${J.value}px`),le=D(()=>{const{value:X}=h,{value:ce}=b,{value:Ee}=d,{value:Fe}=m;if(X===null||Ee===null||Fe===null)return 0;{const Ve=Ee-X;return Ve?ce/Ve*(Fe-z.value):0}}),F=D(()=>`${le.value}px`),E=D(()=>{const{value:X}=f,{value:ce}=u;return X!==null&&ce!==null&&ce>X}),A=D(()=>{const{value:X}=h,{value:ce}=d;return X!==null&&ce!==null&&ce>X}),Y=D(()=>{const{trigger:X}=e;return X==="none"||w.value}),ne=D(()=>{const{trigger:X}=e;return X==="none"||C.value}),fe=D(()=>{const{container:X}=e;return X?X():s.value}),Q=D(()=>{const{content:X}=e;return X?X():a.value}),Ce=(X,ce)=>{if(!e.scrollable)return;if(typeof X=="number"){U(X,ce??0,0,!1,"auto");return}const{left:Ee,top:Fe,index:Ve,elSize:Xe,position:Qe,behavior:rt,el:wt,debounce:Ft=!0}=X;(Ee!==void 0||Fe!==void 0)&&U(Ee??0,Fe??0,0,!1,rt),wt!==void 0?U(0,wt.offsetTop,wt.offsetHeight,Ft,rt):Ve!==void 0&&Xe!==void 0?U(0,Ve*Xe,Xe,Ft,rt):Qe==="bottom"?U(0,Number.MAX_SAFE_INTEGER,0,!1,rt):Qe==="top"&&U(0,0,0,!1,rt)},j=qp(()=>{e.container||Ce({top:g.value,left:b.value})}),ye=()=>{j.isDeactivated||he()},Ie=X=>{if(j.isDeactivated)return;const{onResize:ce}=e;ce&&ce(X),he()},Le=(X,ce)=>{if(!e.scrollable)return;const{value:Ee}=fe;Ee&&(typeof X=="object"?Ee.scrollBy(X):Ee.scrollBy(X,ce||0))};function U(X,ce,Ee,Fe,Ve){const{value:Xe}=fe;if(Xe){if(Fe){const{scrollTop:Qe,offsetHeight:rt}=Xe;if(ce>Qe){ce+Ee<=Qe+rt||Xe.scrollTo({left:X,top:ce+Ee-rt,behavior:Ve});return}}Xe.scrollTo({left:X,top:ce,behavior:Ve})}}function B(){ve(),$(),he()}function ae(){Se()}function Se(){te(),xe()}function te(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{C.value=!1},e.duration)}function xe(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{w.value=!1},e.duration)}function ve(){x!==void 0&&window.clearTimeout(x),w.value=!0}function $(){y!==void 0&&window.clearTimeout(y),C.value=!0}function N(X){const{onScroll:ce}=e;ce&&ce(X),ee()}function ee(){const{value:X}=fe;X&&(g.value=X.scrollTop,b.value=X.scrollLeft*(r!=null&&r.value?-1:1))}function we(){const{value:X}=Q;X&&(u.value=X.offsetHeight,d.value=X.offsetWidth);const{value:ce}=fe;ce&&(f.value=ce.offsetHeight,h.value=ce.offsetWidth);const{value:Ee}=c,{value:Fe}=l;Ee&&(m.value=Ee.offsetWidth),Fe&&(p.value=Fe.offsetHeight)}function de(){const{value:X}=fe;X&&(g.value=X.scrollTop,b.value=X.scrollLeft*(r!=null&&r.value?-1:1),f.value=X.offsetHeight,h.value=X.offsetWidth,u.value=X.scrollHeight,d.value=X.scrollWidth);const{value:ce}=c,{value:Ee}=l;ce&&(m.value=ce.offsetWidth),Ee&&(p.value=Ee.offsetHeight)}function he(){e.scrollable&&(e.useUnifiedContainer?de():(we(),ee()))}function re(X){var ce;return!(!((ce=i.value)===null||ce===void 0)&&ce.contains(Ai(X)))}function me(X){X.preventDefault(),X.stopPropagation(),_=!0,St("mousemove",window,Ne,!0),St("mouseup",window,He,!0),k=b.value,P=r!=null&&r.value?window.innerWidth-X.clientX:X.clientX}function Ne(X){if(!_)return;x!==void 0&&window.clearTimeout(x),y!==void 0&&window.clearTimeout(y);const{value:ce}=h,{value:Ee}=d,{value:Fe}=z;if(ce===null||Ee===null)return;const Xe=(r!=null&&r.value?window.innerWidth-X.clientX-P:X.clientX-P)*(Ee-ce)/(ce-Fe),Qe=Ee-ce;let rt=k+Xe;rt=Math.min(Qe,rt),rt=Math.max(rt,0);const{value:wt}=fe;if(wt){wt.scrollLeft=rt*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Ft}=e;Ft&&Ft(rt)}}function He(X){X.preventDefault(),X.stopPropagation(),Tt("mousemove",window,Ne,!0),Tt("mouseup",window,He,!0),_=!1,he(),re(X)&&Se()}function De(X){X.preventDefault(),X.stopPropagation(),S=!0,St("mousemove",window,ot,!0),St("mouseup",window,nt,!0),T=g.value,I=X.clientY}function ot(X){if(!S)return;x!==void 0&&window.clearTimeout(x),y!==void 0&&window.clearTimeout(y);const{value:ce}=f,{value:Ee}=u,{value:Fe}=O;if(ce===null||Ee===null)return;const Xe=(X.clientY-I)*(Ee-ce)/(ce-Fe),Qe=Ee-ce;let rt=T+Xe;rt=Math.min(Qe,rt),rt=Math.max(rt,0);const{value:wt}=fe;wt&&(wt.scrollTop=rt)}function nt(X){X.preventDefault(),X.stopPropagation(),Tt("mousemove",window,ot,!0),Tt("mouseup",window,nt,!0),S=!1,he(),re(X)&&Se()}Jt(()=>{const{value:X}=A,{value:ce}=E,{value:Ee}=t,{value:Fe}=c,{value:Ve}=l;Fe&&(X?Fe.classList.remove(`${Ee}-scrollbar-rail--disabled`):Fe.classList.add(`${Ee}-scrollbar-rail--disabled`)),Ve&&(ce?Ve.classList.remove(`${Ee}-scrollbar-rail--disabled`):Ve.classList.add(`${Ee}-scrollbar-rail--disabled`))}),Wt(()=>{e.container||he()}),rn(()=>{x!==void 0&&window.clearTimeout(x),y!==void 0&&window.clearTimeout(y),Tt("mousemove",window,ot,!0),Tt("mouseup",window,nt,!0)});const Ge=D(()=>{const{common:{cubicBezierEaseInOut:X},self:{color:ce,colorHover:Ee,height:Fe,width:Ve,borderRadius:Xe,railInsetHorizontalTop:Qe,railInsetHorizontalBottom:rt,railInsetVerticalRight:wt,railInsetVerticalLeft:Ft,railColor:Et}}=W.value,{top:yn,right:cn,bottom:Te,left:Ue}=zn(Qe),{top:et,right:ft,bottom:ht,left:oe}=zn(rt),{top:ke,right:qe,bottom:ct,left:At}=zn(r!=null&&r.value?Xb(wt):wt),{top:It,right:Yt,bottom:nn,left:Gn}=zn(r!=null&&r.value?Xb(Ft):Ft);return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":ce,"--n-scrollbar-color-hover":Ee,"--n-scrollbar-border-radius":Xe,"--n-scrollbar-width":Ve,"--n-scrollbar-height":Fe,"--n-scrollbar-rail-top-horizontal-top":yn,"--n-scrollbar-rail-right-horizontal-top":cn,"--n-scrollbar-rail-bottom-horizontal-top":Te,"--n-scrollbar-rail-left-horizontal-top":Ue,"--n-scrollbar-rail-top-horizontal-bottom":et,"--n-scrollbar-rail-right-horizontal-bottom":ft,"--n-scrollbar-rail-bottom-horizontal-bottom":ht,"--n-scrollbar-rail-left-horizontal-bottom":oe,"--n-scrollbar-rail-top-vertical-right":ke,"--n-scrollbar-rail-right-vertical-right":qe,"--n-scrollbar-rail-bottom-vertical-right":ct,"--n-scrollbar-rail-left-vertical-right":At,"--n-scrollbar-rail-top-vertical-left":It,"--n-scrollbar-rail-right-vertical-left":Yt,"--n-scrollbar-rail-bottom-vertical-left":nn,"--n-scrollbar-rail-left-vertical-left":Gn,"--n-scrollbar-rail-color":Et}}),Me=n?Rt("scrollbar",void 0,Ge,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ce,scrollBy:Le,sync:he,syncUnifiedContainer:de,handleMouseEnterWrapper:B,handleMouseLeaveWrapper:ae}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:g,wrapperRef:i,containerRef:s,contentRef:a,yRailRef:l,xRailRef:c,needYBar:E,needXBar:A,yBarSizePx:M,xBarSizePx:K,yBarTopPx:se,xBarLeftPx:F,isShowXBar:Y,isShowYBar:ne,isIos:R,handleScroll:N,handleContentResize:ye,handleContainerResize:Ie,handleYScrollMouseDown:De,handleXScrollMouseDown:me,cssVars:n?void 0:Ge,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:i,yPlacement:s,xPlacement:a,xScrollable:l}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(h,p)=>v("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${s}`,h],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},v(c?wh:pn,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),d=()=>{var h,p;return(h=this.onRender)===null||h===void 0||h.call(this),v("div",Ln(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,r&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):v("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(cr,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),l&&v("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${a}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(c?wh:pn,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?d():v(cr,{onResize:this.handleContainerResize},{default:d});return i?v(st,null,f,u(this.themeClass,this.cssVars)):f}}),Mo=W_,U_=W_;function W0(e){return Array.isArray(e)?e:[e]}const Mh={STOP:"STOP"};function q_(e,t){const n=t(e);e.children!==void 0&&n!==Mh.STOP&&e.children.forEach(o=>q_(o,t))}function aH(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?s=>{s.isLeaf||(o.push(s.key),i(s.children))}:s=>{s.isLeaf||(s.isGroup||o.push(s.key),i(s.children))};function i(s){s.forEach(r)}return i(e),o}function lH(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function cH(e){return e.children}function uH(e){return e.key}function dH(){return!1}function fH(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function hH(e){return e.disabled===!0}function pH(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Gd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Yd(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function mH(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function gH(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function vH(e){return(e==null?void 0:e.type)==="group"}function bH(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class yH extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function xH(e,t,n,o){return Lc(t.concat(e),n,o,!1)}function CH(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function wH(e,t,n,o){const r=Lc(t,n,o,!1),i=Lc(e,n,o,!0),s=CH(e,n),a=[];return r.forEach(l=>{(i.has(l)||s.has(l))&&a.push(l)}),a.forEach(l=>r.delete(l)),r}function Xd(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:i,cascade:s,leafOnly:a,checkStrategy:l,allowNotLoaded:c}=e;if(!s)return o!==void 0?{checkedKeys:mH(n,o),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:gH(n,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;r!==void 0?d=wH(r,n,t,c):o!==void 0?d=xH(o,n,t,c):d=Lc(n,t,c,!1);const f=l==="parent",h=l==="child"||a,p=d,m=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let b=g;b>=0;b-=1){const w=b===0,C=u.get(b);for(const S of C){if(S.isLeaf)continue;const{key:_,shallowLoaded:x}=S;if(h&&x&&S.children.forEach(P=>{!P.disabled&&!P.isLeaf&&P.shallowLoaded&&p.has(P.key)&&p.delete(P.key)}),S.disabled||!x)continue;let y=!0,T=!1,k=!0;for(const P of S.children){const I=P.key;if(!P.disabled){if(k&&(k=!1),p.has(I))T=!0;else if(m.has(I)){T=!0,y=!1;break}else if(y=!1,T)break}}y&&!k?(f&&S.children.forEach(P=>{!P.disabled&&p.has(P.key)&&p.delete(P.key)}),p.add(_)):T&&m.add(_),w&&h&&p.has(_)&&p.delete(_)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(m)}}function Lc(e,t,n,o){const{treeNodeMap:r,getChildren:i}=t,s=new Set,a=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&q_(c,u=>{if(u.disabled)return Mh.STOP;const{key:d}=u;if(!s.has(d)&&(s.add(d),a.add(d),pH(u.rawNode,i))){if(o)return Mh.STOP;if(!n)throw new yH}})}),a}function _H(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const i=o.treeNodeMap;let s=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const a={keyPath:[],treeNodePath:[],treeNode:s};if(s!=null&&s.ignored)return a.treeNode=null,a;for(;s;)!s.ignored&&(t||!s.isGroup)&&a.treeNodePath.push(s),s=s.parent;return a.treeNodePath.reverse(),n||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map(l=>l.key),a}function SH(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function kH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function U0(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?PH:kH,i={reverse:t==="prev"};let s=!1,a=null;function l(c){if(c!==null){if(c===e){if(!s)s=!0;else if(!e.disabled&&!e.isGroup){a=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){a=c;return}if(c.isGroup){const u=fm(c,i);u!==null?a=u:l(r(c,n))}else{const u=r(c,!1);if(u!==null)l(u);else{const d=TH(c);d!=null&&d.isGroup?l(r(d,n)):n&&l(r(c,!0))}}}}return l(e),a}function PH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function TH(e){return e.parent}function fm(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,i=n?r-1:0,s=n?-1:r,a=n?-1:1;for(let l=i;l!==s;l+=a){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=fm(c,t);if(u!==null)return u}else return c}}return null}const RH={getChild(){return this.ignored?null:fm(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return U0(this,"next",e)},getPrev(e={}){return U0(this,"prev",e)}};function EH(e,t){const n=t?new Set(t):void 0,o=[];function r(i){i.forEach(s=>{o.push(s),!(s.isLeaf||!s.children||s.ignored)&&(s.isGroup||n===void 0||n.has(s.key))&&r(s.children)})}return r(e),o}function $H(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function K_(e,t,n,o,r,i=null,s=0){const a=[];return e.forEach((l,c)=>{var u;const d=Object.create(o);if(d.rawNode=l,d.siblings=a,d.level=s,d.index=c,d.isFirstChild=c===0,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const f=r(l);Array.isArray(f)&&(d.children=K_(f,t,n,o,r,d,s+1))}a.push(d),t.set(d.key,d),n.has(s)||n.set(s,[]),(u=n.get(s))===null||u===void 0||u.push(d)}),a}function Pi(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:i=hH,getIgnored:s=dH,getIsGroup:a=vH,getKey:l=uH}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:cH,u=t.ignoreEmptyChildren?S=>{const _=c(S);return Array.isArray(_)?_.length?_:null:_}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return lH(this.rawNode,u)},get shallowLoaded(){return fH(this.rawNode,u)},get ignored(){return s(this.rawNode)},contains(S){return $H(this,S)}},RH),f=K_(e,o,r,d,u);function h(S){if(S==null)return null;const _=o.get(S);return _&&!_.isGroup&&!_.ignored?_:null}function p(S){if(S==null)return null;const _=o.get(S);return _&&!_.ignored?_:null}function m(S,_){const x=p(S);return x?x.getPrev(_):null}function g(S,_){const x=p(S);return x?x.getNext(_):null}function b(S){const _=p(S);return _?_.getParent():null}function w(S){const _=p(S);return _?_.getChild():null}const C={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:u,getFlattenedNodes(S){return EH(f,S)},getNode:h,getPrev:m,getNext:g,getParent:b,getChild:w,getFirstAvailableNode(){return SH(f)},getPath(S,_={}){return _H(S,_,C)},getCheckedKeys(S,_={}){const{cascade:x=!0,leafOnly:y=!1,checkStrategy:T="all",allowNotLoaded:k=!1}=_;return Xd({checkedKeys:Gd(S),indeterminateKeys:Yd(S),cascade:x,leafOnly:y,checkStrategy:T,allowNotLoaded:k},C)},check(S,_,x={}){const{cascade:y=!0,leafOnly:T=!1,checkStrategy:k="all",allowNotLoaded:P=!1}=x;return Xd({checkedKeys:Gd(_),indeterminateKeys:Yd(_),keysToCheck:S==null?[]:W0(S),cascade:y,leafOnly:T,checkStrategy:k,allowNotLoaded:P},C)},uncheck(S,_,x={}){const{cascade:y=!0,leafOnly:T=!1,checkStrategy:k="all",allowNotLoaded:P=!1}=x;return Xd({checkedKeys:Gd(_),indeterminateKeys:Yd(_),keysToUncheck:S==null?[]:W0(S),cascade:y,leafOnly:T,checkStrategy:k,allowNotLoaded:P},C)},getNonLeafKeys(S={}){return aH(f,S)}};return C}const AH={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function G_(e){const{textColorDisabled:t,iconColor:n,textColor2:o,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},AH),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:o})}const IH={name:"Empty",common:xt,self:G_},Mu=IH,MH={name:"Empty",common:je,self:G_},Xi=MH,OH=L("empty",` + `)])])]),Kd="1.6s",NN={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ti=xe({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},NN),setup(e){ei("-base-loading",BN,Ue(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(Wi,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function B0(e){return Array.isArray(e)?e:[e]}const Mh={STOP:"STOP"};function N_(e,t){const n=t(e);e.children!==void 0&&n!==Mh.STOP&&e.children.forEach(o=>N_(o,t))}function HN(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),o}function jN(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function UN(e){return e.children}function VN(e){return e.key}function WN(){return!1}function qN(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function KN(e){return e.disabled===!0}function GN(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Gd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Xd(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function XN(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function YN(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function QN(e){return(e==null?void 0:e.type)==="group"}function JN(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class ZN extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function eH(e,t,n,o){return Dc(t.concat(e),n,o,!1)}function tH(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function nH(e,t,n,o){const r=Dc(t,n,o,!1),i=Dc(e,n,o,!0),a=tH(e,n),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function Yd(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:XN(n,o),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:YN(n,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;r!==void 0?d=nH(r,n,t,c):o!==void 0?d=eH(o,n,t,c):d=Dc(n,t,c,!1);const f=l==="parent",h=l==="child"||s,p=d,g=new Set,m=Math.max.apply(null,Array.from(u.keys()));for(let b=m;b>=0;b-=1){const w=b===0,C=u.get(b);for(const _ of C){if(_.isLeaf)continue;const{key:S,shallowLoaded:y}=_;if(h&&y&&_.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&p.has(T.key)&&p.delete(T.key)}),_.disabled||!y)continue;let x=!0,P=!1,k=!0;for(const T of _.children){const R=T.key;if(!T.disabled){if(k&&(k=!1),p.has(R))P=!0;else if(g.has(R)){P=!0,x=!1;break}else if(x=!1,P)break}}x&&!k?(f&&_.children.forEach(T=>{!T.disabled&&p.has(T.key)&&p.delete(T.key)}),p.add(S)):P&&g.add(S),w&&h&&p.has(S)&&p.delete(S)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function Dc(e,t,n,o){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&&N_(c,u=>{if(u.disabled)return Mh.STOP;const{key:d}=u;if(!a.has(d)&&(a.add(d),s.add(d),GN(u.rawNode,i))){if(o)return Mh.STOP;if(!n)throw new ZN}})}),s}function oH(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const i=o.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(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function rH(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function iH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function N0(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?aH:iH,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||o)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const u=dm(c,i);u!==null?s=u:l(r(c,n))}else{const u=r(c,!1);if(u!==null)l(u);else{const d=sH(c);d!=null&&d.isGroup?l(r(d,n)):n&&l(r(c,!0))}}}}return l(e),s}function aH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function sH(e){return e.parent}function dm(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,i=n?r-1:0,a=n?-1:r,s=n?-1:1;for(let l=i;l!==a;l+=s){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=dm(c,t);if(u!==null)return u}else return c}}return null}const lH={getChild(){return this.ignored?null:dm(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return N0(this,"next",e)},getPrev(e={}){return N0(this,"prev",e)}};function cH(e,t){const n=t?new Set(t):void 0,o=[];function r(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&r(a.children)})}return r(e),o}function uH(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function H_(e,t,n,o,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var u;const d=Object.create(o);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=c,d.isFirstChild=c===0,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const f=r(l);Array.isArray(f)&&(d.children=H_(f,t,n,o,r,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),(u=n.get(a))===null||u===void 0||u.push(d)}),s}function Pi(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:i=KN,getIgnored:a=WN,getIsGroup:s=QN,getKey:l=VN}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:UN,u=t.ignoreEmptyChildren?_=>{const S=c(_);return Array.isArray(S)?S.length?S:null:S}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return jN(this.rawNode,u)},get shallowLoaded(){return qN(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(_){return uH(this,_)}},lH),f=H_(e,o,r,d,u);function h(_){if(_==null)return null;const S=o.get(_);return S&&!S.isGroup&&!S.ignored?S:null}function p(_){if(_==null)return null;const S=o.get(_);return S&&!S.ignored?S:null}function g(_,S){const y=p(_);return y?y.getPrev(S):null}function m(_,S){const y=p(_);return y?y.getNext(S):null}function b(_){const S=p(_);return S?S.getParent():null}function w(_){const S=p(_);return S?S.getChild():null}const C={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:u,getFlattenedNodes(_){return cH(f,_)},getNode:h,getPrev:g,getNext:m,getParent:b,getChild:w,getFirstAvailableNode(){return rH(f)},getPath(_,S={}){return oH(_,S,C)},getCheckedKeys(_,S={}){const{cascade:y=!0,leafOnly:x=!1,checkStrategy:P="all",allowNotLoaded:k=!1}=S;return Yd({checkedKeys:Gd(_),indeterminateKeys:Xd(_),cascade:y,leafOnly:x,checkStrategy:P,allowNotLoaded:k},C)},check(_,S,y={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:k="all",allowNotLoaded:T=!1}=y;return Yd({checkedKeys:Gd(S),indeterminateKeys:Xd(S),keysToCheck:_==null?[]:B0(_),cascade:x,leafOnly:P,checkStrategy:k,allowNotLoaded:T},C)},uncheck(_,S,y={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:k="all",allowNotLoaded:T=!1}=y;return Yd({checkedKeys:Gd(S),indeterminateKeys:Xd(S),keysToUncheck:_==null?[]:B0(_),cascade:x,leafOnly:P,checkStrategy:k,allowNotLoaded:T},C)},getNonLeafKeys(_={}){return HN(f,_)}};return C}const Ye={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)"},dH=qo(Ye.neutralBase),j_=qo(Ye.neutralInvertBase),fH=`rgba(${j_.slice(0,3).join(", ")}, `;function Ot(e){return`${fH+String(e)})`}function hH(e){const t=Array.from(j_);return t[3]=Number(e),Ke(dH,t)}const pH=Object.assign(Object.assign({name:"common"},mo),{baseColor:Ye.neutralBase,primaryColor:Ye.primaryDefault,primaryColorHover:Ye.primaryHover,primaryColorPressed:Ye.primaryActive,primaryColorSuppl:Ye.primarySuppl,infoColor:Ye.infoDefault,infoColorHover:Ye.infoHover,infoColorPressed:Ye.infoActive,infoColorSuppl:Ye.infoSuppl,successColor:Ye.successDefault,successColorHover:Ye.successHover,successColorPressed:Ye.successActive,successColorSuppl:Ye.successSuppl,warningColor:Ye.warningDefault,warningColorHover:Ye.warningHover,warningColorPressed:Ye.warningActive,warningColorSuppl:Ye.warningSuppl,errorColor:Ye.errorDefault,errorColorHover:Ye.errorHover,errorColorPressed:Ye.errorActive,errorColorSuppl:Ye.errorSuppl,textColorBase:Ye.neutralTextBase,textColor1:Ot(Ye.alpha1),textColor2:Ot(Ye.alpha2),textColor3:Ot(Ye.alpha3),textColorDisabled:Ot(Ye.alpha4),placeholderColor:Ot(Ye.alpha4),placeholderColorDisabled:Ot(Ye.alpha5),iconColor:Ot(Ye.alpha4),iconColorDisabled:Ot(Ye.alpha5),iconColorHover:Ot(Number(Ye.alpha4)*1.25),iconColorPressed:Ot(Number(Ye.alpha4)*.8),opacity1:Ye.alpha1,opacity2:Ye.alpha2,opacity3:Ye.alpha3,opacity4:Ye.alpha4,opacity5:Ye.alpha5,dividerColor:Ot(Ye.alphaDivider),borderColor:Ot(Ye.alphaBorder),closeIconColorHover:Ot(Number(Ye.alphaClose)),closeIconColor:Ot(Number(Ye.alphaClose)),closeIconColorPressed:Ot(Number(Ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ot(Ye.alpha4),clearColorHover:un(Ot(Ye.alpha4),{alpha:1.25}),clearColorPressed:un(Ot(Ye.alpha4),{alpha:.8}),scrollbarColor:Ot(Ye.alphaScrollbar),scrollbarColorHover:Ot(Ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ot(Ye.alphaProgressRail),railColor:Ot(Ye.alphaRail),popoverColor:Ye.neutralPopover,tableColor:Ye.neutralCard,cardColor:Ye.neutralCard,modalColor:Ye.neutralModal,bodyColor:Ye.neutralBody,tagColor:hH(Ye.alphaTag),avatarColor:Ot(Ye.alphaAvatar),invertedColor:Ye.neutralBase,inputColor:Ot(Ye.alphaInput),codeColor:Ot(Ye.alphaCode),tabColor:Ot(Ye.alphaTab),actionColor:Ot(Ye.alphaAction),tableHeaderColor:Ot(Ye.alphaAction),hoverColor:Ot(Ye.alphaPending),tableColorHover:Ot(Ye.alphaTablePending),tableColorStriped:Ot(Ye.alphaTableStriped),pressedColor:Ot(Ye.alphaPressed),opacityDisabled:Ye.alphaDisabled,inputColorDisabled:Ot(Ye.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)"}),He=pH,lt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},mH=qo(lt.neutralBase),U_=qo(lt.neutralInvertBase),gH=`rgba(${U_.slice(0,3).join(", ")}, `;function H0(e){return`${gH+String(e)})`}function En(e){const t=Array.from(U_);return t[3]=Number(e),Ke(mH,t)}const vH=Object.assign(Object.assign({name:"common"},mo),{baseColor:lt.neutralBase,primaryColor:lt.primaryDefault,primaryColorHover:lt.primaryHover,primaryColorPressed:lt.primaryActive,primaryColorSuppl:lt.primarySuppl,infoColor:lt.infoDefault,infoColorHover:lt.infoHover,infoColorPressed:lt.infoActive,infoColorSuppl:lt.infoSuppl,successColor:lt.successDefault,successColorHover:lt.successHover,successColorPressed:lt.successActive,successColorSuppl:lt.successSuppl,warningColor:lt.warningDefault,warningColorHover:lt.warningHover,warningColorPressed:lt.warningActive,warningColorSuppl:lt.warningSuppl,errorColor:lt.errorDefault,errorColorHover:lt.errorHover,errorColorPressed:lt.errorActive,errorColorSuppl:lt.errorSuppl,textColorBase:lt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:En(lt.alpha4),placeholderColor:En(lt.alpha4),placeholderColorDisabled:En(lt.alpha5),iconColor:En(lt.alpha4),iconColorHover:un(En(lt.alpha4),{lightness:.75}),iconColorPressed:un(En(lt.alpha4),{lightness:.9}),iconColorDisabled:En(lt.alpha5),opacity1:lt.alpha1,opacity2:lt.alpha2,opacity3:lt.alpha3,opacity4:lt.alpha4,opacity5:lt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:En(Number(lt.alphaClose)),closeIconColorHover:En(Number(lt.alphaClose)),closeIconColorPressed:En(Number(lt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:En(lt.alpha4),clearColorHover:un(En(lt.alpha4),{lightness:.75}),clearColorPressed:un(En(lt.alpha4),{lightness:.9}),scrollbarColor:H0(lt.alphaScrollbar),scrollbarColorHover:H0(lt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:En(lt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:lt.neutralPopover,tableColor:lt.neutralCard,cardColor:lt.neutralCard,modalColor:lt.neutralModal,bodyColor:lt.neutralBody,tagColor:"#eee",avatarColor:En(lt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:En(lt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:lt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),xt=vH,bH={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function V_(e){const{textColorDisabled:t,iconColor:n,textColor2:o,fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},bH),{fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:n,extraTextColor:o})}const yH={name:"Empty",common:xt,self:V_},$u=yH,xH={name:"Empty",common:He,self:V_},Ki=xH,CH=z("empty",` display: flex; flex-direction: column; align-items: center; font-size: var(--n-font-size); -`,[V("icon",` +`,[j("icon",` width: var(--n-icon-size); height: var(--n-icon-size); font-size: var(--n-icon-size); @@ -265,17 +179,64 @@ ${t} color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `,[G("+",[V("description",` + `,[W("+",[j("description",` margin-top: 8px; - `)])]),V("description",` + `)])]),j("description",` transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),V("extra",` + `),j("extra",` text-align: center; transition: color .3s var(--n-bezier); margin-top: 12px; color: var(--n-extra-text-color); - `)]),zH=Object.assign(Object.assign({},Be.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Y_=be({name:"Empty",props:zH,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:o}=lt(e),r=Be("Empty","-empty",OH,Mu,e,t),{localeRef:i}=Vi("Empty"),s=D(()=>{var u,d,f;return(u=e.description)!==null&&u!==void 0?u:(f=(d=o==null?void 0:o.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),a=D(()=>{var u,d;return((d=(u=o==null?void 0:o.value)===null||u===void 0?void 0:u.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>v(FN,null))}),l=D(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:d},self:{[Re("iconSize",u)]:f,[Re("fontSize",u)]:h,textColor:p,iconColor:m,extraTextColor:g}}=r.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":d,"--n-text-color":p,"--n-icon-color":m,"--n-extra-text-color":g}}),c=n?Rt("empty",D(()=>{let u="";const{size:d}=e;return u+=d[0],u}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:a,localizedDescription:D(()=>s.value||i.value.description),cssVars:n?void 0:l,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Gt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),DH={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 X_(e){const{borderRadius:t,popoverColor:n,textColor3:o,dividerColor:r,textColor2:i,primaryColorPressed:s,textColorDisabled:a,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:m,heightTiny:g,heightSmall:b,heightMedium:w,heightLarge:C,heightHuge:S}=e;return Object.assign(Object.assign({},DH),{optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:m,optionHeightTiny:g,optionHeightSmall:b,optionHeightMedium:w,optionHeightLarge:C,optionHeightHuge:S,borderRadius:t,color:n,groupHeaderTextColor:o,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:s,optionTextColorDisabled:a,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})}const LH={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Yi,Empty:Mu},self:X_},hm=LH,FH={name:"InternalSelectMenu",common:je,peers:{Scrollbar:qn,Empty:Xi},self:X_},hl=FH,q0=be({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=We(Vp);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,i=o==null?void 0:o(r),s=t?t(r,!1):Kt(r[this.labelField],r,!1),a=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),s);return r.render?r.render({node:a,option:r}):n?n({node:a,option:r,selected:!1}):a}});function BH(e,t){return v(pn,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Gt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v(ON)}):null})}const K0=be({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:i,renderOptionRef:s,labelFieldRef:a,valueFieldRef:l,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:f}=We(Vp),h=Ct(()=>{const{value:b}=n;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:w}=e;w.disabled||d(b,w)}function m(b){const{tmNode:w}=e;w.disabled||f(b,w)}function g(b){const{tmNode:w}=e,{value:C}=h;w.disabled||C||f(b,w)}return{multiple:o,isGrouped:Ct(()=>{const{tmNode:b}=e,{parent:w}=b;return w&&w.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:h,isSelected:Ct(()=>{const{value:b}=t,{value:w}=o;if(b===null)return!1;const C=e.tmNode.rawNode[l.value];if(w){const{value:S}=r;return S.has(C)}else return b===C}),labelField:a,renderLabel:i,renderOption:s,handleMouseMove:g,handleMouseEnter:m,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:i,nodeProps:s,renderOption:a,renderLabel:l,handleClick:c,handleMouseEnter:u,handleMouseMove:d}=this,f=BH(n,e),h=l?[l(t,n),i&&f]:[Kt(t[this.labelField],t,n),i&&f],p=s==null?void 0:s(t),m=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Oa([c,p==null?void 0:p.onClick]),onMouseenter:Oa([u,p==null?void 0:p.onMouseenter]),onMousemove:Oa([d,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:m,option:t,selected:n}):a?a({node:m,option:t,selected:n}):m}}),{cubicBezierEaseIn:G0,cubicBezierEaseOut:Y0}=yo;function Ks({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:r=""}={}){return[G("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${G0}, transform ${t} ${G0} ${r&&`,${r}`}`}),G("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Y0}, transform ${t} ${Y0} ${r&&`,${r}`}`}),G("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),G("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const NH=L("base-select-menu",` + `)]),wH=Object.assign(Object.assign({},Le.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),W_=xe({name:"Empty",props:wH,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Empty","-empty",CH,$u,e,t),{localeRef:r}=Hi("Empty"),i=Ve(Ao,null),a=I(()=>{var u,d,f;return(u=e.description)!==null&&u!==void 0?u:(f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),s=I(()=>{var u,d;return((d=(u=i==null?void 0:i.mergedComponentPropsRef.value)===null||u===void 0?void 0:u.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>v(AN,null))}),l=I(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:d},self:{[Te("iconSize",u)]:f,[Te("fontSize",u)]:h,textColor:p,iconColor:g,extraTextColor:m}}=o.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":d,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":m}}),c=n?Pt("empty",I(()=>{let u="";const{size:d}=e;return u+=d[0],u}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:I(()=>a.value||r.value.description),cssVars:n?void 0:l,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Wt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),_H={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",railColor:"transparent"};function q_(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:o,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},_H),{height:o,width:r,borderRadius:i,color:t,colorHover:n})}const SH={name:"Scrollbar",common:xt,self:q_},Gi=SH,kH={name:"Scrollbar",common:He,self:q_},Un=kH,{cubicBezierEaseInOut:j0}=mo;function dl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=j0,leaveCubicBezier:r=j0}={}){return[W(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),W(`&.${e}-transition-leave-active`,{transition:`all ${n} ${r}!important`}),W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const PH=z("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[W(">",[z("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),W(">",[z("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),W(">, +",[z("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[J("horizontal",` + inset: var(--n-scrollbar-rail-inset-horizontal); + height: var(--n-scrollbar-height); + `,[W(">",[j("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),J("vertical",` + inset: var(--n-scrollbar-rail-inset-vertical); + width: var(--n-scrollbar-width); + `,[W(">",[j("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),J("disabled",[W(">",[j("scrollbar","pointer-events: none;")])]),W(">",[j("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[dl(),W("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),TH=Object.assign(Object.assign({},Le.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),K_=xe({name:"Scrollbar",props:TH,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("Scrollbar",o,t),i=U(null),a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=U(null),p=U(null),g=U(null),m=U(0),b=U(0),w=U(!1),C=U(!1);let _=!1,S=!1,y,x,P=0,k=0,T=0,R=0;const E=P8(),q=Le("Scrollbar","-scrollbar",PH,Gi,e,t),D=I(()=>{const{value:Q}=f,{value:ye}=u,{value:Ae}=p;return Q===null||ye===null||Ae===null?0:Math.min(Q,Ae*Q/ye+bn(q.value.self.width)*1.5)}),B=I(()=>`${D.value}px`),M=I(()=>{const{value:Q}=h,{value:ye}=d,{value:Ae}=g;return Q===null||ye===null||Ae===null?0:Ae*Q/ye+bn(q.value.self.height)*1.5}),K=I(()=>`${M.value}px`),V=I(()=>{const{value:Q}=f,{value:ye}=m,{value:Ae}=u,{value:qe}=p;if(Q===null||Ae===null||qe===null)return 0;{const Qe=Ae-Q;return Qe?ye/Qe*(qe-D.value):0}}),ae=I(()=>`${V.value}px`),pe=I(()=>{const{value:Q}=h,{value:ye}=b,{value:Ae}=d,{value:qe}=g;if(Q===null||Ae===null||qe===null)return 0;{const Qe=Ae-Q;return Qe?ye/Qe*(qe-M.value):0}}),Z=I(()=>`${pe.value}px`),N=I(()=>{const{value:Q}=f,{value:ye}=u;return Q!==null&&ye!==null&&ye>Q}),O=I(()=>{const{value:Q}=h,{value:ye}=d;return Q!==null&&ye!==null&&ye>Q}),ee=I(()=>{const{trigger:Q}=e;return Q==="none"||w.value}),G=I(()=>{const{trigger:Q}=e;return Q==="none"||C.value}),ne=I(()=>{const{container:Q}=e;return Q?Q():a.value}),X=I(()=>{const{content:Q}=e;return Q?Q():s.value}),ce=(Q,ye)=>{if(!e.scrollable)return;if(typeof Q=="number"){F(Q,ye??0,0,!1,"auto");return}const{left:Ae,top:qe,index:Qe,elSize:Je,position:tt,behavior:it,el:vt,debounce:an=!0}=Q;(Ae!==void 0||qe!==void 0)&&F(Ae??0,qe??0,0,!1,it),vt!==void 0?F(0,vt.offsetTop,vt.offsetHeight,an,it):Qe!==void 0&&Je!==void 0?F(0,Qe*Je,Je,an,it):tt==="bottom"?F(0,Number.MAX_SAFE_INTEGER,0,!1,it):tt==="top"&&F(0,0,0,!1,it)},L=Qp(()=>{e.container||ce({top:m.value,left:b.value})}),be=()=>{L.isDeactivated||ue()},Oe=Q=>{if(L.isDeactivated)return;const{onResize:ye}=e;ye&&ye(Q),ue()},je=(Q,ye)=>{if(!e.scrollable)return;const{value:Ae}=ne;Ae&&(typeof Q=="object"?Ae.scrollBy(Q):Ae.scrollBy(Q,ye||0))};function F(Q,ye,Ae,qe,Qe){const{value:Je}=ne;if(Je){if(qe){const{scrollTop:tt,offsetHeight:it}=Je;if(ye>tt){ye+Ae<=tt+it||Je.scrollTo({left:Q,top:ye+Ae-it,behavior:Qe});return}}Je.scrollTo({left:Q,top:ye,behavior:Qe})}}function A(){ke(),$(),ue()}function re(){we()}function we(){oe(),ve()}function oe(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{C.value=!1},e.duration)}function ve(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{w.value=!1},e.duration)}function ke(){y!==void 0&&window.clearTimeout(y),w.value=!0}function $(){x!==void 0&&window.clearTimeout(x),C.value=!0}function H(Q){const{onScroll:ye}=e;ye&&ye(Q),te()}function te(){const{value:Q}=ne;Q&&(m.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1))}function Ce(){const{value:Q}=X;Q&&(u.value=Q.offsetHeight,d.value=Q.offsetWidth);const{value:ye}=ne;ye&&(f.value=ye.offsetHeight,h.value=ye.offsetWidth);const{value:Ae}=c,{value:qe}=l;Ae&&(g.value=Ae.offsetWidth),qe&&(p.value=qe.offsetHeight)}function de(){const{value:Q}=ne;Q&&(m.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1),f.value=Q.offsetHeight,h.value=Q.offsetWidth,u.value=Q.scrollHeight,d.value=Q.scrollWidth);const{value:ye}=c,{value:Ae}=l;ye&&(g.value=ye.offsetWidth),Ae&&(p.value=Ae.offsetHeight)}function ue(){e.scrollable&&(e.useUnifiedContainer?de():(Ce(),te()))}function ie(Q){var ye;return!(!((ye=i.value)===null||ye===void 0)&&ye.contains($i(Q)))}function fe(Q){Q.preventDefault(),Q.stopPropagation(),S=!0,$t("mousemove",window,Fe,!0),$t("mouseup",window,De,!0),k=b.value,T=r!=null&&r.value?window.innerWidth-Q.clientX:Q.clientX}function Fe(Q){if(!S)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:ye}=h,{value:Ae}=d,{value:qe}=M;if(ye===null||Ae===null)return;const Je=(r!=null&&r.value?window.innerWidth-Q.clientX-T:Q.clientX-T)*(Ae-ye)/(ye-qe),tt=Ae-ye;let it=k+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=ne;if(vt){vt.scrollLeft=it*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:an}=e;an&&an(it)}}function De(Q){Q.preventDefault(),Q.stopPropagation(),Tt("mousemove",window,Fe,!0),Tt("mouseup",window,De,!0),S=!1,ue(),ie(Q)&&we()}function Me(Q){Q.preventDefault(),Q.stopPropagation(),_=!0,$t("mousemove",window,Ne,!0),$t("mouseup",window,et,!0),P=m.value,R=Q.clientY}function Ne(Q){if(!_)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:ye}=f,{value:Ae}=u,{value:qe}=D;if(ye===null||Ae===null)return;const Je=(Q.clientY-R)*(Ae-ye)/(ye-qe),tt=Ae-ye;let it=P+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=ne;vt&&(vt.scrollTop=it)}function et(Q){Q.preventDefault(),Q.stopPropagation(),Tt("mousemove",window,Ne,!0),Tt("mouseup",window,et,!0),_=!1,ue(),ie(Q)&&we()}Yt(()=>{const{value:Q}=O,{value:ye}=N,{value:Ae}=t,{value:qe}=c,{value:Qe}=l;qe&&(Q?qe.classList.remove(`${Ae}-scrollbar-rail--disabled`):qe.classList.add(`${Ae}-scrollbar-rail--disabled`)),Qe&&(ye?Qe.classList.remove(`${Ae}-scrollbar-rail--disabled`):Qe.classList.add(`${Ae}-scrollbar-rail--disabled`))}),jt(()=>{e.container||ue()}),on(()=>{y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x),Tt("mousemove",window,Ne,!0),Tt("mouseup",window,et,!0)});const $e=I(()=>{const{common:{cubicBezierEaseInOut:Q},self:{color:ye,colorHover:Ae,height:qe,width:Qe,borderRadius:Je,railInsetHorizontal:tt,railInsetVertical:it,railColor:vt}}=q.value;return{"--n-scrollbar-bezier":Q,"--n-scrollbar-color":ye,"--n-scrollbar-color-hover":Ae,"--n-scrollbar-border-radius":Je,"--n-scrollbar-width":Qe,"--n-scrollbar-height":qe,"--n-scrollbar-rail-inset-horizontal":tt,"--n-scrollbar-rail-inset-vertical":r!=null&&r.value?WI(it):it,"--n-scrollbar-rail-color":vt}}),Xe=n?Pt("scrollbar",void 0,$e,e):void 0;return Object.assign(Object.assign({},{scrollTo:ce,scrollBy:je,sync:ue,syncUnifiedContainer:de,handleMouseEnterWrapper:A,handleMouseLeaveWrapper:re}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:N,needXBar:O,yBarSizePx:B,xBarSizePx:K,yBarTopPx:ae,xBarLeftPx:Z,isShowXBar:ee,isShowYBar:G,isIos:E,handleScroll:H,handleContentResize:be,handleContainerResize:Oe,handleYScrollMouseDown:Me,handleXScrollMouseDown:fe,cssVars:n?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(u,d)=>v("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[d||"",this.verticalRailStyle],"aria-hidden":!0},v(a?vh:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var u,d;return(u=this.onRender)===null||u===void 0||u.call(this),v("div",Ln(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,r&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):v("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(ur,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&v("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(a?vh:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():v(ur,{onResize:this.handleContainerResize},{default:l});return i?v(rt,null,c,s(this.themeClass,this.cssVars)):c}}),Oo=K_,G_=K_,EH={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function X_(e){const{borderRadius:t,popoverColor:n,textColor3:o,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,fontSizeHuge:p,heightSmall:g,heightMedium:m,heightLarge:b,heightHuge:w}=e;return Object.assign(Object.assign({},EH),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:h,optionFontSizeHuge:p,optionHeightSmall:g,optionHeightMedium:m,optionHeightLarge:b,optionHeightHuge:w,borderRadius:t,color:n,groupHeaderTextColor:o,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})}const RH={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Gi,Empty:$u},self:X_},fm=RH,AH={name:"InternalSelectMenu",common:He,peers:{Scrollbar:Un,Empty:Ki},self:X_},fl=AH;function $H(e,t){return v(fn,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Wt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v(PN)}):null})}const U0=xe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:f}=Ve(jp),h=kt(()=>{const{value:b}=n;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:w}=e;w.disabled||d(b,w)}function g(b){const{tmNode:w}=e;w.disabled||f(b,w)}function m(b){const{tmNode:w}=e,{value:C}=h;w.disabled||C||f(b,w)}return{multiple:o,isGrouped:kt(()=>{const{tmNode:b}=e,{parent:w}=b;return w&&w.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:h,isSelected:kt(()=>{const{value:b}=t,{value:w}=o;if(b===null)return!1;const C=e.tmNode.rawNode[l.value];if(w){const{value:_}=r;return _.has(C)}else return b===C}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:l,handleClick:c,handleMouseEnter:u,handleMouseMove:d}=this,f=$H(n,e),h=l?[l(t,n),i&&f]:[Vt(t[this.labelField],t,n),i&&f],p=a==null?void 0:a(t),g=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Es([c,p==null?void 0:p.onClick]),onMouseenter:Es([u,p==null?void 0:p.onMouseenter]),onMousemove:Es([d,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:g,option:t,selected:n}):s?s({node:g,option:t,selected:n}):g}}),V0=xe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=Ve(jp);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,i=o==null?void 0:o(r),a=t?t(r,!1):Vt(r[this.labelField],r,!1),s=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:s,option:r}):n?n({node:s,option:r,selected:!1}):s}}),{cubicBezierEaseIn:W0,cubicBezierEaseOut:q0}=mo;function Wa({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:r=""}={}){return[W("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${W0}, transform ${t} ${W0} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${q0}, transform ${t} ${q0} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),W("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const IH=z("base-select-menu",` line-height: 1.5; outline: none; z-index: 0; @@ -285,37 +246,37 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-color); -`,[L("scrollbar",` +`,[z("scrollbar",` max-height: var(--n-height); - `),L("virtual-list",` + `),z("virtual-list",` max-height: var(--n-height); - `),L("base-select-option",` + `),z("base-select-option",` min-height: var(--n-option-height); font-size: var(--n-option-font-size); display: flex; align-items: center; - `,[V("content",` + `,[j("content",` z-index: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; - `)]),L("base-select-group-header",` + `)]),z("base-select-group-header",` min-height: var(--n-option-height); font-size: .93em; display: flex; align-items: center; - `),L("base-select-menu-option-wrapper",` + `),z("base-select-menu-option-wrapper",` position: relative; width: 100%; - `),V("loading, empty",` + `),j("loading, empty",` display: flex; padding: 12px 32px; flex: 1; justify-content: center; - `),V("loading",` + `),j("loading",` color: var(--n-loading-color); font-size: var(--n-loading-size); - `),V("header",` + `),j("header",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -323,7 +284,7 @@ ${t} border-color .3s var(--n-bezier); border-bottom: 1px solid var(--n-action-divider-color); color: var(--n-action-text-color); - `),V("action",` + `),j("action",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -331,12 +292,12 @@ ${t} border-color .3s var(--n-bezier); border-top: 1px solid var(--n-action-divider-color); color: var(--n-action-text-color); - `),L("base-select-group-header",` + `),z("base-select-group-header",` position: relative; cursor: default; padding: var(--n-option-padding); color: var(--n-group-header-text-color); - `),L("base-select-option",` + `),z("base-select-option",` cursor: pointer; position: relative; padding: var(--n-option-padding); @@ -346,9 +307,9 @@ ${t} box-sizing: border-box; color: var(--n-option-text-color); opacity: 1; - `,[Z("show-checkmark",` + `,[J("show-checkmark",` padding-right: calc(var(--n-option-padding-right) + 20px); - `),G("&::before",` + `),W("&::before",` content: ""; position: absolute; left: 4px; @@ -357,32 +318,39 @@ ${t} bottom: 0; border-radius: var(--n-border-radius); transition: background-color .3s var(--n-bezier); - `),G("&:active",` + `),W("&:active",` color: var(--n-option-text-color-pressed); - `),Z("grouped",` + `),J("grouped",` padding-left: calc(var(--n-option-padding-left) * 1.5); - `),Z("pending",[G("&::before",` + `),J("pending",[W("&::before",` background-color: var(--n-option-color-pending); - `)]),Z("selected",` + `)]),J("selected",` color: var(--n-option-text-color-active); - `,[G("&::before",` + `,[W("&::before",` background-color: var(--n-option-color-active); - `),Z("pending",[G("&::before",` + `),J("pending",[W("&::before",` background-color: var(--n-option-color-active-pending); - `)])]),Z("disabled",` + `)])]),J("disabled",` cursor: not-allowed; - `,[$t("selected",` + `,[Et("selected",` color: var(--n-option-text-color-disabled); - `),Z("selected",` + `),J("selected",` opacity: var(--n-option-opacity-disabled); - `)]),V("check",` + `)]),j("check",` font-size: 16px; position: absolute; right: calc(var(--n-option-padding-right) - 4px); top: calc(50% - 7px); color: var(--n-option-check-color); transition: color .3s var(--n-bezier); - `,[Ks({enterScale:"0.5"})])])]),Z_=be({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Be.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=lt(e),o=gn("InternalSelectMenu",n,t),r=Be("InternalSelectMenu","-internal-select-menu",NH,hm,e,ze(e,"clsPrefix")),i=H(null),s=H(null),a=H(null),l=D(()=>e.treeMate.getFlattenedNodes()),c=D(()=>bH(l.value)),u=H(null);function d(){const{treeMate:E}=e;let A=null;const{value:Y}=e;Y===null?A=E.getFirstAvailableNode():(e.multiple?A=E.getNode((Y||[])[(Y||[]).length-1]):A=E.getNode(Y),(!A||A.disabled)&&(A=E.getFirstAvailableNode())),O(A||null)}function f(){const{value:E}=u;E&&!e.treeMate.getNode(E.key)&&(u.value=null)}let h;dt(()=>e.show,E=>{E?h=dt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():f(),Vt(M)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),rn(()=>{h==null||h()});const p=D(()=>Cn(r.value.self[Re("optionHeight",e.size)])),m=D(()=>zn(r.value.self[Re("padding",e.size)])),g=D(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=D(()=>{const E=l.value;return E&&E.length===0});function w(E){const{onToggle:A}=e;A&&A(E)}function C(E){const{onScroll:A}=e;A&&A(E)}function S(E){var A;(A=a.value)===null||A===void 0||A.sync(),C(E)}function _(){var E;(E=a.value)===null||E===void 0||E.sync()}function x(){const{value:E}=u;return E||null}function y(E,A){A.disabled||O(A,!1)}function T(E,A){A.disabled||w(A)}function k(E){var A;fo(E,"action")||(A=e.onKeyup)===null||A===void 0||A.call(e,E)}function P(E){var A;fo(E,"action")||(A=e.onKeydown)===null||A===void 0||A.call(e,E)}function I(E){var A;(A=e.onMousedown)===null||A===void 0||A.call(e,E),!e.focusable&&E.preventDefault()}function R(){const{value:E}=u;E&&O(E.getNext({loop:!0}),!0)}function W(){const{value:E}=u;E&&O(E.getPrev({loop:!0}),!0)}function O(E,A=!1){u.value=E,A&&M()}function M(){var E,A;const Y=u.value;if(!Y)return;const ne=c.value(Y.key);ne!==null&&(e.virtualScroll?(E=s.value)===null||E===void 0||E.scrollTo({index:ne}):(A=a.value)===null||A===void 0||A.scrollTo({index:ne,elSize:p.value}))}function z(E){var A,Y;!((A=i.value)===null||A===void 0)&&A.contains(E.target)&&((Y=e.onFocus)===null||Y===void 0||Y.call(e,E))}function K(E){var A,Y;!((A=i.value)===null||A===void 0)&&A.contains(E.relatedTarget)||(Y=e.onBlur)===null||Y===void 0||Y.call(e,E)}at(Vp,{handleOptionMouseEnter:y,handleOptionClick:T,valueSetRef:g,pendingTmNodeRef:u,nodePropsRef:ze(e,"nodeProps"),showCheckmarkRef:ze(e,"showCheckmark"),multipleRef:ze(e,"multiple"),valueRef:ze(e,"value"),renderLabelRef:ze(e,"renderLabel"),renderOptionRef:ze(e,"renderOption"),labelFieldRef:ze(e,"labelField"),valueFieldRef:ze(e,"valueField")}),at(_w,i),Wt(()=>{const{value:E}=a;E&&E.sync()});const J=D(()=>{const{size:E}=e,{common:{cubicBezierEaseInOut:A},self:{height:Y,borderRadius:ne,color:fe,groupHeaderTextColor:Q,actionDividerColor:Ce,optionTextColorPressed:j,optionTextColor:ye,optionTextColorDisabled:Ie,optionTextColorActive:Le,optionOpacityDisabled:U,optionCheckColor:B,actionTextColor:ae,optionColorPending:Se,optionColorActive:te,loadingColor:xe,loadingSize:ve,optionColorActivePending:$,[Re("optionFontSize",E)]:N,[Re("optionHeight",E)]:ee,[Re("optionPadding",E)]:we}}=r.value;return{"--n-height":Y,"--n-action-divider-color":Ce,"--n-action-text-color":ae,"--n-bezier":A,"--n-border-radius":ne,"--n-color":fe,"--n-option-font-size":N,"--n-group-header-text-color":Q,"--n-option-check-color":B,"--n-option-color-pending":Se,"--n-option-color-active":te,"--n-option-color-active-pending":$,"--n-option-height":ee,"--n-option-opacity-disabled":U,"--n-option-text-color":ye,"--n-option-text-color-active":Le,"--n-option-text-color-disabled":Ie,"--n-option-text-color-pressed":j,"--n-option-padding":we,"--n-option-padding-left":zn(we,"left"),"--n-option-padding-right":zn(we,"right"),"--n-loading-color":xe,"--n-loading-size":ve}}),{inlineThemeDisabled:se}=e,le=se?Rt("internal-select-menu",D(()=>e.size[0]),J,e):void 0,F={selfRef:i,next:R,prev:W,getPendingTmNode:x};return jw(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:s,scrollbarRef:a,itemSize:p,padding:m,flattenedNodes:l,empty:b,virtualListContainer(){const{value:E}=s;return E==null?void 0:E.listElRef},virtualListContent(){const{value:E}=s;return E==null?void 0:E.itemsElRef},doScroll:C,handleFocusin:z,handleFocusout:K,handleKeyUp:k,handleKeyDown:P,handleMouseDown:I,handleVirtualListResize:_,handleVirtualListScroll:S,cssVars:se?void 0:J,themeClass:le==null?void 0:le.themeClass,onRender:le==null?void 0:le.onRender},F)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},Mt(e.header,s=>s&&v("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},s)),this.loading?v("div",{class:`${n}-base-select-menu__loading`},v(ti,{clsPrefix:n,strokeWidth:20})):this.empty?v("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},Dn(e.empty,()=>[v(Y_,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty,size:this.size})])):v(Mo,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Jp,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:s})=>s.isGroup?v(q0,{key:s.key,clsPrefix:n,tmNode:s}):s.ignored?null:v(K0,{clsPrefix:n,key:s.key,tmNode:s})}):v("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(s=>s.isGroup?v(q0,{key:s.key,clsPrefix:n,tmNode:s}):v(K0,{clsPrefix:n,key:s.key,tmNode:s})))}),Mt(e.action,s=>s&&[v("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},s),v(qN,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),HH={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function J_(e){const{boxShadow2:t,popoverColor:n,textColor2:o,borderRadius:r,fontSize:i,dividerColor:s}=e;return Object.assign(Object.assign({},HH),{fontSize:i,borderRadius:r,color:n,dividerColor:s,textColor:o,boxShadow:t})}const jH={name:"Popover",common:xt,self:J_},Gs=jH,VH={name:"Popover",common:je,self:J_},Zi=VH,Zd={top:"bottom",bottom:"top",left:"right",right:"left"},xn="var(--n-arrow-height) * 1.414",WH=G([L("popover",` + `,[Wa({enterScale:"0.5"})])])]),Y_=xe({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelectMenu",n,t),r=Le("InternalSelectMenu","-internal-select-menu",IH,fm,e,Ue(e,"clsPrefix")),i=U(null),a=U(null),s=U(null),l=I(()=>e.treeMate.getFlattenedNodes()),c=I(()=>JN(l.value)),u=U(null);function d(){const{treeMate:N}=e;let O=null;const{value:ee}=e;ee===null?O=N.getFirstAvailableNode():(e.multiple?O=N.getNode((ee||[])[(ee||[]).length-1]):O=N.getNode(ee),(!O||O.disabled)&&(O=N.getFirstAvailableNode())),D(O||null)}function f(){const{value:N}=u;N&&!e.treeMate.getNode(N.key)&&(u.value=null)}let h;ft(()=>e.show,N=>{N?h=ft(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():f(),Ht(B)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),on(()=>{h==null||h()});const p=I(()=>bn(r.value.self[Te("optionHeight",e.size)])),g=I(()=>co(r.value.self[Te("padding",e.size)])),m=I(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=I(()=>{const N=l.value;return N&&N.length===0});function w(N){const{onToggle:O}=e;O&&O(N)}function C(N){const{onScroll:O}=e;O&&O(N)}function _(N){var O;(O=s.value)===null||O===void 0||O.sync(),C(N)}function S(){var N;(N=s.value)===null||N===void 0||N.sync()}function y(){const{value:N}=u;return N||null}function x(N,O){O.disabled||D(O,!1)}function P(N,O){O.disabled||w(O)}function k(N){var O;lo(N,"action")||(O=e.onKeyup)===null||O===void 0||O.call(e,N)}function T(N){var O;lo(N,"action")||(O=e.onKeydown)===null||O===void 0||O.call(e,N)}function R(N){var O;(O=e.onMousedown)===null||O===void 0||O.call(e,N),!e.focusable&&N.preventDefault()}function E(){const{value:N}=u;N&&D(N.getNext({loop:!0}),!0)}function q(){const{value:N}=u;N&&D(N.getPrev({loop:!0}),!0)}function D(N,O=!1){u.value=N,O&&B()}function B(){var N,O;const ee=u.value;if(!ee)return;const G=c.value(ee.key);G!==null&&(e.virtualScroll?(N=a.value)===null||N===void 0||N.scrollTo({index:G}):(O=s.value)===null||O===void 0||O.scrollTo({index:G,elSize:p.value}))}function M(N){var O,ee;!((O=i.value)===null||O===void 0)&&O.contains(N.target)&&((ee=e.onFocus)===null||ee===void 0||ee.call(e,N))}function K(N){var O,ee;!((O=i.value)===null||O===void 0)&&O.contains(N.relatedTarget)||(ee=e.onBlur)===null||ee===void 0||ee.call(e,N)}at(jp,{handleOptionMouseEnter:x,handleOptionClick:P,valueSetRef:m,pendingTmNodeRef:u,nodePropsRef:Ue(e,"nodeProps"),showCheckmarkRef:Ue(e,"showCheckmark"),multipleRef:Ue(e,"multiple"),valueRef:Ue(e,"value"),renderLabelRef:Ue(e,"renderLabel"),renderOptionRef:Ue(e,"renderOption"),labelFieldRef:Ue(e,"labelField"),valueFieldRef:Ue(e,"valueField")}),at(kw,i),jt(()=>{const{value:N}=s;N&&N.sync()});const V=I(()=>{const{size:N}=e,{common:{cubicBezierEaseInOut:O},self:{height:ee,borderRadius:G,color:ne,groupHeaderTextColor:X,actionDividerColor:ce,optionTextColorPressed:L,optionTextColor:be,optionTextColorDisabled:Oe,optionTextColorActive:je,optionOpacityDisabled:F,optionCheckColor:A,actionTextColor:re,optionColorPending:we,optionColorActive:oe,loadingColor:ve,loadingSize:ke,optionColorActivePending:$,[Te("optionFontSize",N)]:H,[Te("optionHeight",N)]:te,[Te("optionPadding",N)]:Ce}}=r.value;return{"--n-height":ee,"--n-action-divider-color":ce,"--n-action-text-color":re,"--n-bezier":O,"--n-border-radius":G,"--n-color":ne,"--n-option-font-size":H,"--n-group-header-text-color":X,"--n-option-check-color":A,"--n-option-color-pending":we,"--n-option-color-active":oe,"--n-option-color-active-pending":$,"--n-option-height":te,"--n-option-opacity-disabled":F,"--n-option-text-color":be,"--n-option-text-color-active":je,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":L,"--n-option-padding":Ce,"--n-option-padding-left":co(Ce,"left"),"--n-option-padding-right":co(Ce,"right"),"--n-loading-color":ve,"--n-loading-size":ke}}),{inlineThemeDisabled:ae}=e,pe=ae?Pt("internal-select-menu",I(()=>e.size[0]),V,e):void 0,Z={selfRef:i,next:E,prev:q,getPendingTmNode:y};return jw(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:a,scrollbarRef:s,itemSize:p,padding:g,flattenedNodes:l,empty:b,virtualListContainer(){const{value:N}=a;return N==null?void 0:N.listElRef},virtualListContent(){const{value:N}=a;return N==null?void 0:N.itemsElRef},doScroll:C,handleFocusin:M,handleFocusout:K,handleKeyUp:k,handleKeyDown:T,handleMouseDown:R,handleVirtualListResize:S,handleVirtualListScroll:_,cssVars:ae?void 0:V,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender},Z)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},At(e.header,a=>a&&v("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?v("div",{class:`${n}-base-select-menu__loading`},v(ti,{clsPrefix:n,strokeWidth:20})):this.empty?v("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},$n(e.empty,()=>[v(W_,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):v(Oo,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Dw,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?v(V0,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:v(U0,{clsPrefix:n,key:a.key,tmNode:a})}):v("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?v(V0,{key:a.key,clsPrefix:n,tmNode:a}):v(U0,{clsPrefix:n,key:a.key,tmNode:a})))}),At(e.action,a=>a&&[v("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),v(DN,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),OH=z("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),MH=xe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ei("-base-wave",OH,Ue(e,"clsPrefix"));const t=U(null),n=U(!1);let o=null;return on(()=>{o!==null&&window.clearTimeout(o)}),{active:n,selfRef:t,play(){o!==null&&(window.clearTimeout(o),n.value=!1,o=null),Ht(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,n.value=!0,o=window.setTimeout(()=>{n.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),zH={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Q_(e){const{boxShadow2:t,popoverColor:n,textColor2:o,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},zH),{fontSize:i,borderRadius:r,color:n,dividerColor:a,textColor:o,boxShadow:t})}const FH={name:"Popover",common:xt,self:Q_},qa=FH,DH={name:"Popover",common:He,self:Q_},Xi=DH,Qd={top:"bottom",bottom:"top",left:"right",right:"left"},vn="var(--n-arrow-height) * 1.414",LH=W([z("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -392,113 +360,113 @@ ${t} color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; - `,[G(">",[L("scrollbar",` + `,[W(">",[z("scrollbar",` height: inherit; max-height: inherit; - `)]),$t("raw",` + `)]),Et("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); - `,[$t("scrollable",[$t("show-header-or-footer","padding: var(--n-padding);")])]),V("header",` + `,[Et("scrollable",[Et("show-header-or-footer","padding: var(--n-padding);")])]),j("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),V("footer",` + `),j("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),Z("scrollable, show-header-or-footer",[V("content",` + `),J("scrollable, show-header-or-footer",[j("content",` padding: var(--n-padding); - `)])]),L("popover-shared",` + `)])]),z("popover-shared",` transform-origin: inherit; - `,[L("popover-arrow-wrapper",` + `,[z("popover-arrow-wrapper",` position: absolute; overflow: hidden; pointer-events: none; - `,[L("popover-arrow",` + `,[z("popover-arrow",` transition: background-color .3s var(--n-bezier); position: absolute; display: block; - width: calc(${xn}); - height: calc(${xn}); + width: calc(${vn}); + height: calc(${vn}); box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); transform: rotate(45deg); background-color: var(--n-color); pointer-events: all; - `)]),G("&.popover-transition-enter-from, &.popover-transition-leave-to",` + `)]),W("&.popover-transition-enter-from, &.popover-transition-leave-to",` opacity: 0; transform: scale(.85); - `),G("&.popover-transition-enter-to, &.popover-transition-leave-from",` + `),W("&.popover-transition-enter-to, &.popover-transition-leave-from",` transform: scale(1); opacity: 1; - `),G("&.popover-transition-enter-active",` + `),W("&.popover-transition-enter-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-out), transform .15s var(--n-bezier-ease-out); - `),G("&.popover-transition-leave-active",` + `),W("&.popover-transition-leave-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-in), transform .15s var(--n-bezier-ease-in); - `)]),lo("top-start",` - top: calc(${xn} / -2); + `)]),io("top-start",` + top: calc(${vn} / -2); left: calc(${rr("top-start")} - var(--v-offset-left)); - `),lo("top",` - top: calc(${xn} / -2); - transform: translateX(calc(${xn} / -2)) rotate(45deg); + `),io("top",` + top: calc(${vn} / -2); + transform: translateX(calc(${vn} / -2)) rotate(45deg); left: 50%; - `),lo("top-end",` - top: calc(${xn} / -2); + `),io("top-end",` + top: calc(${vn} / -2); right: calc(${rr("top-end")} + var(--v-offset-left)); - `),lo("bottom-start",` - bottom: calc(${xn} / -2); + `),io("bottom-start",` + bottom: calc(${vn} / -2); left: calc(${rr("bottom-start")} - var(--v-offset-left)); - `),lo("bottom",` - bottom: calc(${xn} / -2); - transform: translateX(calc(${xn} / -2)) rotate(45deg); + `),io("bottom",` + bottom: calc(${vn} / -2); + transform: translateX(calc(${vn} / -2)) rotate(45deg); left: 50%; - `),lo("bottom-end",` - bottom: calc(${xn} / -2); + `),io("bottom-end",` + bottom: calc(${vn} / -2); right: calc(${rr("bottom-end")} + var(--v-offset-left)); - `),lo("left-start",` - left: calc(${xn} / -2); + `),io("left-start",` + left: calc(${vn} / -2); top: calc(${rr("left-start")} - var(--v-offset-top)); - `),lo("left",` - left: calc(${xn} / -2); - transform: translateY(calc(${xn} / -2)) rotate(45deg); + `),io("left",` + left: calc(${vn} / -2); + transform: translateY(calc(${vn} / -2)) rotate(45deg); top: 50%; - `),lo("left-end",` - left: calc(${xn} / -2); + `),io("left-end",` + left: calc(${vn} / -2); bottom: calc(${rr("left-end")} + var(--v-offset-top)); - `),lo("right-start",` - right: calc(${xn} / -2); + `),io("right-start",` + right: calc(${vn} / -2); top: calc(${rr("right-start")} - var(--v-offset-top)); - `),lo("right",` - right: calc(${xn} / -2); - transform: translateY(calc(${xn} / -2)) rotate(45deg); + `),io("right",` + right: calc(${vn} / -2); + transform: translateY(calc(${vn} / -2)) rotate(45deg); top: 50%; - `),lo("right-end",` - right: calc(${xn} / -2); + `),io("right-end",` + right: calc(${vn} / -2); bottom: calc(${rr("right-end")} + var(--v-offset-top)); - `),...wN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),o=n?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",a=`calc((${`var(--v-target-${o}, 0px)`} - ${xn}) / 2)`,l=rr(r);return G(`[v-placement="${r}"] >`,[L("popover-shared",[Z("center-arrow",[L("popover-arrow",`${t}: calc(max(${a}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function rr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function lo(e,t){const n=e.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return G(`[v-placement="${e}"] >`,[L("popover-shared",` - margin-${Zd[n]}: var(--n-space); - `,[Z("show-arrow",` - margin-${Zd[n]}: var(--n-space-arrow); - `),Z("overlap",` + `),...xL({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),o=n?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",s=`calc((${`var(--v-target-${o}, 0px)`} - ${vn}) / 2)`,l=rr(r);return W(`[v-placement="${r}"] >`,[z("popover-shared",[J("center-arrow",[z("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function rr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function io(e,t){const n=e.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return W(`[v-placement="${e}"] >`,[z("popover-shared",` + margin-${Qd[n]}: var(--n-space); + `,[J("show-arrow",` + margin-${Qd[n]}: var(--n-space-arrow); + `),J("overlap",` margin: 0; - `),n8("popover-arrow-wrapper",` + `),f8("popover-arrow-wrapper",` right: 0; left: 0; top: 0; bottom: 0; ${n}: 100%; - ${Zd[n]}: auto; + ${Qd[n]}: auto; ${o} - `,[L("popover-arrow",t)])])])}const Q_=Object.assign(Object.assign({},Be.props),{to:Ko.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 e2({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:o,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:o,class:[`${r}-popover-arrow-wrapper`,n]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const UH=be({name:"PopoverBody",inheritAttrs:!1,props:Q_,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:i}=lt(e),s=Be("Popover","-popover",WH,Gs,e,r),a=H(null),l=We("NPopover"),c=H(null),u=H(e.show),d=H(!1);Jt(()=>{const{show:y}=e;y&&!PI()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=D(()=>{const{trigger:y,onClickoutside:T}=e,k=[],{positionManuallyRef:{value:P}}=l;return P||(y==="click"&&!T&&k.push([$s,S,void 0,{capture:!0}]),y==="hover"&&k.push([z8,C])),T&&k.push([$s,S,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&k.push([Nn,e.show]),k}),h=D(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:T,cubicBezierEaseOut:k},self:{space:P,spaceArrow:I,padding:R,fontSize:W,textColor:O,dividerColor:M,color:z,boxShadow:K,borderRadius:J,arrowHeight:se,arrowOffset:le,arrowOffsetVertical:F}}=s.value;return{"--n-box-shadow":K,"--n-bezier":y,"--n-bezier-ease-in":T,"--n-bezier-ease-out":k,"--n-font-size":W,"--n-text-color":O,"--n-color":z,"--n-divider-color":M,"--n-border-radius":J,"--n-arrow-height":se,"--n-arrow-offset":le,"--n-arrow-offset-vertical":F,"--n-padding":R,"--n-space":P,"--n-space-arrow":I}}),p=D(()=>{const y=e.width==="trigger"?void 0:qt(e.width),T=[];y&&T.push({width:y});const{maxWidth:k,minWidth:P}=e;return k&&T.push({maxWidth:qt(k)}),P&&T.push({maxWidth:qt(P)}),i||T.push(h.value),T}),m=i?Rt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:g}),rn(()=>{l.setBodyInstance(null)}),dt(ze(e,"show"),y=>{e.animated||(y?u.value=!0:u.value=!1)});function g(){var y;(y=a.value)===null||y===void 0||y.syncPosition()}function b(y){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(y)}function w(y){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(y)}function C(y){e.trigger==="hover"&&!_().contains(Ai(y))&&l.handleMouseMoveOutside(y)}function S(y){(e.trigger==="click"&&!_().contains(Ai(y))||e.onClickoutside)&&l.handleClickOutside(y)}function _(){return l.getTriggerElement()}at(js,c),at(cl,null),at(ul,null);function x(){if(m==null||m.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let T;const k=l.internalRenderBodyRef.value,{value:P}=r;if(k)T=k([`${P}-popover-shared`,m==null?void 0:m.themeClass.value,e.overlap&&`${P}-popover-shared--overlap`,e.showArrow&&`${P}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${P}-popover-shared--center-arrow`],c,p.value,b,w);else{const{value:I}=l.extraClassRef,{internalTrapFocus:R}=e,W=!xs(t.header)||!xs(t.footer),O=()=>{var M,z;const K=W?v(st,null,Mt(t.header,le=>le?v("div",{class:[`${P}-popover__header`,e.headerClass],style:e.headerStyle},le):null),Mt(t.default,le=>le?v("div",{class:[`${P}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Mt(t.footer,le=>le?v("div",{class:[`${P}-popover__footer`,e.footerClass],style:e.footerStyle},le):null)):e.scrollable?(M=t.default)===null||M===void 0?void 0:M.call(t):v("div",{class:[`${P}-popover__content`,e.contentClass],style:e.contentStyle},t),J=e.scrollable?v(U_,{contentClass:W?void 0:`${P}-popover__content ${(z=e.contentClass)!==null&&z!==void 0?z:""}`,contentStyle:W?void 0:e.contentStyle},{default:()=>K}):K,se=e.showArrow?e2({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:P}):null;return[J,se]};T=v("div",Ln({class:[`${P}-popover`,`${P}-popover-shared`,m==null?void 0:m.themeClass.value,I.map(M=>`${P}-${M}`),{[`${P}-popover--scrollable`]:e.scrollable,[`${P}-popover--show-header-or-footer`]:W,[`${P}-popover--raw`]:e.raw,[`${P}-popover-shared--overlap`]:e.overlap,[`${P}-popover-shared--show-arrow`]:e.showArrow,[`${P}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:b,onMouseleave:w},n),R?v(Qp,{active:e.show,autoFocus:!0},{default:O}):O())}return hn(T,f.value)}return{displayed:d,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:a,adjustedTo:Ko(e),followerEnabled:u,renderContentNode:x}},render(){return v(Xp,{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===Ko.tdkey},{default:()=>this.animated?v(pn,{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()})}}),qH=Object.keys(Q_),KH={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function GH(e,t,n){KH[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[o],i=n[o];r?e.props[o]=(...s)=>{r(...s),i(...s)}:e.props[o]=i})}const Is={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:Ko.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},YH=Object.assign(Object.assign(Object.assign({},Be.props),Is),{internalOnAfterLeave:Function,internalRenderBody:Function}),pl=be({name:"Popover",inheritAttrs:!1,props:YH,slots:Object,__popover__:!0,setup(e){const t=Jr(),n=H(null),o=D(()=>e.show),r=H(e.defaultShow),i=ln(o,r),s=Ct(()=>e.disabled?!1:i.value),a=()=>{if(e.disabled)return!0;const{getDisabled:M}=e;return!!(M!=null&&M())},l=()=>a()?!1:i.value,c=ku(e,["arrow","showArrow"]),u=D(()=>e.overlap?!1:c.value);let d=null;const f=H(null),h=H(null),p=Ct(()=>e.x!==void 0&&e.y!==void 0);function m(M){const{"onUpdate:show":z,onUpdateShow:K,onShow:J,onHide:se}=e;r.value=M,z&&$e(z,M),K&&$e(K,M),M&&J&&$e(J,!0),M&&se&&$e(se,!1)}function g(){d&&d.syncPosition()}function b(){const{value:M}=f;M&&(window.clearTimeout(M),f.value=null)}function w(){const{value:M}=h;M&&(window.clearTimeout(M),h.value=null)}function C(){const M=a();if(e.trigger==="focus"&&!M){if(l())return;m(!0)}}function S(){const M=a();if(e.trigger==="focus"&&!M){if(!l())return;m(!1)}}function _(){const M=a();if(e.trigger==="hover"&&!M){if(w(),f.value!==null||l())return;const z=()=>{m(!0),f.value=null},{delay:K}=e;K===0?z():f.value=window.setTimeout(z,K)}}function x(){const M=a();if(e.trigger==="hover"&&!M){if(b(),h.value!==null||!l())return;const z=()=>{m(!1),h.value=null},{duration:K}=e;K===0?z():h.value=window.setTimeout(z,K)}}function y(){x()}function T(M){var z;l()&&(e.trigger==="click"&&(b(),w(),m(!1)),(z=e.onClickoutside)===null||z===void 0||z.call(e,M))}function k(){if(e.trigger==="click"&&!a()){b(),w();const M=!l();m(M)}}function P(M){e.internalTrapFocus&&M.key==="Escape"&&(b(),w(),m(!1))}function I(M){r.value=M}function R(){var M;return(M=n.value)===null||M===void 0?void 0:M.targetRef}function W(M){d=M}return at("NPopover",{getTriggerElement:R,handleKeydown:P,handleMouseEnter:_,handleMouseLeave:x,handleClickOutside:T,handleMouseMoveOutside:y,setBodyInstance:W,positionManuallyRef:p,isMountedRef:t,zIndexRef:ze(e,"zIndex"),extraClassRef:ze(e,"internalExtraClass"),internalRenderBodyRef:ze(e,"internalRenderBody")}),Jt(()=>{i.value&&a()&&m(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:s,uncontrolledShow:r,mergedShowArrow:u,getMergedShow:l,setShow:I,handleClick:k,handleMouseEnter:_,handleMouseLeave:x,handleFocus:C,handleBlur:S,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let o,r=!1;if(!t&&(o=RI(n,"trigger"),o)){o=mo(o),o=o.type===zs?v("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)r=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:s}=this,a=[i,...s],l={onBlur:c=>{a.forEach(u=>{u.onBlur(c)})},onFocus:c=>{a.forEach(u=>{u.onFocus(c)})},onClick:c=>{a.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{a.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{a.forEach(u=>{u.onMouseleave(c)})}};GH(o,s?"nested":t?"manual":this.trigger,l)}}return v(Kp,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?hn(v("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[Pu,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Gp,null,{default:()=>o}),v(UH,oo(this.$props,qH,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var s,a;return(a=(s=this.$slots).default)===null||a===void 0?void 0:a.call(s)},header:()=>{var s,a;return(a=(s=this.$slots).header)===null||a===void 0?void 0:a.call(s)},footer:()=>{var s,a;return(a=(s=this.$slots).footer)===null||a===void 0?void 0:a.call(s)}})]}})}}),t2={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},XH={name:"Tag",common:je,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:s,warningColor:a,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:m,closeColorHover:g,closeColorPressed:b,borderRadiusSmall:w,fontSizeMini:C,fontSizeTiny:S,fontSizeSmall:_,fontSizeMedium:x,heightMini:y,heightTiny:T,heightSmall:k,heightMedium:P,buttonColor2Hover:I,buttonColor2Pressed:R,fontWeightStrong:W}=e;return Object.assign(Object.assign({},t2),{closeBorderRadius:w,heightTiny:y,heightSmall:T,heightMedium:k,heightLarge:P,borderRadius:w,opacityDisabled:f,fontSizeTiny:C,fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:x,fontWeightStrong:W,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:R,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:m,closeColorHover:g,closeColorPressed:b,borderPrimary:`1px solid ${Ae(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ae(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:fn(r,{lightness:.7}),closeIconColorHoverPrimary:fn(r,{lightness:.7}),closeIconColorPressedPrimary:fn(r,{lightness:.7}),closeColorHoverPrimary:Ae(r,{alpha:.16}),closeColorPressedPrimary:Ae(r,{alpha:.12}),borderInfo:`1px solid ${Ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ae(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:fn(i,{alpha:.7}),closeIconColorHoverInfo:fn(i,{alpha:.7}),closeIconColorPressedInfo:fn(i,{alpha:.7}),closeColorHoverInfo:Ae(i,{alpha:.16}),closeColorPressedInfo:Ae(i,{alpha:.12}),borderSuccess:`1px solid ${Ae(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Ae(s,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:fn(s,{alpha:.7}),closeIconColorHoverSuccess:fn(s,{alpha:.7}),closeIconColorPressedSuccess:fn(s,{alpha:.7}),closeColorHoverSuccess:Ae(s,{alpha:.16}),closeColorPressedSuccess:Ae(s,{alpha:.12}),borderWarning:`1px solid ${Ae(a,{alpha:.3})}`,textColorWarning:a,colorWarning:Ae(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:fn(a,{alpha:.7}),closeIconColorHoverWarning:fn(a,{alpha:.7}),closeIconColorPressedWarning:fn(a,{alpha:.7}),closeColorHoverWarning:Ae(a,{alpha:.16}),closeColorPressedWarning:Ae(a,{alpha:.11}),borderError:`1px solid ${Ae(l,{alpha:.3})}`,textColorError:l,colorError:Ae(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:fn(l,{alpha:.7}),closeIconColorHoverError:fn(l,{alpha:.7}),closeIconColorPressedError:fn(l,{alpha:.7}),closeColorHoverError:Ae(l,{alpha:.16}),closeColorPressedError:Ae(l,{alpha:.12})})}},n2=XH;function ZH(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:s,warningColor:a,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:m,borderRadiusSmall:g,fontSizeMini:b,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:S,heightMini:_,heightTiny:x,heightSmall:y,heightMedium:T,closeColorHover:k,closeColorPressed:P,buttonColor2Hover:I,buttonColor2Pressed:R,fontWeightStrong:W}=e;return Object.assign(Object.assign({},t2),{closeBorderRadius:g,heightTiny:_,heightSmall:x,heightMedium:y,heightLarge:T,borderRadius:g,opacityDisabled:d,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:S,fontWeightStrong:W,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:R,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:m,closeColorHover:k,closeColorPressed:P,borderPrimary:`1px solid ${Ae(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ae(r,{alpha:.12}),colorBorderedPrimary:Ae(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Ae(r,{alpha:.12}),closeColorPressedPrimary:Ae(r,{alpha:.18}),borderInfo:`1px solid ${Ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ae(i,{alpha:.12}),colorBorderedInfo:Ae(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Ae(i,{alpha:.12}),closeColorPressedInfo:Ae(i,{alpha:.18}),borderSuccess:`1px solid ${Ae(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Ae(s,{alpha:.12}),colorBorderedSuccess:Ae(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:Ae(s,{alpha:.12}),closeColorPressedSuccess:Ae(s,{alpha:.18}),borderWarning:`1px solid ${Ae(a,{alpha:.35})}`,textColorWarning:a,colorWarning:Ae(a,{alpha:.15}),colorBorderedWarning:Ae(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:Ae(a,{alpha:.12}),closeColorPressedWarning:Ae(a,{alpha:.18}),borderError:`1px solid ${Ae(l,{alpha:.23})}`,textColorError:l,colorError:Ae(l,{alpha:.1}),colorBorderedError:Ae(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Ae(l,{alpha:.12}),closeColorPressedError:Ae(l,{alpha:.18})})}const JH={name:"Tag",common:xt,self:ZH},QH=JH,ej={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},tj=L("tag",` + `,[z("popover-arrow",t)])])])}const J_=Object.assign(Object.assign({},Le.props),{to:Ko.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 Z_({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:o,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:o,class:[`${r}-popover-arrow-wrapper`,n]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const BH=xe({name:"PopoverBody",inheritAttrs:!1,props:J_,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(e),a=Le("Popover","-popover",LH,qa,e,r),s=U(null),l=Ve("NPopover"),c=U(null),u=U(e.show),d=U(!1);Yt(()=>{const{show:x}=e;x&&!h8()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=I(()=>{const{trigger:x,onClickoutside:P}=e,k=[],{positionManuallyRef:{value:T}}=l;return T||(x==="click"&&!P&&k.push([Ea,_,void 0,{capture:!0}]),x==="hover"&&k.push([M8,C])),P&&k.push([Ea,_,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&k.push([Mn,e.show]),k}),h=I(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:P,cubicBezierEaseOut:k},self:{space:T,spaceArrow:R,padding:E,fontSize:q,textColor:D,dividerColor:B,color:M,boxShadow:K,borderRadius:V,arrowHeight:ae,arrowOffset:pe,arrowOffsetVertical:Z}}=a.value;return{"--n-box-shadow":K,"--n-bezier":x,"--n-bezier-ease-in":P,"--n-bezier-ease-out":k,"--n-font-size":q,"--n-text-color":D,"--n-color":M,"--n-divider-color":B,"--n-border-radius":V,"--n-arrow-height":ae,"--n-arrow-offset":pe,"--n-arrow-offset-vertical":Z,"--n-padding":E,"--n-space":T,"--n-space-arrow":R}}),p=I(()=>{const x=e.width==="trigger"?void 0:qt(e.width),P=[];x&&P.push({width:x});const{maxWidth:k,minWidth:T}=e;return k&&P.push({maxWidth:qt(k)}),T&&P.push({maxWidth:qt(T)}),i||P.push(h.value),P}),g=i?Pt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:m}),on(()=>{l.setBodyInstance(null)}),ft(Ue(e,"show"),x=>{e.animated||(x?u.value=!0:u.value=!1)});function m(){var x;(x=s.value)===null||x===void 0||x.syncPosition()}function b(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(x)}function w(x){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(x)}function C(x){e.trigger==="hover"&&!S().contains($i(x))&&l.handleMouseMoveOutside(x)}function _(x){(e.trigger==="click"&&!S().contains($i(x))||e.onClickoutside)&&l.handleClickOutside(x)}function S(){return l.getTriggerElement()}at(ja,c),at(ll,null),at(sl,null);function y(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let P;const k=l.internalRenderBodyRef.value,{value:T}=r;if(k)P=k([`${T}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],c,p.value,b,w);else{const{value:R}=l.extraClassRef,{internalTrapFocus:E}=e,q=!pa(t.header)||!pa(t.footer),D=()=>{var B,M;const K=q?v(rt,null,At(t.header,pe=>pe?v("div",{class:[`${T}-popover__header`,e.headerClass],style:e.headerStyle},pe):null),At(t.default,pe=>pe?v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t):null),At(t.footer,pe=>pe?v("div",{class:[`${T}-popover__footer`,e.footerClass],style:e.footerStyle},pe):null)):e.scrollable?(B=t.default)===null||B===void 0?void 0:B.call(t):v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t),V=e.scrollable?v(G_,{contentClass:q?void 0:`${T}-popover__content ${(M=e.contentClass)!==null&&M!==void 0?M:""}`,contentStyle:q?void 0:e.contentStyle},{default:()=>K}):K,ae=e.showArrow?Z_({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:T}):null;return[V,ae]};P=v("div",Ln({class:[`${T}-popover`,`${T}-popover-shared`,g==null?void 0:g.themeClass.value,R.map(B=>`${T}-${B}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:q,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:b,onMouseleave:w},n),E?v(Xp,{active:e.show,autoFocus:!0},{default:D}):D())}return dn(P,f.value)}return{displayed:d,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Ko(e),followerEnabled:u,renderContentNode:y}},render(){return v(Kp,{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===Ko.tdkey},{default:()=>this.animated?v(fn,{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()})}}),NH=Object.keys(J_),HH={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function jH(e,t,n){HH[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[o],i=n[o];r?e.props[o]=(...a)=>{r(...a),i(...a)}:e.props[o]=i})}const Aa={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:Ko.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},UH=Object.assign(Object.assign(Object.assign({},Le.props),Aa),{internalOnAfterLeave:Function,internalRenderBody:Function}),hl=xe({name:"Popover",inheritAttrs:!1,props:UH,__popover__:!0,setup(e){const t=Zr(),n=U(null),o=I(()=>e.show),r=U(e.defaultShow),i=rn(o,r),a=kt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:B}=e;return!!(B!=null&&B())},l=()=>s()?!1:i.value,c=_u(e,["arrow","showArrow"]),u=I(()=>e.overlap?!1:c.value);let d=null;const f=U(null),h=U(null),p=kt(()=>e.x!==void 0&&e.y!==void 0);function g(B){const{"onUpdate:show":M,onUpdateShow:K,onShow:V,onHide:ae}=e;r.value=B,M&&Re(M,B),K&&Re(K,B),B&&V&&Re(V,!0),B&&ae&&Re(ae,!1)}function m(){d&&d.syncPosition()}function b(){const{value:B}=f;B&&(window.clearTimeout(B),f.value=null)}function w(){const{value:B}=h;B&&(window.clearTimeout(B),h.value=null)}function C(){const B=s();if(e.trigger==="focus"&&!B){if(l())return;g(!0)}}function _(){const B=s();if(e.trigger==="focus"&&!B){if(!l())return;g(!1)}}function S(){const B=s();if(e.trigger==="hover"&&!B){if(w(),f.value!==null||l())return;const M=()=>{g(!0),f.value=null},{delay:K}=e;K===0?M():f.value=window.setTimeout(M,K)}}function y(){const B=s();if(e.trigger==="hover"&&!B){if(b(),h.value!==null||!l())return;const M=()=>{g(!1),h.value=null},{duration:K}=e;K===0?M():h.value=window.setTimeout(M,K)}}function x(){y()}function P(B){var M;l()&&(e.trigger==="click"&&(b(),w(),g(!1)),(M=e.onClickoutside)===null||M===void 0||M.call(e,B))}function k(){if(e.trigger==="click"&&!s()){b(),w();const B=!l();g(B)}}function T(B){e.internalTrapFocus&&B.key==="Escape"&&(b(),w(),g(!1))}function R(B){r.value=B}function E(){var B;return(B=n.value)===null||B===void 0?void 0:B.targetRef}function q(B){d=B}return at("NPopover",{getTriggerElement:E,handleKeydown:T,handleMouseEnter:S,handleMouseLeave:y,handleClickOutside:P,handleMouseMoveOutside:x,setBodyInstance:q,positionManuallyRef:p,isMountedRef:t,zIndexRef:Ue(e,"zIndex"),extraClassRef:Ue(e,"internalExtraClass"),internalRenderBodyRef:Ue(e,"internalRenderBody")}),Yt(()=>{i.value&&s()&&g(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:u,getMergedShow:l,setShow:R,handleClick:k,handleMouseEnter:S,handleMouseLeave:y,handleFocus:C,handleBlur:_,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let o,r=!1;if(!t&&(n.activator?o=mh(n,"activator"):o=mh(n,"trigger"),o)){o=fo(o),o=o.type===Ma?v("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)r=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(u=>{u.onBlur(c)})},onFocus:c=>{s.forEach(u=>{u.onFocus(c)})},onClick:c=>{s.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{s.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{s.forEach(u=>{u.onMouseleave(c)})}};jH(o,a?"nested":t?"manual":this.trigger,l)}}return v(Vp,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?dn(v("div",{style:{position:"fixed",inset:0}}),[[Su,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Wp,null,{default:()=>o}),v(BH,eo(this.$props,NH,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)}})]}})}}),eS={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},VH={name:"Tag",common:He,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderRadiusSmall:w,fontSizeMini:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,heightMini:x,heightTiny:P,heightSmall:k,heightMedium:T,buttonColor2Hover:R,buttonColor2Pressed:E,fontWeightStrong:q}=e;return Object.assign(Object.assign({},eS),{closeBorderRadius:w,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T,borderRadius:w,opacityDisabled:f,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,fontWeightStrong:q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderPrimary:`1px solid ${Ie(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ie(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:un(r,{lightness:.7}),closeIconColorHoverPrimary:un(r,{lightness:.7}),closeIconColorPressedPrimary:un(r,{lightness:.7}),closeColorHoverPrimary:Ie(r,{alpha:.16}),closeColorPressedPrimary:Ie(r,{alpha:.12}),borderInfo:`1px solid ${Ie(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ie(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:un(i,{alpha:.7}),closeIconColorHoverInfo:un(i,{alpha:.7}),closeIconColorPressedInfo:un(i,{alpha:.7}),closeColorHoverInfo:Ie(i,{alpha:.16}),closeColorPressedInfo:Ie(i,{alpha:.12}),borderSuccess:`1px solid ${Ie(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ie(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:un(a,{alpha:.7}),closeIconColorHoverSuccess:un(a,{alpha:.7}),closeIconColorPressedSuccess:un(a,{alpha:.7}),closeColorHoverSuccess:Ie(a,{alpha:.16}),closeColorPressedSuccess:Ie(a,{alpha:.12}),borderWarning:`1px solid ${Ie(s,{alpha:.3})}`,textColorWarning:s,colorWarning:Ie(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:un(s,{alpha:.7}),closeIconColorHoverWarning:un(s,{alpha:.7}),closeIconColorPressedWarning:un(s,{alpha:.7}),closeColorHoverWarning:Ie(s,{alpha:.16}),closeColorPressedWarning:Ie(s,{alpha:.11}),borderError:`1px solid ${Ie(l,{alpha:.3})}`,textColorError:l,colorError:Ie(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:un(l,{alpha:.7}),closeIconColorHoverError:un(l,{alpha:.7}),closeIconColorPressedError:un(l,{alpha:.7}),closeColorHoverError:Ie(l,{alpha:.16}),closeColorPressedError:Ie(l,{alpha:.12})})}},tS=VH;function WH(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:m,fontSizeMini:b,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:_,heightMini:S,heightTiny:y,heightSmall:x,heightMedium:P,closeColorHover:k,closeColorPressed:T,buttonColor2Hover:R,buttonColor2Pressed:E,fontWeightStrong:q}=e;return Object.assign(Object.assign({},eS),{closeBorderRadius:m,heightTiny:S,heightSmall:y,heightMedium:x,heightLarge:P,borderRadius:m,opacityDisabled:d,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:_,fontWeightStrong:q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:k,closeColorPressed:T,borderPrimary:`1px solid ${Ie(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ie(r,{alpha:.12}),colorBorderedPrimary:Ie(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Ie(r,{alpha:.12}),closeColorPressedPrimary:Ie(r,{alpha:.18}),borderInfo:`1px solid ${Ie(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ie(i,{alpha:.12}),colorBorderedInfo:Ie(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Ie(i,{alpha:.12}),closeColorPressedInfo:Ie(i,{alpha:.18}),borderSuccess:`1px solid ${Ie(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ie(a,{alpha:.12}),colorBorderedSuccess:Ie(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Ie(a,{alpha:.12}),closeColorPressedSuccess:Ie(a,{alpha:.18}),borderWarning:`1px solid ${Ie(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Ie(s,{alpha:.15}),colorBorderedWarning:Ie(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:Ie(s,{alpha:.12}),closeColorPressedWarning:Ie(s,{alpha:.18}),borderError:`1px solid ${Ie(l,{alpha:.23})}`,textColorError:l,colorError:Ie(l,{alpha:.1}),colorBorderedError:Ie(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Ie(l,{alpha:.12}),closeColorPressedError:Ie(l,{alpha:.18})})}const qH={name:"Tag",common:xt,self:WH},KH=qH,GH={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},XH=z("tag",` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; @@ -520,9 +488,9 @@ ${t} line-height: 1; height: var(--n-height); font-size: var(--n-font-size); -`,[Z("strong",` +`,[J("strong",` font-weight: var(--n-font-weight-strong); - `),V("border",` + `),j("border",` pointer-events: none; position: absolute; left: 0; @@ -532,43 +500,67 @@ ${t} border-radius: inherit; border: var(--n-border); transition: border-color .3s var(--n-bezier); - `),V("icon",` + `),j("icon",` display: flex; margin: 0 4px 0 0; color: var(--n-text-color); transition: color .3s var(--n-bezier); font-size: var(--n-avatar-size-override); - `),V("avatar",` + `),j("avatar",` display: flex; margin: 0 6px 0 0; - `),V("close",` + `),j("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `),Z("round",` + `),J("round",` padding: 0 calc(var(--n-height) / 3); border-radius: calc(var(--n-height) / 2); - `,[V("icon",` + `,[j("icon",` margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),V("avatar",` + `),j("avatar",` margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),Z("closable",` + `),J("closable",` padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),Z("icon, avatar",[Z("round",` + `)]),J("icon, avatar",[J("round",` padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),Z("disabled",` + `)]),J("disabled",` cursor: not-allowed !important; opacity: var(--n-opacity-disabled); - `),Z("checkable",` + `),J("checkable",` cursor: pointer; box-shadow: none; color: var(--n-text-color-checkable); background-color: var(--n-color-checkable); - `,[$t("disabled",[G("&:hover","background-color: var(--n-color-hover-checkable);",[$t("checked","color: var(--n-text-color-hover-checkable);")]),G("&:active","background-color: var(--n-color-pressed-checkable);",[$t("checked","color: var(--n-text-color-pressed-checkable);")])]),Z("checked",` + `,[Et("disabled",[W("&:hover","background-color: var(--n-color-hover-checkable);",[Et("checked","color: var(--n-text-color-hover-checkable);")]),W("&:active","background-color: var(--n-color-pressed-checkable);",[Et("checked","color: var(--n-text-color-pressed-checkable);")])]),J("checked",` color: var(--n-text-color-checked); background-color: var(--n-color-checked); - `,[$t("disabled",[G("&:hover","background-color: var(--n-color-checked-hover);"),G("&:active","background-color: var(--n-color-checked-pressed);")])])])]),nj=Object.assign(Object.assign(Object.assign({},Be.props),ej),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),oj="n-tag",Ti=be({name:"Tag",props:nj,slots:Object,setup(e){const t=H(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=lt(e),s=Be("Tag","-tag",tj,QH,e,o);at(oj,{roundRef:ze(e,"round")});function a(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!h),g&&g(!h),p&&p(!h)}}function l(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&$e(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},u=gn("Tag",i,o),d=D(()=>{const{type:h,size:p,color:{color:m,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:w,closeMargin:C,borderRadius:S,opacityDisabled:_,textColorCheckable:x,textColorHoverCheckable:y,textColorPressedCheckable:T,textColorChecked:k,colorCheckable:P,colorHoverCheckable:I,colorPressedCheckable:R,colorChecked:W,colorCheckedHover:O,colorCheckedPressed:M,closeBorderRadius:z,fontWeightStrong:K,[Re("colorBordered",h)]:J,[Re("closeSize",p)]:se,[Re("closeIconSize",p)]:le,[Re("fontSize",p)]:F,[Re("height",p)]:E,[Re("color",h)]:A,[Re("textColor",h)]:Y,[Re("border",h)]:ne,[Re("closeIconColor",h)]:fe,[Re("closeIconColorHover",h)]:Q,[Re("closeIconColorPressed",h)]:Ce,[Re("closeColorHover",h)]:j,[Re("closeColorPressed",h)]:ye}}=s.value,Ie=zn(C);return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${E} - 8px)`,"--n-bezier":b,"--n-border-radius":S,"--n-border":ne,"--n-close-icon-size":le,"--n-close-color-pressed":ye,"--n-close-color-hover":j,"--n-close-border-radius":z,"--n-close-icon-color":fe,"--n-close-icon-color-hover":Q,"--n-close-icon-color-pressed":Ce,"--n-close-icon-color-disabled":fe,"--n-close-margin-top":Ie.top,"--n-close-margin-right":Ie.right,"--n-close-margin-bottom":Ie.bottom,"--n-close-margin-left":Ie.left,"--n-close-size":se,"--n-color":m||(n.value?J:A),"--n-color-checkable":P,"--n-color-checked":W,"--n-color-checked-hover":O,"--n-color-checked-pressed":M,"--n-color-hover-checkable":I,"--n-color-pressed-checkable":R,"--n-font-size":F,"--n-height":E,"--n-opacity-disabled":_,"--n-padding":w,"--n-text-color":g||Y,"--n-text-color-checkable":x,"--n-text-color-checked":k,"--n-text-color-hover-checkable":y,"--n-text-color-pressed-checkable":T}}),f=r?Rt("tag",D(()=>{let h="";const{type:p,size:m,color:{color:g,textColor:b}={}}=e;return h+=p[0],h+=m[0],g&&(h+=`a${$c(g)}`),b&&(h+=`b${$c(b)}`),n.value&&(h+="c"),h}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:a,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:o,closable:r,color:{borderColor:i}={},round:s,onRender:a,$slots:l}=this;a==null||a();const c=Mt(l.avatar,d=>d&&v("div",{class:`${n}-tag__avatar`},d)),u=Mt(l.icon,d=>d&&v("div",{class:`${n}-tag__icon`},d));return v("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:s,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,v("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(Gi,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),o2=be({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return v(ti,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(Ih,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Gt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>Dn(t.default,()=>[v(N_,null)])})}):null})}}}),r2={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},rj={name:"InternalSelection",common:je,peers:{Popover:Zi},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:s,primaryColorHover:a,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:m,clearColorPressed:g,placeholderColor:b,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:x,heightTiny:y,heightSmall:T,heightMedium:k,heightLarge:P,fontWeight:I}=e;return Object.assign(Object.assign({},r2),{fontWeight:I,fontSizeTiny:C,fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:x,heightTiny:y,heightSmall:T,heightMedium:k,heightLarge:P,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:b,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:Ae(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Ae(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ae(s,{alpha:.4})}`,caretColor:s,arrowColor:f,arrowColorDisabled:h,loadingColor:s,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Ae(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ae(l,{alpha:.4})}`,colorActiveWarning:Ae(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ae(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ae(u,{alpha:.4})}`,colorActiveError:Ae(u,{alpha:.1}),caretColorError:u,clearColor:p,clearColorHover:m,clearColorPressed:g})}},pm=rj;function ij(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:s,primaryColorHover:a,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:m,clearColorHover:g,clearColorPressed:b,placeholderColor:w,placeholderColorDisabled:C,fontSizeTiny:S,fontSizeSmall:_,fontSizeMedium:x,fontSizeLarge:y,heightTiny:T,heightSmall:k,heightMedium:P,heightLarge:I,fontWeight:R}=e;return Object.assign(Object.assign({},r2),{fontSizeTiny:S,fontSizeSmall:_,fontSizeMedium:x,fontSizeLarge:y,heightTiny:T,heightSmall:k,heightMedium:P,heightLarge:I,borderRadius:t,fontWeight:R,textColor:n,textColorDisabled:o,placeholderColor:w,placeholderColorDisabled:C,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Ae(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ae(s,{alpha:.2})}`,caretColor:s,arrowColor:h,arrowColorDisabled:p,loadingColor:s,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Ae(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ae(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ae(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ae(u,{alpha:.2})}`,colorActiveError:r,caretColorError:u,clearColor:m,clearColorHover:g,clearColorPressed:b})}const sj={name:"InternalSelection",common:xt,peers:{Popover:Gs},self:ij},i2=sj,aj=G([L("base-selection",` + `,[Et("disabled",[W("&:hover","background-color: var(--n-color-checked-hover);"),W("&:active","background-color: var(--n-color-checked-pressed);")])])])]),YH=Object.assign(Object.assign(Object.assign({},Le.props),GH),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),QH="n-tag",Ti=xe({name:"Tag",props:YH,setup(e){const t=U(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=Le("Tag","-tag",XH,KH,e,o);at(QH,{roundRef:Ue(e,"round")});function s(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!h),m&&m(!h),p&&p(!h)}}function l(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Re(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},u=pn("Tag",i,o),d=I(()=>{const{type:h,size:p,color:{color:g,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:w,closeMargin:C,borderRadius:_,opacityDisabled:S,textColorCheckable:y,textColorHoverCheckable:x,textColorPressedCheckable:P,textColorChecked:k,colorCheckable:T,colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:q,colorCheckedHover:D,colorCheckedPressed:B,closeBorderRadius:M,fontWeightStrong:K,[Te("colorBordered",h)]:V,[Te("closeSize",p)]:ae,[Te("closeIconSize",p)]:pe,[Te("fontSize",p)]:Z,[Te("height",p)]:N,[Te("color",h)]:O,[Te("textColor",h)]:ee,[Te("border",h)]:G,[Te("closeIconColor",h)]:ne,[Te("closeIconColorHover",h)]:X,[Te("closeIconColorPressed",h)]:ce,[Te("closeColorHover",h)]:L,[Te("closeColorPressed",h)]:be}}=a.value,Oe=co(C);return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${N} - 8px)`,"--n-bezier":b,"--n-border-radius":_,"--n-border":G,"--n-close-icon-size":pe,"--n-close-color-pressed":be,"--n-close-color-hover":L,"--n-close-border-radius":M,"--n-close-icon-color":ne,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":ce,"--n-close-icon-color-disabled":ne,"--n-close-margin-top":Oe.top,"--n-close-margin-right":Oe.right,"--n-close-margin-bottom":Oe.bottom,"--n-close-margin-left":Oe.left,"--n-close-size":ae,"--n-color":g||(n.value?V:O),"--n-color-checkable":T,"--n-color-checked":q,"--n-color-checked-hover":D,"--n-color-checked-pressed":B,"--n-color-hover-checkable":R,"--n-color-pressed-checkable":E,"--n-font-size":Z,"--n-height":N,"--n-opacity-disabled":S,"--n-padding":w,"--n-text-color":m||ee,"--n-text-color-checkable":y,"--n-text-color-checked":k,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":P}}),f=r?Pt("tag",I(()=>{let h="";const{type:p,size:g,color:{color:m,textColor:b}={}}=e;return h+=p[0],h+=g[0],m&&(h+=`a${Ec(m)}`),b&&(h+=`b${Ec(b)}`),n.value&&(h+="c"),h}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:s,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:o,closable:r,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=At(l.avatar,d=>d&&v("div",{class:`${n}-tag__avatar`},d)),u=At(l.icon,d=>d&&v("div",{class:`${n}-tag__icon`},d));return v("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,v("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(qi,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),JH=z("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[W(">",[j("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[W("&:hover",` + color: var(--n-clear-color-hover)!important; + `),W("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),j("placeholder",` + display: flex; + `),j("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),zh=xe({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ei("-base-clear",JH,Ue(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(Wi,null,{default:()=>{var t,n;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},$n(this.$slots.icon,()=>[v(Wt,{clsPrefix:e},{default:()=>v(ON,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),nS=xe({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return v(ti,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(zh,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Wt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>$n(t.default,()=>[v(B_,null)])})}):null})}}}),oS={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function ZH(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:m,clearColorPressed:b,placeholderColor:w,placeholderColorDisabled:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:P,heightSmall:k,heightMedium:T,heightLarge:R}=e;return Object.assign(Object.assign({},oS),{fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:P,heightSmall:k,heightMedium:T,heightLarge:R,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:w,placeholderColorDisabled:C,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 ${Ie(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ie(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,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 ${Ie(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ie(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ie(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ie(u,{alpha:.2})}`,colorActiveError:r,caretColorError:u,clearColor:g,clearColorHover:m,clearColorPressed:b})}const ej={name:"InternalSelection",common:xt,peers:{Popover:qa},self:ZH},rS=ej,tj={name:"InternalSelection",common:He,peers:{Popover:Xi},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:m,placeholderColor:b,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T}=e;return Object.assign(Object.assign({},oS),{fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:b,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:Ie(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 ${Ie(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ie(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 ${Ie(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ie(l,{alpha:.4})}`,colorActiveWarning:Ie(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ie(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ie(u,{alpha:.4})}`,colorActiveError:Ie(u,{alpha:.1}),caretColorError:u,clearColor:p,clearColorHover:g,clearColorPressed:m})}},hm=tj,nj=W([z("base-selection",` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; @@ -582,9 +574,9 @@ ${t} min-height: var(--n-height); line-height: 1.5; font-size: var(--n-font-size); - `,[L("base-loading",` + `,[z("base-loading",` color: var(--n-loading-color); - `),L("base-selection-tags","min-height: var(--n-height);"),V("border, state-border",` + `),z("base-selection-tags","min-height: var(--n-height);"),j("border, state-border",` position: absolute; left: 0; right: 0; @@ -596,20 +588,20 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),V("state-border",` + `),j("state-border",` z-index: 1; border-color: #0000; - `),L("base-suffix",` + `),z("base-suffix",` cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); right: 10px; - `,[V("arrow",` + `,[j("arrow",` font-size: var(--n-arrow-size); color: var(--n-arrow-color); transition: color .3s var(--n-bezier); - `)]),L("base-selection-overlay",` + `)]),z("base-selection-overlay",` display: flex; align-items: center; white-space: nowrap; @@ -621,17 +613,17 @@ ${t} left: 0; padding: var(--n-padding-single); transition: color .3s var(--n-bezier); - `,[V("wrapper",` + `,[j("wrapper",` flex-basis: 0; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; - `)]),L("base-selection-placeholder",` + `)]),z("base-selection-placeholder",` color: var(--n-placeholder-color); - `,[V("inner",` + `,[j("inner",` max-width: 100%; overflow: hidden; - `)]),L("base-selection-tags",` + `)]),z("base-selection-tags",` cursor: pointer; outline: none; box-sizing: border-box; @@ -649,7 +641,7 @@ ${t} color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - `),L("base-selection-label",` + `),z("base-selection-label",` height: var(--n-height); display: inline-flex; width: 100%; @@ -666,7 +658,7 @@ ${t} border-radius: inherit; background-color: var(--n-color); align-items: center; - `,[L("base-selection-input",` + `,[z("base-selection-input",` font-size: inherit; line-height: inherit; outline: none; @@ -679,38 +671,38 @@ ${t} color: var(--n-text-color); transition: color .3s var(--n-bezier); caret-color: var(--n-caret-color); - `,[V("content",` + `,[j("content",` text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - `)]),V("render-label",` + `)]),j("render-label",` color: var(--n-text-color); - `)]),$t("disabled",[G("&:hover",[V("state-border",` + `)]),Et("disabled",[W("&:hover",[j("state-border",` box-shadow: var(--n-box-shadow-hover); border: var(--n-border-hover); - `)]),Z("focus",[V("state-border",` + `)]),J("focus",[j("state-border",` box-shadow: var(--n-box-shadow-focus); border: var(--n-border-focus); - `)]),Z("active",[V("state-border",` + `)]),J("active",[j("state-border",` box-shadow: var(--n-box-shadow-active); border: var(--n-border-active); - `),L("base-selection-label","background-color: var(--n-color-active);"),L("base-selection-tags","background-color: var(--n-color-active);")])]),Z("disabled","cursor: not-allowed;",[V("arrow",` + `),z("base-selection-label","background-color: var(--n-color-active);"),z("base-selection-tags","background-color: var(--n-color-active);")])]),J("disabled","cursor: not-allowed;",[j("arrow",` color: var(--n-arrow-color-disabled); - `),L("base-selection-label",` + `),z("base-selection-label",` cursor: not-allowed; background-color: var(--n-color-disabled); - `,[L("base-selection-input",` + `,[z("base-selection-input",` cursor: not-allowed; color: var(--n-text-color-disabled); - `),V("render-label",` + `),j("render-label",` color: var(--n-text-color-disabled); - `)]),L("base-selection-tags",` + `)]),z("base-selection-tags",` cursor: not-allowed; background-color: var(--n-color-disabled); - `),L("base-selection-placeholder",` + `),z("base-selection-placeholder",` cursor: not-allowed; color: var(--n-placeholder-color-disabled); - `)]),L("base-selection-input-tag",` + `)]),z("base-selection-input-tag",` height: calc(var(--n-height) - 6px); line-height: calc(var(--n-height) - 6px); outline: none; @@ -719,7 +711,7 @@ ${t} margin-bottom: 3px; max-width: 100%; vertical-align: bottom; - `,[V("input",` + `,[j("input",` font-size: inherit; font-family: inherit; min-width: 1px; @@ -734,7 +726,7 @@ ${t} cursor: pointer; color: var(--n-text-color); caret-color: var(--n-caret-color); - `),V("mirror",` + `),j("mirror",` position: absolute; left: 0; top: 0; @@ -743,79 +735,72 @@ ${t} user-select: none; -webkit-user-select: none; opacity: 0; - `)]),["warning","error"].map(e=>Z(`${e}-status`,[V("state-border",`border: var(--n-border-${e});`),$t("disabled",[G("&:hover",[V("state-border",` + `)]),["warning","error"].map(e=>J(`${e}-status`,[j("state-border",`border: var(--n-border-${e});`),Et("disabled",[W("&:hover",[j("state-border",` box-shadow: var(--n-box-shadow-hover-${e}); border: var(--n-border-hover-${e}); - `)]),Z("active",[V("state-border",` + `)]),J("active",[j("state-border",` box-shadow: var(--n-box-shadow-active-${e}); border: var(--n-border-active-${e}); - `),L("base-selection-label",`background-color: var(--n-color-active-${e});`),L("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Z("focus",[V("state-border",` + `),z("base-selection-label",`background-color: var(--n-color-active-${e});`),z("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),J("focus",[j("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),L("base-selection-popover",` + `)])])]))]),z("base-selection-popover",` margin-bottom: -3px; display: flex; flex-wrap: wrap; margin-right: -8px; - `),L("base-selection-tag-wrapper",` + `),z("base-selection-tag-wrapper",` max-width: 100%; display: inline-flex; padding: 0 7px 3px 0; - `,[G("&:last-child","padding-right: 0;"),L("tag",` + `,[W("&:last-child","padding-right: 0;"),z("tag",` font-size: 14px; max-width: 100%; - `,[V("content",` + `,[j("content",` line-height: 1.25; text-overflow: ellipsis; overflow: hidden; - `)])])]),lj=be({name:"InternalSelection",props:Object.assign(Object.assign({},Be.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=lt(e),o=gn("InternalSelection",n,t),r=H(null),i=H(null),s=H(null),a=H(null),l=H(null),c=H(null),u=H(null),d=H(null),f=H(null),h=H(null),p=H(!1),m=H(!1),g=H(!1),b=Be("InternalSelection","-internal-selection",aj,i2,e,ze(e,"clsPrefix")),w=D(()=>e.clearable&&!e.disabled&&(g.value||e.active)),C=D(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Kt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),S=D(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),_=D(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function x(){var de;const{value:he}=r;if(he){const{value:re}=i;re&&(re.style.width=`${he.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=f.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function y(){const{value:de}=h;de&&(de.style.display="none")}function T(){const{value:de}=h;de&&(de.style.display="inline-block")}dt(ze(e,"active"),de=>{de||y()}),dt(ze(e,"pattern"),()=>{e.multiple&&Vt(x)});function k(de){const{onFocus:he}=e;he&&he(de)}function P(de){const{onBlur:he}=e;he&&he(de)}function I(de){const{onDeleteOption:he}=e;he&&he(de)}function R(de){const{onClear:he}=e;he&&he(de)}function W(de){const{onPatternInput:he}=e;he&&he(de)}function O(de){var he;(!de.relatedTarget||!(!((he=s.value)===null||he===void 0)&&he.contains(de.relatedTarget)))&&k(de)}function M(de){var he;!((he=s.value)===null||he===void 0)&&he.contains(de.relatedTarget)||P(de)}function z(de){R(de)}function K(){g.value=!0}function J(){g.value=!1}function se(de){!e.active||!e.filterable||de.target!==i.value&&de.preventDefault()}function le(de){I(de)}const F=H(!1);function E(de){if(de.key==="Backspace"&&!F.value&&!e.pattern.length){const{selectedOptions:he}=e;he!=null&&he.length&&le(he[he.length-1])}}let A=null;function Y(de){const{value:he}=r;if(he){const re=de.target.value;he.textContent=re,x()}e.ignoreComposition&&F.value?A=de:W(de)}function ne(){F.value=!0}function fe(){F.value=!1,e.ignoreComposition&&W(A),A=null}function Q(de){var he;m.value=!0,(he=e.onPatternFocus)===null||he===void 0||he.call(e,de)}function Ce(de){var he;m.value=!1,(he=e.onPatternBlur)===null||he===void 0||he.call(e,de)}function j(){var de,he;if(e.filterable)m.value=!1,(de=c.value)===null||de===void 0||de.blur(),(he=i.value)===null||he===void 0||he.blur();else if(e.multiple){const{value:re}=a;re==null||re.blur()}else{const{value:re}=l;re==null||re.blur()}}function ye(){var de,he,re;e.filterable?(m.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(he=a.value)===null||he===void 0||he.focus():(re=l.value)===null||re===void 0||re.focus()}function Ie(){const{value:de}=i;de&&(T(),de.focus())}function Le(){const{value:de}=i;de&&de.blur()}function U(de){const{value:he}=u;he&&he.setTextContent(`+${de}`)}function B(){const{value:de}=d;return de}function ae(){return i.value}let Se=null;function te(){Se!==null&&window.clearTimeout(Se)}function xe(){e.active||(te(),Se=window.setTimeout(()=>{_.value&&(p.value=!0)},100))}function ve(){te()}function $(de){de||(te(),p.value=!1)}dt(_,de=>{de||(p.value=!1)}),Wt(()=>{Jt(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=m.value?-1:0)})}),jw(s,e.onResize);const{inlineThemeDisabled:N}=e,ee=D(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:he},self:{fontWeight:re,borderRadius:me,color:Ne,placeholderColor:He,textColor:De,paddingSingle:ot,paddingMultiple:nt,caretColor:Ge,colorDisabled:Me,textColorDisabled:tt,placeholderColorDisabled:X,colorActive:ce,boxShadowFocus:Ee,boxShadowActive:Fe,boxShadowHover:Ve,border:Xe,borderFocus:Qe,borderHover:rt,borderActive:wt,arrowColor:Ft,arrowColorDisabled:Et,loadingColor:yn,colorActiveWarning:cn,boxShadowFocusWarning:Te,boxShadowActiveWarning:Ue,boxShadowHoverWarning:et,borderWarning:ft,borderFocusWarning:ht,borderHoverWarning:oe,borderActiveWarning:ke,colorActiveError:qe,boxShadowFocusError:ct,boxShadowActiveError:At,boxShadowHoverError:It,borderError:Yt,borderFocusError:nn,borderHoverError:Gn,borderActiveError:Jo,clearColor:Qo,clearColorHover:oi,clearColorPressed:Qs,clearSize:ea,arrowSize:ta,[Re("height",de)]:na,[Re("fontSize",de)]:oa}}=b.value,yr=zn(ot),xr=zn(nt);return{"--n-bezier":he,"--n-border":Xe,"--n-border-active":wt,"--n-border-focus":Qe,"--n-border-hover":rt,"--n-border-radius":me,"--n-box-shadow-active":Fe,"--n-box-shadow-focus":Ee,"--n-box-shadow-hover":Ve,"--n-caret-color":Ge,"--n-color":Ne,"--n-color-active":ce,"--n-color-disabled":Me,"--n-font-size":oa,"--n-height":na,"--n-padding-single-top":yr.top,"--n-padding-multiple-top":xr.top,"--n-padding-single-right":yr.right,"--n-padding-multiple-right":xr.right,"--n-padding-single-left":yr.left,"--n-padding-multiple-left":xr.left,"--n-padding-single-bottom":yr.bottom,"--n-padding-multiple-bottom":xr.bottom,"--n-placeholder-color":He,"--n-placeholder-color-disabled":X,"--n-text-color":De,"--n-text-color-disabled":tt,"--n-arrow-color":Ft,"--n-arrow-color-disabled":Et,"--n-loading-color":yn,"--n-color-active-warning":cn,"--n-box-shadow-focus-warning":Te,"--n-box-shadow-active-warning":Ue,"--n-box-shadow-hover-warning":et,"--n-border-warning":ft,"--n-border-focus-warning":ht,"--n-border-hover-warning":oe,"--n-border-active-warning":ke,"--n-color-active-error":qe,"--n-box-shadow-focus-error":ct,"--n-box-shadow-active-error":At,"--n-box-shadow-hover-error":It,"--n-border-error":Yt,"--n-border-focus-error":nn,"--n-border-hover-error":Gn,"--n-border-active-error":Jo,"--n-clear-size":ea,"--n-clear-color":Qo,"--n-clear-color-hover":oi,"--n-clear-color-pressed":Qs,"--n-arrow-size":ta,"--n-font-weight":re}}),we=N?Rt("internal-selection",D(()=>e.size[0]),ee,e):void 0;return{mergedTheme:b,mergedClearable:w,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:m,filterablePlaceholder:C,label:S,selected:_,showTagsPanel:p,isComposing:F,counterRef:u,counterWrapperRef:d,patternInputMirrorRef:r,patternInputRef:i,selfRef:s,multipleElRef:a,singleElRef:l,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:se,handleFocusin:O,handleClear:z,handleMouseEnter:K,handleMouseLeave:J,handleDeleteOption:le,handlePatternKeyDown:E,handlePatternInputInput:Y,handlePatternInputBlur:Ce,handlePatternInputFocus:Q,handleMouseEnterCounter:xe,handleMouseLeaveCounter:ve,handleFocusout:M,handleCompositionEnd:fe,handleCompositionStart:ne,onPopoverUpdateShow:$,focus:ye,focusInput:Ie,blur:j,blurInput:Le,updateCounter:U,getCounter:B,getTail:ae,renderLabel:e.renderLabel,cssVars:N?void 0:ee,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:i,bordered:s,clsPrefix:a,ellipsisTagPopoverProps:l,onRender:c,renderTag:u,renderLabel:d}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,m=v(wh,null,{default:()=>v(o2,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,w;return(w=(b=this.$slots).arrow)===null||w===void 0?void 0:w.call(b)}})});let g;if(t){const{labelField:b}=this,w=W=>v("div",{class:`${a}-base-selection-tag-wrapper`,key:W.value},u?u({option:W,handleClose:()=>{this.handleDeleteOption(W)}}):v(Ti,{size:n,closable:!W.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(W)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(W,!0):Kt(W[b],W,!0)})),C=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(w),S=r?v("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern)):null,_=f?()=>v("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let x;if(h){const W=this.selectedOptions.length-i;W>0&&(x=v("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${W}`})))}const y=f?r?v(xh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:_,tail:()=>S}):v(xh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:_}):h&&x?C().concat(x):C(),T=p?()=>v("div",{class:`${a}-base-selection-popover`},f?C():this.selectedOptions.map(w)):void 0,k=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,I=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)):null,R=r?v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},y,f?null:S,m):v("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:o?void 0:0},y,m);g=v(st,null,p?v(pl,Object.assign({},k,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>R,default:T}):R,I)}else if(r){const b=this.pattern||this.isComposing,w=this.active?!b:!this.selected,C=this.active?!1:this.selected;g=v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`,title:this.patternInputFocused?void 0:Jb(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C?v("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},v("div",{class:`${a}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Kt(this.label,this.selectedOption,!0))):null,w?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,m)}else g=v("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${a}-base-selection-input`,title:Jb(this.label),key:"input"},v("div",{class:`${a}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Kt(this.label,this.selectedOption,!0))):v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)),m);return v("div",{ref:"selfRef",class:[`${a}-base-selection`,this.rtlEnabled&&`${a}-base-selection--rtl`,this.themeClass,e&&`${a}-base-selection--${e}-status`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},g,s?v("div",{class:`${a}-base-selection__border`}):null,s?v("div",{class:`${a}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Tr}=yo;function cj({duration:e=".2s",delay:t=".1s"}={}){return[G("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),G("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + `)])])]),oj=xe({name:"InternalSelection",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelection",n,t),r=U(null),i=U(null),a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=U(null),p=U(!1),g=U(!1),m=U(!1),b=Le("InternalSelection","-internal-selection",nj,rS,e,Ue(e,"clsPrefix")),w=I(()=>e.clearable&&!e.disabled&&(m.value||e.active)),C=I(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Vt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),_=I(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),S=I(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function y(){var de;const{value:ue}=r;if(ue){const{value:ie}=i;ie&&(ie.style.width=`${ue.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=f.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function x(){const{value:de}=h;de&&(de.style.display="none")}function P(){const{value:de}=h;de&&(de.style.display="inline-block")}ft(Ue(e,"active"),de=>{de||x()}),ft(Ue(e,"pattern"),()=>{e.multiple&&Ht(y)});function k(de){const{onFocus:ue}=e;ue&&ue(de)}function T(de){const{onBlur:ue}=e;ue&&ue(de)}function R(de){const{onDeleteOption:ue}=e;ue&&ue(de)}function E(de){const{onClear:ue}=e;ue&&ue(de)}function q(de){const{onPatternInput:ue}=e;ue&&ue(de)}function D(de){var ue;(!de.relatedTarget||!(!((ue=a.value)===null||ue===void 0)&&ue.contains(de.relatedTarget)))&&k(de)}function B(de){var ue;!((ue=a.value)===null||ue===void 0)&&ue.contains(de.relatedTarget)||T(de)}function M(de){E(de)}function K(){m.value=!0}function V(){m.value=!1}function ae(de){!e.active||!e.filterable||de.target!==i.value&&de.preventDefault()}function pe(de){R(de)}const Z=U(!1);function N(de){if(de.key==="Backspace"&&!Z.value&&!e.pattern.length){const{selectedOptions:ue}=e;ue!=null&&ue.length&&pe(ue[ue.length-1])}}let O=null;function ee(de){const{value:ue}=r;if(ue){const ie=de.target.value;ue.textContent=ie,y()}e.ignoreComposition&&Z.value?O=de:q(de)}function G(){Z.value=!0}function ne(){Z.value=!1,e.ignoreComposition&&q(O),O=null}function X(de){var ue;g.value=!0,(ue=e.onPatternFocus)===null||ue===void 0||ue.call(e,de)}function ce(de){var ue;g.value=!1,(ue=e.onPatternBlur)===null||ue===void 0||ue.call(e,de)}function L(){var de,ue;if(e.filterable)g.value=!1,(de=c.value)===null||de===void 0||de.blur(),(ue=i.value)===null||ue===void 0||ue.blur();else if(e.multiple){const{value:ie}=s;ie==null||ie.blur()}else{const{value:ie}=l;ie==null||ie.blur()}}function be(){var de,ue,ie;e.filterable?(g.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(ue=s.value)===null||ue===void 0||ue.focus():(ie=l.value)===null||ie===void 0||ie.focus()}function Oe(){const{value:de}=i;de&&(P(),de.focus())}function je(){const{value:de}=i;de&&de.blur()}function F(de){const{value:ue}=u;ue&&ue.setTextContent(`+${de}`)}function A(){const{value:de}=d;return de}function re(){return i.value}let we=null;function oe(){we!==null&&window.clearTimeout(we)}function ve(){e.active||(oe(),we=window.setTimeout(()=>{S.value&&(p.value=!0)},100))}function ke(){oe()}function $(de){de||(oe(),p.value=!1)}ft(S,de=>{de||(p.value=!1)}),jt(()=>{Yt(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=g.value?-1:0)})}),jw(a,e.onResize);const{inlineThemeDisabled:H}=e,te=I(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:ue},self:{borderRadius:ie,color:fe,placeholderColor:Fe,textColor:De,paddingSingle:Me,paddingMultiple:Ne,caretColor:et,colorDisabled:$e,textColorDisabled:Xe,placeholderColorDisabled:gt,colorActive:Q,boxShadowFocus:ye,boxShadowActive:Ae,boxShadowHover:qe,border:Qe,borderFocus:Je,borderHover:tt,borderActive:it,arrowColor:vt,arrowColorDisabled:an,loadingColor:Ft,colorActiveWarning:_e,boxShadowFocusWarning:Be,boxShadowActiveWarning:Ze,boxShadowHoverWarning:ht,borderWarning:bt,borderFocusWarning:ut,borderHoverWarning:Rt,borderActiveWarning:le,colorActiveError:Ee,boxShadowFocusError:ot,boxShadowActiveError:Bt,boxShadowHoverError:Kt,borderError:Dt,borderFocusError:yo,borderHoverError:xo,borderActiveError:Co,clearColor:Jo,clearColorHover:Zo,clearColorPressed:oi,clearSize:Qa,arrowSize:Ja,[Te("height",de)]:Za,[Te("fontSize",de)]:es}}=b.value,yr=co(Me),xr=co(Ne);return{"--n-bezier":ue,"--n-border":Qe,"--n-border-active":it,"--n-border-focus":Je,"--n-border-hover":tt,"--n-border-radius":ie,"--n-box-shadow-active":Ae,"--n-box-shadow-focus":ye,"--n-box-shadow-hover":qe,"--n-caret-color":et,"--n-color":fe,"--n-color-active":Q,"--n-color-disabled":$e,"--n-font-size":es,"--n-height":Za,"--n-padding-single-top":yr.top,"--n-padding-multiple-top":xr.top,"--n-padding-single-right":yr.right,"--n-padding-multiple-right":xr.right,"--n-padding-single-left":yr.left,"--n-padding-multiple-left":xr.left,"--n-padding-single-bottom":yr.bottom,"--n-padding-multiple-bottom":xr.bottom,"--n-placeholder-color":Fe,"--n-placeholder-color-disabled":gt,"--n-text-color":De,"--n-text-color-disabled":Xe,"--n-arrow-color":vt,"--n-arrow-color-disabled":an,"--n-loading-color":Ft,"--n-color-active-warning":_e,"--n-box-shadow-focus-warning":Be,"--n-box-shadow-active-warning":Ze,"--n-box-shadow-hover-warning":ht,"--n-border-warning":bt,"--n-border-focus-warning":ut,"--n-border-hover-warning":Rt,"--n-border-active-warning":le,"--n-color-active-error":Ee,"--n-box-shadow-focus-error":ot,"--n-box-shadow-active-error":Bt,"--n-box-shadow-hover-error":Kt,"--n-border-error":Dt,"--n-border-focus-error":yo,"--n-border-hover-error":xo,"--n-border-active-error":Co,"--n-clear-size":Qa,"--n-clear-color":Jo,"--n-clear-color-hover":Zo,"--n-clear-color-pressed":oi,"--n-arrow-size":Ja}}),Ce=H?Pt("internal-selection",I(()=>e.size[0]),te,e):void 0;return{mergedTheme:b,mergedClearable:w,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:g,filterablePlaceholder:C,label:_,selected:S,showTagsPanel:p,isComposing:Z,counterRef:u,counterWrapperRef:d,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:s,singleElRef:l,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:ae,handleFocusin:D,handleClear:M,handleMouseEnter:K,handleMouseLeave:V,handleDeleteOption:pe,handlePatternKeyDown:N,handlePatternInputInput:ee,handlePatternInputBlur:ce,handlePatternInputFocus:X,handleMouseEnterCounter:ve,handleMouseLeaveCounter:ke,handleFocusout:B,handleCompositionEnd:ne,handleCompositionStart:G,onPopoverUpdateShow:$,focus:be,focusInput:Oe,blur:L,blurInput:je,updateCounter:F,getCounter:A,getTail:re,renderLabel:e.renderLabel,cssVars:H?void 0:te,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:i,bordered:a,clsPrefix:s,ellipsisTagPopoverProps:l,onRender:c,renderTag:u,renderLabel:d}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,g=v(vh,null,{default:()=>v(nS,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,w;return(w=(b=this.$slots).arrow)===null||w===void 0?void 0:w.call(b)}})});let m;if(t){const{labelField:b}=this,w=q=>v("div",{class:`${s}-base-selection-tag-wrapper`,key:q.value},u?u({option:q,handleClose:()=>{this.handleDeleteOption(q)}}):v(Ti,{size:n,closable:!q.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(q)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(q,!0):Vt(q[b],q,!0)})),C=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(w),_=r?v("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,S=f?()=>v("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let y;if(h){const q=this.selectedOptions.length-i;q>0&&(y=v("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${q}`})))}const x=f?r?v(wh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S,tail:()=>_}):v(wh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S}):h&&y?C().concat(y):C(),P=p?()=>v("div",{class:`${s}-base-selection-popover`},f?C():this.selectedOptions.map(w)):void 0,k=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,E=r?v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},x,f?null:_,g):v("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:o?void 0:0},x,g);m=v(rt,null,p?v(hl,Object.assign({},k,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:P}):E,R)}else if(r){const b=this.pattern||this.isComposing,w=this.active?!b:!this.selected,C=this.active?!1:this.selected;m=v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`,title:this.patternInputFocused?void 0:vb(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C?v("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},v("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):null,w?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=v("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${s}-base-selection-input`,title:vb(this.label),key:"input"},v("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),g);return v("div",{ref:"selfRef",class:[`${s}-base-selection`,this.rtlEnabled&&`${s}-base-selection--rtl`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,a?v("div",{class:`${s}-base-selection__border`}):null,a?v("div",{class:`${s}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Tr}=mo;function rj({duration:e=".2s",delay:t=".1s"}={}){return[W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; - `),G("&.fade-in-width-expand-transition-leave-active",` + `),W("&.fade-in-width-expand-transition-leave-active",` overflow: hidden; transition: opacity ${e} ${Tr}, max-width ${e} ${Tr} ${t}, margin-left ${e} ${Tr} ${t}, margin-right ${e} ${Tr} ${t}; - `),G("&.fade-in-width-expand-transition-enter-active",` + `),W("&.fade-in-width-expand-transition-enter-active",` overflow: hidden; transition: opacity ${e} ${Tr} ${t}, max-width ${e} ${Tr}, margin-left ${e} ${Tr}, margin-right ${e} ${Tr}; - `)]}const uj=L("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),dj=be({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ei("-base-wave",uj,ze(e,"clsPrefix"));const t=H(null),n=H(!1);let o=null;return rn(()=>{o!==null&&window.clearTimeout(o)}),{active:n,selfRef:t,play(){o!==null&&(window.clearTimeout(o),n.value=!1,o=null),Vt(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,n.value=!0,o=window.setTimeout(()=>{n.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),s2={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"},fj={name:"Alert",common:je,self(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,dividerColor:r,inputColor:i,textColor1:s,textColor2:a,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:m,errorColorSuppl:g,fontSize:b}=e;return Object.assign(Object.assign({},s2),{fontSize:b,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${r}`,color:i,titleTextColor:s,iconColor:a,contentTextColor:a,closeBorderRadius:n,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Ae(h,{alpha:.35})}`,colorInfo:Ae(h,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:h,contentTextColorInfo:a,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ae(p,{alpha:.35})}`,colorSuccess:Ae(p,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:p,contentTextColorSuccess:a,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ae(m,{alpha:.35})}`,colorWarning:Ae(m,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:m,contentTextColorWarning:a,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Ae(g,{alpha:.35})}`,colorError:Ae(g,{alpha:.25}),titleTextColorError:s,iconColorError:g,contentTextColorError:a,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},hj=fj;function pj(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,baseColor:r,dividerColor:i,actionColor:s,textColor1:a,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:m,warningColor:g,errorColor:b,fontSize:w}=e;return Object.assign(Object.assign({},s2),{fontSize:w,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${i}`,color:s,titleTextColor:a,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Ye(r,Ae(p,{alpha:.25}))}`,colorInfo:Ye(r,Ae(p,{alpha:.08})),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Ye(r,Ae(m,{alpha:.25}))}`,colorSuccess:Ye(r,Ae(m,{alpha:.08})),titleTextColorSuccess:a,iconColorSuccess:m,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Ye(r,Ae(g,{alpha:.33}))}`,colorWarning:Ye(r,Ae(g,{alpha:.08})),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Ye(r,Ae(b,{alpha:.25}))}`,colorError:Ye(r,Ae(b,{alpha:.08})),titleTextColorError:a,iconColorError:b,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:h})}const mj={name:"Alert",common:xt,self:pj},gj=mj,{cubicBezierEaseInOut:Fo,cubicBezierEaseOut:vj,cubicBezierEaseIn:bj}=yo;function mm({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:o="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:a=!1}={}){const l=a?"leave":"enter",c=a?"enter":"leave";return[G(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),G(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),G(`&.fade-in-height-expand-transition-${c}-active`,` + `)]}const iS={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"},ij={name:"Alert",common:He,self(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:m,fontSize:b}=e;return Object.assign(Object.assign({},iS),{fontSize:b,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Ie(h,{alpha:.35})}`,colorInfo:Ie(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ie(p,{alpha:.35})}`,colorSuccess:Ie(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ie(g,{alpha:.35})}`,colorWarning:Ie(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Ie(m,{alpha:.35})}`,colorError:Ie(m,{alpha:.25}),titleTextColorError:a,iconColorError:m,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},aj=ij;function sj(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,baseColor:r,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:m,errorColor:b,fontSize:w}=e;return Object.assign(Object.assign({},iS),{fontSize:w,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Ke(r,Ie(p,{alpha:.25}))}`,colorInfo:Ke(r,Ie(p,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Ke(r,Ie(g,{alpha:.25}))}`,colorSuccess:Ke(r,Ie(g,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Ke(r,Ie(m,{alpha:.33}))}`,colorWarning:Ke(r,Ie(m,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:m,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Ke(r,Ie(b,{alpha:.25}))}`,colorError:Ke(r,Ie(b,{alpha:.08})),titleTextColorError:s,iconColorError:b,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:h})}const lj={name:"Alert",common:xt,self:sj},cj=lj,{cubicBezierEaseInOut:Lo,cubicBezierEaseOut:uj,cubicBezierEaseIn:dj}=mo;function pm({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:o="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[W(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),W(`&.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})),W(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; transition: - max-height ${t} ${Fo} ${o}, - opacity ${t} ${vj} ${o}, - margin-top ${t} ${Fo} ${o}, - margin-bottom ${t} ${Fo} ${o}, - padding-top ${t} ${Fo} ${o}, - padding-bottom ${t} ${Fo} ${o} + max-height ${t} ${Lo} ${o}, + opacity ${t} ${uj} ${o}, + margin-top ${t} ${Lo} ${o}, + margin-bottom ${t} ${Lo} ${o}, + padding-top ${t} ${Lo} ${o}, + padding-bottom ${t} ${Lo} ${o} ${n?`,${n}`:""} - `),G(`&.fade-in-height-expand-transition-${l}-active`,` + `),W(`&.fade-in-height-expand-transition-${l}-active`,` overflow: ${e}; transition: - max-height ${t} ${Fo}, - opacity ${t} ${bj}, - margin-top ${t} ${Fo}, - margin-bottom ${t} ${Fo}, - padding-top ${t} ${Fo}, - padding-bottom ${t} ${Fo} + max-height ${t} ${Lo}, + opacity ${t} ${dj}, + margin-top ${t} ${Lo}, + margin-bottom ${t} ${Lo}, + padding-top ${t} ${Lo}, + padding-bottom ${t} ${Lo} ${n?`,${n}`:""} - `)]}const yj=L("alert",` + `)]}const fj=z("alert",` line-height: var(--n-line-height); border-radius: var(--n-border-radius); position: relative; @@ -823,7 +808,7 @@ ${t} background-color: var(--n-color); text-align: start; word-break: break-word; -`,[V("border",` +`,[j("border",` border-radius: inherit; position: absolute; left: 0; @@ -833,9 +818,9 @@ ${t} transition: border-color .3s var(--n-bezier); border: var(--n-border); pointer-events: none; - `),Z("closable",[L("alert-body",[V("title",` + `),J("closable",[z("alert-body",[j("title",` padding-right: 24px; - `)])]),V("icon",{color:"var(--n-icon-color)"}),L("alert-body",{padding:"var(--n-padding)"},[V("title",{color:"var(--n-title-text-color)"}),V("content",{color:"var(--n-content-text-color)"})]),mm({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),V("icon",` + `)])]),j("icon",{color:"var(--n-icon-color)"}),z("alert-body",{padding:"var(--n-padding)"},[j("title",{color:"var(--n-title-text-color)"}),j("content",{color:"var(--n-content-text-color)"})]),pm({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),j("icon",` position: absolute; left: 0; top: 0; @@ -846,7 +831,7 @@ ${t} height: var(--n-icon-size); font-size: var(--n-icon-size); margin: var(--n-icon-margin); - `),V("close",` + `),j("close",` transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier); @@ -854,15 +839,15 @@ ${t} right: 0; top: 0; margin: var(--n-close-margin); - `),Z("show-icon",[L("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),Z("right-adjust",[L("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),L("alert-body",` + `),J("show-icon",[z("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),J("right-adjust",[z("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),z("alert-body",` border-radius: var(--n-border-radius); transition: border-color .3s var(--n-bezier); - `,[V("title",` + `,[j("title",` transition: color .3s var(--n-bezier); font-size: 16px; line-height: 19px; font-weight: var(--n-title-font-weight); - `,[G("& +",[V("content",{marginTop:"9px"})])]),V("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),V("icon",{transition:"color .3s var(--n-bezier)"})]),xj=Object.assign(Object.assign({},Be.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ml=be({name:"Alert",inheritAttrs:!1,props:xj,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=lt(e),i=Be("Alert","-alert",yj,gj,e,t),s=gn("Alert",r,t),a=D(()=>{const{common:{cubicBezierEaseInOut:h},self:p}=i.value,{fontSize:m,borderRadius:g,titleFontWeight:b,lineHeight:w,iconSize:C,iconMargin:S,iconMarginRtl:_,closeIconSize:x,closeBorderRadius:y,closeSize:T,closeMargin:k,closeMarginRtl:P,padding:I}=p,{type:R}=e,{left:W,right:O}=zn(S);return{"--n-bezier":h,"--n-color":p[Re("color",R)],"--n-close-icon-size":x,"--n-close-border-radius":y,"--n-close-color-hover":p[Re("closeColorHover",R)],"--n-close-color-pressed":p[Re("closeColorPressed",R)],"--n-close-icon-color":p[Re("closeIconColor",R)],"--n-close-icon-color-hover":p[Re("closeIconColorHover",R)],"--n-close-icon-color-pressed":p[Re("closeIconColorPressed",R)],"--n-icon-color":p[Re("iconColor",R)],"--n-border":p[Re("border",R)],"--n-title-text-color":p[Re("titleTextColor",R)],"--n-content-text-color":p[Re("contentTextColor",R)],"--n-line-height":w,"--n-border-radius":g,"--n-font-size":m,"--n-title-font-weight":b,"--n-icon-size":C,"--n-icon-margin":S,"--n-icon-margin-rtl":_,"--n-close-size":T,"--n-close-margin":k,"--n-close-margin-rtl":P,"--n-padding":I,"--n-icon-margin-left":W,"--n-icon-margin-right":O}}),l=o?Rt("alert",D(()=>e.type[0]),a,e):void 0,c=H(!0),u=()=>{const{onAfterLeave:h,onAfterHide:p}=e;h&&h(),p&&p()};return{rtlEnabled:s,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var h;Promise.resolve((h=e.onClose)===null||h===void 0?void 0:h.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Iu,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,o={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?v("div",Object.assign({},Ln(this.$attrs,o)),this.closable&&v(Gi,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&v("div",{class:`${t}-alert__border`}),this.showIcon&&v("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},Dn(n.icon,()=>[v(Gt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return v(qi,null);case"info":return v(Vr,null);case"warning":return v(Ki,null);case"error":return v(Ui,null);default:return null}}})])),v("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Mt(n.header,r=>{const i=r||this.title;return i?v("div",{class:`${t}-alert-body__title`},i):null}),n.default&&v("div",{class:`${t}-alert-body__content`},n))):null}})}}),Cj={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function wj(e){const{borderRadius:t,railColor:n,primaryColor:o,primaryColorHover:r,primaryColorPressed:i,textColor2:s}=e;return Object.assign(Object.assign({},Cj),{borderRadius:t,railColor:n,railColorActive:o,linkColor:Ae(o,{alpha:.15}),linkTextColor:s,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:o})}const _j={name:"Anchor",common:je,self:wj},Sj=_j,kj=fr&&"chrome"in window;fr&&navigator.userAgent.includes("Firefox");const a2=fr&&navigator.userAgent.includes("Safari")&&!kj,l2={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Pj={name:"Input",common:je,self(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:s,inputColorDisabled:a,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:b,heightTiny:w,heightSmall:C,heightMedium:S,heightLarge:_,clearColor:x,clearColorHover:y,clearColorPressed:T,placeholderColor:k,placeholderColorDisabled:P,iconColor:I,iconColorDisabled:R,iconColorHover:W,iconColorPressed:O,fontWeight:M}=e;return Object.assign(Object.assign({},l2),{fontWeight:M,countTextColorDisabled:o,countTextColor:n,heightTiny:w,heightSmall:C,heightMedium:S,heightLarge:_,fontSizeTiny:p,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:k,placeholderColorDisabled:P,color:s,colorDisabled:a,colorFocus:Ae(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Ae(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Ae(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Ae(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:Ae(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Ae(u,{alpha:.3})}`,caretColorError:u,clearColor:x,clearColorHover:y,clearColorPressed:T,iconColor:I,iconColorDisabled:R,iconColorHover:W,iconColorPressed:O,suffixTextColor:t})}},xo=Pj;function Tj(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:s,inputColorDisabled:a,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:m,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:w,heightTiny:C,heightSmall:S,heightMedium:_,heightLarge:x,actionColor:y,clearColor:T,clearColorHover:k,clearColorPressed:P,placeholderColor:I,placeholderColorDisabled:R,iconColor:W,iconColorDisabled:O,iconColorHover:M,iconColorPressed:z,fontWeight:K}=e;return Object.assign(Object.assign({},l2),{fontWeight:K,countTextColorDisabled:o,countTextColor:n,heightTiny:C,heightSmall:S,heightMedium:_,heightLarge:x,fontSizeTiny:m,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:w,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:y,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:r,placeholderColor:I,placeholderColorDisabled:R,color:s,colorDisabled:a,colorFocus:s,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Ae(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Ae(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:s,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ae(d,{alpha:.2})}`,caretColorError:d,clearColor:T,clearColorHover:k,clearColorPressed:P,iconColor:W,iconColorDisabled:O,iconColorHover:M,iconColorPressed:z,suffixTextColor:t})}const Rj={name:"Input",common:xt,self:Tj},gm=Rj,c2="n-input",Ej=L("input",` + `,[W("& +",[j("content",{marginTop:"9px"})])]),j("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),j("icon",{transition:"color .3s var(--n-bezier)"})]),hj=Object.assign(Object.assign({},Le.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),pl=xe({name:"Alert",inheritAttrs:!1,props:hj,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Alert","-alert",fj,cj,e,t),a=pn("Alert",r,t),s=I(()=>{const{common:{cubicBezierEaseInOut:h},self:p}=i.value,{fontSize:g,borderRadius:m,titleFontWeight:b,lineHeight:w,iconSize:C,iconMargin:_,iconMarginRtl:S,closeIconSize:y,closeBorderRadius:x,closeSize:P,closeMargin:k,closeMarginRtl:T,padding:R}=p,{type:E}=e,{left:q,right:D}=co(_);return{"--n-bezier":h,"--n-color":p[Te("color",E)],"--n-close-icon-size":y,"--n-close-border-radius":x,"--n-close-color-hover":p[Te("closeColorHover",E)],"--n-close-color-pressed":p[Te("closeColorPressed",E)],"--n-close-icon-color":p[Te("closeIconColor",E)],"--n-close-icon-color-hover":p[Te("closeIconColorHover",E)],"--n-close-icon-color-pressed":p[Te("closeIconColorPressed",E)],"--n-icon-color":p[Te("iconColor",E)],"--n-border":p[Te("border",E)],"--n-title-text-color":p[Te("titleTextColor",E)],"--n-content-text-color":p[Te("contentTextColor",E)],"--n-line-height":w,"--n-border-radius":m,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":C,"--n-icon-margin":_,"--n-icon-margin-rtl":S,"--n-close-size":P,"--n-close-margin":k,"--n-close-margin-rtl":T,"--n-padding":R,"--n-icon-margin-left":q,"--n-icon-margin-right":D}}),l=o?Pt("alert",I(()=>e.type[0]),s,e):void 0,c=U(!0),u=()=>{const{onAfterLeave:h,onAfterHide:p}=e;h&&h(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var h;Promise.resolve((h=e.onClose)===null||h===void 0?void 0:h.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Au,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,o={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?v("div",Object.assign({},Ln(this.$attrs,o)),this.closable&&v(qi,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&v("div",{class:`${t}-alert__border`}),this.showIcon&&v("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},$n(n.icon,()=>[v(Wt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return v(Ui,null);case"info":return v(Ur,null);case"warning":return v(Vi,null);case"error":return v(ji,null);default:return null}}})])),v("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},At(n.header,r=>{const i=r||this.title;return i?v("div",{class:`${t}-alert-body__title`},i):null}),n.default&&v("div",{class:`${t}-alert-body__content`},n))):null}})}}),pj={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function mj(e){const{borderRadius:t,railColor:n,primaryColor:o,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},pj),{borderRadius:t,railColor:n,railColorActive:o,linkColor:Ie(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:o})}const gj={name:"Anchor",common:He,self:mj},vj=gj;function Lc(e){return e.type==="group"}function aS(e){return e.type==="ignored"}function Jd(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function sS(e,t){return{getIsGroup:Lc,getIgnored:aS,getKey(o){return Lc(o)?o.name||o.key||"key-required":o[e]},getChildren(o){return o[t]}}}function bj(e,t,n,o){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const s of i)if(Lc(s)){const l=r(s[o]);l.length&&a.push(Object.assign({},s,{[o]:l}))}else{if(aS(s))continue;t(n,s)&&a.push(s)}return a}return r(e)}function yj(e,t,n){const o=new Map;return e.forEach(r=>{Lc(r)?r[n].forEach(i=>{o.set(i[t],i)}):o.set(r[t],r)}),o}const xj=pr&&"chrome"in window;pr&&navigator.userAgent.includes("Firefox");const lS=pr&&navigator.userAgent.includes("Safari")&&!xj,cS={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Cj={name:"Input",common:He,self(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,clearColor:y,clearColorHover:x,clearColorPressed:P,placeholderColor:k,placeholderColorDisabled:T,iconColor:R,iconColorDisabled:E,iconColorHover:q,iconColorPressed:D}=e;return Object.assign(Object.assign({},cS),{countTextColorDisabled:o,countTextColor:n,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:k,placeholderColorDisabled:T,color:a,colorDisabled:s,colorFocus:Ie(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 ${Ie(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Ie(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Ie(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:Ie(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Ie(u,{alpha:.3})}`,caretColorError:u,clearColor:y,clearColorHover:x,clearColorPressed:P,iconColor:R,iconColorDisabled:E,iconColorHover:q,iconColorPressed:D,suffixTextColor:t})}},go=Cj;function wj(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,actionColor:x,clearColor:P,clearColorHover:k,clearColorPressed:T,placeholderColor:R,placeholderColorDisabled:E,iconColor:q,iconColorDisabled:D,iconColorHover:B,iconColorPressed:M}=e;return Object.assign(Object.assign({},cS),{countTextColorDisabled:o,countTextColor:n,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:r,placeholderColor:R,placeholderColorDisabled:E,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Ie(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Ie(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ie(d,{alpha:.2})}`,caretColorError:d,clearColor:P,clearColorHover:k,clearColorPressed:T,iconColor:q,iconColorDisabled:D,iconColorHover:B,iconColorPressed:M,suffixTextColor:t})}const _j={name:"Input",common:xt,self:wj},mm=_j,uS="n-input";function Sj(e){let t=0;for(const n of e)t++;return t}function Nl(e){return e===""||e==null}function kj(e){const t=U(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){r();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function o(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:u,afterText:d}=a;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(u))f=u.length;else{const h=u[c-1],p=l.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function r(){t.value=null}return ft(e,r),{recordCursor:n,restoreCursor:o}}const K0=xe({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:r,countGraphemesRef:i}=Ve(uS),a=I(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(i.value||Sj)(s)});return()=>{const{value:s}=o,{value:l}=n;return v("span",{class:`${r.value}-input-word-count`},gh(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),Pj=z("input",` max-width: 100%; cursor: text; line-height: 1.5; @@ -875,13 +860,12 @@ ${t} background-color: var(--n-color); transition: background-color .3s var(--n-bezier); font-size: var(--n-font-size); - font-weight: var(--n-font-weight); --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[V("input, textarea",` +`,[j("input, textarea",` overflow: hidden; flex-grow: 1; position: relative; - `),V("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + `),j("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` box-sizing: border-box; font-size: inherit; line-height: 1.5; @@ -895,7 +879,7 @@ ${t} caret-color .3s var(--n-bezier), color .3s var(--n-bezier), text-decoration-color .3s var(--n-bezier); - `),V("input-el, textarea-el",` + `),j("input-el, textarea-el",` -webkit-appearance: none; scrollbar-width: none; width: 100%; @@ -904,14 +888,14 @@ ${t} color: var(--n-text-color); caret-color: var(--n-caret-color); background-color: transparent; - `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; - `),G("&::placeholder",` + `),W("&::placeholder",` color: #0000; -webkit-text-fill-color: transparent !important; - `),G("&:-webkit-autofill ~",[V("placeholder","display: none;")])]),Z("round",[$t("textarea","border-radius: calc(var(--n-height) / 2);")]),V("placeholder",` + `),W("&:-webkit-autofill ~",[j("placeholder","display: none;")])]),J("round",[Et("textarea","border-radius: calc(var(--n-height) / 2);")]),j("placeholder",` pointer-events: none; position: absolute; left: 0; @@ -920,22 +904,22 @@ ${t} bottom: 0; overflow: hidden; color: var(--n-placeholder-color); - `,[G("span",` + `,[W("span",` width: 100%; display: inline-block; - `)]),Z("textarea",[V("placeholder","overflow: visible;")]),$t("autosize","width: 100%;"),Z("autosize",[V("textarea-el, input-el",` + `)]),J("textarea",[j("placeholder","overflow: visible;")]),Et("autosize","width: 100%;"),J("autosize",[j("textarea-el, input-el",` position: absolute; top: 0; left: 0; height: 100%; - `)]),L("input-wrapper",` + `)]),z("input-wrapper",` overflow: hidden; display: inline-flex; flex-grow: 1; position: relative; padding-left: var(--n-padding-left); padding-right: var(--n-padding-right); - `),V("input-mirror",` + `),j("input-mirror",` padding: 0; height: var(--n-height); line-height: var(--n-height); @@ -944,26 +928,26 @@ ${t} position: static; white-space: pre; pointer-events: none; - `),V("input-el",` + `),j("input-el",` padding: 0; height: var(--n-height); line-height: var(--n-height); - `,[G("&[type=password]::-ms-reveal","display: none;"),G("+",[V("placeholder",` + `,[W("&[type=password]::-ms-reveal","display: none;"),W("+",[j("placeholder",` display: flex; align-items: center; - `)])]),$t("textarea",[V("placeholder","white-space: nowrap;")]),V("eye",` + `)])]),Et("textarea",[j("placeholder","white-space: nowrap;")]),j("eye",` display: flex; align-items: center; justify-content: center; transition: color .3s var(--n-bezier); - `),Z("textarea","width: 100%;",[L("input-word-count",` + `),J("textarea","width: 100%;",[z("input-word-count",` position: absolute; right: var(--n-padding-right); bottom: var(--n-padding-vertical); - `),Z("resizable",[L("input-wrapper",` + `),J("resizable",[z("input-wrapper",` resize: vertical; min-height: var(--n-height); - `)]),V("textarea-el, textarea-mirror, placeholder",` + `)]),j("textarea-el, textarea-mirror, placeholder",` height: 100%; padding-left: 0; padding-right: 0; @@ -978,7 +962,7 @@ ${t} resize: none; white-space: pre-wrap; scroll-padding-block-end: var(--n-padding-vertical); - `),V("textarea-mirror",` + `),j("textarea-mirror",` width: 100%; pointer-events: none; overflow: hidden; @@ -986,44 +970,44 @@ ${t} position: static; white-space: pre-wrap; overflow-wrap: break-word; - `)]),Z("pair",[V("input-el, placeholder","text-align: center;"),V("separator",` + `)]),J("pair",[j("input-el, placeholder","text-align: center;"),j("separator",` display: flex; align-items: center; transition: color .3s var(--n-bezier); color: var(--n-text-color); white-space: nowrap; - `,[L("icon",` + `,[z("icon",` color: var(--n-icon-color); - `),L("base-icon",` + `),z("base-icon",` color: var(--n-icon-color); - `)])]),Z("disabled",` + `)])]),J("disabled",` cursor: not-allowed; background-color: var(--n-color-disabled); - `,[V("border","border: var(--n-border-disabled);"),V("input-el, textarea-el",` + `,[j("border","border: var(--n-border-disabled);"),j("input-el, textarea-el",` cursor: not-allowed; color: var(--n-text-color-disabled); text-decoration-color: var(--n-text-color-disabled); - `),V("placeholder","color: var(--n-placeholder-color-disabled);"),V("separator","color: var(--n-text-color-disabled);",[L("icon",` + `),j("placeholder","color: var(--n-placeholder-color-disabled);"),j("separator","color: var(--n-text-color-disabled);",[z("icon",` color: var(--n-icon-color-disabled); - `),L("base-icon",` + `),z("base-icon",` color: var(--n-icon-color-disabled); - `)]),L("input-word-count",` + `)]),z("input-word-count",` color: var(--n-count-text-color-disabled); - `),V("suffix, prefix","color: var(--n-text-color-disabled);",[L("icon",` + `),j("suffix, prefix","color: var(--n-text-color-disabled);",[z("icon",` color: var(--n-icon-color-disabled); - `),L("internal-icon",` + `),z("internal-icon",` color: var(--n-icon-color-disabled); - `)])]),$t("disabled",[V("eye",` + `)])]),Et("disabled",[j("eye",` color: var(--n-icon-color); cursor: pointer; - `,[G("&:hover",` + `,[W("&:hover",` color: var(--n-icon-color-hover); - `),G("&:active",` + `),W("&:active",` color: var(--n-icon-color-pressed); - `)]),G("&:hover",[V("state-border","border: var(--n-border-hover);")]),Z("focus","background-color: var(--n-color-focus);",[V("state-border",` + `)]),W("&:hover",[j("state-border","border: var(--n-border-hover);")]),J("focus","background-color: var(--n-color-focus);",[j("state-border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),V("border, state-border",` + `)])]),j("border, state-border",` box-sizing: border-box; position: absolute; left: 0; @@ -1036,12 +1020,12 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),V("state-border",` + `),j("state-border",` border-color: #0000; z-index: 1; - `),V("prefix","margin-right: 4px;"),V("suffix",` + `),j("prefix","margin-right: 4px;"),j("suffix",` margin-left: 4px; - `),V("suffix, prefix",` + `),j("suffix, prefix",` transition: color .3s var(--n-bezier); flex-wrap: nowrap; flex-shrink: 0; @@ -1051,23 +1035,23 @@ ${t} align-items: center; justify-content: center; color: var(--n-suffix-text-color); - `,[L("base-loading",` + `,[z("base-loading",` font-size: var(--n-icon-size); margin: 0 2px; color: var(--n-loading-color); - `),L("base-clear",` + `),z("base-clear",` font-size: var(--n-icon-size); - `,[V("placeholder",[L("base-icon",` + `,[j("placeholder",[z("base-icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); - `)])]),G(">",[L("icon",` + `)])]),W(">",[z("icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); - `)]),L("base-icon",` + `)]),z("base-icon",` font-size: var(--n-icon-size); - `)]),L("input-word-count",` + `)]),z("input-word-count",` pointer-events: none; line-height: 1.5; font-size: .85em; @@ -1075,83 +1059,83 @@ ${t} transition: color .3s var(--n-bezier); margin-left: 4px; font-variant: tabular-nums; - `),["warning","error"].map(e=>Z(`${e}-status`,[$t("disabled",[L("base-loading",` + `),["warning","error"].map(e=>J(`${e}-status`,[Et("disabled",[z("base-loading",` color: var(--n-loading-color-${e}) - `),V("input-el, textarea-el",` + `),j("input-el, textarea-el",` caret-color: var(--n-caret-color-${e}); - `),V("state-border",` + `),j("state-border",` border: var(--n-border-${e}); - `),G("&:hover",[V("state-border",` + `),W("&:hover",[j("state-border",` border: var(--n-border-hover-${e}); - `)]),G("&:focus",` + `)]),W("&:focus",` background-color: var(--n-color-focus-${e}); - `,[V("state-border",` + `,[j("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)]),Z("focus",` + `)]),J("focus",` background-color: var(--n-color-focus-${e}); - `,[V("state-border",` + `,[j("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),$j=L("input",[Z("disabled",[V("input-el, textarea-el",` + `)])])]))]),Tj=z("input",[J("disabled",[j("input-el, textarea-el",` -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]);function Aj(e){let t=0;for(const n of e)t++;return t}function Hl(e){return e===""||e==null}function Ij(e){const t=H(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:s,selectionEnd:a,value:l}=i;if(s==null||a==null){r();return}t.value={start:s,end:a,beforeText:l.slice(0,s),afterText:l.slice(a)}}function o(){var i;const{value:s}=t,{value:a}=e;if(!s||!a)return;const{value:l}=a,{start:c,beforeText:u,afterText:d}=s;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(u))f=u.length;else{const h=u[c-1],p=l.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=a.setSelectionRange)===null||i===void 0||i.call(a,f,f)}function r(){t.value=null}return dt(e,r),{recordCursor:n,restoreCursor:o}}const X0=be({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:r,countGraphemesRef:i}=We(c2),s=D(()=>{const{value:a}=n;return a===null||Array.isArray(a)?0:(i.value||Aj)(a)});return()=>{const{value:a}=o,{value:l}=n;return v("span",{class:`${r.value}-input-word-count`},Ch(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[a===void 0?s.value:`${s.value} / ${a}`]))}}}),Mj=Object.assign(Object.assign({},Be.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),ur=be({name:"Input",props:Mj,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=lt(e),i=Be("Input","-input",Ej,gm,e,t);a2&&ei("-input-safari",$j,t);const s=H(null),a=H(null),l=H(null),c=H(null),u=H(null),d=H(null),f=H(null),h=Ij(f),p=H(null),{localeRef:m}=Vi("Input"),g=H(e.defaultValue),b=ze(e,"value"),w=ln(b,g),C=pr(e),{mergedSizeRef:S,mergedDisabledRef:_,mergedStatusRef:x}=C,y=H(!1),T=H(!1),k=H(!1),P=H(!1);let I=null;const R=D(()=>{const{placeholder:oe,pair:ke}=e;return ke?Array.isArray(oe)?oe:oe===void 0?["",""]:[oe,oe]:oe===void 0?[m.value.placeholder]:[oe]}),W=D(()=>{const{value:oe}=k,{value:ke}=w,{value:qe}=R;return!oe&&(Hl(ke)||Array.isArray(ke)&&Hl(ke[0]))&&qe[0]}),O=D(()=>{const{value:oe}=k,{value:ke}=w,{value:qe}=R;return!oe&&qe[1]&&(Hl(ke)||Array.isArray(ke)&&Hl(ke[1]))}),M=Ct(()=>e.internalForceFocus||y.value),z=Ct(()=>{if(_.value||e.readonly||!e.clearable||!M.value&&!T.value)return!1;const{value:oe}=w,{value:ke}=M;return e.pair?!!(Array.isArray(oe)&&(oe[0]||oe[1]))&&(T.value||ke):!!oe&&(T.value||ke)}),K=D(()=>{const{showPasswordOn:oe}=e;if(oe)return oe;if(e.showPasswordToggle)return"click"}),J=H(!1),se=D(()=>{const{textDecoration:oe}=e;return oe?Array.isArray(oe)?oe.map(ke=>({textDecoration:ke})):[{textDecoration:oe}]:["",""]}),le=H(void 0),F=()=>{var oe,ke;if(e.type==="textarea"){const{autosize:qe}=e;if(qe&&(le.value=(ke=(oe=p.value)===null||oe===void 0?void 0:oe.$el)===null||ke===void 0?void 0:ke.offsetWidth),!a.value||typeof qe=="boolean")return;const{paddingTop:ct,paddingBottom:At,lineHeight:It}=window.getComputedStyle(a.value),Yt=Number(ct.slice(0,-2)),nn=Number(At.slice(0,-2)),Gn=Number(It.slice(0,-2)),{value:Jo}=l;if(!Jo)return;if(qe.minRows){const Qo=Math.max(qe.minRows,1),oi=`${Yt+nn+Gn*Qo}px`;Jo.style.minHeight=oi}if(qe.maxRows){const Qo=`${Yt+nn+Gn*qe.maxRows}px`;Jo.style.maxHeight=Qo}}},E=D(()=>{const{maxlength:oe}=e;return oe===void 0?void 0:Number(oe)});Wt(()=>{const{value:oe}=w;Array.isArray(oe)||wt(oe)});const A=io().proxy;function Y(oe,ke){const{onUpdateValue:qe,"onUpdate:value":ct,onInput:At}=e,{nTriggerFormInput:It}=C;qe&&$e(qe,oe,ke),ct&&$e(ct,oe,ke),At&&$e(At,oe,ke),g.value=oe,It()}function ne(oe,ke){const{onChange:qe}=e,{nTriggerFormChange:ct}=C;qe&&$e(qe,oe,ke),g.value=oe,ct()}function fe(oe){const{onBlur:ke}=e,{nTriggerFormBlur:qe}=C;ke&&$e(ke,oe),qe()}function Q(oe){const{onFocus:ke}=e,{nTriggerFormFocus:qe}=C;ke&&$e(ke,oe),qe()}function Ce(oe){const{onClear:ke}=e;ke&&$e(ke,oe)}function j(oe){const{onInputBlur:ke}=e;ke&&$e(ke,oe)}function ye(oe){const{onInputFocus:ke}=e;ke&&$e(ke,oe)}function Ie(){const{onDeactivate:oe}=e;oe&&$e(oe)}function Le(){const{onActivate:oe}=e;oe&&$e(oe)}function U(oe){const{onClick:ke}=e;ke&&$e(ke,oe)}function B(oe){const{onWrapperFocus:ke}=e;ke&&$e(ke,oe)}function ae(oe){const{onWrapperBlur:ke}=e;ke&&$e(ke,oe)}function Se(){k.value=!0}function te(oe){k.value=!1,oe.target===d.value?xe(oe,1):xe(oe,0)}function xe(oe,ke=0,qe="input"){const ct=oe.target.value;if(wt(ct),oe instanceof InputEvent&&!oe.isComposing&&(k.value=!1),e.type==="textarea"){const{value:It}=p;It&&It.syncUnifiedContainer()}if(I=ct,k.value)return;h.recordCursor();const At=ve(ct);if(At)if(!e.pair)qe==="input"?Y(ct,{source:ke}):ne(ct,{source:ke});else{let{value:It}=w;Array.isArray(It)?It=[It[0],It[1]]:It=["",""],It[ke]=ct,qe==="input"?Y(It,{source:ke}):ne(It,{source:ke})}A.$forceUpdate(),At||Vt(h.restoreCursor)}function ve(oe){const{countGraphemes:ke,maxlength:qe,minlength:ct}=e;if(ke){let It;if(qe!==void 0&&(It===void 0&&(It=ke(oe)),It>Number(qe))||ct!==void 0&&(It===void 0&&(It=ke(oe)),It{ct.preventDefault(),Tt("mouseup",document,ke)};if(St("mouseup",document,ke),K.value!=="mousedown")return;J.value=!0;const qe=()=>{J.value=!1,Tt("mouseup",document,qe)};St("mouseup",document,qe)}function Me(oe){e.onKeyup&&$e(e.onKeyup,oe)}function tt(oe){switch(e.onKeydown&&$e(e.onKeydown,oe),oe.key){case"Escape":ce();break;case"Enter":X(oe);break}}function X(oe){var ke,qe;if(e.passivelyActivated){const{value:ct}=P;if(ct){e.internalDeactivateOnEnter&&ce();return}oe.preventDefault(),e.type==="textarea"?(ke=a.value)===null||ke===void 0||ke.focus():(qe=u.value)===null||qe===void 0||qe.focus()}}function ce(){e.passivelyActivated&&(P.value=!1,Vt(()=>{var oe;(oe=s.value)===null||oe===void 0||oe.focus()}))}function Ee(){var oe,ke,qe;_.value||(e.passivelyActivated?(oe=s.value)===null||oe===void 0||oe.focus():((ke=a.value)===null||ke===void 0||ke.focus(),(qe=u.value)===null||qe===void 0||qe.focus()))}function Fe(){var oe;!((oe=s.value)===null||oe===void 0)&&oe.contains(document.activeElement)&&document.activeElement.blur()}function Ve(){var oe,ke;(oe=a.value)===null||oe===void 0||oe.select(),(ke=u.value)===null||ke===void 0||ke.select()}function Xe(){_.value||(a.value?a.value.focus():u.value&&u.value.focus())}function Qe(){const{value:oe}=s;oe!=null&&oe.contains(document.activeElement)&&oe!==document.activeElement&&ce()}function rt(oe){if(e.type==="textarea"){const{value:ke}=a;ke==null||ke.scrollTo(oe)}else{const{value:ke}=u;ke==null||ke.scrollTo(oe)}}function wt(oe){const{type:ke,pair:qe,autosize:ct}=e;if(!qe&&ct)if(ke==="textarea"){const{value:At}=l;At&&(At.textContent=`${oe??""}\r -`)}else{const{value:At}=c;At&&(oe?At.textContent=oe:At.innerHTML=" ")}}function Ft(){F()}const Et=H({top:"0"});function yn(oe){var ke;const{scrollTop:qe}=oe.target;Et.value.top=`${-qe}px`,(ke=p.value)===null||ke===void 0||ke.syncUnifiedContainer()}let cn=null;Jt(()=>{const{autosize:oe,type:ke}=e;oe&&ke==="textarea"?cn=dt(w,qe=>{!Array.isArray(qe)&&qe!==I&&wt(qe)}):cn==null||cn()});let Te=null;Jt(()=>{e.type==="textarea"?Te=dt(w,oe=>{var ke;!Array.isArray(oe)&&oe!==I&&((ke=p.value)===null||ke===void 0||ke.syncUnifiedContainer())}):Te==null||Te()}),at(c2,{mergedValueRef:w,maxlengthRef:E,mergedClsPrefixRef:t,countGraphemesRef:ze(e,"countGraphemes")});const Ue={wrapperElRef:s,inputElRef:u,textareaElRef:a,isCompositing:k,clear:Ne,focus:Ee,blur:Fe,select:Ve,deactivate:Qe,activate:Xe,scrollTo:rt},et=gn("Input",r,t),ft=D(()=>{const{value:oe}=S,{common:{cubicBezierEaseInOut:ke},self:{color:qe,borderRadius:ct,textColor:At,caretColor:It,caretColorError:Yt,caretColorWarning:nn,textDecorationColor:Gn,border:Jo,borderDisabled:Qo,borderHover:oi,borderFocus:Qs,placeholderColor:ea,placeholderColorDisabled:ta,lineHeightTextarea:na,colorDisabled:oa,colorFocus:yr,textColorDisabled:xr,boxShadowFocus:nd,iconSize:od,colorFocusWarning:rd,boxShadowFocusWarning:id,borderWarning:sd,borderFocusWarning:ad,borderHoverWarning:ld,colorFocusError:cd,boxShadowFocusError:ud,borderError:dd,borderFocusError:fd,borderHoverError:Wk,clearSize:Uk,clearColor:qk,clearColorHover:Kk,clearColorPressed:Gk,iconColor:Yk,iconColorDisabled:Xk,suffixTextColor:Zk,countTextColor:Jk,countTextColorDisabled:Qk,iconColorHover:e3,iconColorPressed:t3,loadingColor:n3,loadingColorError:o3,loadingColorWarning:r3,fontWeight:i3,[Re("padding",oe)]:s3,[Re("fontSize",oe)]:a3,[Re("height",oe)]:l3}}=i.value,{left:c3,right:u3}=zn(s3);return{"--n-bezier":ke,"--n-count-text-color":Jk,"--n-count-text-color-disabled":Qk,"--n-color":qe,"--n-font-size":a3,"--n-font-weight":i3,"--n-border-radius":ct,"--n-height":l3,"--n-padding-left":c3,"--n-padding-right":u3,"--n-text-color":At,"--n-caret-color":It,"--n-text-decoration-color":Gn,"--n-border":Jo,"--n-border-disabled":Qo,"--n-border-hover":oi,"--n-border-focus":Qs,"--n-placeholder-color":ea,"--n-placeholder-color-disabled":ta,"--n-icon-size":od,"--n-line-height-textarea":na,"--n-color-disabled":oa,"--n-color-focus":yr,"--n-text-color-disabled":xr,"--n-box-shadow-focus":nd,"--n-loading-color":n3,"--n-caret-color-warning":nn,"--n-color-focus-warning":rd,"--n-box-shadow-focus-warning":id,"--n-border-warning":sd,"--n-border-focus-warning":ad,"--n-border-hover-warning":ld,"--n-loading-color-warning":r3,"--n-caret-color-error":Yt,"--n-color-focus-error":cd,"--n-box-shadow-focus-error":ud,"--n-border-error":dd,"--n-border-focus-error":fd,"--n-border-hover-error":Wk,"--n-loading-color-error":o3,"--n-clear-color":qk,"--n-clear-size":Uk,"--n-clear-color-hover":Kk,"--n-clear-color-pressed":Gk,"--n-icon-color":Yk,"--n-icon-color-hover":e3,"--n-icon-color-pressed":t3,"--n-icon-color-disabled":Xk,"--n-suffix-text-color":Zk}}),ht=o?Rt("input",D(()=>{const{value:oe}=S;return oe[0]}),ft,e):void 0;return Object.assign(Object.assign({},Ue),{wrapperElRef:s,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:a,textareaMirrorElRef:l,textareaScrollbarInstRef:p,rtlEnabled:et,uncontrolledValue:g,mergedValue:w,passwordVisible:J,mergedPlaceholder:R,showPlaceholder1:W,showPlaceholder2:O,mergedFocus:M,isComposing:k,activated:P,showClearButton:z,mergedSize:S,mergedDisabled:_,textDecorationStyle:se,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:K,placeholderStyle:Et,mergedStatus:x,textAreaScrollContainerWidth:le,handleTextAreaScroll:yn,handleCompositionStart:Se,handleCompositionEnd:te,handleInput:xe,handleInputBlur:$,handleInputFocus:N,handleWrapperBlur:ee,handleWrapperFocus:we,handleMouseEnter:De,handleMouseLeave:ot,handleMouseDown:He,handleChange:he,handleClick:re,handleClear:me,handlePasswordToggleClick:nt,handlePasswordToggleMousedown:Ge,handleWrapperKeydown:tt,handleWrapperKeyup:Me,handleTextAreaMirrorResize:Ft,getTextareaScrollContainer:()=>a.value,mergedTheme:i,cssVars:o?void 0:ft,themeClass:ht==null?void 0:ht.themeClass,onRender:ht==null?void 0:ht.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:r,type:i,countGraphemes:s,onRender:a}=this,l=this.$slots;return a==null||a(),v("div",{ref:"wrapperElRef",class:[`${n}-input`,r,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${n}-input-wrapper`},Mt(l.prefix,c=>c&&v("div",{class:`${n}-input__prefix`},c)),i==="textarea"?v(Mo,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return v(st,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,f],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(cr,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${n}-input__input`},v("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Mt(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${n}-input__suffix`},[Mt(l["clear-icon-placeholder"],u=>(this.clearable||u)&&v(Ih,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?v(o2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?v(X0,null,{default:u=>{var d;const{renderCount:f}=this;return f?f(u):(d=l.count)===null||d===void 0?void 0:d.call(l,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Dn(l["password-visible-icon"],()=>[v(Gt,{clsPrefix:n},{default:()=>v(BN,null)})]):Dn(l["password-invisible-icon"],()=>[v(Gt,{clsPrefix:n},{default:()=>v(NN,null)})])):null]):null)),this.pair?v("span",{class:`${n}-input__separator`},Dn(l.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${n}-input-wrapper`},v("div",{class:`${n}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),Mt(l.suffix,c=>(this.clearable||c)&&v("div",{class:`${n}-input__suffix`},[this.clearable&&v(Ih,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=l["clear-icon"])===null||u===void 0?void 0:u.call(l)},placeholder:()=>{var u;return(u=l["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(l)}}),c]))):null,this.mergedBordered?v("div",{class:`${n}-input__border`}):null,this.mergedBordered?v("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?v(X0,null,{default:c=>{var u;const{renderCount:d}=this;return d?d(c):(u=l.count)===null||u===void 0?void 0:u.call(l,c)}}):null)}}),Oj=L("input-group",` + `)])]),Ej=Object.assign(Object.assign({},Le.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),dr=xe({name:"Input",props:Ej,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Input","-input",Pj,mm,e,t);lS&&ei("-input-safari",Tj,t);const a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=kj(f),p=U(null),{localeRef:g}=Hi("Input"),m=U(e.defaultValue),b=Ue(e,"value"),w=rn(b,m),C=mr(e),{mergedSizeRef:_,mergedDisabledRef:S,mergedStatusRef:y}=C,x=U(!1),P=U(!1),k=U(!1),T=U(!1);let R=null;const E=I(()=>{const{placeholder:le,pair:Ee}=e;return Ee?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[g.value.placeholder]:[le]}),q=I(()=>{const{value:le}=k,{value:Ee}=w,{value:ot}=E;return!le&&(Nl(Ee)||Array.isArray(Ee)&&Nl(Ee[0]))&&ot[0]}),D=I(()=>{const{value:le}=k,{value:Ee}=w,{value:ot}=E;return!le&&ot[1]&&(Nl(Ee)||Array.isArray(Ee)&&Nl(Ee[1]))}),B=kt(()=>e.internalForceFocus||x.value),M=kt(()=>{if(S.value||e.readonly||!e.clearable||!B.value&&!P.value)return!1;const{value:le}=w,{value:Ee}=B;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(P.value||Ee):!!le&&(P.value||Ee)}),K=I(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),V=U(!1),ae=I(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ee=>({textDecoration:Ee})):[{textDecoration:le}]:["",""]}),pe=U(void 0),Z=()=>{var le,Ee;if(e.type==="textarea"){const{autosize:ot}=e;if(ot&&(pe.value=(Ee=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ee===void 0?void 0:Ee.offsetWidth),!s.value||typeof ot=="boolean")return;const{paddingTop:Bt,paddingBottom:Kt,lineHeight:Dt}=window.getComputedStyle(s.value),yo=Number(Bt.slice(0,-2)),xo=Number(Kt.slice(0,-2)),Co=Number(Dt.slice(0,-2)),{value:Jo}=l;if(!Jo)return;if(ot.minRows){const Zo=Math.max(ot.minRows,1),oi=`${yo+xo+Co*Zo}px`;Jo.style.minHeight=oi}if(ot.maxRows){const Zo=`${yo+xo+Co*ot.maxRows}px`;Jo.style.maxHeight=Zo}}},N=I(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});jt(()=>{const{value:le}=w;Array.isArray(le)||vt(le)});const O=no().proxy;function ee(le,Ee){const{onUpdateValue:ot,"onUpdate:value":Bt,onInput:Kt}=e,{nTriggerFormInput:Dt}=C;ot&&Re(ot,le,Ee),Bt&&Re(Bt,le,Ee),Kt&&Re(Kt,le,Ee),m.value=le,Dt()}function G(le,Ee){const{onChange:ot}=e,{nTriggerFormChange:Bt}=C;ot&&Re(ot,le,Ee),m.value=le,Bt()}function ne(le){const{onBlur:Ee}=e,{nTriggerFormBlur:ot}=C;Ee&&Re(Ee,le),ot()}function X(le){const{onFocus:Ee}=e,{nTriggerFormFocus:ot}=C;Ee&&Re(Ee,le),ot()}function ce(le){const{onClear:Ee}=e;Ee&&Re(Ee,le)}function L(le){const{onInputBlur:Ee}=e;Ee&&Re(Ee,le)}function be(le){const{onInputFocus:Ee}=e;Ee&&Re(Ee,le)}function Oe(){const{onDeactivate:le}=e;le&&Re(le)}function je(){const{onActivate:le}=e;le&&Re(le)}function F(le){const{onClick:Ee}=e;Ee&&Re(Ee,le)}function A(le){const{onWrapperFocus:Ee}=e;Ee&&Re(Ee,le)}function re(le){const{onWrapperBlur:Ee}=e;Ee&&Re(Ee,le)}function we(){k.value=!0}function oe(le){k.value=!1,le.target===d.value?ve(le,1):ve(le,0)}function ve(le,Ee=0,ot="input"){const Bt=le.target.value;if(vt(Bt),le instanceof InputEvent&&!le.isComposing&&(k.value=!1),e.type==="textarea"){const{value:Dt}=p;Dt&&Dt.syncUnifiedContainer()}if(R=Bt,k.value)return;h.recordCursor();const Kt=ke(Bt);if(Kt)if(!e.pair)ot==="input"?ee(Bt,{source:Ee}):G(Bt,{source:Ee});else{let{value:Dt}=w;Array.isArray(Dt)?Dt=[Dt[0],Dt[1]]:Dt=["",""],Dt[Ee]=Bt,ot==="input"?ee(Dt,{source:Ee}):G(Dt,{source:Ee})}O.$forceUpdate(),Kt||Ht(h.restoreCursor)}function ke(le){const{countGraphemes:Ee,maxlength:ot,minlength:Bt}=e;if(Ee){let Dt;if(ot!==void 0&&(Dt===void 0&&(Dt=Ee(le)),Dt>Number(ot))||Bt!==void 0&&(Dt===void 0&&(Dt=Ee(le)),Dt{Bt.preventDefault(),Tt("mouseup",document,Ee)};if($t("mouseup",document,Ee),K.value!=="mousedown")return;V.value=!0;const ot=()=>{V.value=!1,Tt("mouseup",document,ot)};$t("mouseup",document,ot)}function Xe(le){e.onKeyup&&Re(e.onKeyup,le)}function gt(le){switch(e.onKeydown&&Re(e.onKeydown,le),le.key){case"Escape":ye();break;case"Enter":Q(le);break}}function Q(le){var Ee,ot;if(e.passivelyActivated){const{value:Bt}=T;if(Bt){e.internalDeactivateOnEnter&&ye();return}le.preventDefault(),e.type==="textarea"?(Ee=s.value)===null||Ee===void 0||Ee.focus():(ot=u.value)===null||ot===void 0||ot.focus()}}function ye(){e.passivelyActivated&&(T.value=!1,Ht(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function Ae(){var le,Ee,ot;S.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ee=s.value)===null||Ee===void 0||Ee.focus(),(ot=u.value)===null||ot===void 0||ot.focus()))}function qe(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function Qe(){var le,Ee;(le=s.value)===null||le===void 0||le.select(),(Ee=u.value)===null||Ee===void 0||Ee.select()}function Je(){S.value||(s.value?s.value.focus():u.value&&u.value.focus())}function tt(){const{value:le}=a;le!=null&&le.contains(document.activeElement)&&le!==document.activeElement&&ye()}function it(le){if(e.type==="textarea"){const{value:Ee}=s;Ee==null||Ee.scrollTo(le)}else{const{value:Ee}=u;Ee==null||Ee.scrollTo(le)}}function vt(le){const{type:Ee,pair:ot,autosize:Bt}=e;if(!ot&&Bt)if(Ee==="textarea"){const{value:Kt}=l;Kt&&(Kt.textContent=`${le??""}\r +`)}else{const{value:Kt}=c;Kt&&(le?Kt.textContent=le:Kt.innerHTML=" ")}}function an(){Z()}const Ft=U({top:"0"});function _e(le){var Ee;const{scrollTop:ot}=le.target;Ft.value.top=`${-ot}px`,(Ee=p.value)===null||Ee===void 0||Ee.syncUnifiedContainer()}let Be=null;Yt(()=>{const{autosize:le,type:Ee}=e;le&&Ee==="textarea"?Be=ft(w,ot=>{!Array.isArray(ot)&&ot!==R&&vt(ot)}):Be==null||Be()});let Ze=null;Yt(()=>{e.type==="textarea"?Ze=ft(w,le=>{var Ee;!Array.isArray(le)&&le!==R&&((Ee=p.value)===null||Ee===void 0||Ee.syncUnifiedContainer())}):Ze==null||Ze()}),at(uS,{mergedValueRef:w,maxlengthRef:N,mergedClsPrefixRef:t,countGraphemesRef:Ue(e,"countGraphemes")});const ht={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:k,clear:Fe,focus:Ae,blur:qe,select:Qe,deactivate:tt,activate:Je,scrollTo:it},bt=pn("Input",r,t),ut=I(()=>{const{value:le}=_,{common:{cubicBezierEaseInOut:Ee},self:{color:ot,borderRadius:Bt,textColor:Kt,caretColor:Dt,caretColorError:yo,caretColorWarning:xo,textDecorationColor:Co,border:Jo,borderDisabled:Zo,borderHover:oi,borderFocus:Qa,placeholderColor:Ja,placeholderColorDisabled:Za,lineHeightTextarea:es,colorDisabled:yr,colorFocus:xr,textColorDisabled:ed,boxShadowFocus:td,iconSize:nd,colorFocusWarning:od,boxShadowFocusWarning:rd,borderWarning:id,borderFocusWarning:ad,borderHoverWarning:sd,colorFocusError:ld,boxShadowFocusError:cd,borderError:ud,borderFocusError:dd,borderHoverError:jk,clearSize:Uk,clearColor:Vk,clearColorHover:Wk,clearColorPressed:qk,iconColor:Kk,iconColorDisabled:Gk,suffixTextColor:Xk,countTextColor:Yk,countTextColorDisabled:Qk,iconColorHover:Jk,iconColorPressed:Zk,loadingColor:e3,loadingColorError:t3,loadingColorWarning:n3,[Te("padding",le)]:o3,[Te("fontSize",le)]:r3,[Te("height",le)]:i3}}=i.value,{left:a3,right:s3}=co(o3);return{"--n-bezier":Ee,"--n-count-text-color":Yk,"--n-count-text-color-disabled":Qk,"--n-color":ot,"--n-font-size":r3,"--n-border-radius":Bt,"--n-height":i3,"--n-padding-left":a3,"--n-padding-right":s3,"--n-text-color":Kt,"--n-caret-color":Dt,"--n-text-decoration-color":Co,"--n-border":Jo,"--n-border-disabled":Zo,"--n-border-hover":oi,"--n-border-focus":Qa,"--n-placeholder-color":Ja,"--n-placeholder-color-disabled":Za,"--n-icon-size":nd,"--n-line-height-textarea":es,"--n-color-disabled":yr,"--n-color-focus":xr,"--n-text-color-disabled":ed,"--n-box-shadow-focus":td,"--n-loading-color":e3,"--n-caret-color-warning":xo,"--n-color-focus-warning":od,"--n-box-shadow-focus-warning":rd,"--n-border-warning":id,"--n-border-focus-warning":ad,"--n-border-hover-warning":sd,"--n-loading-color-warning":n3,"--n-caret-color-error":yo,"--n-color-focus-error":ld,"--n-box-shadow-focus-error":cd,"--n-border-error":ud,"--n-border-focus-error":dd,"--n-border-hover-error":jk,"--n-loading-color-error":t3,"--n-clear-color":Vk,"--n-clear-size":Uk,"--n-clear-color-hover":Wk,"--n-clear-color-pressed":qk,"--n-icon-color":Kk,"--n-icon-color-hover":Jk,"--n-icon-color-pressed":Zk,"--n-icon-color-disabled":Gk,"--n-suffix-text-color":Xk}}),Rt=o?Pt("input",I(()=>{const{value:le}=_;return le[0]}),ut,e):void 0;return Object.assign(Object.assign({},ht),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:p,rtlEnabled:bt,uncontrolledValue:m,mergedValue:w,passwordVisible:V,mergedPlaceholder:E,showPlaceholder1:q,showPlaceholder2:D,mergedFocus:B,isComposing:k,activated:T,showClearButton:M,mergedSize:_,mergedDisabled:S,textDecorationStyle:ae,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:K,placeholderStyle:Ft,mergedStatus:y,textAreaScrollContainerWidth:pe,handleTextAreaScroll:_e,handleCompositionStart:we,handleCompositionEnd:oe,handleInput:ve,handleInputBlur:$,handleInputFocus:H,handleWrapperBlur:te,handleWrapperFocus:Ce,handleMouseEnter:Me,handleMouseLeave:Ne,handleMouseDown:De,handleChange:ue,handleClick:ie,handleClear:fe,handlePasswordToggleClick:et,handlePasswordToggleMousedown:$e,handleWrapperKeydown:gt,handleWrapperKeyup:Xe,handleTextAreaMirrorResize:an,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:o?void 0:ut,themeClass:Rt==null?void 0:Rt.themeClass,onRender:Rt==null?void 0:Rt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:r,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),v("div",{ref:"wrapperElRef",class:[`${n}-input`,r,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${n}-input-wrapper`},At(l.prefix,c=>c&&v("div",{class:`${n}-input__prefix`},c)),i==="textarea"?v(Oo,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return v(rt,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,f],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(ur,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${n}-input__input`},v("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&At(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${n}-input__suffix`},[At(l["clear-icon-placeholder"],u=>(this.clearable||u)&&v(zh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?v(nS,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?v(K0,null,{default:u=>{var d;return(d=l.count)===null||d===void 0?void 0:d.call(l,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?$n(l["password-visible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(EN,null)})]):$n(l["password-invisible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(RN,null)})])):null]):null)),this.pair?v("span",{class:`${n}-input__separator`},$n(l.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${n}-input-wrapper`},v("div",{class:`${n}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),At(l.suffix,c=>(this.clearable||c)&&v("div",{class:`${n}-input__suffix`},[this.clearable&&v(zh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=l["clear-icon"])===null||u===void 0?void 0:u.call(l)},placeholder:()=>{var u;return(u=l["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(l)}}),c]))):null,this.mergedBordered?v("div",{class:`${n}-input__border`}):null,this.mergedBordered?v("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?v(K0,null,{default:c=>{var u;const{renderCount:d}=this;return d?d(c):(u=l.count)===null||u===void 0?void 0:u.call(l,c)}}):null)}}),Rj=z("input-group",` display: inline-flex; width: 100%; flex-wrap: nowrap; vertical-align: bottom; -`,[G(">",[L("input",[G("&:not(:last-child)",` +`,[W(">",[z("input",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),G("&:not(:first-child)",` + `),W("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; margin-left: -1px!important; - `)]),L("button",[G("&:not(:last-child)",` + `)]),z("button",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[V("state-border, border",` + `,[j("state-border, border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `)]),G("&:not(:first-child)",` + `)]),W("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[V("state-border, border",` + `,[j("state-border, border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])]),G("*",[G("&:not(:last-child)",` + `)])]),W("*",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[G(">",[L("input",` + `,[W(">",[z("input",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),L("base-selection",[L("base-selection-label",` + `),z("base-selection",[z("base-selection-label",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),L("base-selection-tags",` + `),z("base-selection-tags",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),V("box-shadow, border, state-border",` + `),j("box-shadow, border, state-border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `)])])]),G("&:not(:first-child)",` + `)])])]),W("&:not(:first-child)",` margin-left: -1px!important; border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[G(">",[L("input",` + `,[W(">",[z("input",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),L("base-selection",[L("base-selection-label",` + `),z("base-selection",[z("base-selection-label",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),L("base-selection-tags",` + `),z("base-selection-tags",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),V("box-shadow, border, state-border",` + `),j("box-shadow, border, state-border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])])])])])]),zj={},vm=be({name:"InputGroup",props:zj,setup(e){const{mergedClsPrefixRef:t}=lt(e);return ei("-input-group",Oj,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-input-group`},this.$slots)}});function Fc(e){return e.type==="group"}function u2(e){return e.type==="ignored"}function Jd(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function d2(e,t){return{getIsGroup:Fc,getIgnored:u2,getKey(o){return Fc(o)?o.name||o.key||"key-required":o[e]},getChildren(o){return o[t]}}}function Dj(e,t,n,o){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const s=[];for(const a of i)if(Fc(a)){const l=r(a[o]);l.length&&s.push(Object.assign({},a,{[o]:l}))}else{if(u2(a))continue;t(n,a)&&s.push(a)}return s}return r(e)}function Lj(e,t,n){const o=new Map;return e.forEach(r=>{Fc(r)?r[n].forEach(i=>{o.set(i[t],i)}):o.set(r[t],r)}),o}function Fj(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Bj={name:"AutoComplete",common:je,peers:{InternalSelectMenu:hl,Input:xo},self:Fj},Nj=Bj;function Hj(e){const{borderRadius:t,avatarColor:n,cardColor:o,fontSize:r,heightTiny:i,heightSmall:s,heightMedium:a,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${o}`,heightTiny:i,heightSmall:s,heightMedium:a,heightLarge:l,heightHuge:c,color:Ye(o,n),colorModal:Ye(u,n),colorPopover:Ye(d,n)}}const jj={name:"Avatar",common:je,self:Hj},f2=jj;function Vj(){return{gap:"-12px"}}const Wj={name:"AvatarGroup",common:je,peers:{Avatar:f2},self:Vj},Uj=Wj,h2={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},qj={name:"BackTop",common:je,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},h2),{color:t,textColor:n,iconColor:n,iconColorHover:o,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)"})}},Kj=qj;function Gj(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},h2),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const Yj={name:"BackTop",common:xt,self:Gj},Xj=Yj,Zj=()=>v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},v("g",{transform:"translate(120.000000, 4285.000000)"},v("g",{transform:"translate(7.000000, 126.000000)"},v("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},v("g",{transform:"translate(4.000000, 2.000000)"},v("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),v("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Jj=L("back-top",` + `)])])])])])]),Aj={},gm=xe({name:"InputGroup",props:Aj,setup(e){const{mergedClsPrefixRef:t}=st(e);return ei("-input-group",Rj,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-input-group`},this.$slots)}});function $j(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ij={name:"AutoComplete",common:He,peers:{InternalSelectMenu:fl,Input:go},self:$j},Oj=Ij;function Mj(e){const{borderRadius:t,avatarColor:n,cardColor:o,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Ke(o,n),colorModal:Ke(u,n),colorPopover:Ke(d,n)}}const zj={name:"Avatar",common:He,self:Mj},dS=zj;function Fj(){return{gap:"-12px"}}const Dj={name:"AvatarGroup",common:He,peers:{Avatar:dS},self:Fj},Lj=Dj,fS={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Bj={name:"BackTop",common:He,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},fS),{color:t,textColor:n,iconColor:n,iconColorHover:o,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)"})}},Nj=Bj;function Hj(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},fS),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const jj={name:"BackTop",common:xt,self:Hj},Uj=jj,Vj=v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},v("g",{transform:"translate(120.000000, 4285.000000)"},v("g",{transform:"translate(7.000000, 126.000000)"},v("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},v("g",{transform:"translate(4.000000, 2.000000)"},v("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),v("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Wj=z("back-top",` position: fixed; right: 40px; bottom: 40px; @@ -1169,38 +1153,38 @@ ${t} min-width: var(--n-width); box-shadow: var(--n-box-shadow); background-color: var(--n-color); -`,[Ks(),Z("transition-disabled",{transition:"none !important"}),L("base-icon",` +`,[Wa(),J("transition-disabled",{transition:"none !important"}),z("base-icon",` font-size: var(--n-icon-size); color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `),G("svg",{pointerEvents:"none"}),G("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[L("base-icon",{color:"var(--n-icon-color-hover)"})]),G("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[L("base-icon",{color:"var(--n-icon-color-pressed)"})])]),Qj=Object.assign(Object.assign({},Be.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),eV=be({name:"BackTop",inheritAttrs:!1,props:Qj,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=H(null),r=H(!1);Jt(()=>{const{value:S}=o;if(S===null){r.value=!1;return}r.value=S>=e.visibilityHeight});const i=H(!1);dt(r,S=>{var _;i.value&&((_=e["onUpdate:show"])===null||_===void 0||_.call(e,S))});const s=ze(e,"show"),a=ln(s,r),l=H(!0),c=H(null),u=D(()=>({right:`calc(${qt(e.right)} + ${gh.value})`,bottom:qt(e.bottom)}));let d,f;dt(a,S=>{var _,x;i.value&&(S&&((_=e.onShow)===null||_===void 0||_.call(e)),(x=e.onHide)===null||x===void 0||x.call(e))});const h=Be("BackTop","-back-top",Jj,Xj,e,t);function p(){var S;if(f)return;f=!0;const _=((S=e.target)===null||S===void 0?void 0:S.call(e))||i8(e.listenTo)||xw(c.value);if(!_)return;d=_===document.documentElement?document:_;const{to:x}=e;typeof x=="string"&&document.querySelector(x),d.addEventListener("scroll",g),g()}function m(){(Zb(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function g(){o.value=(Zb(d)?document.documentElement:d).scrollTop,i.value||Vt(()=>{i.value=!0})}function b(){l.value=!1}Wt(()=>{p(),l.value=a.value}),rn(()=>{d&&d.removeEventListener("scroll",g)});const w=D(()=>{const{self:{color:S,boxShadow:_,boxShadowHover:x,boxShadowPressed:y,iconColor:T,iconColorHover:k,iconColorPressed:P,width:I,height:R,iconSize:W,borderRadius:O,textColor:M},common:{cubicBezierEaseInOut:z}}=h.value;return{"--n-bezier":z,"--n-border-radius":O,"--n-height":R,"--n-width":I,"--n-box-shadow":_,"--n-box-shadow-hover":x,"--n-box-shadow-pressed":y,"--n-color":S,"--n-icon-size":W,"--n-icon-color":T,"--n-icon-color-hover":k,"--n-icon-color-pressed":P,"--n-text-color":M}}),C=n?Rt("back-top",void 0,w,e):void 0;return{placeholderRef:c,style:u,mergedShow:a,isMounted:Jr(),scrollElement:H(null),scrollTop:o,DomInfoReady:i,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:b,handleScroll:g,handleClick:m,cssVars:n?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return v("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},v(Tu,{to:this.to,show:this.mergedShow},{default:()=>v(pn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?v("div",Ln(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),Dn(this.$slots.default,()=>[v(Gt,{clsPrefix:e},{default:Zj})])):null}})}))}}),tV={name:"Badge",common:je,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},nV=tV,oV={fontWeightActive:"400"};function p2(e){const{fontSize:t,textColor3:n,textColor2:o,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:s}=e;return Object.assign(Object.assign({},oV),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:r,itemColorHover:i,itemColorPressed:s,separatorColor:n})}const rV={name:"Breadcrumb",common:xt,self:p2},iV=rV,sV={name:"Breadcrumb",common:je,self:p2},aV=sV,lV=L("breadcrumb",` + `),W("svg",{pointerEvents:"none"}),W("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[z("base-icon",{color:"var(--n-icon-color-hover)"})]),W("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[z("base-icon",{color:"var(--n-icon-color-pressed)"})])]),qj=Object.assign(Object.assign({},Le.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Kj=xe({name:"BackTop",inheritAttrs:!1,props:qj,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=U(null),r=U(!1);Yt(()=>{const{value:_}=o;if(_===null){r.value=!1;return}r.value=_>=e.visibilityHeight});const i=U(!1);ft(r,_=>{var S;i.value&&((S=e["onUpdate:show"])===null||S===void 0||S.call(e,_))});const a=Ue(e,"show"),s=rn(a,r),l=U(!0),c=U(null),u=I(()=>({right:`calc(${qt(e.right)} + ${_h.value})`,bottom:qt(e.bottom)}));let d,f;ft(s,_=>{var S,y;i.value&&(_&&((S=e.onShow)===null||S===void 0||S.call(e)),(y=e.onHide)===null||y===void 0||y.call(e))});const h=Le("BackTop","-back-top",Wj,Uj,e,t);function p(){var _;if(f)return;f=!0;const S=((_=e.target)===null||_===void 0?void 0:_.call(e))||OI(e.listenTo)||uw(c.value);if(!S)return;d=S===document.documentElement?document:S;const{to:y}=e;typeof y=="string"&&document.querySelector(y),d.addEventListener("scroll",m),m()}function g(){(Yb(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function m(){o.value=(Yb(d)?document.documentElement:d).scrollTop,i.value||Ht(()=>{i.value=!0})}function b(){l.value=!1}jt(()=>{p(),l.value=s.value}),on(()=>{d&&d.removeEventListener("scroll",m)});const w=I(()=>{const{self:{color:_,boxShadow:S,boxShadowHover:y,boxShadowPressed:x,iconColor:P,iconColorHover:k,iconColorPressed:T,width:R,height:E,iconSize:q,borderRadius:D,textColor:B},common:{cubicBezierEaseInOut:M}}=h.value;return{"--n-bezier":M,"--n-border-radius":D,"--n-height":E,"--n-width":R,"--n-box-shadow":S,"--n-box-shadow-hover":y,"--n-box-shadow-pressed":x,"--n-color":_,"--n-icon-size":q,"--n-icon-color":P,"--n-icon-color-hover":k,"--n-icon-color-pressed":T,"--n-text-color":B}}),C=n?Pt("back-top",void 0,w,e):void 0;return{placeholderRef:c,style:u,mergedShow:s,isMounted:Zr(),scrollElement:U(null),scrollTop:o,DomInfoReady:i,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:b,handleScroll:m,handleClick:g,cssVars:n?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return v("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},v(ku,{to:this.to,show:this.mergedShow},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?v("div",Ln(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),$n(this.$slots.default,()=>[v(Wt,{clsPrefix:e},{default:()=>Vj})])):null}})}))}}),Gj={name:"Badge",common:He,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},Xj=Gj,Yj={fontWeightActive:"400"};function hS(e){const{fontSize:t,textColor3:n,textColor2:o,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Yj),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:n})}const Qj={name:"Breadcrumb",common:xt,self:hS},Jj=Qj,Zj={name:"Breadcrumb",common:He,self:hS},eU=Zj,tU=z("breadcrumb",` white-space: nowrap; cursor: default; line-height: var(--n-item-line-height); -`,[G("ul",` +`,[W("ul",` list-style: none; padding: 0; margin: 0; - `),G("a",` + `),W("a",` color: inherit; text-decoration: inherit; - `),L("breadcrumb-item",` + `),z("breadcrumb-item",` font-size: var(--n-font-size); transition: color .3s var(--n-bezier); display: inline-flex; align-items: center; - `,[L("icon",` + `,[z("icon",` font-size: 18px; vertical-align: -.2em; transition: color .3s var(--n-bezier); color: var(--n-item-text-color); - `),G("&:not(:last-child)",[Z("clickable",[V("link",` + `),W("&:not(:last-child)",[J("clickable",[j("link",` cursor: pointer; - `,[G("&:hover",` + `,[W("&:hover",` background-color: var(--n-item-color-hover); - `),G("&:active",` + `),W("&:active",` background-color: var(--n-item-color-pressed); - `)])])]),V("link",` + `)])])]),j("link",` padding: 4px; border-radius: var(--n-item-border-radius); transition: @@ -1208,29 +1192,29 @@ ${t} color .3s var(--n-bezier); color: var(--n-item-text-color); position: relative; - `,[G("&:hover",` + `,[W("&:hover",` color: var(--n-item-text-color-hover); - `,[L("icon",` + `,[z("icon",` color: var(--n-item-text-color-hover); - `)]),G("&:active",` + `)]),W("&:active",` color: var(--n-item-text-color-pressed); - `,[L("icon",` + `,[z("icon",` color: var(--n-item-text-color-pressed); - `)])]),V("separator",` + `)])]),j("separator",` margin: 0 8px; color: var(--n-separator-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; - `),G("&:last-child",[V("link",` + `),W("&:last-child",[j("link",` font-weight: var(--n-font-weight-active); cursor: unset; color: var(--n-item-text-color-active); - `,[L("icon",` + `,[z("icon",` color: var(--n-item-text-color-active); - `)]),V("separator",` + `)]),j("separator",` display: none; - `)])])]),m2="n-breadcrumb",cV=Object.assign(Object.assign({},Be.props),{separator:{type:String,default:"/"}}),uV=be({name:"Breadcrumb",props:cV,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Breadcrumb","-breadcrumb",lV,iV,e,t);at(m2,{separatorRef:ze(e,"separator"),mergedClsPrefixRef:t});const r=D(()=>{const{common:{cubicBezierEaseInOut:s},self:{separatorColor:a,itemTextColor:l,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:d,fontSize:f,fontWeightActive:h,itemBorderRadius:p,itemColorHover:m,itemColorPressed:g,itemLineHeight:b}}=o.value;return{"--n-font-size":f,"--n-bezier":s,"--n-item-text-color":l,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":d,"--n-separator-color":a,"--n-item-color-hover":m,"--n-item-color-pressed":g,"--n-item-border-radius":p,"--n-font-weight-active":h,"--n-item-line-height":b}}),i=n?Rt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},v("ul",null,this.$slots))}});function dV(e=fr?window:null){const t=()=>{const{hash:r,host:i,hostname:s,href:a,origin:l,pathname:c,port:u,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:s,href:a,origin:l,pathname:c,port:u,protocol:d,search:f}},n=H(t()),o=()=>{n.value=t()};return Wt(()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))}),Fi(()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))}),n}const fV={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},hV=be({name:"BreadcrumbItem",props:fV,slots:Object,setup(e,{slots:t}){const n=We(m2,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:r}=n,i=dV(),s=D(()=>e.href?"a":"span"),a=D(()=>i.value.href===e.href?"location":null);return()=>{const{value:l}=r;return v("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},v(s.value,{class:`${l}-breadcrumb-item__link`,"aria-current":a.value,href:e.href,onClick:e.onClick},t),v("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},Dn(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:o.value]})))}}});function ci(e){return Ye(e,[255,255,255,.16])}function jl(e){return Ye(e,[0,0,0,.12])}const pV="n-button-group",mV={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function g2(e){const{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadius:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:m,primaryColor:g,baseColor:b,infoColor:w,infoColorHover:C,infoColorPressed:S,successColor:_,successColorHover:x,successColorPressed:y,warningColor:T,warningColorHover:k,warningColorPressed:P,errorColor:I,errorColorHover:R,errorColorPressed:W,fontWeight:O,buttonColor2:M,buttonColor2Hover:z,buttonColor2Pressed:K,fontWeightStrong:J}=e;return Object.assign(Object.assign({},mV),{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:M,colorSecondaryHover:z,colorSecondaryPressed:K,colorTertiary:M,colorTertiaryHover:z,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:z,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:d,textColorText:d,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:d,border:`1px solid ${m}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${m}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:g,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:g,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:w,colorHoverInfo:C,colorPressedInfo:S,colorFocusInfo:C,colorDisabledInfo:w,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:w,textColorTextHoverInfo:C,textColorTextPressedInfo:S,textColorTextFocusInfo:C,textColorTextDisabledInfo:d,textColorGhostInfo:w,textColorGhostHoverInfo:C,textColorGhostPressedInfo:S,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${S}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:_,colorHoverSuccess:x,colorPressedSuccess:y,colorFocusSuccess:x,colorDisabledSuccess:_,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:_,textColorTextHoverSuccess:x,textColorTextPressedSuccess:y,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:d,textColorGhostSuccess:_,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:_,borderSuccess:`1px solid ${_}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${_}`,rippleColorSuccess:_,colorWarning:T,colorHoverWarning:k,colorPressedWarning:P,colorFocusWarning:k,colorDisabledWarning:T,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:T,textColorTextHoverWarning:k,textColorTextPressedWarning:P,textColorTextFocusWarning:k,textColorTextDisabledWarning:d,textColorGhostWarning:T,textColorGhostHoverWarning:k,textColorGhostPressedWarning:P,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${P}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:R,colorPressedError:W,colorFocusError:R,colorDisabledError:I,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:I,textColorTextHoverError:R,textColorTextPressedError:W,textColorTextFocusError:R,textColorTextDisabledError:d,textColorGhostError:I,textColorGhostHoverError:R,textColorGhostPressedError:W,textColorGhostFocusError:R,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${R}`,borderPressedError:`1px solid ${W}`,borderFocusError:`1px solid ${R}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:O,fontWeightStrong:J})}const gV={name:"Button",common:xt,self:g2},Ou=gV,vV={name:"Button",common:je,self(e){const t=g2(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Kn=vV,bV=G([L("button",` + `)])])]),pS="n-breadcrumb",nU=Object.assign(Object.assign({},Le.props),{separator:{type:String,default:"/"}}),oU=xe({name:"Breadcrumb",props:nU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Breadcrumb","-breadcrumb",tU,Jj,e,t);at(pS,{separatorRef:Ue(e,"separator"),mergedClsPrefixRef:t});const r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:s,itemTextColor:l,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:d,fontSize:f,fontWeightActive:h,itemBorderRadius:p,itemColorHover:g,itemColorPressed:m,itemLineHeight:b}}=o.value;return{"--n-font-size":f,"--n-bezier":a,"--n-item-text-color":l,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":d,"--n-separator-color":s,"--n-item-color-hover":g,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":h,"--n-item-line-height":b}}),i=n?Pt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},v("ul",null,this.$slots))}});function rU(e=pr?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}},n=U(t()),o=()=>{n.value=t()};return jt(()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))}),Oa(()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))}),n}const iU={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},aU=xe({name:"BreadcrumbItem",props:iU,setup(e,{slots:t}){const n=Ve(pS,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:r}=n,i=rU(),a=I(()=>e.href?"a":"span"),s=I(()=>i.value.href===e.href?"location":null);return()=>{const{value:l}=r;return v("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},v(a.value,{class:`${l}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),v("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},$n(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:o.value]})))}}});function ci(e){return Ke(e,[255,255,255,.16])}function Hl(e){return Ke(e,[0,0,0,.12])}const sU="n-button-group",lU={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function mS(e){const{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:m,baseColor:b,infoColor:w,infoColorHover:C,infoColorPressed:_,successColor:S,successColorHover:y,successColorPressed:x,warningColor:P,warningColorHover:k,warningColorPressed:T,errorColor:R,errorColorHover:E,errorColorPressed:q,fontWeight:D,buttonColor2:B,buttonColor2Hover:M,buttonColor2Pressed:K,fontWeightStrong:V}=e;return Object.assign(Object.assign({},lU),{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:B,colorSecondaryHover:M,colorSecondaryPressed:K,colorTertiary:B,colorTertiaryHover:M,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:M,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:d,textColorText:d,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:m,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:m,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:d,textColorGhostPrimary:m,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:w,colorHoverInfo:C,colorPressedInfo:_,colorFocusInfo:C,colorDisabledInfo:w,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:w,textColorTextHoverInfo:C,textColorTextPressedInfo:_,textColorTextFocusInfo:C,textColorTextDisabledInfo:d,textColorGhostInfo:w,textColorGhostHoverInfo:C,textColorGhostPressedInfo:_,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:S,colorHoverSuccess:y,colorPressedSuccess:x,colorFocusSuccess:y,colorDisabledSuccess:S,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:S,textColorTextHoverSuccess:y,textColorTextPressedSuccess:x,textColorTextFocusSuccess:y,textColorTextDisabledSuccess:d,textColorGhostSuccess:S,textColorGhostHoverSuccess:y,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:y,textColorGhostDisabledSuccess:S,borderSuccess:`1px solid ${S}`,borderHoverSuccess:`1px solid ${y}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${y}`,borderDisabledSuccess:`1px solid ${S}`,rippleColorSuccess:S,colorWarning:P,colorHoverWarning:k,colorPressedWarning:T,colorFocusWarning:k,colorDisabledWarning:P,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:P,textColorTextHoverWarning:k,textColorTextPressedWarning:T,textColorTextFocusWarning:k,textColorTextDisabledWarning:d,textColorGhostWarning:P,textColorGhostHoverWarning:k,textColorGhostPressedWarning:T,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:R,colorHoverError:E,colorPressedError:q,colorFocusError:E,colorDisabledError:R,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:R,textColorTextHoverError:E,textColorTextPressedError:q,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:R,textColorGhostHoverError:E,textColorGhostPressedError:q,textColorGhostFocusError:E,textColorGhostDisabledError:R,borderError:`1px solid ${R}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${q}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${R}`,rippleColorError:R,waveOpacity:"0.6",fontWeight:D,fontWeightStrong:V})}const cU={name:"Button",common:xt,self:mS},Iu=cU,uU={name:"Button",common:He,self(e){const t=mS(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Vn=uU,dU=W([z("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -1262,7 +1246,7 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[Z("color",[V("border",{borderColor:"var(--n-border-color)"}),Z("disabled",[V("border",{borderColor:"var(--n-border-color-disabled)"})]),$t("disabled",[G("&:focus",[V("state-border",{borderColor:"var(--n-border-color-focus)"})]),G("&:hover",[V("state-border",{borderColor:"var(--n-border-color-hover)"})]),G("&:active",[V("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Z("pressed",[V("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Z("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[V("border",{border:"var(--n-border-disabled)"})]),$t("disabled",[G("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[V("state-border",{border:"var(--n-border-focus)"})]),G("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[V("state-border",{border:"var(--n-border-hover)"})]),G("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[V("state-border",{border:"var(--n-border-pressed)"})]),Z("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[V("state-border",{border:"var(--n-border-pressed)"})])]),Z("loading","cursor: wait;"),L("base-wave",` + `,[J("color",[j("border",{borderColor:"var(--n-border-color)"}),J("disabled",[j("border",{borderColor:"var(--n-border-color-disabled)"})]),Et("disabled",[W("&:focus",[j("state-border",{borderColor:"var(--n-border-color-focus)"})]),W("&:hover",[j("state-border",{borderColor:"var(--n-border-color-hover)"})]),W("&:active",[j("state-border",{borderColor:"var(--n-border-color-pressed)"})]),J("pressed",[j("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),J("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[j("border",{border:"var(--n-border-disabled)"})]),Et("disabled",[W("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[j("state-border",{border:"var(--n-border-focus)"})]),W("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[j("state-border",{border:"var(--n-border-hover)"})]),W("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[j("state-border",{border:"var(--n-border-pressed)"})]),J("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[j("state-border",{border:"var(--n-border-pressed)"})])]),J("loading","cursor: wait;"),z("base-wave",` pointer-events: none; top: 0; right: 0; @@ -1271,7 +1255,7 @@ ${t} animation-iteration-count: 1; animation-duration: var(--n-ripple-duration); animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[Z("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),fr&&"MozBoxSizing"in document.createElement("div").style?G("&::moz-focus-inner",{border:0}):null,V("border, state-border",` + `,[J("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),pr&&"MozBoxSizing"in document.createElement("div").style?W("&::moz-focus-inner",{border:0}):null,j("border, state-border",` position: absolute; left: 0; top: 0; @@ -1280,7 +1264,7 @@ ${t} border-radius: inherit; transition: border-color .3s var(--n-bezier); pointer-events: none; - `),V("border",{border:"var(--n-border)"}),V("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),V("icon",` + `),j("border",{border:"var(--n-border)"}),j("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),j("icon",` margin: var(--n-icon-margin); margin-left: 0; height: var(--n-icon-size); @@ -1289,7 +1273,7 @@ ${t} font-size: var(--n-icon-size); position: relative; flex-shrink: 0; - `,[L("icon-slot",` + `,[z("icon-slot",` height: var(--n-icon-size); width: var(--n-icon-size); position: absolute; @@ -1299,15 +1283,15 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[Xn({top:"50%",originalTransform:"translateY(-50%)"})]),cj()]),V("content",` + `,[Kn({top:"50%",originalTransform:"translateY(-50%)"})]),rj()]),j("content",` display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; - `,[G("~",[V("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Z("block",` + `,[W("~",[j("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),J("block",` display: flex; width: 100%; - `),Z("dashed",[V("border, state-border",{borderStyle:"dashed !important"})]),Z("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),G("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),G("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),yV=Object.assign(Object.assign({},Be.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!a2}}),v2=be({name:"Button",props:yV,slots:Object,setup(e){const t=H(null),n=H(null),o=H(!1),r=Ct(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=We(pV,{}),{mergedSizeRef:s}=pr({},{defaultSize:"medium",mergedSize:S=>{const{size:_}=e;if(_)return _;const{size:x}=i;if(x)return x;const{mergedSize:y}=S||{};return y?y.value:"medium"}}),a=D(()=>e.focusable&&!e.disabled),l=S=>{var _;a.value||S.preventDefault(),!e.nativeFocusBehavior&&(S.preventDefault(),!e.disabled&&a.value&&((_=t.value)===null||_===void 0||_.focus({preventScroll:!0})))},c=S=>{var _;if(!e.disabled&&!e.loading){const{onClick:x}=e;x&&$e(x,S),e.text||(_=n.value)===null||_===void 0||_.play()}},u=S=>{switch(S.key){case"Enter":if(!e.keyboard)return;o.value=!1}},d=S=>{switch(S.key){case"Enter":if(!e.keyboard||e.loading){S.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:m}=lt(e),g=Be("Button","-button",bV,Ou,e,p),b=gn("Button",m,p),w=D(()=>{const S=g.value,{common:{cubicBezierEaseInOut:_,cubicBezierEaseOut:x},self:y}=S,{rippleDuration:T,opacityDisabled:k,fontWeight:P,fontWeightStrong:I}=y,R=s.value,{dashed:W,type:O,ghost:M,text:z,color:K,round:J,circle:se,textColor:le,secondary:F,tertiary:E,quaternary:A,strong:Y}=e,ne={"--n-font-weight":Y?I:P};let fe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const Q=O==="tertiary",Ce=O==="default",j=Q?"default":O;if(z){const $=le||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":$||y[Re("textColorText",j)],"--n-text-color-hover":$?ci($):y[Re("textColorTextHover",j)],"--n-text-color-pressed":$?jl($):y[Re("textColorTextPressed",j)],"--n-text-color-focus":$?ci($):y[Re("textColorTextHover",j)],"--n-text-color-disabled":$||y[Re("textColorTextDisabled",j)]}}else if(M||W){const $=le||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||y[Re("rippleColor",j)],"--n-text-color":$||y[Re("textColorGhost",j)],"--n-text-color-hover":$?ci($):y[Re("textColorGhostHover",j)],"--n-text-color-pressed":$?jl($):y[Re("textColorGhostPressed",j)],"--n-text-color-focus":$?ci($):y[Re("textColorGhostHover",j)],"--n-text-color-disabled":$||y[Re("textColorGhostDisabled",j)]}}else if(F){const $=Ce?y.textColor:Q?y.textColorTertiary:y[Re("color",j)],N=K||$,ee=O!=="default"&&O!=="tertiary";fe={"--n-color":ee?Ae(N,{alpha:Number(y.colorOpacitySecondary)}):y.colorSecondary,"--n-color-hover":ee?Ae(N,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-pressed":ee?Ae(N,{alpha:Number(y.colorOpacitySecondaryPressed)}):y.colorSecondaryPressed,"--n-color-focus":ee?Ae(N,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-disabled":y.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":N,"--n-text-color-hover":N,"--n-text-color-pressed":N,"--n-text-color-focus":N,"--n-text-color-disabled":N}}else if(E||A){const $=Ce?y.textColor:Q?y.textColorTertiary:y[Re("color",j)],N=K||$;E?(fe["--n-color"]=y.colorTertiary,fe["--n-color-hover"]=y.colorTertiaryHover,fe["--n-color-pressed"]=y.colorTertiaryPressed,fe["--n-color-focus"]=y.colorSecondaryHover,fe["--n-color-disabled"]=y.colorTertiary):(fe["--n-color"]=y.colorQuaternary,fe["--n-color-hover"]=y.colorQuaternaryHover,fe["--n-color-pressed"]=y.colorQuaternaryPressed,fe["--n-color-focus"]=y.colorQuaternaryHover,fe["--n-color-disabled"]=y.colorQuaternary),fe["--n-ripple-color"]="#0000",fe["--n-text-color"]=N,fe["--n-text-color-hover"]=N,fe["--n-text-color-pressed"]=N,fe["--n-text-color-focus"]=N,fe["--n-text-color-disabled"]=N}else fe={"--n-color":K||y[Re("color",j)],"--n-color-hover":K?ci(K):y[Re("colorHover",j)],"--n-color-pressed":K?jl(K):y[Re("colorPressed",j)],"--n-color-focus":K?ci(K):y[Re("colorFocus",j)],"--n-color-disabled":K||y[Re("colorDisabled",j)],"--n-ripple-color":K||y[Re("rippleColor",j)],"--n-text-color":le||(K?y.textColorPrimary:Q?y.textColorTertiary:y[Re("textColor",j)]),"--n-text-color-hover":le||(K?y.textColorHoverPrimary:y[Re("textColorHover",j)]),"--n-text-color-pressed":le||(K?y.textColorPressedPrimary:y[Re("textColorPressed",j)]),"--n-text-color-focus":le||(K?y.textColorFocusPrimary:y[Re("textColorFocus",j)]),"--n-text-color-disabled":le||(K?y.textColorDisabledPrimary:y[Re("textColorDisabled",j)])};let ye={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};z?ye={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ye={"--n-border":y[Re("border",j)],"--n-border-hover":y[Re("borderHover",j)],"--n-border-pressed":y[Re("borderPressed",j)],"--n-border-focus":y[Re("borderFocus",j)],"--n-border-disabled":y[Re("borderDisabled",j)]};const{[Re("height",R)]:Ie,[Re("fontSize",R)]:Le,[Re("padding",R)]:U,[Re("paddingRound",R)]:B,[Re("iconSize",R)]:ae,[Re("borderRadius",R)]:Se,[Re("iconMargin",R)]:te,waveOpacity:xe}=y,ve={"--n-width":se&&!z?Ie:"initial","--n-height":z?"initial":Ie,"--n-font-size":Le,"--n-padding":se||z?"initial":J?B:U,"--n-icon-size":ae,"--n-icon-margin":te,"--n-border-radius":z?"initial":se||J?Ie:Se};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":_,"--n-bezier-ease-out":x,"--n-ripple-duration":T,"--n-opacity-disabled":k,"--n-wave-opacity":xe},ne),fe),ye),ve)}),C=h?Rt("button",D(()=>{let S="";const{dashed:_,type:x,ghost:y,text:T,color:k,round:P,circle:I,textColor:R,secondary:W,tertiary:O,quaternary:M,strong:z}=e;_&&(S+="a"),y&&(S+="b"),T&&(S+="c"),P&&(S+="d"),I&&(S+="e"),W&&(S+="f"),O&&(S+="g"),M&&(S+="h"),z&&(S+="i"),k&&(S+=`j${$c(k)}`),R&&(S+=`k${$c(R)}`);const{value:K}=s;return S+=`l${K[0]}`,S+=`m${x[0]}`,S}),w,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:a,mergedSize:s,showBorder:r,enterPressed:o,rtlEnabled:b,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:c,customColorCssVars:D(()=>{const{color:S}=e;if(!S)return null;const _=ci(S);return{"--n-border-color":S,"--n-border-color-hover":_,"--n-border-color-pressed":jl(S),"--n-border-color-focus":_,"--n-border-color-disabled":S}}),cssVars:h?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const o=Mt(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,v(Iu,{width:!0},{default:()=>Mt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:xs(this.$slots.default)?"0":""}},v(Wi,null,{default:()=>this.loading?v(ti,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&o,this.text?null:v(dj,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Lt=v2,Z0=v2,xV={titleFontSize:"22px"};function CV(e){const{borderRadius:t,fontSize:n,lineHeight:o,textColor2:r,textColor1:i,textColorDisabled:s,dividerColor:a,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:h,popoverColor:p}=e;return Object.assign(Object.assign({},xV),{borderRadius:t,borderColor:Ye(f,a),borderColorModal:Ye(h,a),borderColorPopover:Ye(p,a),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:s,fontSize:n,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Ye(f,d),cellColorHoverModal:Ye(h,d),cellColorHoverPopover:Ye(p,d),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:c})}const wV={name:"Calendar",common:je,peers:{Button:Kn},self:CV},_V=wV,SV={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function b2(e){const{primaryColor:t,borderRadius:n,lineHeight:o,fontSize:r,cardColor:i,textColor2:s,textColor1:a,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:m,boxShadow1:g,popoverColor:b,actionColor:w}=e;return Object.assign(Object.assign({},SV),{lineHeight:o,color:i,colorModal:m,colorPopover:b,colorTarget:t,colorEmbedded:w,colorEmbeddedModal:w,colorEmbeddedPopover:w,textColor:s,titleTextColor:a,borderColor:l,actionColor:w,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:g,borderRadius:n})}const kV={name:"Card",common:xt,self:b2},y2=kV,PV={name:"Card",common:je,self(e){const t=b2(e),{cardColor:n,modalColor:o,popoverColor:r}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=r,t}},x2=PV,TV=G([L("card",` + `),J("dashed",[j("border, state-border",{borderStyle:"dashed !important"})]),J("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),W("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),W("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),fU=Object.assign(Object.assign({},Le.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!lS}}),gS=xe({name:"Button",props:fU,setup(e){const t=U(null),n=U(null),o=U(!1),r=kt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ve(sU,{}),{mergedSizeRef:a}=mr({},{defaultSize:"medium",mergedSize:_=>{const{size:S}=e;if(S)return S;const{size:y}=i;if(y)return y;const{mergedSize:x}=_||{};return x?x.value:"medium"}}),s=I(()=>e.focusable&&!e.disabled),l=_=>{var S;s.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&s.value&&((S=t.value)===null||S===void 0||S.focus({preventScroll:!0})))},c=_=>{var S;if(!e.disabled&&!e.loading){const{onClick:y}=e;y&&Re(y,_),e.text||(S=n.value)===null||S===void 0||S.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;o.value=!1}},d=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=st(e),m=Le("Button","-button",dU,Iu,e,p),b=pn("Button",g,p),w=I(()=>{const _=m.value,{common:{cubicBezierEaseInOut:S,cubicBezierEaseOut:y},self:x}=_,{rippleDuration:P,opacityDisabled:k,fontWeight:T,fontWeightStrong:R}=x,E=a.value,{dashed:q,type:D,ghost:B,text:M,color:K,round:V,circle:ae,textColor:pe,secondary:Z,tertiary:N,quaternary:O,strong:ee}=e,G={"font-weight":ee?R:T};let ne={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const X=D==="tertiary",ce=D==="default",L=X?"default":D;if(M){const $=pe||K;ne={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":$||x[Te("textColorText",L)],"--n-text-color-hover":$?ci($):x[Te("textColorTextHover",L)],"--n-text-color-pressed":$?Hl($):x[Te("textColorTextPressed",L)],"--n-text-color-focus":$?ci($):x[Te("textColorTextHover",L)],"--n-text-color-disabled":$||x[Te("textColorTextDisabled",L)]}}else if(B||q){const $=pe||K;ne={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||x[Te("rippleColor",L)],"--n-text-color":$||x[Te("textColorGhost",L)],"--n-text-color-hover":$?ci($):x[Te("textColorGhostHover",L)],"--n-text-color-pressed":$?Hl($):x[Te("textColorGhostPressed",L)],"--n-text-color-focus":$?ci($):x[Te("textColorGhostHover",L)],"--n-text-color-disabled":$||x[Te("textColorGhostDisabled",L)]}}else if(Z){const $=ce?x.textColor:X?x.textColorTertiary:x[Te("color",L)],H=K||$,te=D!=="default"&&D!=="tertiary";ne={"--n-color":te?Ie(H,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(N||O){const $=ce?x.textColor:X?x.textColorTertiary:x[Te("color",L)],H=K||$;N?(ne["--n-color"]=x.colorTertiary,ne["--n-color-hover"]=x.colorTertiaryHover,ne["--n-color-pressed"]=x.colorTertiaryPressed,ne["--n-color-focus"]=x.colorSecondaryHover,ne["--n-color-disabled"]=x.colorTertiary):(ne["--n-color"]=x.colorQuaternary,ne["--n-color-hover"]=x.colorQuaternaryHover,ne["--n-color-pressed"]=x.colorQuaternaryPressed,ne["--n-color-focus"]=x.colorQuaternaryHover,ne["--n-color-disabled"]=x.colorQuaternary),ne["--n-ripple-color"]="#0000",ne["--n-text-color"]=H,ne["--n-text-color-hover"]=H,ne["--n-text-color-pressed"]=H,ne["--n-text-color-focus"]=H,ne["--n-text-color-disabled"]=H}else ne={"--n-color":K||x[Te("color",L)],"--n-color-hover":K?ci(K):x[Te("colorHover",L)],"--n-color-pressed":K?Hl(K):x[Te("colorPressed",L)],"--n-color-focus":K?ci(K):x[Te("colorFocus",L)],"--n-color-disabled":K||x[Te("colorDisabled",L)],"--n-ripple-color":K||x[Te("rippleColor",L)],"--n-text-color":pe||(K?x.textColorPrimary:X?x.textColorTertiary:x[Te("textColor",L)]),"--n-text-color-hover":pe||(K?x.textColorHoverPrimary:x[Te("textColorHover",L)]),"--n-text-color-pressed":pe||(K?x.textColorPressedPrimary:x[Te("textColorPressed",L)]),"--n-text-color-focus":pe||(K?x.textColorFocusPrimary:x[Te("textColorFocus",L)]),"--n-text-color-disabled":pe||(K?x.textColorDisabledPrimary:x[Te("textColorDisabled",L)])};let be={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};M?be={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:be={"--n-border":x[Te("border",L)],"--n-border-hover":x[Te("borderHover",L)],"--n-border-pressed":x[Te("borderPressed",L)],"--n-border-focus":x[Te("borderFocus",L)],"--n-border-disabled":x[Te("borderDisabled",L)]};const{[Te("height",E)]:Oe,[Te("fontSize",E)]:je,[Te("padding",E)]:F,[Te("paddingRound",E)]:A,[Te("iconSize",E)]:re,[Te("borderRadius",E)]:we,[Te("iconMargin",E)]:oe,waveOpacity:ve}=x,ke={"--n-width":ae&&!M?Oe:"initial","--n-height":M?"initial":Oe,"--n-font-size":je,"--n-padding":ae||M?"initial":V?A:F,"--n-icon-size":re,"--n-icon-margin":oe,"--n-border-radius":M?"initial":ae||V?Oe:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":S,"--n-bezier-ease-out":y,"--n-ripple-duration":P,"--n-opacity-disabled":k,"--n-wave-opacity":ve},G),ne),be),ke)}),C=h?Pt("button",I(()=>{let _="";const{dashed:S,type:y,ghost:x,text:P,color:k,round:T,circle:R,textColor:E,secondary:q,tertiary:D,quaternary:B,strong:M}=e;S&&(_+="a"),x&&(_+="b"),P&&(_+="c"),T&&(_+="d"),R&&(_+="e"),q&&(_+="f"),D&&(_+="g"),B&&(_+="h"),M&&(_+="i"),k&&(_+=`j${Ec(k)}`),E&&(_+=`k${Ec(E)}`);const{value:K}=a;return _+=`l${K[0]}`,_+=`m${y[0]}`,_}),w,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:s,mergedSize:a,showBorder:r,enterPressed:o,rtlEnabled:b,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:c,customColorCssVars:I(()=>{const{color:_}=e;if(!_)return null;const S=ci(_);return{"--n-border-color":_,"--n-border-color-hover":S,"--n-border-color-pressed":Hl(_),"--n-border-color-focus":S,"--n-border-color-disabled":_}}),cssVars:h?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const o=At(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,v(Au,{width:!0},{default:()=>At(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:pa(this.$slots.default)?"0":""}},v(Wi,null,{default:()=>this.loading?v(ti,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&o,this.text?null:v(MH,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),zt=gS,G0=gS,hU={titleFontSize:"22px"};function pU(e){const{borderRadius:t,fontSize:n,lineHeight:o,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:h,popoverColor:p}=e;return Object.assign(Object.assign({},hU),{borderRadius:t,borderColor:Ke(f,s),borderColorModal:Ke(h,s),borderColorPopover:Ke(p,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Ke(f,d),cellColorHoverModal:Ke(h,d),cellColorHoverPopover:Ke(p,d),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:c})}const mU={name:"Calendar",common:He,peers:{Button:Vn},self:pU},gU=mU;function vU(e){const{fontSize:t,boxShadow2:n,popoverColor:o,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:n,color:o,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}}const bU={name:"ColorPicker",common:He,peers:{Input:go,Button:Vn},self:vU},yU=bU,xU={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function vS(e){const{primaryColor:t,borderRadius:n,lineHeight:o,fontSize:r,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:m,popoverColor:b,actionColor:w}=e;return Object.assign(Object.assign({},xU),{lineHeight:o,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:w,colorEmbeddedModal:w,colorEmbeddedPopover:w,textColor:a,titleTextColor:s,borderColor:l,actionColor:w,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:m,borderRadius:n})}const CU={name:"Card",common:xt,self:vS},bS=CU,wU={name:"Card",common:He,self(e){const t=vS(e),{cardColor:n,modalColor:o,popoverColor:r}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=r,t}},yS=wU,_U=W([z("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -1324,13 +1308,13 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[bw({background:"var(--n-color-modal)"}),Z("hoverable",[G("&:hover","box-shadow: var(--n-box-shadow);")]),Z("content-segmented",[G(">",[V("content",{paddingTop:"var(--n-padding-bottom)"})])]),Z("content-soft-segmented",[G(">",[V("content",` + `,[Cw({background:"var(--n-color-modal)"}),J("hoverable",[W("&:hover","box-shadow: var(--n-box-shadow);")]),J("content-segmented",[W(">",[j("content",{paddingTop:"var(--n-padding-bottom)"})])]),J("content-soft-segmented",[W(">",[j("content",` margin: 0 var(--n-padding-left); padding: var(--n-padding-bottom) 0; - `)])]),Z("footer-segmented",[G(">",[V("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Z("footer-soft-segmented",[G(">",[V("footer",` + `)])]),J("footer-segmented",[W(">",[j("footer",{paddingTop:"var(--n-padding-bottom)"})])]),J("footer-soft-segmented",[W(">",[j("footer",` padding: var(--n-padding-bottom) 0; margin: 0 var(--n-padding-left); - `)])]),G(">",[L("card-header",` + `)])]),W(">",[z("card-header",` box-sizing: border-box; display: flex; align-items: center; @@ -1340,85 +1324,85 @@ ${t} var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - `,[V("main",` + `,[j("main",` font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); flex: 1; min-width: 0; color: var(--n-title-text-color); - `),V("extra",` + `),j("extra",` display: flex; align-items: center; font-size: var(--n-font-size); font-weight: 400; transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),V("close",` + `),j("close",` margin: 0 0 0 8px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),V("action",` + `)]),j("action",` box-sizing: border-box; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); background-clip: padding-box; background-color: var(--n-action-color); - `),V("content","flex: 1; min-width: 0;"),V("content, footer",` + `),j("content","flex: 1; min-width: 0;"),j("content, footer",` box-sizing: border-box; padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); font-size: var(--n-font-size); - `,[G("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),V("action",` + `,[W("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),j("action",` background-color: var(--n-action-color); padding: var(--n-padding-bottom) var(--n-padding-left); border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `)]),L("card-cover",` + `)]),z("card-cover",` overflow: hidden; width: 100%; border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[G("img",` + `,[W("img",` display: block; width: 100%; - `)]),Z("bordered",` + `)]),J("bordered",` border: 1px solid var(--n-border-color); - `,[G("&:target","border-color: var(--n-color-target);")]),Z("action-segmented",[G(">",[V("action",[G("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("content-segmented, content-soft-segmented",[G(">",[V("content",{transition:"border-color 0.3s var(--n-bezier)"},[G("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("footer-segmented, footer-soft-segmented",[G(">",[V("footer",{transition:"border-color 0.3s var(--n-bezier)"},[G("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("embedded",` + `,[W("&:target","border-color: var(--n-color-target);")]),J("action-segmented",[W(">",[j("action",[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("content-segmented, content-soft-segmented",[W(">",[j("content",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("footer-segmented, footer-soft-segmented",[W(">",[j("footer",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("embedded",` background-color: var(--n-color-embedded); - `)]),ll(L("card",` + `)]),al(z("card",` background: var(--n-color-modal); - `,[Z("embedded",` + `,[J("embedded",` background-color: var(--n-color-embedded-modal); - `)])),Su(L("card",` + `)])),wu(z("card",` background: var(--n-color-popover); - `,[Z("embedded",` + `,[J("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),bm={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},RV=Qr(bm),EV=Object.assign(Object.assign({},Be.props),bm),Co=be({name:"Card",props:EV,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&$e(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:o,mergedRtlRef:r}=lt(e),i=Be("Card","-card",TV,y2,e,o),s=gn("Card",r,o),a=D(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:m,borderColor:g,actionColor:b,borderRadius:w,lineHeight:C,closeIconColor:S,closeIconColorHover:_,closeIconColorPressed:x,closeColorHover:y,closeColorPressed:T,closeBorderRadius:k,closeIconSize:P,closeSize:I,boxShadow:R,colorPopover:W,colorEmbedded:O,colorEmbeddedModal:M,colorEmbeddedPopover:z,[Re("padding",c)]:K,[Re("fontSize",c)]:J,[Re("titleFontSize",c)]:se},common:{cubicBezierEaseInOut:le}}=i.value,{top:F,left:E,bottom:A}=zn(K);return{"--n-bezier":le,"--n-border-radius":w,"--n-color":u,"--n-color-modal":d,"--n-color-popover":W,"--n-color-embedded":O,"--n-color-embedded-modal":M,"--n-color-embedded-popover":z,"--n-color-target":f,"--n-text-color":h,"--n-line-height":C,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":m,"--n-close-icon-color":S,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":x,"--n-close-color-hover":y,"--n-close-color-pressed":T,"--n-border-color":g,"--n-box-shadow":R,"--n-padding-top":F,"--n-padding-bottom":A,"--n-padding-left":E,"--n-font-size":J,"--n-title-font-size":se,"--n-close-size":I,"--n-close-icon-size":P,"--n-close-border-radius":k}}),l=n?Rt("card",D(()=>e.size[0]),a,e):void 0;return{rtlEnabled:s,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:o,rtlEnabled:r,onRender:i,embedded:s,tag:a,$slots:l}=this;return i==null||i(),v(a,{class:[`${o}-card`,this.themeClass,s&&`${o}-card--embedded`,{[`${o}-card--rtl`]:r,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Mt(l.cover,c=>{const u=this.cover?ko([this.cover()]):c;return u&&v("div",{class:`${o}-card-cover`,role:"none"},u)}),Mt(l.header,c=>{const{title:u}=this,d=u?ko(typeof u=="function"?[u()]:[u]):c;return d||this.closable?v("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${o}-card-header__main`,role:"heading"},d),Mt(l["header-extra"],f=>{const h=this.headerExtra?ko([this.headerExtra()]):f;return h&&v("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(Gi,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),Mt(l.default,c=>{const{content:u}=this,d=u?ko(typeof u=="function"?[u()]:[u]):c;return d&&v("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},d)}),Mt(l.footer,c=>{const u=this.footer?ko([this.footer()]):c;return u&&v("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),Mt(l.action,c=>{const u=this.action?ko([this.action()]):c;return u&&v("div",{class:`${o}-card__action`,role:"none"},u)}))}});function C2(){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 $V={name:"Carousel",common:xt,self:C2},AV=$V,IV={name:"Carousel",common:je,self:C2},MV=IV,w2="n-carousel-methods";function OV(e){at(w2,e)}function ym(e="unknown",t="component"){const n=We(w2);return n||hr(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n}function zV(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"})))}function DV(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"})))}const LV=be({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=lt(e),{isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:s}=ym();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:s}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-carousel__arrow-group`},v("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},zV()),v("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},DV()))}}),FV={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},BV=be({name:"CarouselDots",props:FV,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=H([]),o=ym();function r(c,u){switch(c.key){case"Enter":case" ":c.preventDefault(),o.to(u);return}e.keyboard&&a(c)}function i(c){e.trigger==="hover"&&o.to(c)}function s(c){e.trigger==="click"&&o.to(c)}function a(c){var u;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const d=(u=document.activeElement)===null||u===void 0?void 0:u.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=c,h=f==="PageUp"||f==="ArrowUp",p=f==="PageDown"||f==="ArrowDown",m=f==="PageUp"||f==="ArrowRight",g=f==="PageDown"||f==="ArrowLeft",b=o.isVertical(),w=b?h:m,C=b?p:g;!w&&!C||(c.preventDefault(),w&&!o.isNextDisabled()?(o.next(),l(o.currentIndexRef.value)):C&&!o.isPrevDisabled()&&(o.prev(),l(o.currentIndexRef.value)))}function l(c){var u;(u=n.value[c])===null||u===void 0||u.focus()}return Vy(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:r,handleMouseenter:i,handleClick:s}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return v("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},m8(this.total,n=>{const o=n===this.currentIndex;return v("div",{"aria-selected":o,ref:r=>t.push(r),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,o&&`${e}-carousel__dot--active`],key:n,onClick:()=>{this.handleClick(n)},onMouseenter:()=>{this.handleMouseenter(n)},onKeydown:r=>{this.handleKeydown(r,n)}})}))}}),hc="CarouselItem";function NV(e){var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hc}const HV=be({name:hc,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=ym(C0(hc),`n-${C0(hc)}`),o=H(),r=D(()=>{const{value:u}=o;return u?n.getSlideIndex(u):-1}),i=D(()=>n.isPrev(r.value)),s=D(()=>n.isNext(r.value)),a=D(()=>n.isActive(r.value)),l=D(()=>n.getSlideStyle(r.value));Wt(()=>{n.addSlide(o.value)}),rn(()=>{n.removeSlide(o.value)});function c(u){const{value:d}=r;d!==void 0&&(n==null||n.onCarouselItemClick(d,u))}return{mergedClsPrefix:t,selfElRef:o,isPrev:i,isNext:s,isActive:a,index:r,style:l,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:o,isNext:r,isActive:i,index:s,style:a}=this,l=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:o,[`${n}-carousel__slide--next`]:r}];return v("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":s,"aria-hidden":!i,style:a,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:o,isNext:r,isActive:i,index:s}))}}),jV=L("carousel",` + `)]))]),vm={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},SU=Jr(vm),kU=Object.assign(Object.assign({},Le.props),vm),vo=xe({name:"Card",props:kU,setup(e){const t=()=>{const{onClose:c}=e;c&&Re(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:o,mergedRtlRef:r}=st(e),i=Le("Card","-card",_U,bS,e,o),a=pn("Card",r,o),s=I(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:m,actionColor:b,borderRadius:w,lineHeight:C,closeIconColor:_,closeIconColorHover:S,closeIconColorPressed:y,closeColorHover:x,closeColorPressed:P,closeBorderRadius:k,closeIconSize:T,closeSize:R,boxShadow:E,colorPopover:q,colorEmbedded:D,colorEmbeddedModal:B,colorEmbeddedPopover:M,[Te("padding",c)]:K,[Te("fontSize",c)]:V,[Te("titleFontSize",c)]:ae},common:{cubicBezierEaseInOut:pe}}=i.value,{top:Z,left:N,bottom:O}=co(K);return{"--n-bezier":pe,"--n-border-radius":w,"--n-color":u,"--n-color-modal":d,"--n-color-popover":q,"--n-color-embedded":D,"--n-color-embedded-modal":B,"--n-color-embedded-popover":M,"--n-color-target":f,"--n-text-color":h,"--n-line-height":C,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":_,"--n-close-icon-color-hover":S,"--n-close-icon-color-pressed":y,"--n-close-color-hover":x,"--n-close-color-pressed":P,"--n-border-color":m,"--n-box-shadow":E,"--n-padding-top":Z,"--n-padding-bottom":O,"--n-padding-left":N,"--n-font-size":V,"--n-title-font-size":ae,"--n-close-size":R,"--n-close-icon-size":T,"--n-close-border-radius":k}}),l=n?Pt("card",I(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:o,rtlEnabled:r,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),v(s,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:r,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:n}],style:this.cssVars,role:this.role},At(l.cover,c=>{const u=this.cover?So([this.cover()]):c;return u&&v("div",{class:`${o}-card-cover`,role:"none"},u)}),At(l.header,c=>{const{title:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d||this.closable?v("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${o}-card-header__main`,role:"heading"},d),At(l["header-extra"],f=>{const h=this.headerExtra?So([this.headerExtra()]):f;return h&&v("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(qi,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),At(l.default,c=>{const{content:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d&&v("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},d)}),At(l.footer,c=>{const u=this.footer?So([this.footer()]):c;return u&&v("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),At(l.action,c=>{const u=this.action?So([this.action()]):c;return u&&v("div",{class:`${o}-card__action`,role:"none"},u)}))}});function xS(){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 PU={name:"Carousel",common:xt,self:xS},TU=PU,EU={name:"Carousel",common:He,self:xS},RU=EU;function AU(e){const{length:t}=e;return t>1&&(e.push(X0(e[0],0,"append")),e.unshift(X0(e[t-1],t-1,"prepend"))),e}function X0(e,t,n){return fo(e,{key:`carousel-item-duplicate-${t}-${n}`})}function Y0(e,t,n){return t===1?0:n?e===0?t-3:e===t-1?0:e-1:e}function Zd(e,t){return t?e+1:e}function $U(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function IU(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function OU(e,t){return t&&e>3?e-2:e}function Q0(e){return window.TouchEvent&&e instanceof window.TouchEvent}function J0(e,t){let{offsetWidth:n,offsetHeight:o}=e;if(t){const r=getComputedStyle(e);n=n-Number.parseFloat(r.getPropertyValue("padding-left"))-Number.parseFloat(r.getPropertyValue("padding-right")),o=o-Number.parseFloat(r.getPropertyValue("padding-top"))-Number.parseFloat(r.getPropertyValue("padding-bottom"))}return{width:n,height:o}}function jl(e,t,n){return en?n:e}function MU(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,o,,r="ms"]=n;return Number(o)*(r==="ms"?1:1e3)}return 0}const CS="n-carousel-methods";function zU(e){at(CS,e)}function bm(e="unknown",t="component"){const n=Ve(CS);return n||hr(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n}const FU={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},DU=xe({name:"CarouselDots",props:FU,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o=bm();function r(c,u){switch(c.key){case"Enter":case" ":c.preventDefault(),o.to(u);return}e.keyboard&&s(c)}function i(c){e.trigger==="hover"&&o.to(c)}function a(c){e.trigger==="click"&&o.to(c)}function s(c){var u;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const d=(u=document.activeElement)===null||u===void 0?void 0:u.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=c,h=f==="PageUp"||f==="ArrowUp",p=f==="PageDown"||f==="ArrowDown",g=f==="PageUp"||f==="ArrowRight",m=f==="PageDown"||f==="ArrowLeft",b=o.isVertical(),w=b?h:g,C=b?p:m;!w&&!C||(c.preventDefault(),w&&!o.isNextDisabled()?(o.next(),l(o.currentIndexRef.value)):C&&!o.isPrevDisabled()&&(o.prev(),l(o.currentIndexRef.value)))}function l(c){var u;(u=n.value[c])===null||u===void 0||u.focus()}return jy(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:r,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return v("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},UI(this.total,n=>{const o=n===this.currentIndex;return v("div",{"aria-selected":o,ref:r=>t.push(r),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,o&&`${e}-carousel__dot--active`],key:n,onClick:()=>{this.handleClick(n)},onMouseenter:()=>{this.handleMouseenter(n)},onKeydown:r=>{this.handleKeydown(r,n)}})}))}}),LU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),BU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),NU=xe({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=st(e),{isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}=bm();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-carousel__arrow-group`},v("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},LU),v("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},BU))}}),dc="CarouselItem";function HU(e){var t;return((t=e.type)===null||t===void 0?void 0:t.name)===dc}const jU=xe({name:dc,setup(e){const{mergedClsPrefixRef:t}=st(e),n=bm(m0(dc),`n-${m0(dc)}`),o=U(),r=I(()=>{const{value:u}=o;return u?n.getSlideIndex(u):-1}),i=I(()=>n.isPrev(r.value)),a=I(()=>n.isNext(r.value)),s=I(()=>n.isActive(r.value)),l=I(()=>n.getSlideStyle(r.value));jt(()=>{n.addSlide(o.value)}),on(()=>{n.removeSlide(o.value)});function c(u){const{value:d}=r;d!==void 0&&(n==null||n.onCarouselItemClick(d,u))}return{mergedClsPrefix:t,selfElRef:o,isPrev:i,isNext:a,isActive:s,index:r,style:l,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:o,isNext:r,isActive:i,index:a,style:s}=this,l=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:o,[`${n}-carousel__slide--next`]:r}];return v("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:s,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:o,isNext:r,isActive:i,index:a}))}}),UU=z("carousel",` position: relative; width: 100%; height: 100%; touch-action: pan-y; overflow: hidden; -`,[V("slides",` +`,[j("slides",` display: flex; width: 100%; height: 100%; transition-timing-function: var(--n-bezier); transition-property: transform; - `,[V("slide",` + `,[j("slide",` flex-shrink: 0; position: relative; width: 100%; height: 100%; outline: none; overflow: hidden; - `,[G("> img",` + `,[W("> img",` display: block; - `)])]),V("dots",` + `)])]),j("dots",` position: absolute; display: flex; flex-wrap: nowrap; - `,[Z("dot",[V("dot",` + `,[J("dot",[j("dot",` height: var(--n-dot-size); width: var(--n-dot-size); background-color: var(--n-dot-color); @@ -1428,11 +1412,11 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[G("&:focus",` + `,[W("&:focus",` background-color: var(--n-dot-color-focus); - `),Z("active",` + `),J("active",` background-color: var(--n-dot-color-active); - `)])]),Z("line",[V("dot",` + `)])]),J("line",[j("dot",` border-radius: 9999px; width: var(--n-dot-line-width); height: 4px; @@ -1443,12 +1427,12 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[G("&:focus",` + `,[W("&:focus",` background-color: var(--n-dot-color-focus); - `),Z("active",` + `),J("active",` width: var(--n-dot-line-width-active); background-color: var(--n-dot-color-active); - `)])])]),V("arrow",` + `)])])]),j("arrow",` transition: background-color .3s var(--n-bezier); cursor: pointer; height: 28px; @@ -1462,42 +1446,42 @@ ${t} user-select: none; -webkit-user-select: none; font-size: 18px; - `,[G("svg",` + `,[W("svg",` height: 1em; width: 1em; - `),G("&:hover",` + `),W("&:hover",` background-color: rgba(255, 255, 255, .3); - `)]),Z("vertical",` + `)]),J("vertical",` touch-action: pan-x; - `,[V("slides",` + `,[j("slides",` flex-direction: column; - `),Z("fade",[V("slide",` + `),J("fade",[j("slide",` top: 50%; left: unset; transform: translateY(-50%); - `)]),Z("card",[V("slide",` + `)]),J("card",[j("slide",` top: 50%; left: unset; transform: translateY(-50%) translateZ(-400px); - `,[Z("current",` + `,[J("current",` transform: translateY(-50%) translateZ(0); - `),Z("prev",` + `),J("prev",` transform: translateY(-100%) translateZ(-200px); - `),Z("next",` + `),J("next",` transform: translateY(0%) translateZ(-200px); - `)])])]),Z("usercontrol",[V("slides",[G(">",[G("div",` + `)])])]),J("usercontrol",[j("slides",[W(">",[W("div",` position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); - `)])])]),Z("left",[V("dots",` + `)])])]),J("left",[j("dots",` transform: translateY(-50%); top: 50%; left: 12px; flex-direction: column; - `,[Z("line",[V("dot",` + `,[J("line",[j("dot",` width: 4px; height: var(--n-dot-line-width); margin: 4px 0; @@ -1506,44 +1490,44 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[Z("active",` + `,[J("active",` height: var(--n-dot-line-width-active); - `)])])]),V("dot",` + `)])])]),j("dot",` margin: 4px 0; - `)]),V("arrow-group",` + `)]),j("arrow-group",` position: absolute; display: flex; flex-wrap: nowrap; - `),Z("vertical",[V("arrow",` + `),J("vertical",[j("arrow",` transform: rotate(90deg); - `)]),Z("show-arrow",[Z("bottom",[V("dots",` + `)]),J("show-arrow",[J("bottom",[j("dots",` transform: translateX(0); bottom: 18px; left: 18px; - `)]),Z("top",[V("dots",` + `)]),J("top",[j("dots",` transform: translateX(0); top: 18px; left: 18px; - `)]),Z("left",[V("dots",` + `)]),J("left",[j("dots",` transform: translateX(0); top: 18px; left: 18px; - `)]),Z("right",[V("dots",` + `)]),J("right",[j("dots",` transform: translateX(0); top: 18px; right: 18px; - `)])]),Z("left",[V("arrow-group",` + `)])]),J("left",[j("arrow-group",` bottom: 12px; left: 12px; flex-direction: column; - `,[G("> *:first-child",` + `,[W("> *:first-child",` margin-bottom: 12px; - `)])]),Z("right",[V("dots",` + `)])]),J("right",[j("dots",` transform: translateY(-50%); top: 50%; right: 12px; flex-direction: column; - `,[Z("line",[V("dot",` + `,[J("line",[j("dot",` width: 4px; height: var(--n-dot-line-width); margin: 4px 0; @@ -1552,69 +1536,69 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[Z("active",` + `,[J("active",` height: var(--n-dot-line-width-active); - `)])])]),V("dot",` + `)])])]),j("dot",` margin: 4px 0; - `),V("arrow-group",` + `),j("arrow-group",` bottom: 12px; right: 12px; flex-direction: column; - `,[G("> *:first-child",` + `,[W("> *:first-child",` margin-bottom: 12px; - `)])]),Z("top",[V("dots",` + `)])]),J("top",[j("dots",` transform: translateX(-50%); top: 12px; left: 50%; - `,[Z("line",[V("dot",` + `,[J("line",[j("dot",` margin: 0 4px; - `)])]),V("dot",` + `)])]),j("dot",` margin: 0 4px; - `),V("arrow-group",` + `),j("arrow-group",` top: 12px; right: 12px; - `,[G("> *:first-child",` + `,[W("> *:first-child",` margin-right: 12px; - `)])]),Z("bottom",[V("dots",` + `)])]),J("bottom",[j("dots",` transform: translateX(-50%); bottom: 12px; left: 50%; - `,[Z("line",[V("dot",` + `,[J("line",[j("dot",` margin: 0 4px; - `)])]),V("dot",` + `)])]),j("dot",` margin: 0 4px; - `),V("arrow-group",` + `),j("arrow-group",` bottom: 12px; right: 12px; - `,[G("> *:first-child",` + `,[W("> *:first-child",` margin-right: 12px; - `)])]),Z("fade",[V("slide",` + `)])]),J("fade",[j("slide",` position: absolute; opacity: 0; transition-property: opacity; pointer-events: none; - `,[Z("current",` + `,[J("current",` opacity: 1; pointer-events: auto; - `)])]),Z("card",[V("slides",` + `)])]),J("card",[j("slides",` perspective: 1000px; - `),V("slide",` + `),j("slide",` position: absolute; left: 50%; opacity: 0; transform: translateX(-50%) translateZ(-400px); transition-property: opacity, transform; - `,[Z("current",` + `,[J("current",` opacity: 1; transform: translateX(-50%) translateZ(0); z-index: 1; - `),Z("prev",` + `),J("prev",` opacity: 0.4; transform: translateX(-100%) translateZ(-200px); - `),Z("next",` + `),J("next",` opacity: 0.4; transform: translateX(0%) translateZ(-200px); - `)])])]);function VV(e){const{length:t}=e;return t>1&&(e.push(J0(e[0],0,"append")),e.unshift(J0(e[t-1],t-1,"prepend"))),e}function J0(e,t,n){return mo(e,{key:`carousel-item-duplicate-${t}-${n}`})}function Q0(e,t,n){return t===1?0:n?e===0?t-3:e===t-1?0:e-1:e}function Qd(e,t){return t?e+1:e}function WV(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function UV(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function qV(e,t){return t&&e>3?e-2:e}function e1(e){return window.TouchEvent&&e instanceof window.TouchEvent}function t1(e,t){let{offsetWidth:n,offsetHeight:o}=e;if(t){const r=getComputedStyle(e);n=n-Number.parseFloat(r.getPropertyValue("padding-left"))-Number.parseFloat(r.getPropertyValue("padding-right")),o=o-Number.parseFloat(r.getPropertyValue("padding-top"))-Number.parseFloat(r.getPropertyValue("padding-bottom"))}return{width:n,height:o}}function Vl(e,t,n){return en?n:e}function KV(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,o,,r="ms"]=n;return Number(o)*(r==="ms"?1:1e3)}return 0}const GV=["transitionDuration","transitionTimingFunction"],YV=Object.assign(Object.assign({},Be.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let ef=!1;const XV=be({name:"Carousel",props:YV,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=H(null),r=H(null),i=H([]),s={value:[]},a=D(()=>e.direction==="vertical"),l=D(()=>a.value?"height":"width"),c=D(()=>a.value?"bottom":"right"),u=D(()=>e.effect==="slide"),d=D(()=>e.loop&&e.slidesPerView===1&&u.value),f=D(()=>e.effect==="custom"),h=D(()=>!u.value||e.centeredSlides?1:e.slidesPerView),p=D(()=>f.value?1:e.slidesPerView),m=D(()=>h.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),g=H({width:0,height:0}),b=H(0),w=D(()=>{const{value:Te}=i;if(!Te.length)return[];b.value;const{value:Ue}=m;if(Ue)return Te.map(qe=>t1(qe));const{value:et}=p,{value:ft}=g,{value:ht}=l;let oe=ft[ht];if(et!=="auto"){const{spaceBetween:qe}=e,ct=oe-(et-1)*qe,At=1/Math.max(1,et);oe=ct*At}const ke=Object.assign(Object.assign({},ft),{[ht]:oe});return Te.map(()=>ke)}),C=D(()=>{const{value:Te}=w;if(!Te.length)return[];const{centeredSlides:Ue,spaceBetween:et}=e,{value:ft}=l,{[ft]:ht}=g.value;let oe=0;return Te.map(({[ft]:ke})=>{let qe=oe;return Ue&&(qe+=(ke-ht)/2),oe+=ke+et,qe})}),S=H(!1),_=D(()=>{const{transitionStyle:Te}=e;return Te?oo(Te,GV):{}}),x=D(()=>f.value?0:KV(_.value.transitionDuration)),y=D(()=>{const{value:Te}=i;if(!Te.length)return[];const Ue=!(m.value||p.value===1),et=ke=>{if(Ue){const{value:qe}=l;return{[qe]:`${w.value[ke][qe]}px`}}};if(f.value)return Te.map((ke,qe)=>et(qe));const{effect:ft,spaceBetween:ht}=e,{value:oe}=c;return Te.reduce((ke,qe,ct)=>{const At=Object.assign(Object.assign({},et(ct)),{[`margin-${oe}`]:`${ht}px`});return ke.push(At),S.value&&(ft==="fade"||ft==="card")&&Object.assign(At,_.value),ke},[])}),T=D(()=>{const{value:Te}=h,{length:Ue}=i.value;if(Te!=="auto")return Math.max(Ue-Te,0)+1;{const{value:et}=w,{length:ft}=et;if(!ft)return Ue;const{value:ht}=C,{value:oe}=l,ke=g.value[oe];let qe=et[et.length-1][oe],ct=ft;for(;ct>1&&qeqV(T.value,d.value)),P=Qd(e.defaultIndex,d.value),I=H(Q0(P,T.value,d.value)),R=ln(ze(e,"currentIndex"),I),W=D(()=>Qd(R.value,d.value));function O(Te){var Ue,et;Te=Vl(Te,0,T.value-1);const ft=Q0(Te,T.value,d.value),{value:ht}=R;ft!==R.value&&(I.value=ft,(Ue=e["onUpdate:currentIndex"])===null||Ue===void 0||Ue.call(e,ft,ht),(et=e.onUpdateCurrentIndex)===null||et===void 0||et.call(e,ft,ht))}function M(Te=W.value){return WV(Te,T.value,e.loop)}function z(Te=W.value){return UV(Te,T.value,e.loop)}function K(Te){const Ue=$(Te);return Ue!==null&&M()===Ue}function J(Te){const Ue=$(Te);return Ue!==null&&z()===Ue}function se(Te){return W.value===$(Te)}function le(Te){return R.value===Te}function F(){return M()===null}function E(){return z()===null}let A=0;function Y(Te){const Ue=Vl(Qd(Te,d.value),0,T.value);(Te!==R.value||Ue!==W.value)&&O(Ue)}function ne(){const Te=M();Te!==null&&(A=-1,O(Te))}function fe(){const Te=z();Te!==null&&(A=1,O(Te))}let Q=!1;function Ce(){(!Q||!d.value)&&ne()}function j(){(!Q||!d.value)&&fe()}let ye=0;const Ie=H({});function Le(Te,Ue=0){Ie.value=Object.assign({},_.value,{transform:a.value?`translateY(${-Te}px)`:`translateX(${-Te}px)`,transitionDuration:`${Ue}ms`})}function U(Te=0){u.value?B(W.value,Te):ye!==0&&(!Q&&Te>0&&(Q=!0),Le(ye=0,Te))}function B(Te,Ue){const et=ae(Te);et!==ye&&Ue>0&&(Q=!0),ye=ae(W.value),Le(et,Ue)}function ae(Te){let Ue;return Te>=T.value-1?Ue=Se():Ue=C.value[Te]||0,Ue}function Se(){if(h.value==="auto"){const{value:Te}=l,{[Te]:Ue}=g.value,{value:et}=C,ft=et[et.length-1];let ht;if(ft===void 0)ht=Ue;else{const{value:oe}=w;ht=ft+oe[oe.length-1][Te]}return ht-Ue}else{const{value:Te}=C;return Te[T.value-1]||0}}const te={currentIndexRef:R,to:Y,prev:Ce,next:j,isVertical:()=>a.value,isHorizontal:()=>!a.value,isPrev:K,isNext:J,isActive:se,isPrevDisabled:F,isNextDisabled:E,getSlideIndex:$,getSlideStyle:N,addSlide:xe,removeSlide:ve,onCarouselItemClick:Ne};OV(te);function xe(Te){Te&&i.value.push(Te)}function ve(Te){if(!Te)return;const Ue=$(Te);Ue!==-1&&i.value.splice(Ue,1)}function $(Te){return typeof Te=="number"?Te:Te?i.value.indexOf(Te):-1}function N(Te){const Ue=$(Te);if(Ue!==-1){const et=[y.value[Ue]],ft=te.isPrev(Ue),ht=te.isNext(Ue);return ft&&et.push(e.prevSlideStyle||""),ht&&et.push(e.nextSlideStyle||""),Li(et)}}let ee=0,we=0,de=0,he=0,re=!1,me=!1;function Ne(Te,Ue){let et=!Q&&!re&&!me;e.effect==="card"&&et&&!se(Te)&&(Y(Te),et=!1),et||(Ue.preventDefault(),Ue.stopPropagation())}let He=null;function De(){He&&(clearInterval(He),He=null)}function ot(){De(),!e.autoplay||k.value<2||(He=window.setInterval(fe,e.interval))}function nt(Te){var Ue;if(ef||!(!((Ue=r.value)===null||Ue===void 0)&&Ue.contains(Ai(Te))))return;ef=!0,re=!0,me=!1,he=Date.now(),De(),Te.type!=="touchstart"&&!Te.target.isContentEditable&&Te.preventDefault();const et=e1(Te)?Te.touches[0]:Te;a.value?we=et.clientY:ee=et.clientX,e.touchable&&(St("touchmove",document,Ge),St("touchend",document,Me),St("touchcancel",document,Me)),e.draggable&&(St("mousemove",document,Ge),St("mouseup",document,Me))}function Ge(Te){const{value:Ue}=a,{value:et}=l,ft=e1(Te)?Te.touches[0]:Te,ht=Ue?ft.clientY-we:ft.clientX-ee,oe=g.value[et];de=Vl(ht,-oe,oe),Te.cancelable&&Te.preventDefault(),u.value&&Le(ye-de,0)}function Me(){const{value:Te}=W;let Ue=Te;if(!Q&&de!==0&&u.value){const et=ye-de,ft=[...C.value.slice(0,T.value-1),Se()];let ht=null;for(let oe=0;oeht/2||de/et>.4?ne():(de<-ht/2||de/et<-.4)&&fe()}Ue!==null&&Ue!==Te?(me=!0,O(Ue),Vt(()=>{(!d.value||I.value!==R.value)&&U(x.value)})):U(x.value),tt(),ot()}function tt(){re&&(ef=!1),re=!1,ee=0,we=0,de=0,he=0,Tt("touchmove",document,Ge),Tt("touchend",document,Me),Tt("touchcancel",document,Me),Tt("mousemove",document,Ge),Tt("mouseup",document,Me)}function X(){if(u.value&&Q){const{value:Te}=W;B(Te,0)}else ot();u.value&&(Ie.value.transitionDuration="0ms"),Q=!1}function ce(Te){if(Te.preventDefault(),Q)return;let{deltaX:Ue,deltaY:et}=Te;Te.shiftKey&&!Ue&&(Ue=et);const ft=-1,ht=1,oe=(Ue||et)>0?ht:ft;let ke=0,qe=0;a.value?qe=oe:ke=oe;const ct=10;(qe*et>=ct||ke*Ue>=ct)&&(oe===ht&&!E()?fe():oe===ft&&!F()&&ne())}function Ee(){g.value=t1(o.value,!0),ot()}function Fe(){m.value&&b.value++}function Ve(){e.autoplay&&De()}function Xe(){e.autoplay&&ot()}Wt(()=>{Jt(ot),requestAnimationFrame(()=>S.value=!0)}),rn(()=>{tt(),De()}),ap(()=>{const{value:Te}=i,{value:Ue}=s,et=new Map,ft=oe=>et.has(oe)?et.get(oe):-1;let ht=!1;for(let oe=0;oeqe.el===Te[oe]);ke!==oe&&(ht=!0),et.set(Te[oe],ke)}ht&&Te.sort((oe,ke)=>ft(oe)-ft(ke))}),dt(W,(Te,Ue)=>{if(Te===Ue){A=0;return}if(ot(),u.value){if(d.value){const{value:et}=T;A===-1&&Ue===1&&Te===et-2?Te=0:A===1&&Ue===et-2&&Te===1&&(Te=et-1)}B(Te,x.value)}else U();A=0},{immediate:!0}),dt([d,h],()=>void Vt(()=>{O(W.value)})),dt(C,()=>{u.value&&U()},{deep:!0}),dt(u,Te=>{Te?U():(Q=!1,Le(ye=0))});const Qe=D(()=>({onTouchstartPassive:e.touchable?nt:void 0,onMousedown:e.draggable?nt:void 0,onWheel:e.mousewheel?ce:void 0})),rt=D(()=>Object.assign(Object.assign({},oo(te,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:k.value,currentIndex:R.value})),wt=D(()=>({total:k.value,currentIndex:R.value,to:te.to})),Ft={getCurrentIndex:()=>R.value,to:Y,prev:ne,next:fe},Et=Be("Carousel","-carousel",jV,AV,e,t),yn=D(()=>{const{common:{cubicBezierEaseInOut:Te},self:{dotSize:Ue,dotColor:et,dotColorActive:ft,dotColorFocus:ht,dotLineWidth:oe,dotLineWidthActive:ke,arrowColor:qe}}=Et.value;return{"--n-bezier":Te,"--n-dot-color":et,"--n-dot-color-focus":ht,"--n-dot-color-active":ft,"--n-dot-size":Ue,"--n-dot-line-width":oe,"--n-dot-line-width-active":ke,"--n-arrow-color":qe}}),cn=n?Rt("carousel",void 0,yn,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:o,slidesElRef:r,slideVNodes:s,duplicatedable:d,userWantsControl:f,autoSlideSize:m,realIndex:W,slideStyles:y,translateStyle:Ie,slidesControlListeners:Qe,handleTransitionEnd:X,handleResize:Ee,handleSlideResize:Fe,handleMouseenter:Ve,handleMouseleave:Xe,isActive:le,arrowSlotProps:rt,dotSlotProps:wt},Ft),{cssVars:n?void 0:yn,themeClass:cn==null?void 0:cn.themeClass,onRender:cn==null?void 0:cn.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:o,slideStyles:r,dotType:i,dotPlacement:s,slidesControlListeners:a,transitionProps:l={},arrowSlotProps:c,dotSlotProps:u,$slots:{default:d,dots:f,arrow:h}}=this,p=d&&Ii(d())||[];let m=ZV(p);return m.length||(m=p.map(g=>v(HV,null,{default:()=>mo(g)}))),this.duplicatedable&&(m=VV(m)),this.slideVNodes.value=m,this.autoSlideSize&&(m=m.map(g=>v(cr,{onResize:this.handleSlideResize},{default:()=>g}))),(e=this.onRender)===null||e===void 0||e.call(this),v("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${s}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,o&&`${t}-carousel--usercontrol`],style:this.cssVars},a,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),v(cr,{onResize:this.handleResize},{default:()=>v("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},o?m.map((g,b)=>v("div",{style:r[b],key:b},hn(v(pn,Object.assign({},l),{default:()=>g}),[[Nn,this.isActive(b)]]))):m)}),this.showDots&&u.total>1&&Ch(f,u,()=>[v(BV,{key:i+s,total:u.total,currentIndex:u.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Ch(h,c,()=>[v(LV,null)]))}});function ZV(e){return e.reduce((t,n)=>(NV(n)&&t.push(n),t),[])}const JV={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function _2(e){const{baseColor:t,inputColorDisabled:n,cardColor:o,modalColor:r,popoverColor:i,textColorDisabled:s,borderColor:a,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},JV),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Ae(l,{alpha:.3})}`,textColor:c,textColorDisabled:s})}const QV={name:"Checkbox",common:xt,self:_2},S2=QV,eW={name:"Checkbox",common:je,self(e){const{cardColor:t}=e,n=_2(e);return n.color="#0000",n.checkMarkColor=t,n}},Ys=eW;function tW(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r,textColor3:i,primaryColor:s,textColorDisabled:a,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:n,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:r,optionTextColorActive:s,optionTextColorDisabled:a,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}}const nW={name:"Cascader",common:je,peers:{InternalSelectMenu:hl,InternalSelection:pm,Scrollbar:qn,Checkbox:Ys,Empty:Mu},self:tW},oW=nW,k2="n-checkbox-group",rW={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},iW=be({name:"CheckboxGroup",props:rW,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=pr(e),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=H(e.defaultValue),s=D(()=>e.value),a=ln(s,i),l=D(()=>{var d;return((d=a.value)===null||d===void 0?void 0:d.length)||0}),c=D(()=>Array.isArray(a.value)?new Set(a.value):new Set);function u(d,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=n,{onChange:m,"onUpdate:value":g,onUpdateValue:b}=e;if(Array.isArray(a.value)){const w=Array.from(a.value),C=w.findIndex(S=>S===f);d?~C||(w.push(f),b&&$e(b,w,{actionType:"check",value:f}),g&&$e(g,w,{actionType:"check",value:f}),h(),p(),i.value=w,m&&$e(m,w)):~C&&(w.splice(C,1),b&&$e(b,w,{actionType:"uncheck",value:f}),g&&$e(g,w,{actionType:"uncheck",value:f}),m&&$e(m,w),i.value=w,h(),p())}else d?(b&&$e(b,[f],{actionType:"check",value:f}),g&&$e(g,[f],{actionType:"check",value:f}),m&&$e(m,[f]),i.value=[f],h(),p()):(b&&$e(b,[],{actionType:"uncheck",value:f}),g&&$e(g,[],{actionType:"uncheck",value:f}),m&&$e(m,[]),i.value=[],h(),p())}return at(k2,{checkedCountRef:l,maxRef:ze(e,"max"),minRef:ze(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:o,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),sW=()=>v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),aW=()=>v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),lW=G([L("checkbox",` + `)])])]),VU=["transitionDuration","transitionTimingFunction"],WU=Object.assign(Object.assign({},Le.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let ef=!1;const qU=xe({name:"Carousel",props:WU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=U(null),r=U(null),i=U([]),a={value:[]},s=I(()=>e.direction==="vertical"),l=I(()=>s.value?"height":"width"),c=I(()=>s.value?"bottom":"right"),u=I(()=>e.effect==="slide"),d=I(()=>e.loop&&e.slidesPerView===1&&u.value),f=I(()=>e.effect==="custom"),h=I(()=>!u.value||e.centeredSlides?1:e.slidesPerView),p=I(()=>f.value?1:e.slidesPerView),g=I(()=>h.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=U({width:0,height:0}),b=I(()=>{const{value:_e}=i;if(!_e.length)return[];const{value:Be}=g;if(Be)return _e.map(le=>J0(le));const{value:Ze}=p,{value:ht}=m,{value:bt}=l;let ut=ht[bt];if(Ze!=="auto"){const{spaceBetween:le}=e,Ee=ut-(Ze-1)*le,ot=1/Math.max(1,Ze);ut=Ee*ot}const Rt=Object.assign(Object.assign({},ht),{[bt]:ut});return _e.map(()=>Rt)}),w=I(()=>{const{value:_e}=b;if(!_e.length)return[];const{centeredSlides:Be,spaceBetween:Ze}=e,{value:ht}=l,{[ht]:bt}=m.value;let ut=0;return _e.map(({[ht]:Rt})=>{let le=ut;return Be&&(le+=(Rt-bt)/2),ut+=Rt+Ze,le})}),C=U(!1),_=I(()=>{const{transitionStyle:_e}=e;return _e?eo(_e,VU):{}}),S=I(()=>f.value?0:MU(_.value.transitionDuration)),y=I(()=>{const{value:_e}=i;if(!_e.length)return[];const Be=!(g.value||p.value===1),Ze=Rt=>{if(Be){const{value:le}=l;return{[le]:`${b.value[Rt][le]}px`}}};if(f.value)return _e.map((Rt,le)=>Ze(le));const{effect:ht,spaceBetween:bt}=e,{value:ut}=c;return _e.reduce((Rt,le,Ee)=>{const ot=Object.assign(Object.assign({},Ze(Ee)),{[`margin-${ut}`]:`${bt}px`});return Rt.push(ot),C.value&&(ht==="fade"||ht==="card")&&Object.assign(ot,_.value),Rt},[])}),x=I(()=>{const{value:_e}=h,{length:Be}=i.value;if(_e!=="auto")return Math.max(Be-_e,0)+1;{const{value:Ze}=b,{length:ht}=Ze;if(!ht)return Be;const{value:bt}=w,{value:ut}=l,Rt=m.value[ut];let le=Ze[Ze.length-1][ut],Ee=ht;for(;Ee>1&&leOU(x.value,d.value)),k=Zd(e.defaultIndex,d.value),T=U(Y0(k,x.value,d.value)),R=rn(Ue(e,"currentIndex"),T),E=I(()=>Zd(R.value,d.value));function q(_e){var Be,Ze;_e=jl(_e,0,x.value-1);const ht=Y0(_e,x.value,d.value),{value:bt}=R;ht!==R.value&&(T.value=ht,(Be=e["onUpdate:currentIndex"])===null||Be===void 0||Be.call(e,ht,bt),(Ze=e.onUpdateCurrentIndex)===null||Ze===void 0||Ze.call(e,ht,bt))}function D(_e=E.value){return $U(_e,x.value,e.loop)}function B(_e=E.value){return IU(_e,x.value,e.loop)}function M(_e){const Be=ve(_e);return Be!==null&&D()===Be}function K(_e){const Be=ve(_e);return Be!==null&&B()===Be}function V(_e){return E.value===ve(_e)}function ae(_e){return R.value===_e}function pe(){return D()===null}function Z(){return B()===null}function N(_e){const Be=jl(Zd(_e,d.value),0,x.value);(_e!==R.value||Be!==E.value)&&q(Be)}function O(){const _e=D();_e!==null&&q(_e)}function ee(){const _e=B();_e!==null&&q(_e)}let G=!1;function ne(){(!G||!d.value)&&O()}function X(){(!G||!d.value)&&ee()}let ce=0;const L=U({});function be(_e,Be=0){L.value=Object.assign({},_.value,{transform:s.value?`translateY(${-_e}px)`:`translateX(${-_e}px)`,transitionDuration:`${Be}ms`})}function Oe(_e=0){u.value?je(E.value,_e):ce!==0&&(!G&&_e>0&&(G=!0),be(ce=0,_e))}function je(_e,Be){const Ze=F(_e);Ze!==ce&&Be>0&&(G=!0),ce=F(E.value),be(Ze,Be)}function F(_e){let Be;return _e>=x.value-1?Be=A():Be=w.value[_e]||0,Be}function A(){if(h.value==="auto"){const{value:_e}=l,{[_e]:Be}=m.value,{value:Ze}=w,ht=Ze[Ze.length-1];let bt;if(ht===void 0)bt=Be;else{const{value:ut}=b;bt=ht+ut[ut.length-1][_e]}return bt-Be}else{const{value:_e}=w;return _e[x.value-1]||0}}const re={currentIndexRef:R,to:N,prev:ne,next:X,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:M,isNext:K,isActive:V,isPrevDisabled:pe,isNextDisabled:Z,getSlideIndex:ve,getSlideStyle:ke,addSlide:we,removeSlide:oe,onCarouselItemClick:ie};zU(re);function we(_e){_e&&i.value.push(_e)}function oe(_e){if(!_e)return;const Be=ve(_e);Be!==-1&&i.value.splice(Be,1)}function ve(_e){return typeof _e=="number"?_e:_e?i.value.indexOf(_e):-1}function ke(_e){const Be=ve(_e);if(Be!==-1){const Ze=[y.value[Be]],ht=re.isPrev(Be),bt=re.isNext(Be);return ht&&Ze.push(e.prevSlideStyle||""),bt&&Ze.push(e.nextSlideStyle||""),Fi(Ze)}}let $=0,H=0,te=0,Ce=0,de=!1,ue=!1;function ie(_e,Be){let Ze=!G&&!de&&!ue;e.effect==="card"&&Ze&&!V(_e)&&(N(_e),Ze=!1),Ze||(Be.preventDefault(),Be.stopPropagation())}let fe=null;function Fe(){fe&&(clearInterval(fe),fe=null)}function De(){Fe(),!e.autoplay||P.value<2||(fe=window.setInterval(ee,e.interval))}function Me(_e){var Be;if(ef||!(!((Be=r.value)===null||Be===void 0)&&Be.contains($i(_e))))return;ef=!0,de=!0,ue=!1,Ce=Date.now(),Fe(),_e.type!=="touchstart"&&!_e.target.isContentEditable&&_e.preventDefault();const Ze=Q0(_e)?_e.touches[0]:_e;s.value?H=Ze.clientY:$=Ze.clientX,e.touchable&&($t("touchmove",document,Ne),$t("touchend",document,et),$t("touchcancel",document,et)),e.draggable&&($t("mousemove",document,Ne),$t("mouseup",document,et))}function Ne(_e){const{value:Be}=s,{value:Ze}=l,ht=Q0(_e)?_e.touches[0]:_e,bt=Be?ht.clientY-H:ht.clientX-$,ut=m.value[Ze];te=jl(bt,-ut,ut),_e.cancelable&&_e.preventDefault(),u.value&&be(ce-te,0)}function et(){const{value:_e}=E;let Be=_e;if(!G&&te!==0&&u.value){const Ze=ce-te,ht=[...w.value.slice(0,x.value-1),A()];let bt=null;for(let ut=0;utbt/2||te/Ze>.4?Be=D(_e):(te<-bt/2||te/Ze<-.4)&&(Be=B(_e))}Be!==null&&Be!==_e?(ue=!0,q(Be),Ht(()=>{(!d.value||T.value!==R.value)&&Oe(S.value)})):Oe(S.value),$e(),De()}function $e(){de&&(ef=!1),de=!1,$=0,H=0,te=0,Ce=0,Tt("touchmove",document,Ne),Tt("touchend",document,et),Tt("touchcancel",document,et),Tt("mousemove",document,Ne),Tt("mouseup",document,et)}function Xe(){if(u.value&&G){const{value:_e}=E;je(_e,0)}else De();u.value&&(L.value.transitionDuration="0ms"),G=!1}function gt(_e){if(_e.preventDefault(),G)return;let{deltaX:Be,deltaY:Ze}=_e;_e.shiftKey&&!Be&&(Be=Ze);const ht=-1,bt=1,ut=(Be||Ze)>0?bt:ht;let Rt=0,le=0;s.value?le=ut:Rt=ut;const Ee=10;(le*Ze>=Ee||Rt*Be>=Ee)&&(ut===bt&&!Z()?ee():ut===ht&&!pe()&&O())}function Q(){m.value=J0(o.value,!0),De()}function ye(){var _e,Be;g.value&&((Be=(_e=b.effect).scheduler)===null||Be===void 0||Be.call(_e),b.effect.run())}function Ae(){e.autoplay&&Fe()}function qe(){e.autoplay&&De()}jt(()=>{Yt(De),requestAnimationFrame(()=>C.value=!0)}),on(()=>{$e(),Fe()}),lp(()=>{const{value:_e}=i,{value:Be}=a,Ze=new Map,ht=ut=>Ze.has(ut)?Ze.get(ut):-1;let bt=!1;for(let ut=0;ut<_e.length;ut++){const Rt=Be.findIndex(le=>le.el===_e[ut]);Rt!==ut&&(bt=!0),Ze.set(_e[ut],Rt)}bt&&_e.sort((ut,Rt)=>ht(ut)-ht(Rt))}),ft(E,(_e,Be)=>{if(_e!==Be)if(De(),u.value){if(d.value){const{value:Ze}=x;P.value>2&&_e===Ze-2&&Be===1?_e=0:_e===1&&Be===Ze-2&&(_e=Ze-1)}je(_e,S.value)}else Oe()},{immediate:!0}),ft([d,h],()=>void Ht(()=>{q(E.value)})),ft(w,()=>{u.value&&Oe()},{deep:!0}),ft(u,_e=>{_e?Oe():(G=!1,be(ce=0))});const Qe=I(()=>({onTouchstartPassive:e.touchable?Me:void 0,onMousedown:e.draggable?Me:void 0,onWheel:e.mousewheel?gt:void 0})),Je=I(()=>Object.assign(Object.assign({},eo(re,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:P.value,currentIndex:R.value})),tt=I(()=>({total:P.value,currentIndex:R.value,to:re.to})),it={getCurrentIndex:()=>R.value,to:N,prev:O,next:ee},vt=Le("Carousel","-carousel",UU,TU,e,t),an=I(()=>{const{common:{cubicBezierEaseInOut:_e},self:{dotSize:Be,dotColor:Ze,dotColorActive:ht,dotColorFocus:bt,dotLineWidth:ut,dotLineWidthActive:Rt,arrowColor:le}}=vt.value;return{"--n-bezier":_e,"--n-dot-color":Ze,"--n-dot-color-focus":bt,"--n-dot-color-active":ht,"--n-dot-size":Be,"--n-dot-line-width":ut,"--n-dot-line-width-active":Rt,"--n-arrow-color":le}}),Ft=n?Pt("carousel",void 0,an,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:o,slidesElRef:r,slideVNodes:a,duplicatedable:d,userWantsControl:f,autoSlideSize:g,realIndex:E,slideStyles:y,translateStyle:L,slidesControlListeners:Qe,handleTransitionEnd:Xe,handleResize:Q,handleSlideResize:ye,handleMouseenter:Ae,handleMouseleave:qe,isActive:ae,arrowSlotProps:Je,dotSlotProps:tt},it),{cssVars:n?void 0:an,themeClass:Ft==null?void 0:Ft.themeClass,onRender:Ft==null?void 0:Ft.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:o,slideStyles:r,dotType:i,dotPlacement:a,slidesControlListeners:s,transitionProps:l={},arrowSlotProps:c,dotSlotProps:u,$slots:{default:d,dots:f,arrow:h}}=this,p=d&&Ta(d())||[];let g=KU(p);return g.length||(g=p.map(m=>v(jU,null,{default:()=>fo(m)}))),this.duplicatedable&&(g=AU(g)),this.slideVNodes.value=g,this.autoSlideSize&&(g=g.map(m=>v(ur,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),v("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,o&&`${t}-carousel--usercontrol`],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),v(ur,{onResize:this.handleResize},{default:()=>v("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},o?g.map((m,b)=>v("div",{style:r[b],key:b},dn(v(fn,Object.assign({},l),{default:()=>m}),[[Mn,this.isActive(b)]]))):g)}),this.showDots&&u.total>1&&gh(f,u,()=>[v(DU,{key:i+a,total:u.total,currentIndex:u.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&gh(h,c,()=>[v(NU,null)]))}});function KU(e){return e.reduce((t,n)=>(HU(n)&&t.push(n),t),[])}const GU={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function wS(e){const{baseColor:t,inputColorDisabled:n,cardColor:o,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},GU),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,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 ${Ie(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const XU={name:"Checkbox",common:xt,self:wS},_S=XU,YU={name:"Checkbox",common:He,self(e){const{cardColor:t}=e,n=wS(e);return n.color="#0000",n.checkMarkColor=t,n}},Ka=YU;function QU(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:n,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const JU={name:"Cascader",common:He,peers:{InternalSelectMenu:fl,InternalSelection:hm,Scrollbar:Un,Checkbox:Ka,Empty:$u},self:QU},ZU=JU,eV=v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),tV=v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),SS="n-checkbox-group",nV={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},oV=xe({name:"CheckboxGroup",props:nV,setup(e){const{mergedClsPrefixRef:t}=st(e),n=mr(e),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=U(e.defaultValue),a=I(()=>e.value),s=rn(a,i),l=I(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),c=I(()=>Array.isArray(s.value)?new Set(s.value):new Set);function u(d,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=n,{onChange:g,"onUpdate:value":m,onUpdateValue:b}=e;if(Array.isArray(s.value)){const w=Array.from(s.value),C=w.findIndex(_=>_===f);d?~C||(w.push(f),b&&Re(b,w,{actionType:"check",value:f}),m&&Re(m,w,{actionType:"check",value:f}),h(),p(),i.value=w,g&&Re(g,w)):~C&&(w.splice(C,1),b&&Re(b,w,{actionType:"uncheck",value:f}),m&&Re(m,w,{actionType:"uncheck",value:f}),g&&Re(g,w),i.value=w,h(),p())}else d?(b&&Re(b,[f],{actionType:"check",value:f}),m&&Re(m,[f],{actionType:"check",value:f}),g&&Re(g,[f]),i.value=[f],h(),p()):(b&&Re(b,[],{actionType:"uncheck",value:f}),m&&Re(m,[],{actionType:"uncheck",value:f}),g&&Re(g,[]),i.value=[],h(),p())}return at(SS,{checkedCountRef:l,maxRef:Ue(e,"max"),minRef:Ue(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:o,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),rV=W([z("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; @@ -1624,47 +1608,47 @@ ${t} word-break: break-word; line-height: var(--n-size); --n-merged-color-table: var(--n-color-table); - `,[Z("show-label","line-height: var(--n-label-line-height);"),G("&:hover",[L("checkbox-box",[V("border","border: var(--n-border-checked);")])]),G("&:focus:not(:active)",[L("checkbox-box",[V("border",` + `,[J("show-label","line-height: var(--n-label-line-height);"),W("&:hover",[z("checkbox-box",[j("border","border: var(--n-border-checked);")])]),W("&:focus:not(:active)",[z("checkbox-box",[j("border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),Z("inside-table",[L("checkbox-box",` + `)])]),J("inside-table",[z("checkbox-box",` background-color: var(--n-merged-color-table); - `)]),Z("checked",[L("checkbox-box",` + `)]),J("checked",[z("checkbox-box",` background-color: var(--n-color-checked); - `,[L("checkbox-icon",[G(".check-icon",` + `,[z("checkbox-icon",[W(".check-icon",` opacity: 1; transform: scale(1); - `)])])]),Z("indeterminate",[L("checkbox-box",[L("checkbox-icon",[G(".check-icon",` + `)])])]),J("indeterminate",[z("checkbox-box",[z("checkbox-icon",[W(".check-icon",` opacity: 0; transform: scale(.5); - `),G(".line-icon",` + `),W(".line-icon",` opacity: 1; transform: scale(1); - `)])])]),Z("checked, indeterminate",[G("&:focus:not(:active)",[L("checkbox-box",[V("border",` + `)])])]),J("checked, indeterminate",[W("&:focus:not(:active)",[z("checkbox-box",[j("border",` border: var(--n-border-checked); box-shadow: var(--n-box-shadow-focus); - `)])]),L("checkbox-box",` + `)])]),z("checkbox-box",` background-color: var(--n-color-checked); border-left: 0; border-top: 0; - `,[V("border",{border:"var(--n-border-checked)"})])]),Z("disabled",{cursor:"not-allowed"},[Z("checked",[L("checkbox-box",` + `,[j("border",{border:"var(--n-border-checked)"})])]),J("disabled",{cursor:"not-allowed"},[J("checked",[z("checkbox-box",` background-color: var(--n-color-disabled-checked); - `,[V("border",{border:"var(--n-border-disabled-checked)"}),L("checkbox-icon",[G(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),L("checkbox-box",` + `,[j("border",{border:"var(--n-border-disabled-checked)"}),z("checkbox-icon",[W(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),z("checkbox-box",` background-color: var(--n-color-disabled); - `,[V("border",` + `,[j("border",` border: var(--n-border-disabled); - `),L("checkbox-icon",[G(".check-icon, .line-icon",` + `),z("checkbox-icon",[W(".check-icon, .line-icon",` fill: var(--n-check-mark-color-disabled); - `)])]),V("label",` + `)])]),j("label",` color: var(--n-text-color-disabled); - `)]),L("checkbox-box-wrapper",` + `)]),z("checkbox-box-wrapper",` position: relative; width: var(--n-size); flex-shrink: 0; flex-grow: 0; user-select: none; -webkit-user-select: none; - `),L("checkbox-box",` + `),z("checkbox-box",` position: absolute; left: 0; top: 50%; @@ -1676,7 +1660,7 @@ ${t} border-radius: var(--n-border-radius); background-color: var(--n-color); transition: background-color 0.3s var(--n-bezier); - `,[V("border",` + `,[j("border",` transition: border-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); @@ -1687,7 +1671,7 @@ ${t} top: 0; bottom: 0; border: var(--n-border); - `),L("checkbox-icon",` + `),z("checkbox-icon",` display: flex; align-items: center; justify-content: center; @@ -1696,7 +1680,7 @@ ${t} right: 1px; top: 1px; bottom: 1px; - `,[G(".check-icon, .line-icon",` + `,[W(".check-icon, .line-icon",` width: 100%; fill: var(--n-check-mark-color); opacity: 0; @@ -1707,64 +1691,63 @@ ${t} transform 0.3s var(--n-bezier), opacity 0.3s var(--n-bezier), border-color 0.3s var(--n-bezier); - `),Xn({left:"1px",top:"1px"})])]),V("label",` + `),Kn({left:"1px",top:"1px"})])]),j("label",` color: var(--n-text-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); - `,[G("&:empty",{display:"none"})])]),ll(L("checkbox",` + `,[W("&:empty",{display:"none"})])]),al(z("checkbox",` --n-merged-color-table: var(--n-color-table-modal); - `)),Su(L("checkbox",` + `)),wu(z("checkbox",` --n-merged-color-table: var(--n-color-table-popover); - `))]),cW=Object.assign(Object.assign({},Be.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),gl=be({name:"Checkbox",props:cW,setup(e){const t=We(k2,null),n=H(null),{mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=lt(e),s=H(e.defaultChecked),a=ze(e,"checked"),l=ln(a,s),c=Ct(()=>{if(t){const x=t.valueSetRef.value;return x&&e.value!==void 0?x.has(e.value):!1}else return l.value===e.checkedValue}),u=pr(e,{mergedSize(x){const{size:y}=e;if(y!==void 0)return y;if(t){const{value:T}=t.mergedSizeRef;if(T!==void 0)return T}if(x){const{mergedSize:T}=x;if(T!==void 0)return T.value}return"medium"},mergedDisabled(x){const{disabled:y}=e;if(y!==void 0)return y;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:k}=t;if(T!==void 0&&k.value>=T&&!c.value)return!0;const{minRef:{value:P}}=t;if(P!==void 0&&k.value<=P&&c.value)return!0}return x?x.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,h=Be("Checkbox","-checkbox",lW,S2,e,o);function p(x){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:y,"onUpdate:checked":T,onUpdateChecked:k}=e,{nTriggerFormInput:P,nTriggerFormChange:I}=u,R=c.value?e.uncheckedValue:e.checkedValue;T&&$e(T,R,x),k&&$e(k,R,x),y&&$e(y,R,x),P(),I(),s.value=R}}function m(x){d.value||p(x)}function g(x){if(!d.value)switch(x.key){case" ":case"Enter":p(x)}}function b(x){switch(x.key){case" ":x.preventDefault()}}const w={focus:()=>{var x;(x=n.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=n.value)===null||x===void 0||x.blur()}},C=gn("Checkbox",i,o),S=D(()=>{const{value:x}=f,{common:{cubicBezierEaseInOut:y},self:{borderRadius:T,color:k,colorChecked:P,colorDisabled:I,colorTableHeader:R,colorTableHeaderModal:W,colorTableHeaderPopover:O,checkMarkColor:M,checkMarkColorDisabled:z,border:K,borderFocus:J,borderDisabled:se,borderChecked:le,boxShadowFocus:F,textColor:E,textColorDisabled:A,checkMarkColorDisabledChecked:Y,colorDisabledChecked:ne,borderDisabledChecked:fe,labelPadding:Q,labelLineHeight:Ce,labelFontWeight:j,[Re("fontSize",x)]:ye,[Re("size",x)]:Ie}}=h.value;return{"--n-label-line-height":Ce,"--n-label-font-weight":j,"--n-size":Ie,"--n-bezier":y,"--n-border-radius":T,"--n-border":K,"--n-border-checked":le,"--n-border-focus":J,"--n-border-disabled":se,"--n-border-disabled-checked":fe,"--n-box-shadow-focus":F,"--n-color":k,"--n-color-checked":P,"--n-color-table":R,"--n-color-table-modal":W,"--n-color-table-popover":O,"--n-color-disabled":I,"--n-color-disabled-checked":ne,"--n-text-color":E,"--n-text-color-disabled":A,"--n-check-mark-color":M,"--n-check-mark-color-disabled":z,"--n-check-mark-color-disabled-checked":Y,"--n-font-size":ye,"--n-label-padding":Q}}),_=r?Rt("checkbox",D(()=>f.value[0]),S,e):void 0;return Object.assign(u,w,{rtlEnabled:C,selfRef:n,mergedClsPrefix:o,mergedDisabled:d,renderedChecked:c,mergedTheme:h,labelId:Zr(),handleClick:m,handleKeyUp:g,handleKeyDown:b,cssVars:r?void 0:S,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:o,indeterminate:r,privateInsideTable:i,cssVars:s,labelId:a,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=Mt(t.default,m=>l||m?v("span",{class:`${c}-checkbox__label`,id:a},l||m):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,o&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:o||!u?void 0:0,role:"checkbox","aria-checked":r?"mixed":n,"aria-labelledby":a,style:s,onKeyup:d,onKeydown:f,onClick:h,onMousedown:()=>{St("selectstart",window,m=>{m.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(Wi,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},aW()):v("div",{key:"check",class:`${c}-checkbox-icon`},sW())}),v("div",{class:`${c}-checkbox-box__border`}))),p)}}),uW={name:"Code",common:je,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:o,textColor3:r}=e;return{textColor:t,fontSize:n,fontWeightStrong:o,"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}}},P2=uW;function dW(e){const{fontWeight:t,textColor1:n,textColor2:o,textColorDisabled:r,dividerColor:i,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:r,fontSize:s,textColor:o,arrowColor:o,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const fW={name:"Collapse",common:je,self:dW},hW=fW;function pW(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const mW={name:"CollapseTransition",common:je,self:pW},gW=mW;function vW(e){const{fontSize:t,boxShadow2:n,popoverColor:o,textColor2:r,borderRadius:i,borderColor:s,heightSmall:a,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:n,color:o,textColor:r,borderRadius:i,border:`1px solid ${s}`,heightSmall:a,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}}const bW={name:"ColorPicker",common:je,peers:{Input:xo,Button:Kn},self:vW},yW=bW,xW={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:()=>(Go("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},T2=be({name:"ConfigProvider",alias:["App"],props:xW,setup(e){const t=We(go,null),n=D(()=>{const{theme:m}=e;if(m===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return m===void 0?g:g===void 0?m:Object.assign({},g,m)}),o=D(()=>{const{themeOverrides:m}=e;if(m!==null){if(m===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?m:ga({},g,m)}}}),r=Ct(()=>{const{namespace:m}=e;return m===void 0?t==null?void 0:t.mergedNamespaceRef.value:m}),i=Ct(()=>{const{bordered:m}=e;return m===void 0?t==null?void 0:t.mergedBorderedRef.value:m}),s=D(()=>{const{icons:m}=e;return m===void 0?t==null?void 0:t.mergedIconsRef.value:m}),a=D(()=>{const{componentOptions:m}=e;return m!==void 0?m:t==null?void 0:t.mergedComponentPropsRef.value}),l=D(()=>{const{clsPrefix:m}=e;return m!==void 0?m:t?t.mergedClsPrefixRef.value:Ac}),c=D(()=>{var m;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const b={};for(const w of g)b[w.name]=Fa(w),(m=w.peers)===null||m===void 0||m.forEach(C=>{C.name in b||(b[C.name]=Fa(C))});return b}),u=D(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=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),p=D(()=>{const{value:m}=n,{value:g}=o,b=g&&Object.keys(g).length!==0,w=m==null?void 0:m.name;return w?b?`${w}-${Ja(JSON.stringify(o.value))}`:w:b?Ja(JSON.stringify(o.value)):""});return at(go,{mergedThemeHashRef:p,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:D(()=>{const{locale:m}=e;if(m!==null)return m===void 0?t==null?void 0:t.mergedLocaleRef.value:m}),mergedDateLocaleRef:D(()=>{const{dateLocale:m}=e;if(m!==null)return m===void 0?t==null?void 0:t.mergedDateLocaleRef.value:m}),mergedHljsRef:D(()=>{const{hljs:m}=e;return m===void 0?t==null?void 0:t.mergedHljsRef.value:m}),mergedKatexRef:D(()=>{const{katex:m}=e;return m===void 0?t==null?void 0:t.mergedKatexRef.value:m}),mergedThemeRef:n,mergedThemeOverridesRef:o,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:n,mergedThemeOverrides:o}},render(){var e,t,n,o;return this.abstract?(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n):v(this.as||this.tag,{class:`${this.mergedClsPrefix||Ac}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),CW={name:"Popselect",common:je,peers:{Popover:Zi,InternalSelectMenu:hl}},R2=CW;function wW(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const _W={name:"Popselect",common:xt,peers:{Popover:Gs,InternalSelectMenu:hm},self:wW},xm=_W,E2="n-popselect",SW=L("popselect-menu",` + `))]),iV=Object.assign(Object.assign({},Le.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ml=xe({name:"Checkbox",props:iV,setup(e){const t=Ve(SS,null),n=U(null),{mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=U(e.defaultChecked),s=Ue(e,"checked"),l=rn(s,a),c=kt(()=>{if(t){const y=t.valueSetRef.value;return y&&e.value!==void 0?y.has(e.value):!1}else return l.value===e.checkedValue}),u=mr(e,{mergedSize(y){const{size:x}=e;if(x!==void 0)return x;if(t){const{value:P}=t.mergedSizeRef;if(P!==void 0)return P}if(y){const{mergedSize:P}=y;if(P!==void 0)return P.value}return"medium"},mergedDisabled(y){const{disabled:x}=e;if(x!==void 0)return x;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:P},checkedCountRef:k}=t;if(P!==void 0&&k.value>=P&&!c.value)return!0;const{minRef:{value:T}}=t;if(T!==void 0&&k.value<=T&&c.value)return!0}return y?y.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,h=Le("Checkbox","-checkbox",rV,_S,e,o);function p(y){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:x,"onUpdate:checked":P,onUpdateChecked:k}=e,{nTriggerFormInput:T,nTriggerFormChange:R}=u,E=c.value?e.uncheckedValue:e.checkedValue;P&&Re(P,E,y),k&&Re(k,E,y),x&&Re(x,E,y),T(),R(),a.value=E}}function g(y){d.value||p(y)}function m(y){if(!d.value)switch(y.key){case" ":case"Enter":p(y)}}function b(y){switch(y.key){case" ":y.preventDefault()}}const w={focus:()=>{var y;(y=n.value)===null||y===void 0||y.focus()},blur:()=>{var y;(y=n.value)===null||y===void 0||y.blur()}},C=pn("Checkbox",i,o),_=I(()=>{const{value:y}=f,{common:{cubicBezierEaseInOut:x},self:{borderRadius:P,color:k,colorChecked:T,colorDisabled:R,colorTableHeader:E,colorTableHeaderModal:q,colorTableHeaderPopover:D,checkMarkColor:B,checkMarkColorDisabled:M,border:K,borderFocus:V,borderDisabled:ae,borderChecked:pe,boxShadowFocus:Z,textColor:N,textColorDisabled:O,checkMarkColorDisabledChecked:ee,colorDisabledChecked:G,borderDisabledChecked:ne,labelPadding:X,labelLineHeight:ce,labelFontWeight:L,[Te("fontSize",y)]:be,[Te("size",y)]:Oe}}=h.value;return{"--n-label-line-height":ce,"--n-label-font-weight":L,"--n-size":Oe,"--n-bezier":x,"--n-border-radius":P,"--n-border":K,"--n-border-checked":pe,"--n-border-focus":V,"--n-border-disabled":ae,"--n-border-disabled-checked":ne,"--n-box-shadow-focus":Z,"--n-color":k,"--n-color-checked":T,"--n-color-table":E,"--n-color-table-modal":q,"--n-color-table-popover":D,"--n-color-disabled":R,"--n-color-disabled-checked":G,"--n-text-color":N,"--n-text-color-disabled":O,"--n-check-mark-color":B,"--n-check-mark-color-disabled":M,"--n-check-mark-color-disabled-checked":ee,"--n-font-size":be,"--n-label-padding":X}}),S=r?Pt("checkbox",I(()=>f.value[0]),_,e):void 0;return Object.assign(u,w,{rtlEnabled:C,selfRef:n,mergedClsPrefix:o,mergedDisabled:d,renderedChecked:c,mergedTheme:h,labelId:Qr(),handleClick:g,handleKeyUp:m,handleKeyDown:b,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:o,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:s,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=At(t.default,g=>l||g?v("span",{class:`${c}-checkbox__label`,id:s},l||g):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,o&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:o||!u?void 0:0,role:"checkbox","aria-checked":r?"mixed":n,"aria-labelledby":s,style:a,onKeyup:d,onKeydown:f,onClick:h,onMousedown:()=>{$t("selectstart",window,g=>{g.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(Wi,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},tV):v("div",{key:"check",class:`${c}-checkbox-icon`},eV)}),v("div",{class:`${c}-checkbox-box__border`}))),p)}}),aV={name:"Code",common:He,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:o,textColor3:r}=e;return{textColor:t,fontSize:n,fontWeightStrong:o,"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}}},kS=aV;function sV(e){const{fontWeight:t,textColor1:n,textColor2:o,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:r,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const lV={name:"Collapse",common:He,self:sV},cV=lV;function uV(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const dV={name:"CollapseTransition",common:He,self:uV},fV=dV,hV={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:el},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,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(cr("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},PS=xe({name:"ConfigProvider",alias:["App"],props:hV,setup(e){const t=Ve(Ao,null),n=I(()=>{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)}),o=I(()=>{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=kt(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=kt(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=I(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=I(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=I(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:el}),c=I(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const b of g)m[b.name]=Ms(b),(p=b.peers)===null||p===void 0||p.forEach(w=>{w.name in m||(m[w.name]=Ms(w))});return m}),u=I(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=I(()=>{const{value:p}=n,{value:g}=o,m=g&&Object.keys(g).length!==0,b=p==null?void 0:p.name;return b?m?`${b}-${Xs(JSON.stringify(o.value))}`:b:m?Xs(JSON.stringify(o.value)):""});return at(Ao,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:I(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:I(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:I(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:I(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:o,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:n,mergedThemeOverrides:o}},render(){var e,t,n,o;return this.abstract?(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n):v(this.as||this.tag,{class:`${this.mergedClsPrefix||el}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pV=e=>1-Math.pow(1-e,5);function mV(e){const{from:t,to:n,duration:o,onUpdate:r,onFinish:i}=e,a=performance.now(),s=()=>{const l=performance.now(),c=Math.min(l-a,o),u=t+(n-t)*pV(c/o);if(c===o){i();return}r(u),requestAnimationFrame(s)};s()}const gV={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},vV=xe({name:"NumberAnimation",props:gV,setup(e){const{localeRef:t}=Hi("name"),{duration:n}=e,o=U(e.from),r=I(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let i=!1;const a=f=>{o.value=f},s=()=>{var f;o.value=e.to,i=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,h=e.to)=>{i=!0,o.value=e.from,f!==h&&mV({from:f,to:h,duration:n,onUpdate:a,onFinish:s})},c=I(()=>{var f;const p=kL(o.value,e.precision).toFixed(e.precision).split("."),g=new Intl.NumberFormat(r.value),m=(f=g.formatToParts(.5).find(C=>C.type==="decimal"))===null||f===void 0?void 0:f.value,b=e.showSeparator?g.format(Number(p[0])):p[0],w=p[1];return{integer:b,decimal:w,decimalSeparator:m}});function u(){i||l()}return jt(()=>{Yt(()=>{e.active&&l()})}),Object.assign({formattedValue:c},{play:u})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),bV={name:"Popselect",common:He,peers:{Popover:Xi,InternalSelectMenu:fl}},TS=bV;function yV(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const xV={name:"Popselect",common:xt,peers:{Popover:qa,InternalSelectMenu:fm},self:yV},ym=xV,ES="n-popselect",CV=z("popselect-menu",` box-shadow: var(--n-menu-box-shadow); -`),Cm={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},n1=Qr(Cm),kW=be({name:"PopselectPanel",props:Cm,setup(e){const t=We(E2),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=lt(e),r=Be("Popselect","-pop-select",SW,xm,t.props,n),i=D(()=>Pi(e.options,d2("value","children")));function s(f,h){const{onUpdateValue:p,"onUpdate:value":m,onChange:g}=e;p&&$e(p,f,h),m&&$e(m,f,h),g&&$e(g,f,h)}function a(f){c(f.key)}function l(f){!fo(f,"action")&&!fo(f,"empty")&&!fo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],m=[];let g=!0;e.value.forEach(b=>{if(b===f){g=!1;return}const w=h(b);w&&(p.push(w.key),m.push(w.rawNode))}),g&&(p.push(f),m.push(h(f).rawNode)),s(p,m)}else{const p=h(f);p&&s([f],[p.rawNode])}else if(e.value===f&&e.cancelable)s(null,null);else{const p=h(f);p&&s(f,p.rawNode);const{"onUpdate:show":m,onUpdateShow:g}=t.props;m&&$e(m,!1),g&&$e(g,!1),t.setShow(!1)}Vt(()=>{t.syncPosition()})}dt(ze(e,"options"),()=>{Vt(()=>{t.syncPosition()})});const u=D(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),d=o?Rt("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:a,handleMenuMousedown:l,cssVars:o?void 0:u,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Z_,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,n;return((n=(t=this.$slots).header)===null||n===void 0?void 0:n.call(t))||[]},action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),PW=Object.assign(Object.assign(Object.assign(Object.assign({},Be.props),Vs(Is,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Is.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Cm),wm=be({name:"Popselect",props:PW,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=Be("Popselect","-popselect",void 0,xm,e,t),o=H(null);function r(){var a;(a=o.value)===null||a===void 0||a.syncPosition()}function i(a){var l;(l=o.value)===null||l===void 0||l.setShow(a)}return at(E2,{props:e,mergedThemeRef:n,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:o,mergedTheme:n})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,o,r,i,s)=>{const{$attrs:a}=this;return v(kW,Object.assign({},a,{class:[a.class,n],style:[a.style,...r]},oo(this.$props,n1),{ref:Uw(o),onMouseenter:Oa([i,a.onMouseenter]),onMouseleave:Oa([s,a.onMouseleave])}),{header:()=>{var l,c;return(c=(l=this.$slots).header)===null||c===void 0?void 0:c.call(l)},action:()=>{var l,c;return(c=(l=this.$slots).action)===null||c===void 0?void 0:c.call(l)},empty:()=>{var l,c;return(c=(l=this.$slots).empty)===null||c===void 0?void 0:c.call(l)}})}};return v(pl,Object.assign({},Vs(this.$props,n1),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}});function $2(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const TW={name:"Select",common:xt,peers:{InternalSelection:i2,InternalSelectMenu:hm},self:$2},A2=TW,RW={name:"Select",common:je,peers:{InternalSelection:pm,InternalSelectMenu:hl},self:$2},I2=RW,EW=G([L("select",` +`),xm={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Z0=Jr(xm),wV=xe({name:"PopselectPanel",props:xm,setup(e){const t=Ve(ES),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=st(e),r=Le("Popselect","-pop-select",CV,ym,t.props,n),i=I(()=>Pi(e.options,sS("value","children")));function a(f,h){const{onUpdateValue:p,"onUpdate:value":g,onChange:m}=e;p&&Re(p,f,h),g&&Re(g,f,h),m&&Re(m,f,h)}function s(f){c(f.key)}function l(f){!lo(f,"action")&&!lo(f,"empty")&&!lo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let m=!0;e.value.forEach(b=>{if(b===f){m=!1;return}const w=h(b);w&&(p.push(w.key),g.push(w.rawNode))}),m&&(p.push(f),g.push(h(f).rawNode)),a(p,g)}else{const p=h(f);p&&a([f],[p.rawNode])}else if(e.value===f&&e.cancelable)a(null,null);else{const p=h(f);p&&a(f,p.rawNode);const{"onUpdate:show":g,onUpdateShow:m}=t.props;g&&Re(g,!1),m&&Re(m,!1),t.setShow(!1)}Ht(()=>{t.syncPosition()})}ft(Ue(e,"options"),()=>{Ht(()=>{t.syncPosition()})});const u=I(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),d=o?Pt("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:s,handleMenuMousedown:l,cssVars:o?void 0:u,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Y_,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,n;return((n=(t=this.$slots).header)===null||n===void 0?void 0:n.call(t))||[]},action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),_V=Object.assign(Object.assign(Object.assign(Object.assign({},Le.props),Ha(Aa,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Aa.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),xm),Cm=xe({name:"Popselect",props:_V,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Popselect","-popselect",void 0,ym,e,t),o=U(null);function r(){var s;(s=o.value)===null||s===void 0||s.syncPosition()}function i(s){var l;(l=o.value)===null||l===void 0||l.setShow(s)}return at(ES,{props:e,mergedThemeRef:n,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:o,mergedTheme:n})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,o,r,i,a)=>{const{$attrs:s}=this;return v(wV,Object.assign({},s,{class:[s.class,n],style:[s.style,...r]},eo(this.$props,Z0),{ref:hw(o),onMouseenter:Es([i,s.onMouseenter]),onMouseleave:Es([a,s.onMouseleave])}),{header:()=>{var l,c;return(c=(l=this.$slots).header)===null||c===void 0?void 0:c.call(l)},action:()=>{var l,c;return(c=(l=this.$slots).action)===null||c===void 0?void 0:c.call(l)},empty:()=>{var l,c;return(c=(l=this.$slots).empty)===null||c===void 0?void 0:c.call(l)}})}};return v(hl,Object.assign({},Ha(this.$props,Z0),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}});function RS(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const SV={name:"Select",common:xt,peers:{InternalSelection:rS,InternalSelectMenu:fm},self:RS},AS=SV,kV={name:"Select",common:He,peers:{InternalSelection:hm,InternalSelectMenu:fl},self:RS},$S=kV,PV=W([z("select",` z-index: auto; outline: none; width: 100%; position: relative; - font-weight: var(--n-font-weight); - `),L("select-menu",` + `),z("select-menu",` margin: 4px 0; box-shadow: var(--n-menu-box-shadow); - `,[Ks({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),$W=Object.assign(Object.assign({},Be.props),{to:Ko.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),zu=be({name:"Select",props:$W,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r}=lt(e),i=Be("Select","-select",EW,A2,e,t),s=H(e.defaultValue),a=ze(e,"value"),l=ln(a,s),c=H(!1),u=H(""),d=ku(e,["items","options"]),f=H([]),h=H([]),p=D(()=>h.value.concat(f.value).concat(d.value)),m=D(()=>{const{filter:X}=e;if(X)return X;const{labelField:ce,valueField:Ee}=e;return(Fe,Ve)=>{if(!Ve)return!1;const Xe=Ve[ce];if(typeof Xe=="string")return Jd(Fe,Xe);const Qe=Ve[Ee];return typeof Qe=="string"?Jd(Fe,Qe):typeof Qe=="number"?Jd(Fe,String(Qe)):!1}}),g=D(()=>{if(e.remote)return d.value;{const{value:X}=p,{value:ce}=u;return!ce.length||!e.filterable?X:Dj(X,m.value,ce,e.childrenField)}}),b=D(()=>{const{valueField:X,childrenField:ce}=e,Ee=d2(X,ce);return Pi(g.value,Ee)}),w=D(()=>Lj(p.value,e.valueField,e.childrenField)),C=H(!1),S=ln(ze(e,"show"),C),_=H(null),x=H(null),y=H(null),{localeRef:T}=Vi("Select"),k=D(()=>{var X;return(X=e.placeholder)!==null&&X!==void 0?X:T.value.placeholder}),P=[],I=H(new Map),R=D(()=>{const{fallbackOption:X}=e;if(X===void 0){const{labelField:ce,valueField:Ee}=e;return Fe=>({[ce]:String(Fe),[Ee]:Fe})}return X===!1?!1:ce=>Object.assign(X(ce),{value:ce})});function W(X){const ce=e.remote,{value:Ee}=I,{value:Fe}=w,{value:Ve}=R,Xe=[];return X.forEach(Qe=>{if(Fe.has(Qe))Xe.push(Fe.get(Qe));else if(ce&&Ee.has(Qe))Xe.push(Ee.get(Qe));else if(Ve){const rt=Ve(Qe);rt&&Xe.push(rt)}}),Xe}const O=D(()=>{if(e.multiple){const{value:X}=l;return Array.isArray(X)?W(X):[]}return null}),M=D(()=>{const{value:X}=l;return!e.multiple&&!Array.isArray(X)?X===null?null:W([X])[0]||null:null}),z=pr(e),{mergedSizeRef:K,mergedDisabledRef:J,mergedStatusRef:se}=z;function le(X,ce){const{onChange:Ee,"onUpdate:value":Fe,onUpdateValue:Ve}=e,{nTriggerFormChange:Xe,nTriggerFormInput:Qe}=z;Ee&&$e(Ee,X,ce),Ve&&$e(Ve,X,ce),Fe&&$e(Fe,X,ce),s.value=X,Xe(),Qe()}function F(X){const{onBlur:ce}=e,{nTriggerFormBlur:Ee}=z;ce&&$e(ce,X),Ee()}function E(){const{onClear:X}=e;X&&$e(X)}function A(X){const{onFocus:ce,showOnFocus:Ee}=e,{nTriggerFormFocus:Fe}=z;ce&&$e(ce,X),Fe(),Ee&&Ce()}function Y(X){const{onSearch:ce}=e;ce&&$e(ce,X)}function ne(X){const{onScroll:ce}=e;ce&&$e(ce,X)}function fe(){var X;const{remote:ce,multiple:Ee}=e;if(ce){const{value:Fe}=I;if(Ee){const{valueField:Ve}=e;(X=O.value)===null||X===void 0||X.forEach(Xe=>{Fe.set(Xe[Ve],Xe)})}else{const Ve=M.value;Ve&&Fe.set(Ve[e.valueField],Ve)}}}function Q(X){const{onUpdateShow:ce,"onUpdate:show":Ee}=e;ce&&$e(ce,X),Ee&&$e(Ee,X),C.value=X}function Ce(){J.value||(Q(!0),C.value=!0,e.filterable&&ot())}function j(){Q(!1)}function ye(){u.value="",h.value=P}const Ie=H(!1);function Le(){e.filterable&&(Ie.value=!0)}function U(){e.filterable&&(Ie.value=!1,S.value||ye())}function B(){J.value||(S.value?e.filterable?ot():j():Ce())}function ae(X){var ce,Ee;!((Ee=(ce=y.value)===null||ce===void 0?void 0:ce.selfRef)===null||Ee===void 0)&&Ee.contains(X.relatedTarget)||(c.value=!1,F(X),j())}function Se(X){A(X),c.value=!0}function te(){c.value=!0}function xe(X){var ce;!((ce=_.value)===null||ce===void 0)&&ce.$el.contains(X.relatedTarget)||(c.value=!1,F(X),j())}function ve(){var X;(X=_.value)===null||X===void 0||X.focus(),j()}function $(X){var ce;S.value&&(!((ce=_.value)===null||ce===void 0)&&ce.$el.contains(Ai(X))||j())}function N(X){if(!Array.isArray(X))return[];if(R.value)return Array.from(X);{const{remote:ce}=e,{value:Ee}=w;if(ce){const{value:Fe}=I;return X.filter(Ve=>Ee.has(Ve)||Fe.has(Ve))}else return X.filter(Fe=>Ee.has(Fe))}}function ee(X){we(X.rawNode)}function we(X){if(J.value)return;const{tag:ce,remote:Ee,clearFilterAfterSelect:Fe,valueField:Ve}=e;if(ce&&!Ee){const{value:Xe}=h,Qe=Xe[0]||null;if(Qe){const rt=f.value;rt.length?rt.push(Qe):f.value=[Qe],h.value=P}}if(Ee&&I.value.set(X[Ve],X),e.multiple){const Xe=N(l.value),Qe=Xe.findIndex(rt=>rt===X[Ve]);if(~Qe){if(Xe.splice(Qe,1),ce&&!Ee){const rt=de(X[Ve]);~rt&&(f.value.splice(rt,1),Fe&&(u.value=""))}}else Xe.push(X[Ve]),Fe&&(u.value="");le(Xe,W(Xe))}else{if(ce&&!Ee){const Xe=de(X[Ve]);~Xe?f.value=[f.value[Xe]]:f.value=P}De(),j(),le(X[Ve],X)}}function de(X){return f.value.findIndex(Ee=>Ee[e.valueField]===X)}function he(X){S.value||Ce();const{value:ce}=X.target;u.value=ce;const{tag:Ee,remote:Fe}=e;if(Y(ce),Ee&&!Fe){if(!ce){h.value=P;return}const{onCreate:Ve}=e,Xe=Ve?Ve(ce):{[e.labelField]:ce,[e.valueField]:ce},{valueField:Qe,labelField:rt}=e;d.value.some(wt=>wt[Qe]===Xe[Qe]||wt[rt]===Xe[rt])||f.value.some(wt=>wt[Qe]===Xe[Qe]||wt[rt]===Xe[rt])?h.value=P:h.value=[Xe]}}function re(X){X.stopPropagation();const{multiple:ce}=e;!ce&&e.filterable&&j(),E(),ce?le([],[]):le(null,null)}function me(X){!fo(X,"action")&&!fo(X,"empty")&&!fo(X,"header")&&X.preventDefault()}function Ne(X){ne(X)}function He(X){var ce,Ee,Fe,Ve,Xe;if(!e.keyboard){X.preventDefault();return}switch(X.key){case" ":if(e.filterable)break;X.preventDefault();case"Enter":if(!(!((ce=_.value)===null||ce===void 0)&&ce.isComposing)){if(S.value){const Qe=(Ee=y.value)===null||Ee===void 0?void 0:Ee.getPendingTmNode();Qe?ee(Qe):e.filterable||(j(),De())}else if(Ce(),e.tag&&Ie.value){const Qe=h.value[0];if(Qe){const rt=Qe[e.valueField],{value:wt}=l;e.multiple&&Array.isArray(wt)&&wt.includes(rt)||we(Qe)}}}X.preventDefault();break;case"ArrowUp":if(X.preventDefault(),e.loading)return;S.value&&((Fe=y.value)===null||Fe===void 0||Fe.prev());break;case"ArrowDown":if(X.preventDefault(),e.loading)return;S.value?(Ve=y.value)===null||Ve===void 0||Ve.next():Ce();break;case"Escape":S.value&&(TI(X),j()),(Xe=_.value)===null||Xe===void 0||Xe.focus();break}}function De(){var X;(X=_.value)===null||X===void 0||X.focus()}function ot(){var X;(X=_.value)===null||X===void 0||X.focusInput()}function nt(){var X;S.value&&((X=x.value)===null||X===void 0||X.syncPosition())}fe(),dt(ze(e,"options"),fe);const Ge={focus:()=>{var X;(X=_.value)===null||X===void 0||X.focus()},focusInput:()=>{var X;(X=_.value)===null||X===void 0||X.focusInput()},blur:()=>{var X;(X=_.value)===null||X===void 0||X.blur()},blurInput:()=>{var X;(X=_.value)===null||X===void 0||X.blurInput()}},Me=D(()=>{const{self:{menuBoxShadow:X}}=i.value;return{"--n-menu-box-shadow":X}}),tt=r?Rt("select",void 0,Me,e):void 0;return Object.assign(Object.assign({},Ge),{mergedStatus:se,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:b,isMounted:Jr(),triggerRef:_,menuRef:y,pattern:u,uncontrolledShow:C,mergedShow:S,adjustedTo:Ko(e),uncontrolledValue:s,mergedValue:l,followerRef:x,localizedPlaceholder:k,selectedOption:M,selectedOptions:O,mergedSize:K,mergedDisabled:J,focused:c,activeWithoutMenuOpen:Ie,inlineThemeDisabled:r,onTriggerInputFocus:Le,onTriggerInputBlur:U,handleTriggerOrMenuResize:nt,handleMenuFocus:te,handleMenuBlur:xe,handleMenuTabOut:ve,handleTriggerClick:B,handleToggle:ee,handleDeleteOption:we,handlePatternInput:he,handleClear:re,handleTriggerBlur:ae,handleTriggerFocus:Se,handleKeydown:He,handleMenuAfterLeave:ye,handleMenuClickOutside:$,handleMenuScroll:Ne,handleMenuKeydown:He,handleMenuMousedown:me,mergedTheme:i,cssVars:r?void 0:Me,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Kp,null,{default:()=>[v(Gp,null,{default:()=>v(lj,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(Xp,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ko.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(pn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),hn(v(Z_,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var o,r;return[(r=(o=this.$slots).empty)===null||r===void 0?void 0:r.call(o)]},header:()=>{var o,r;return[(r=(o=this.$slots).header)===null||r===void 0?void 0:r.call(o)]},action:()=>{var o,r;return[(r=(o=this.$slots).action)===null||r===void 0?void 0:r.call(o)]}}),this.displayDirective==="show"?[[Nn,this.mergedShow],[$s,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[$s,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),AW={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 M2(e){const{textColor2:t,primaryColor:n,primaryColorHover:o,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:s,borderColor:a,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},AW),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:r,itemTextColorActive:n,itemTextColorDisabled:s,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 ${n}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:s})}const IW={name:"Pagination",common:xt,peers:{Select:A2,Input:gm,Popselect:xm},self:M2},O2=IW,MW={name:"Pagination",common:je,peers:{Select:I2,Input:xo,Popselect:R2},self(e){const{primaryColor:t,opacity3:n}=e,o=Ae(t,{alpha:Number(n)}),r=M2(e);return r.itemBorderActive=`1px solid ${o}`,r.itemBorderDisabled="1px solid #0000",r}},z2=MW,o1=` + `,[Wa({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),TV=Object.assign(Object.assign({},Le.props),{to:Ko.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Ou=xe({name:"Select",props:TV,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Select","-select",PV,AS,e,t),a=U(e.defaultValue),s=Ue(e,"value"),l=rn(s,a),c=U(!1),u=U(""),d=_u(e,["items","options"]),f=U([]),h=U([]),p=I(()=>h.value.concat(f.value).concat(d.value)),g=I(()=>{const{filter:Q}=e;if(Q)return Q;const{labelField:ye,valueField:Ae}=e;return(qe,Qe)=>{if(!Qe)return!1;const Je=Qe[ye];if(typeof Je=="string")return Jd(qe,Je);const tt=Qe[Ae];return typeof tt=="string"?Jd(qe,tt):typeof tt=="number"?Jd(qe,String(tt)):!1}}),m=I(()=>{if(e.remote)return d.value;{const{value:Q}=p,{value:ye}=u;return!ye.length||!e.filterable?Q:bj(Q,g.value,ye,e.childrenField)}}),b=I(()=>{const{valueField:Q,childrenField:ye}=e,Ae=sS(Q,ye);return Pi(m.value,Ae)}),w=I(()=>yj(p.value,e.valueField,e.childrenField)),C=U(!1),_=rn(Ue(e,"show"),C),S=U(null),y=U(null),x=U(null),{localeRef:P}=Hi("Select"),k=I(()=>{var Q;return(Q=e.placeholder)!==null&&Q!==void 0?Q:P.value.placeholder}),T=[],R=U(new Map),E=I(()=>{const{fallbackOption:Q}=e;if(Q===void 0){const{labelField:ye,valueField:Ae}=e;return qe=>({[ye]:String(qe),[Ae]:qe})}return Q===!1?!1:ye=>Object.assign(Q(ye),{value:ye})});function q(Q){const ye=e.remote,{value:Ae}=R,{value:qe}=w,{value:Qe}=E,Je=[];return Q.forEach(tt=>{if(qe.has(tt))Je.push(qe.get(tt));else if(ye&&Ae.has(tt))Je.push(Ae.get(tt));else if(Qe){const it=Qe(tt);it&&Je.push(it)}}),Je}const D=I(()=>{if(e.multiple){const{value:Q}=l;return Array.isArray(Q)?q(Q):[]}return null}),B=I(()=>{const{value:Q}=l;return!e.multiple&&!Array.isArray(Q)?Q===null?null:q([Q])[0]||null:null}),M=mr(e),{mergedSizeRef:K,mergedDisabledRef:V,mergedStatusRef:ae}=M;function pe(Q,ye){const{onChange:Ae,"onUpdate:value":qe,onUpdateValue:Qe}=e,{nTriggerFormChange:Je,nTriggerFormInput:tt}=M;Ae&&Re(Ae,Q,ye),Qe&&Re(Qe,Q,ye),qe&&Re(qe,Q,ye),a.value=Q,Je(),tt()}function Z(Q){const{onBlur:ye}=e,{nTriggerFormBlur:Ae}=M;ye&&Re(ye,Q),Ae()}function N(){const{onClear:Q}=e;Q&&Re(Q)}function O(Q){const{onFocus:ye,showOnFocus:Ae}=e,{nTriggerFormFocus:qe}=M;ye&&Re(ye,Q),qe(),Ae&&ce()}function ee(Q){const{onSearch:ye}=e;ye&&Re(ye,Q)}function G(Q){const{onScroll:ye}=e;ye&&Re(ye,Q)}function ne(){var Q;const{remote:ye,multiple:Ae}=e;if(ye){const{value:qe}=R;if(Ae){const{valueField:Qe}=e;(Q=D.value)===null||Q===void 0||Q.forEach(Je=>{qe.set(Je[Qe],Je)})}else{const Qe=B.value;Qe&&qe.set(Qe[e.valueField],Qe)}}}function X(Q){const{onUpdateShow:ye,"onUpdate:show":Ae}=e;ye&&Re(ye,Q),Ae&&Re(Ae,Q),C.value=Q}function ce(){V.value||(X(!0),C.value=!0,e.filterable&&Ne())}function L(){X(!1)}function be(){u.value="",h.value=T}const Oe=U(!1);function je(){e.filterable&&(Oe.value=!0)}function F(){e.filterable&&(Oe.value=!1,_.value||be())}function A(){V.value||(_.value?e.filterable?Ne():L():ce())}function re(Q){var ye,Ae;!((Ae=(ye=x.value)===null||ye===void 0?void 0:ye.selfRef)===null||Ae===void 0)&&Ae.contains(Q.relatedTarget)||(c.value=!1,Z(Q),L())}function we(Q){O(Q),c.value=!0}function oe(){c.value=!0}function ve(Q){var ye;!((ye=S.value)===null||ye===void 0)&&ye.$el.contains(Q.relatedTarget)||(c.value=!1,Z(Q),L())}function ke(){var Q;(Q=S.value)===null||Q===void 0||Q.focus(),L()}function $(Q){var ye;_.value&&(!((ye=S.value)===null||ye===void 0)&&ye.$el.contains($i(Q))||L())}function H(Q){if(!Array.isArray(Q))return[];if(E.value)return Array.from(Q);{const{remote:ye}=e,{value:Ae}=w;if(ye){const{value:qe}=R;return Q.filter(Qe=>Ae.has(Qe)||qe.has(Qe))}else return Q.filter(qe=>Ae.has(qe))}}function te(Q){Ce(Q.rawNode)}function Ce(Q){if(V.value)return;const{tag:ye,remote:Ae,clearFilterAfterSelect:qe,valueField:Qe}=e;if(ye&&!Ae){const{value:Je}=h,tt=Je[0]||null;if(tt){const it=f.value;it.length?it.push(tt):f.value=[tt],h.value=T}}if(Ae&&R.value.set(Q[Qe],Q),e.multiple){const Je=H(l.value),tt=Je.findIndex(it=>it===Q[Qe]);if(~tt){if(Je.splice(tt,1),ye&&!Ae){const it=de(Q[Qe]);~it&&(f.value.splice(it,1),qe&&(u.value=""))}}else Je.push(Q[Qe]),qe&&(u.value="");pe(Je,q(Je))}else{if(ye&&!Ae){const Je=de(Q[Qe]);~Je?f.value=[f.value[Je]]:f.value=T}Me(),L(),pe(Q[Qe],Q)}}function de(Q){return f.value.findIndex(Ae=>Ae[e.valueField]===Q)}function ue(Q){_.value||ce();const{value:ye}=Q.target;u.value=ye;const{tag:Ae,remote:qe}=e;if(ee(ye),Ae&&!qe){if(!ye){h.value=T;return}const{onCreate:Qe}=e,Je=Qe?Qe(ye):{[e.labelField]:ye,[e.valueField]:ye},{valueField:tt,labelField:it}=e;d.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])||f.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])?h.value=T:h.value=[Je]}}function ie(Q){Q.stopPropagation();const{multiple:ye}=e;!ye&&e.filterable&&L(),N(),ye?pe([],[]):pe(null,null)}function fe(Q){!lo(Q,"action")&&!lo(Q,"empty")&&!lo(Q,"header")&&Q.preventDefault()}function Fe(Q){G(Q)}function De(Q){var ye,Ae,qe,Qe,Je;if(!e.keyboard){Q.preventDefault();return}switch(Q.key){case" ":if(e.filterable)break;Q.preventDefault();case"Enter":if(!(!((ye=S.value)===null||ye===void 0)&&ye.isComposing)){if(_.value){const tt=(Ae=x.value)===null||Ae===void 0?void 0:Ae.getPendingTmNode();tt?te(tt):e.filterable||(L(),Me())}else if(ce(),e.tag&&Oe.value){const tt=h.value[0];if(tt){const it=tt[e.valueField],{value:vt}=l;e.multiple&&Array.isArray(vt)&&vt.includes(it)||Ce(tt)}}}Q.preventDefault();break;case"ArrowUp":if(Q.preventDefault(),e.loading)return;_.value&&((qe=x.value)===null||qe===void 0||qe.prev());break;case"ArrowDown":if(Q.preventDefault(),e.loading)return;_.value?(Qe=x.value)===null||Qe===void 0||Qe.next():ce();break;case"Escape":_.value&&(p8(Q),L()),(Je=S.value)===null||Je===void 0||Je.focus();break}}function Me(){var Q;(Q=S.value)===null||Q===void 0||Q.focus()}function Ne(){var Q;(Q=S.value)===null||Q===void 0||Q.focusInput()}function et(){var Q;_.value&&((Q=y.value)===null||Q===void 0||Q.syncPosition())}ne(),ft(Ue(e,"options"),ne);const $e={focus:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.focus()},focusInput:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.focusInput()},blur:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.blur()},blurInput:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.blurInput()}},Xe=I(()=>{const{self:{menuBoxShadow:Q}}=i.value;return{"--n-menu-box-shadow":Q}}),gt=r?Pt("select",void 0,Xe,e):void 0;return Object.assign(Object.assign({},$e),{mergedStatus:ae,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:b,isMounted:Zr(),triggerRef:S,menuRef:x,pattern:u,uncontrolledShow:C,mergedShow:_,adjustedTo:Ko(e),uncontrolledValue:a,mergedValue:l,followerRef:y,localizedPlaceholder:k,selectedOption:B,selectedOptions:D,mergedSize:K,mergedDisabled:V,focused:c,activeWithoutMenuOpen:Oe,inlineThemeDisabled:r,onTriggerInputFocus:je,onTriggerInputBlur:F,handleTriggerOrMenuResize:et,handleMenuFocus:oe,handleMenuBlur:ve,handleMenuTabOut:ke,handleTriggerClick:A,handleToggle:te,handleDeleteOption:Ce,handlePatternInput:ue,handleClear:ie,handleTriggerBlur:re,handleTriggerFocus:we,handleKeydown:De,handleMenuAfterLeave:be,handleMenuClickOutside:$,handleMenuScroll:Fe,handleMenuKeydown:De,handleMenuMousedown:fe,mergedTheme:i,cssVars:r?void 0:Xe,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Vp,null,{default:()=>[v(Wp,null,{default:()=>v(oj,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(Kp,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ko.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),dn(v(Y_,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var o,r;return[(r=(o=this.$slots).empty)===null||r===void 0?void 0:r.call(o)]},header:()=>{var o,r;return[(r=(o=this.$slots).header)===null||r===void 0?void 0:r.call(o)]},action:()=>{var o,r;return[(r=(o=this.$slots).action)===null||r===void 0?void 0:r.call(o)]}}),this.displayDirective==="show"?[[Mn,this.mergedShow],[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),EV={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 IS(e){const{textColor2:t,primaryColor:n,primaryColorHover:o,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},EV),{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:o,itemTextColorPressed:r,itemTextColorActive:n,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 ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:a})}const RV={name:"Pagination",common:xt,peers:{Select:AS,Input:mm,Popselect:ym},self:IS},OS=RV,AV={name:"Pagination",common:He,peers:{Select:$S,Input:go,Popselect:TS},self(e){const{primaryColor:t,opacity3:n}=e,o=Ie(t,{alpha:Number(n)}),r=IS(e);return r.itemBorderActive=`1px solid ${o}`,r.itemBorderDisabled="1px solid #0000",r}},MS=AV,e1=` background: var(--n-item-color-hover); color: var(--n-item-text-color-hover); border: var(--n-item-border-hover); -`,r1=[Z("button",` +`,t1=[J("button",` background: var(--n-button-color-hover); border: var(--n-button-border-hover); color: var(--n-button-icon-color-hover); - `)],OW=L("pagination",` + `)],$V=z("pagination",` display: flex; vertical-align: middle; font-size: var(--n-item-font-size); flex-wrap: nowrap; -`,[L("pagination-prefix",` +`,[z("pagination-prefix",` display: flex; align-items: center; margin: var(--n-prefix-margin); - `),L("pagination-suffix",` + `),z("pagination-suffix",` display: flex; align-items: center; margin: var(--n-suffix-margin); - `),G("> *:not(:first-child)",` + `),W("> *:not(:first-child)",` margin: var(--n-item-margin); - `),L("select",` + `),z("select",` width: var(--n-select-width); - `),G("&.transition-disabled",[L("pagination-item","transition: none!important;")]),L("pagination-quick-jumper",` + `),W("&.transition-disabled",[z("pagination-item","transition: none!important;")]),z("pagination-quick-jumper",` white-space: nowrap; display: flex; color: var(--n-jumper-text-color); transition: color .3s var(--n-bezier); align-items: center; font-size: var(--n-jumper-font-size); - `,[L("input",` + `,[z("input",` margin: var(--n-input-margin); width: var(--n-input-width); - `)]),L("pagination-item",` + `)]),z("pagination-item",` position: relative; cursor: pointer; user-select: none; @@ -1786,45 +1769,54 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), fill .3s var(--n-bezier); - `,[Z("button",` + `,[J("button",` background: var(--n-button-color); color: var(--n-button-icon-color); border: var(--n-button-border); padding: 0; - `,[L("base-icon",` + `,[z("base-icon",` font-size: var(--n-button-icon-size); - `)]),$t("disabled",[Z("hover",o1,r1),G("&:hover",o1,r1),G("&:active",` + `)]),Et("disabled",[J("hover",e1,t1),W("&:hover",e1,t1),W("&:active",` background: var(--n-item-color-pressed); color: var(--n-item-text-color-pressed); border: var(--n-item-border-pressed); - `,[Z("button",` + `,[J("button",` background: var(--n-button-color-pressed); border: var(--n-button-border-pressed); color: var(--n-button-icon-color-pressed); - `)]),Z("active",` + `)]),J("active",` background: var(--n-item-color-active); color: var(--n-item-text-color-active); border: var(--n-item-border-active); - `,[G("&:hover",` + `,[W("&:hover",` background: var(--n-item-color-active-hover); - `)])]),Z("disabled",` + `)])]),J("disabled",` cursor: not-allowed; color: var(--n-item-text-color-disabled); - `,[Z("active, button",` + `,[J("active, button",` background-color: var(--n-item-color-disabled); border: var(--n-item-border-disabled); - `)])]),Z("disabled",` + `)])]),J("disabled",` cursor: not-allowed; - `,[L("pagination-quick-jumper",` + `,[z("pagination-quick-jumper",` color: var(--n-jumper-text-color-disabled); - `)]),Z("simple",` + `)]),J("simple",` display: flex; align-items: center; flex-wrap: nowrap; - `,[L("pagination-quick-jumper",[L("input",` + `,[z("pagination-quick-jumper",[z("input",` margin: 0; - `)])])]);function D2(e){var t;if(!e)return 10;const{defaultPageSize:n}=e;if(n!==void 0)return n;const o=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof o=="number"?o:(o==null?void 0:o.value)||10}function zW(e,t,n,o){let r=!1,i=!1,s=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,c=t;let u=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),c-2),u-=Math.floor(f),u=Math.max(Math.min(u,c-n+3),l+2);let h=!1,p=!1;u>l+2&&(h=!0),d=l+1&&m.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let g=u;g<=d;++g)m.push({type:"page",label:g,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===g});return p?(i=!0,a=d+1,m.push({type:"fast-forward",active:!1,label:void 0,options:o?i1(d+1,c-1):null})):d===c-2&&m[m.length-1].label!==c-1&&m.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),m[m.length-1].label!==c&&m.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:s,fastForwardTo:a,items:m}}function i1(e,t){const n=[];for(let o=e;o<=t;++o)n.push({label:`${o}`,value:o});return n}const DW=Object.assign(Object.assign({},Be.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ko.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),LW=be({name:"Pagination",props:DW,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=lt(e),i=Be("Pagination","-pagination",OW,O2,e,n),{localeRef:s}=Vi("Pagination"),a=H(null),l=H(e.defaultPage),c=H(D2(e)),u=ln(ze(e,"page"),l),d=ln(ze(e,"pageSize"),c),f=D(()=>{const{itemCount:j}=e;if(j!==void 0)return Math.max(1,Math.ceil(j/d.value));const{pageCount:ye}=e;return ye!==void 0?Math.max(ye,1):1}),h=H("");Jt(()=>{e.simple,h.value=String(u.value)});const p=H(!1),m=H(!1),g=H(!1),b=H(!1),w=()=>{e.disabled||(p.value=!0,M())},C=()=>{e.disabled||(p.value=!1,M())},S=()=>{m.value=!0,M()},_=()=>{m.value=!1,M()},x=j=>{z(j)},y=D(()=>zW(u.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Jt(()=>{y.value.hasFastBackward?y.value.hasFastForward||(p.value=!1,g.value=!1):(m.value=!1,b.value=!1)});const T=D(()=>{const j=s.value.selectionSuffix;return e.pageSizes.map(ye=>typeof ye=="number"?{label:`${ye} / ${j}`,value:ye}:ye)}),k=D(()=>{var j,ye;return((ye=(j=t==null?void 0:t.value)===null||j===void 0?void 0:j.Pagination)===null||ye===void 0?void 0:ye.inputSize)||Qb(e.size)}),P=D(()=>{var j,ye;return((ye=(j=t==null?void 0:t.value)===null||j===void 0?void 0:j.Pagination)===null||ye===void 0?void 0:ye.selectSize)||Qb(e.size)}),I=D(()=>(u.value-1)*d.value),R=D(()=>{const j=u.value*d.value-1,{itemCount:ye}=e;return ye!==void 0&&j>ye-1?ye-1:j}),W=D(()=>{const{itemCount:j}=e;return j!==void 0?j:(e.pageCount||1)*d.value}),O=gn("Pagination",r,n);function M(){Vt(()=>{var j;const{value:ye}=a;ye&&(ye.classList.add("transition-disabled"),(j=a.value)===null||j===void 0||j.offsetWidth,ye.classList.remove("transition-disabled"))})}function z(j){if(j===u.value)return;const{"onUpdate:page":ye,onUpdatePage:Ie,onChange:Le,simple:U}=e;ye&&$e(ye,j),Ie&&$e(Ie,j),Le&&$e(Le,j),l.value=j,U&&(h.value=String(j))}function K(j){if(j===d.value)return;const{"onUpdate:pageSize":ye,onUpdatePageSize:Ie,onPageSizeChange:Le}=e;ye&&$e(ye,j),Ie&&$e(Ie,j),Le&&$e(Le,j),c.value=j,f.value{u.value,d.value,M()});const Q=D(()=>{const{size:j}=e,{self:{buttonBorder:ye,buttonBorderHover:Ie,buttonBorderPressed:Le,buttonIconColor:U,buttonIconColorHover:B,buttonIconColorPressed:ae,itemTextColor:Se,itemTextColorHover:te,itemTextColorPressed:xe,itemTextColorActive:ve,itemTextColorDisabled:$,itemColor:N,itemColorHover:ee,itemColorPressed:we,itemColorActive:de,itemColorActiveHover:he,itemColorDisabled:re,itemBorder:me,itemBorderHover:Ne,itemBorderPressed:He,itemBorderActive:De,itemBorderDisabled:ot,itemBorderRadius:nt,jumperTextColor:Ge,jumperTextColorDisabled:Me,buttonColor:tt,buttonColorHover:X,buttonColorPressed:ce,[Re("itemPadding",j)]:Ee,[Re("itemMargin",j)]:Fe,[Re("inputWidth",j)]:Ve,[Re("selectWidth",j)]:Xe,[Re("inputMargin",j)]:Qe,[Re("selectMargin",j)]:rt,[Re("jumperFontSize",j)]:wt,[Re("prefixMargin",j)]:Ft,[Re("suffixMargin",j)]:Et,[Re("itemSize",j)]:yn,[Re("buttonIconSize",j)]:cn,[Re("itemFontSize",j)]:Te,[`${Re("itemMargin",j)}Rtl`]:Ue,[`${Re("inputMargin",j)}Rtl`]:et},common:{cubicBezierEaseInOut:ft}}=i.value;return{"--n-prefix-margin":Ft,"--n-suffix-margin":Et,"--n-item-font-size":Te,"--n-select-width":Xe,"--n-select-margin":rt,"--n-input-width":Ve,"--n-input-margin":Qe,"--n-input-margin-rtl":et,"--n-item-size":yn,"--n-item-text-color":Se,"--n-item-text-color-disabled":$,"--n-item-text-color-hover":te,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":xe,"--n-item-color":N,"--n-item-color-hover":ee,"--n-item-color-disabled":re,"--n-item-color-active":de,"--n-item-color-active-hover":he,"--n-item-color-pressed":we,"--n-item-border":me,"--n-item-border-hover":Ne,"--n-item-border-disabled":ot,"--n-item-border-active":De,"--n-item-border-pressed":He,"--n-item-padding":Ee,"--n-item-border-radius":nt,"--n-bezier":ft,"--n-jumper-font-size":wt,"--n-jumper-text-color":Ge,"--n-jumper-text-color-disabled":Me,"--n-item-margin":Fe,"--n-item-margin-rtl":Ue,"--n-button-icon-size":cn,"--n-button-icon-color":U,"--n-button-icon-color-hover":B,"--n-button-icon-color-pressed":ae,"--n-button-color-hover":X,"--n-button-color":tt,"--n-button-color-pressed":ce,"--n-button-border":ye,"--n-button-border-hover":Ie,"--n-button-border-pressed":Le}}),Ce=o?Rt("pagination",D(()=>{let j="";const{size:ye}=e;return j+=ye[0],j}),Q,e):void 0;return{rtlEnabled:O,mergedClsPrefix:n,locale:s,selfRef:a,mergedPage:u,pageItems:D(()=>y.value.items),mergedItemCount:W,jumperValue:h,pageSizeOptions:T,mergedPageSize:d,inputSize:k,selectSize:P,mergedTheme:i,mergedPageCount:f,startIndex:I,endIndex:R,showFastForwardMenu:g,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:m,handleMenuSelect:x,handleFastForwardMouseenter:w,handleFastForwardMouseleave:C,handleFastBackwardMouseenter:S,handleFastBackwardMouseleave:_,handleJumperInput:fe,handleBackwardClick:se,handleForwardClick:J,handlePageItemClick:ne,handleSizePickerChange:E,handleQuickJumperChange:Y,cssVars:o?void 0:Q,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:o,mergedPage:r,mergedPageCount:i,pageItems:s,showSizePicker:a,showQuickJumper:l,mergedTheme:c,locale:u,inputSize:d,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:m,simple:g,prev:b,next:w,prefix:C,suffix:S,label:_,goto:x,handleJumperInput:y,handleSizePickerChange:T,handleBackwardClick:k,handlePageItemClick:P,handleForwardClick:I,handleQuickJumperChange:R,onRender:W}=this;W==null||W();const O=C||e.prefix,M=S||e.suffix,z=b||e.prev,K=w||e.next,J=_||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,g&&`${t}-pagination--simple`],style:o},O?v("div",{class:`${t}-pagination-prefix`},O({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(se=>{switch(se){case"pages":return v(st,null,v("div",{class:[`${t}-pagination-item`,!z&&`${t}-pagination-item--button`,(r<=1||r>i||n)&&`${t}-pagination-item--disabled`],onClick:k},z?z({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(N0,null):v(L0,null)})),g?v(st,null,v("div",{class:`${t}-pagination-quick-jumper`},v(ur,{value:m,onUpdateValue:y,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:R}))," /"," ",i):s.map((le,F)=>{let E,A,Y;const{type:ne}=le;switch(ne){case"page":const Q=le.label;J?E=J({type:"page",node:Q,active:le.active}):E=Q;break;case"fast-forward":const Ce=this.fastForwardActive?v(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(F0,null):v(B0,null)}):v(Gt,{clsPrefix:t},{default:()=>v(H0,null)});J?E=J({type:"fast-forward",node:Ce,active:this.fastForwardActive||this.showFastForwardMenu}):E=Ce,A=this.handleFastForwardMouseenter,Y=this.handleFastForwardMouseleave;break;case"fast-backward":const j=this.fastBackwardActive?v(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(B0,null):v(F0,null)}):v(Gt,{clsPrefix:t},{default:()=>v(H0,null)});J?E=J({type:"fast-backward",node:j,active:this.fastBackwardActive||this.showFastBackwardMenu}):E=j,A=this.handleFastBackwardMouseenter,Y=this.handleFastBackwardMouseleave;break}const fe=v("div",{key:F,class:[`${t}-pagination-item`,le.active&&`${t}-pagination-item--active`,ne!=="page"&&(ne==="fast-backward"&&this.showFastBackwardMenu||ne==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,ne==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{P(le)},onMouseenter:A,onMouseleave:Y},E);if(ne==="page"&&!le.mayBeFastBackward&&!le.mayBeFastForward)return fe;{const Q=le.type==="page"?le.mayBeFastBackward?"fast-backward":"fast-forward":le.type;return le.type!=="page"&&!le.options?fe:v(wm,{to:this.to,key:Q,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:ne==="page"?!1:ne==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ce=>{ne!=="page"&&(Ce?ne==="fast-backward"?this.showFastBackwardMenu=Ce:this.showFastForwardMenu=Ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:le.type!=="page"&&le.options?le.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>fe})}}),v("div",{class:[`${t}-pagination-item`,!K&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||n}],onClick:I},K?K({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(L0,null):v(N0,null)})));case"size-picker":return!g&&a?v(zu,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!g&&l?v("div",{class:`${t}-pagination-quick-jumper`},x?x():Dn(this.$slots.goto,()=>[u.goto]),v(ur,{value:m,onUpdateValue:y,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:R})):null;default:return null}}),M?v("div",{class:`${t}-pagination-suffix`},M({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),FW={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 L2(e){const{primaryColor:t,textColor2:n,dividerColor:o,hoverColor:r,popoverColor:i,invertedColor:s,borderRadius:a,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:m,textColor3:g,opacityDisabled:b}=e;return Object.assign(Object.assign({},FW),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:m,borderRadius:a,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:r,optionColorActive:Ae(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const BW={name:"Dropdown",common:xt,peers:{Popover:Gs},self:L2},_m=BW,NW={name:"Dropdown",common:je,peers:{Popover:Zi},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:o}=e,r=L2(e);return r.colorInverted=o,r.optionColorActive=Ae(n,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},Sm=NW,F2={padding:"8px 14px"},HW={name:"Tooltip",common:je,peers:{Popover:Zi},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r}=e;return Object.assign(Object.assign({},F2),{borderRadius:t,boxShadow:n,color:o,textColor:r})}},Du=HW;function jW(e){const{borderRadius:t,boxShadow2:n,baseColor:o}=e;return Object.assign(Object.assign({},F2),{borderRadius:t,boxShadow:n,color:Ye(o,"rgba(0, 0, 0, .85)"),textColor:o})}const VW={name:"Tooltip",common:xt,peers:{Popover:Gs},self:jW},km=VW,WW={name:"Ellipsis",common:je,peers:{Tooltip:Du}},B2=WW,UW={name:"Ellipsis",common:xt,peers:{Tooltip:km}},N2=UW,H2={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},qW={name:"Radio",common:je,self(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:s,opacityDisabled:a,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:m}=e;return Object.assign(Object.assign({},H2),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ae(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ae(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},j2=qW;function KW(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:s,opacityDisabled:a,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:m}=e;return Object.assign(Object.assign({},H2),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ae(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ae(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const GW={name:"Radio",common:xt,self:KW},Pm=GW,YW={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 V2(e){const{cardColor:t,modalColor:n,popoverColor:o,textColor2:r,textColor1:i,tableHeaderColor:s,tableColorHover:a,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:m,dividerColor:g,heightSmall:b,opacityDisabled:w,tableColorStriped:C}=e;return Object.assign(Object.assign({},YW),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:m,borderColor:Ye(t,g),tdColorHover:Ye(t,a),tdColorSorting:Ye(t,a),tdColorStriped:Ye(t,C),thColor:Ye(t,s),thColorHover:Ye(Ye(t,s),a),thColorSorting:Ye(Ye(t,s),a),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:u,thButtonColorHover:a,thIconColor:l,thIconColorActive:c,borderColorModal:Ye(n,g),tdColorHoverModal:Ye(n,a),tdColorSortingModal:Ye(n,a),tdColorStripedModal:Ye(n,C),thColorModal:Ye(n,s),thColorHoverModal:Ye(Ye(n,s),a),thColorSortingModal:Ye(Ye(n,s),a),tdColorModal:n,borderColorPopover:Ye(o,g),tdColorHoverPopover:Ye(o,a),tdColorSortingPopover:Ye(o,a),tdColorStripedPopover:Ye(o,C),thColorPopover:Ye(o,s),thColorHoverPopover:Ye(Ye(o,s),a),thColorSortingPopover:Ye(Ye(o,s),a),tdColorPopover:o,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:b,opacityLoading:w})}const XW={name:"DataTable",common:xt,peers:{Button:Ou,Checkbox:S2,Radio:Pm,Pagination:O2,Scrollbar:Yi,Empty:Mu,Popover:Gs,Ellipsis:N2,Dropdown:_m},self:V2},ZW=XW,JW={name:"DataTable",common:je,peers:{Button:Kn,Checkbox:Ys,Radio:j2,Pagination:z2,Scrollbar:qn,Empty:Xi,Popover:Zi,Ellipsis:B2,Dropdown:Sm},self(e){const t=V2(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}},QW=JW,eU=Object.assign(Object.assign({},Be.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Oo="n-data-table",W2=40,U2=40;function s1(e){if(e.type==="selection")return e.width===void 0?W2:Cn(e.width);if(e.type==="expand")return e.width===void 0?U2:Cn(e.width);if(!("children"in e))return typeof e.width=="string"?Cn(e.width):e.width}function tU(e){var t,n;if(e.type==="selection")return qt((t=e.width)!==null&&t!==void 0?t:W2);if(e.type==="expand")return qt((n=e.width)!==null&&n!==void 0?n:U2);if(!("children"in e))return qt(e.width)}function So(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function a1(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function nU(e){return e==="ascend"?1:e==="descend"?-1:0}function oU(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function rU(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=tU(e),{minWidth:o,maxWidth:r}=e;return{width:n,minWidth:qt(o)||n,maxWidth:qt(r)}}function iU(e,t,n){return typeof n=="function"?n(e,t):n||""}function tf(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function nf(e){return"children"in e?!1:!!e.sorter}function q2(e){return"children"in e&&e.children.length?!1:!!e.resizable}function l1(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function c1(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function sU(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:c1(!1)}:Object.assign(Object.assign({},t),{order:c1(t.order)})}function K2(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}function aU(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function lU(e,t,n,o){const r=e.filter(a=>a.type!=="expand"&&a.type!=="selection"&&a.allowExport!==!1),i=r.map(a=>o?o(a):a.title).join(","),s=t.map(a=>r.map(l=>n?n(a[l.key],a,l):aU(a[l.key])).join(","));return[i,...s].join(` -`)}const cU=be({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=We(Oo);return()=>{const{rowKey:o}=e;return v(gl,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),uU=L("radio",` + `)])])]);function zS(e){var t;if(!e)return 10;const{defaultPageSize:n}=e;if(n!==void 0)return n;const o=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof o=="number"?o:(o==null?void 0:o.value)||10}function IV(e,t,n,o){let r=!1,i=!1,a=1,s=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,c=t;let u=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),c-2),u-=Math.floor(f),u=Math.max(Math.min(u,c-n+3),l+2);let h=!1,p=!1;u>l+2&&(h=!0),d=l+1&&g.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let m=u;m<=d;++m)g.push({type:"page",label:m,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===m});return p?(i=!0,s=d+1,g.push({type:"fast-forward",active:!1,label:void 0,options:o?n1(d+1,c-1):null})):d===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:s,items:g}}function n1(e,t){const n=[];for(let o=e;o<=t;++o)n.push({label:`${o}`,value:o});return n}const OV=Object.assign(Object.assign({},Le.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ko.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),MV=xe({name:"Pagination",props:OV,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Pagination","-pagination",$V,OS,e,n),{localeRef:a}=Hi("Pagination"),s=U(null),l=U(e.defaultPage),c=U(zS(e)),u=rn(Ue(e,"page"),l),d=rn(Ue(e,"pageSize"),c),f=I(()=>{const{itemCount:L}=e;if(L!==void 0)return Math.max(1,Math.ceil(L/d.value));const{pageCount:be}=e;return be!==void 0?Math.max(be,1):1}),h=U("");Yt(()=>{e.simple,h.value=String(u.value)});const p=U(!1),g=U(!1),m=U(!1),b=U(!1),w=()=>{e.disabled||(p.value=!0,B())},C=()=>{e.disabled||(p.value=!1,B())},_=()=>{g.value=!0,B()},S=()=>{g.value=!1,B()},y=L=>{M(L)},x=I(()=>IV(u.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Yt(()=>{x.value.hasFastBackward?x.value.hasFastForward||(p.value=!1,m.value=!1):(g.value=!1,b.value=!1)});const P=I(()=>{const L=a.value.selectionSuffix;return e.pageSizes.map(be=>typeof be=="number"?{label:`${be} / ${L}`,value:be}:be)}),k=I(()=>{var L,be;return((be=(L=t==null?void 0:t.value)===null||L===void 0?void 0:L.Pagination)===null||be===void 0?void 0:be.inputSize)||gb(e.size)}),T=I(()=>{var L,be;return((be=(L=t==null?void 0:t.value)===null||L===void 0?void 0:L.Pagination)===null||be===void 0?void 0:be.selectSize)||gb(e.size)}),R=I(()=>(u.value-1)*d.value),E=I(()=>{const L=u.value*d.value-1,{itemCount:be}=e;return be!==void 0&&L>be-1?be-1:L}),q=I(()=>{const{itemCount:L}=e;return L!==void 0?L:(e.pageCount||1)*d.value}),D=pn("Pagination",r,n);function B(){Ht(()=>{var L;const{value:be}=s;be&&(be.classList.add("transition-disabled"),(L=s.value)===null||L===void 0||L.offsetWidth,be.classList.remove("transition-disabled"))})}function M(L){if(L===u.value)return;const{"onUpdate:page":be,onUpdatePage:Oe,onChange:je,simple:F}=e;be&&Re(be,L),Oe&&Re(Oe,L),je&&Re(je,L),l.value=L,F&&(h.value=String(L))}function K(L){if(L===d.value)return;const{"onUpdate:pageSize":be,onUpdatePageSize:Oe,onPageSizeChange:je}=e;be&&Re(be,L),Oe&&Re(Oe,L),je&&Re(je,L),c.value=L,f.value{u.value,d.value,B()});const X=I(()=>{const{size:L}=e,{self:{buttonBorder:be,buttonBorderHover:Oe,buttonBorderPressed:je,buttonIconColor:F,buttonIconColorHover:A,buttonIconColorPressed:re,itemTextColor:we,itemTextColorHover:oe,itemTextColorPressed:ve,itemTextColorActive:ke,itemTextColorDisabled:$,itemColor:H,itemColorHover:te,itemColorPressed:Ce,itemColorActive:de,itemColorActiveHover:ue,itemColorDisabled:ie,itemBorder:fe,itemBorderHover:Fe,itemBorderPressed:De,itemBorderActive:Me,itemBorderDisabled:Ne,itemBorderRadius:et,jumperTextColor:$e,jumperTextColorDisabled:Xe,buttonColor:gt,buttonColorHover:Q,buttonColorPressed:ye,[Te("itemPadding",L)]:Ae,[Te("itemMargin",L)]:qe,[Te("inputWidth",L)]:Qe,[Te("selectWidth",L)]:Je,[Te("inputMargin",L)]:tt,[Te("selectMargin",L)]:it,[Te("jumperFontSize",L)]:vt,[Te("prefixMargin",L)]:an,[Te("suffixMargin",L)]:Ft,[Te("itemSize",L)]:_e,[Te("buttonIconSize",L)]:Be,[Te("itemFontSize",L)]:Ze,[`${Te("itemMargin",L)}Rtl`]:ht,[`${Te("inputMargin",L)}Rtl`]:bt},common:{cubicBezierEaseInOut:ut}}=i.value;return{"--n-prefix-margin":an,"--n-suffix-margin":Ft,"--n-item-font-size":Ze,"--n-select-width":Je,"--n-select-margin":it,"--n-input-width":Qe,"--n-input-margin":tt,"--n-input-margin-rtl":bt,"--n-item-size":_e,"--n-item-text-color":we,"--n-item-text-color-disabled":$,"--n-item-text-color-hover":oe,"--n-item-text-color-active":ke,"--n-item-text-color-pressed":ve,"--n-item-color":H,"--n-item-color-hover":te,"--n-item-color-disabled":ie,"--n-item-color-active":de,"--n-item-color-active-hover":ue,"--n-item-color-pressed":Ce,"--n-item-border":fe,"--n-item-border-hover":Fe,"--n-item-border-disabled":Ne,"--n-item-border-active":Me,"--n-item-border-pressed":De,"--n-item-padding":Ae,"--n-item-border-radius":et,"--n-bezier":ut,"--n-jumper-font-size":vt,"--n-jumper-text-color":$e,"--n-jumper-text-color-disabled":Xe,"--n-item-margin":qe,"--n-item-margin-rtl":ht,"--n-button-icon-size":Be,"--n-button-icon-color":F,"--n-button-icon-color-hover":A,"--n-button-icon-color-pressed":re,"--n-button-color-hover":Q,"--n-button-color":gt,"--n-button-color-pressed":ye,"--n-button-border":be,"--n-button-border-hover":Oe,"--n-button-border-pressed":je}}),ce=o?Pt("pagination",I(()=>{let L="";const{size:be}=e;return L+=be[0],L}),X,e):void 0;return{rtlEnabled:D,mergedClsPrefix:n,locale:a,selfRef:s,mergedPage:u,pageItems:I(()=>x.value.items),mergedItemCount:q,jumperValue:h,pageSizeOptions:P,mergedPageSize:d,inputSize:k,selectSize:T,mergedTheme:i,mergedPageCount:f,startIndex:R,endIndex:E,showFastForwardMenu:m,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:y,handleFastForwardMouseenter:w,handleFastForwardMouseleave:C,handleFastBackwardMouseenter:_,handleFastBackwardMouseleave:S,handleJumperInput:ne,handleBackwardClick:ae,handleForwardClick:V,handlePageItemClick:G,handleSizePickerChange:N,handleQuickJumperChange:ee,cssVars:o?void 0:X,themeClass:ce==null?void 0:ce.themeClass,onRender:ce==null?void 0:ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:o,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:s,showQuickJumper:l,mergedTheme:c,locale:u,inputSize:d,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:g,simple:m,prev:b,next:w,prefix:C,suffix:_,label:S,goto:y,handleJumperInput:x,handleSizePickerChange:P,handleBackwardClick:k,handlePageItemClick:T,handleForwardClick:R,handleQuickJumperChange:E,onRender:q}=this;q==null||q();const D=e.prefix||C,B=e.suffix||_,M=b||e.prev,K=w||e.next,V=S||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:o},D?v("div",{class:`${t}-pagination-prefix`},D({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ae=>{switch(ae){case"pages":return v(rt,null,v("div",{class:[`${t}-pagination-item`,!M&&`${t}-pagination-item--button`,(r<=1||r>i||n)&&`${t}-pagination-item--disabled`],onClick:k},M?M({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(D0,null):v(M0,null)})),m?v(rt,null,v("div",{class:`${t}-pagination-quick-jumper`},v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E}))," /"," ",i):a.map((pe,Z)=>{let N,O,ee;const{type:G}=pe;switch(G){case"page":const X=pe.label;V?N=V({type:"page",node:X,active:pe.active}):N=X;break;case"fast-forward":const ce=this.fastForwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(z0,null):v(F0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(L0,null)});V?N=V({type:"fast-forward",node:ce,active:this.fastForwardActive||this.showFastForwardMenu}):N=ce,O=this.handleFastForwardMouseenter,ee=this.handleFastForwardMouseleave;break;case"fast-backward":const L=this.fastBackwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(F0,null):v(z0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(L0,null)});V?N=V({type:"fast-backward",node:L,active:this.fastBackwardActive||this.showFastBackwardMenu}):N=L,O=this.handleFastBackwardMouseenter,ee=this.handleFastBackwardMouseleave;break}const ne=v("div",{key:Z,class:[`${t}-pagination-item`,pe.active&&`${t}-pagination-item--active`,G!=="page"&&(G==="fast-backward"&&this.showFastBackwardMenu||G==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,G==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{T(pe)},onMouseenter:O,onMouseleave:ee},N);if(G==="page"&&!pe.mayBeFastBackward&&!pe.mayBeFastForward)return ne;{const X=pe.type==="page"?pe.mayBeFastBackward?"fast-backward":"fast-forward":pe.type;return pe.type!=="page"&&!pe.options?ne:v(Cm,{to:this.to,key:X,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:G==="page"?!1:G==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:ce=>{G!=="page"&&(ce?G==="fast-backward"?this.showFastBackwardMenu=ce:this.showFastForwardMenu=ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:pe.type!=="page"&&pe.options?pe.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ne})}}),v("div",{class:[`${t}-pagination-item`,!K&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||n}],onClick:R},K?K({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(M0,null):v(D0,null)})));case"size-picker":return!m&&s?v(Ou,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:P})):null;case"quick-jumper":return!m&&l?v("div",{class:`${t}-pagination-quick-jumper`},y?y():$n(this.$slots.goto,()=>[u.goto]),v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E})):null;default:return null}}),B?v("div",{class:`${t}-pagination-suffix`},B({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),FS={padding:"8px 14px"},zV={name:"Tooltip",common:He,peers:{Popover:Xi},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r}=e;return Object.assign(Object.assign({},FS),{borderRadius:t,boxShadow:n,color:o,textColor:r})}},Mu=zV;function FV(e){const{borderRadius:t,boxShadow2:n,baseColor:o}=e;return Object.assign(Object.assign({},FS),{borderRadius:t,boxShadow:n,color:Ke(o,"rgba(0, 0, 0, .85)"),textColor:o})}const DV={name:"Tooltip",common:xt,peers:{Popover:qa},self:FV},wm=DV,LV={name:"Ellipsis",common:He,peers:{Tooltip:Mu}},DS=LV,BV={name:"Ellipsis",common:xt,peers:{Tooltip:wm}},LS=BV,BS={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},NV={name:"Radio",common:He,self(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},BS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},NS=NV;function HV(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},BS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const jV={name:"Radio",common:xt,self:HV},_m=jV,UV={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 HS(e){const{primaryColor:t,textColor2:n,dividerColor:o,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:m,opacityDisabled:b}=e;return Object.assign(Object.assign({},UV),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:r,optionColorActive:Ie(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const VV={name:"Dropdown",common:xt,peers:{Popover:qa},self:HS},Sm=VV,WV={name:"Dropdown",common:He,peers:{Popover:Xi},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:o}=e,r=HS(e);return r.colorInverted=o,r.optionColorActive=Ie(n,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},km=WV,qV={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 jS(e){const{cardColor:t,modalColor:n,popoverColor:o,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:m,heightSmall:b,opacityDisabled:w,tableColorStriped:C}=e;return Object.assign(Object.assign({},qV),{actionDividerColor:m,lineHeight:f,borderRadius:d,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ke(t,m),tdColorHover:Ke(t,s),tdColorSorting:Ke(t,s),tdColorStriped:Ke(t,C),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),s),thColorSorting:Ke(Ke(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Ke(n,m),tdColorHoverModal:Ke(n,s),tdColorSortingModal:Ke(n,s),tdColorStripedModal:Ke(n,C),thColorModal:Ke(n,a),thColorHoverModal:Ke(Ke(n,a),s),thColorSortingModal:Ke(Ke(n,a),s),tdColorModal:n,borderColorPopover:Ke(o,m),tdColorHoverPopover:Ke(o,s),tdColorSortingPopover:Ke(o,s),tdColorStripedPopover:Ke(o,C),thColorPopover:Ke(o,a),thColorHoverPopover:Ke(Ke(o,a),s),thColorSortingPopover:Ke(Ke(o,a),s),tdColorPopover:o,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:b,opacityLoading:w})}const KV={name:"DataTable",common:xt,peers:{Button:Iu,Checkbox:_S,Radio:_m,Pagination:OS,Scrollbar:Gi,Empty:$u,Popover:qa,Ellipsis:LS,Dropdown:Sm},self:jS},GV=KV,XV={name:"DataTable",common:He,peers:{Button:Vn,Checkbox:Ka,Radio:NS,Pagination:MS,Scrollbar:Un,Empty:Ki,Popover:Xi,Ellipsis:DS,Dropdown:km},self(e){const t=jS(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}},YV=XV,QV=Object.assign(Object.assign({},Aa),Le.props),zu=xe({name:"Tooltip",props:QV,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Tooltip","-tooltip",void 0,wm,e,t),o=U(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:n,popoverThemeOverrides:I(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(hl,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)}}),US=z("ellipsis",{overflow:"hidden"},[Et("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),J("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),J("cursor-pointer",` + cursor: pointer; + `)]);function Fh(e){return`${e}-ellipsis--line-clamp`}function Dh(e,t){return`${e}-ellipsis--cursor-${t}`}const VS=Object.assign(Object.assign({},Le.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Pm=xe({name:"Ellipsis",inheritAttrs:!1,props:VS,setup(e,{slots:t,attrs:n}){const o=z_(),r=Le("Ellipsis","-ellipsis",US,LS,e,o),i=U(null),a=U(null),s=U(null),l=U(!1),c=I(()=>{const{lineClamp:m}=e,{value:b}=l;return m!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":m}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function u(){let m=!1;const{value:b}=l;if(b)return!0;const{value:w}=i;if(w){const{lineClamp:C}=e;if(h(w),C!==void 0)m=w.scrollHeight<=w.offsetHeight;else{const{value:_}=a;_&&(m=_.getBoundingClientRect().width<=w.getBoundingClientRect().width)}p(w,m)}return m}const d=I(()=>e.expandTrigger==="click"?()=>{var m;const{value:b}=l;b&&((m=s.value)===null||m===void 0||m.setShow(!1)),l.value=!b}:void 0);Xc(()=>{var m;e.tooltip&&((m=s.value)===null||m===void 0||m.setShow(!1))});const f=()=>v("span",Object.assign({},Ln(n,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?Fh(o.value):void 0,e.expandTrigger==="click"?Dh(o.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(m){if(!m)return;const b=c.value,w=Fh(o.value);e.lineClamp!==void 0?g(m,w,"add"):g(m,w,"remove");for(const C in b)m.style[C]!==b[C]&&(m.style[C]=b[C])}function p(m,b){const w=Dh(o.value,"pointer");e.expandTrigger==="click"&&!b?g(m,w,"add"):g(m,w,"remove")}function g(m,b,w){w==="add"?m.classList.contains(b)||m.classList.add(b):m.classList.contains(b)&&m.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:s,handleClick:d,renderTrigger:f,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:o}=this;if(t){const{mergedTheme:r}=this;return v(zu,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:n,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return n()}}),JV=xe({name:"PerformantEllipsis",props:VS,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){const o=U(!1),r=z_();return ei("-ellipsis",US,r),{mouseEntered:o,renderTrigger:()=>{const{lineClamp:a}=e,s=r.value;return v("span",Object.assign({},Ln(t,{class:[`${s}-ellipsis`,a!==void 0?Fh(s):void 0,e.expandTrigger==="click"?Dh(s,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{o.value=!0}}),a?n:v("span",null,n))}}},render(){return this.mouseEntered?v(Pm,Ln({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),ZV=Object.assign(Object.assign({},Le.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Mo="n-data-table",eW=xe({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),tW=xe({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=Ve(Mo),r=I(()=>n.value.find(l=>l.columnKey===e.column.key)),i=I(()=>r.value!==void 0),a=I(()=>{const{value:l}=r;return l&&i.value?l.order:!1}),s=I(()=>{var l,c;return((c=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:a,mergedRenderSorter:s}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:o}=this.column;return e?v(eW,{render:e,order:t}):v("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},o?o({order:t}):v(Wt,{clsPrefix:n},{default:()=>v(kN,null)}))}}),WS={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},qS="n-radio-group";function KS(e){const t=Ve(qS,null),n=mr(e,{mergedSize(w){const{size:C}=e;if(C!==void 0)return C;if(t){const{mergedSizeRef:{value:_}}=t;if(_!==void 0)return _}return w?w.mergedSize.value:"medium"},mergedDisabled(w){return!!(e.disabled||t!=null&&t.disabledRef.value||w!=null&&w.disabled.value)}}),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=U(null),a=U(null),s=U(e.defaultChecked),l=Ue(e,"checked"),c=rn(l,s),u=kt(()=>t?t.valueRef.value===e.value:c.value),d=kt(()=>{const{name:w}=e;if(w!==void 0)return w;if(t)return t.nameRef.value}),f=U(!1);function h(){if(t){const{doUpdateValue:w}=t,{value:C}=e;Re(w,C)}else{const{onUpdateChecked:w,"onUpdate:checked":C}=e,{nTriggerFormInput:_,nTriggerFormChange:S}=n;w&&Re(w,!0),C&&Re(C,!0),_(),S(),s.value=!0}}function p(){r.value||u.value||h()}function g(){p(),i.value&&(i.value.checked=u.value)}function m(){f.value=!1}function b(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:st(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:d,mergedDisabled:r,renderSafeChecked:u,focus:f,mergedSize:o,handleRadioInputChange:g,handleRadioInputBlur:m,handleRadioInputFocus:b}}const nW=z("radio",` line-height: var(--n-label-line-height); outline: none; position: relative; @@ -1835,14 +1827,14 @@ ${t} flex-wrap: nowrap; font-size: var(--n-font-size); word-break: break-word; -`,[Z("checked",[V("dot",` +`,[J("checked",[j("dot",` background-color: var(--n-color-active); - `)]),V("dot-wrapper",` + `)]),j("dot-wrapper",` position: relative; flex-shrink: 0; flex-grow: 0; width: var(--n-radio-size); - `),L("radio-input",` + `),z("radio-input",` position: absolute; border: 0; border-radius: inherit; @@ -1853,7 +1845,7 @@ ${t} opacity: 0; z-index: 1; cursor: pointer; - `),V("dot",` + `),j("dot",` position: absolute; top: 50%; left: 0; @@ -1866,7 +1858,7 @@ ${t} transition: background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `,[G("&::before",` + `,[W("&::before",` content: ""; opacity: 0; position: absolute; @@ -1881,27 +1873,27 @@ ${t} opacity .3s var(--n-bezier), background-color .3s var(--n-bezier), transform .3s var(--n-bezier); - `),Z("checked",{boxShadow:"var(--n-box-shadow-active)"},[G("&::before",` + `),J("checked",{boxShadow:"var(--n-box-shadow-active)"},[W("&::before",` opacity: 1; transform: scale(1); - `)])]),V("label",` + `)])]),j("label",` color: var(--n-text-color); padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); display: inline-block; transition: color .3s var(--n-bezier); - `),$t("disabled",` + `),Et("disabled",` cursor: pointer; - `,[G("&:hover",[V("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Z("focus",[G("&:not(:active)",[V("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Z("disabled",` + `,[W("&:hover",[j("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),J("focus",[W("&:not(:active)",[j("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),J("disabled",` cursor: not-allowed; - `,[V("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[G("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Z("checked",` + `,[j("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[W("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),J("checked",` opacity: 1; - `)]),V("label",{color:"var(--n-text-color-disabled)"}),L("radio-input",` + `)]),j("label",{color:"var(--n-text-color-disabled)"}),z("radio-input",` cursor: not-allowed; - `)])]),G2={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Y2="n-radio-group";function X2(e){const t=We(Y2,null),n=pr(e,{mergedSize(w){const{size:C}=e;if(C!==void 0)return C;if(t){const{mergedSizeRef:{value:S}}=t;if(S!==void 0)return S}return w?w.mergedSize.value:"medium"},mergedDisabled(w){return!!(e.disabled||t!=null&&t.disabledRef.value||w!=null&&w.disabled.value)}}),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=H(null),s=H(null),a=H(e.defaultChecked),l=ze(e,"checked"),c=ln(l,a),u=Ct(()=>t?t.valueRef.value===e.value:c.value),d=Ct(()=>{const{name:w}=e;if(w!==void 0)return w;if(t)return t.nameRef.value}),f=H(!1);function h(){if(t){const{doUpdateValue:w}=t,{value:C}=e;$e(w,C)}else{const{onUpdateChecked:w,"onUpdate:checked":C}=e,{nTriggerFormInput:S,nTriggerFormChange:_}=n;w&&$e(w,!0),C&&$e(C,!0),S(),_(),a.value=!0}}function p(){r.value||u.value||h()}function m(){p(),i.value&&(i.value.checked=u.value)}function g(){f.value=!1}function b(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:lt(e).mergedClsPrefixRef,inputRef:i,labelRef:s,mergedName:d,mergedDisabled:r,renderSafeChecked:u,focus:f,mergedSize:o,handleRadioInputChange:m,handleRadioInputBlur:g,handleRadioInputFocus:b}}const dU=Object.assign(Object.assign({},Be.props),G2),Z2=be({name:"Radio",props:dU,setup(e){const t=X2(e),n=Be("Radio","-radio",uU,Pm,e,t.mergedClsPrefix),o=D(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:m,color:g,colorDisabled:b,colorActive:w,textColor:C,textColorDisabled:S,dotColorActive:_,dotColorDisabled:x,labelPadding:y,labelLineHeight:T,labelFontWeight:k,[Re("fontSize",c)]:P,[Re("radioSize",c)]:I}}=n.value;return{"--n-bezier":u,"--n-label-line-height":T,"--n-label-font-weight":k,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":m,"--n-color":g,"--n-color-active":w,"--n-color-disabled":b,"--n-dot-color-active":_,"--n-dot-color-disabled":x,"--n-font-size":P,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":S,"--n-label-padding":y}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:s}=lt(e),a=gn("Radio",s,i),l=r?Rt("radio",D(()=>t.mergedSize.value[0]),o,e):void 0;return Object.assign(t,{rtlEnabled:a,cssVars:r?void 0:o,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:o}=this;return n==null||n(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Mt(e.default,r=>!r&&!o?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||o)))}}),fU=be({name:"RadioButton",props:G2,setup:X2,render(){const{mergedClsPrefix:e}=this;return v("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},v("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${e}-radio-button__state-border`}),Mt(this.$slots.default,t=>!t&&!this.label?null:v("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),hU=L("radio-group",` + `)])]),oW=Object.assign(Object.assign({},Le.props),WS),GS=xe({name:"Radio",props:oW,setup(e){const t=KS(e),n=Le("Radio","-radio",nW,_m,e,t.mergedClsPrefix),o=I(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:m,colorDisabled:b,colorActive:w,textColor:C,textColorDisabled:_,dotColorActive:S,dotColorDisabled:y,labelPadding:x,labelLineHeight:P,labelFontWeight:k,[Te("fontSize",c)]:T,[Te("radioSize",c)]:R}}=n.value;return{"--n-bezier":u,"--n-label-line-height":P,"--n-label-font-weight":k,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":m,"--n-color-active":w,"--n-color-disabled":b,"--n-dot-color-active":S,"--n-dot-color-disabled":y,"--n-font-size":T,"--n-radio-size":R,"--n-text-color":C,"--n-text-color-disabled":_,"--n-label-padding":x}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=st(e),s=pn("Radio",a,i),l=r?Pt("radio",I(()=>t.mergedSize.value[0]),o,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:r?void 0:o,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:o}=this;return n==null||n(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),At(e.default,r=>!r&&!o?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||o)))}}),rW=z("radio-group",` display: inline-block; font-size: var(--n-font-size); -`,[V("splitor",` +`,[j("splitor",` display: inline-block; vertical-align: bottom; width: 1px; @@ -1909,11 +1901,11 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier); background: var(--n-button-border-color); - `,[Z("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Z("disabled",{opacity:"var(--n-opacity-disabled)"})]),Z("button-group",` + `,[J("checked",{backgroundColor:"var(--n-button-border-color-active)"}),J("disabled",{opacity:"var(--n-opacity-disabled)"})]),J("button-group",` white-space: nowrap; height: var(--n-height); line-height: var(--n-height); - `,[L("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),V("splitor",{height:"var(--n-height)"})]),L("radio-button",` + `,[z("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),j("splitor",{height:"var(--n-height)"})]),z("radio-button",` vertical-align: bottom; outline: none; position: relative; @@ -1933,7 +1925,7 @@ ${t} color: var(--n-button-text-color); border-top: 1px solid var(--n-button-border-color); border-bottom: 1px solid var(--n-button-border-color); - `,[L("radio-input",` + `,[z("radio-input",` pointer-events: none; position: absolute; border: 0; @@ -1944,7 +1936,7 @@ ${t} bottom: 0; opacity: 0; z-index: 1; - `),V("state-border",` + `),j("state-border",` z-index: 1; pointer-events: none; position: absolute; @@ -1954,43 +1946,34 @@ ${t} bottom: -1px; right: -1px; top: -1px; - `),G("&:first-child",` + `),W("&:first-child",` border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); border-left: 1px solid var(--n-button-border-color); - `,[V("state-border",` + `,[j("state-border",` border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); - `)]),G("&:last-child",` + `)]),W("&:last-child",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); border-right: 1px solid var(--n-button-border-color); - `,[V("state-border",` + `,[j("state-border",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); - `)]),$t("disabled",` + `)]),Et("disabled",` cursor: pointer; - `,[G("&:hover",[V("state-border",` + `,[W("&:hover",[j("state-border",` transition: box-shadow .3s var(--n-bezier); box-shadow: var(--n-button-box-shadow-hover); - `),$t("checked",{color:"var(--n-button-text-color-hover)"})]),Z("focus",[G("&:not(:active)",[V("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Z("checked",` + `),Et("checked",{color:"var(--n-button-text-color-hover)"})]),J("focus",[W("&:not(:active)",[j("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),J("checked",` background: var(--n-button-color-active); color: var(--n-button-text-color-active); border-color: var(--n-button-border-color-active); - `),Z("disabled",` + `),J("disabled",` cursor: not-allowed; opacity: var(--n-opacity-disabled); - `)])]);function pU(e,t,n){var o;const r=[];let i=!1;for(let s=0;s{const{value:_}=n,{common:{cubicBezierEaseInOut:x},self:{buttonBorderColor:y,buttonBorderColorActive:T,buttonBorderRadius:k,buttonBoxShadow:P,buttonBoxShadowFocus:I,buttonBoxShadowHover:R,buttonColor:W,buttonColorActive:O,buttonTextColor:M,buttonTextColorActive:z,buttonTextColorHover:K,opacityDisabled:J,[Re("buttonHeight",_)]:se,[Re("fontSize",_)]:le}}=d.value;return{"--n-font-size":le,"--n-bezier":x,"--n-button-border-color":y,"--n-button-border-color-active":T,"--n-button-border-radius":k,"--n-button-box-shadow":P,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":R,"--n-button-color":W,"--n-button-color-active":O,"--n-button-text-color":M,"--n-button-text-color-hover":K,"--n-button-text-color-active":z,"--n-height":se,"--n-opacity-disabled":J}}),S=c?Rt("radio-group",D(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:w,mergedClsPrefix:l,mergedValue:p,handleFocusout:b,handleFocusin:g,cssVars:c?void 0:C,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:o,handleFocusout:r}=this,{children:i,isButtonGroup:s}=pU(Ii(qw(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:o,onFocusout:r,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,s&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),gU=be({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=We(Oo);return()=>{const{rowKey:o}=e;return v(Z2,{name:n,disabled:e.disabled,checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),vU=Object.assign(Object.assign({},Is),Be.props),Lu=be({name:"Tooltip",props:vU,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=Be("Tooltip","-tooltip",void 0,km,e,t),o=H(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:n,popoverThemeOverrides:D(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(pl,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)}}),Q2=L("ellipsis",{overflow:"hidden"},[$t("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),Z("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),Z("cursor-pointer",` - cursor: pointer; - `)]);function Oh(e){return`${e}-ellipsis--line-clamp`}function zh(e,t){return`${e}-ellipsis--cursor-${t}`}const eS=Object.assign(Object.assign({},Be.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Tm=be({name:"Ellipsis",inheritAttrs:!1,props:eS,slots:Object,setup(e,{slots:t,attrs:n}){const o=Kw(),r=Be("Ellipsis","-ellipsis",Q2,N2,e,o),i=H(null),s=H(null),a=H(null),l=H(!1),c=D(()=>{const{lineClamp:g}=e,{value:b}=l;return g!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":g}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function u(){let g=!1;const{value:b}=l;if(b)return!0;const{value:w}=i;if(w){const{lineClamp:C}=e;if(h(w),C!==void 0)g=w.scrollHeight<=w.offsetHeight;else{const{value:S}=s;S&&(g=S.getBoundingClientRect().width<=w.getBoundingClientRect().width)}p(w,g)}return g}const d=D(()=>e.expandTrigger==="click"?()=>{var g;const{value:b}=l;b&&((g=a.value)===null||g===void 0||g.setShow(!1)),l.value=!b}:void 0);Xc(()=>{var g;e.tooltip&&((g=a.value)===null||g===void 0||g.setShow(!1))});const f=()=>v("span",Object.assign({},Ln(n,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?Oh(o.value):void 0,e.expandTrigger==="click"?zh(o.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(g){if(!g)return;const b=c.value,w=Oh(o.value);e.lineClamp!==void 0?m(g,w,"add"):m(g,w,"remove");for(const C in b)g.style[C]!==b[C]&&(g.style[C]=b[C])}function p(g,b){const w=zh(o.value,"pointer");e.expandTrigger==="click"&&!b?m(g,w,"add"):m(g,w,"remove")}function m(g,b,w){w==="add"?g.classList.contains(b)||g.classList.add(b):g.classList.contains(b)&&g.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:s,tooltipRef:a,handleClick:d,renderTrigger:f,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:o}=this;if(t){const{mergedTheme:r}=this;return v(Lu,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:n,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return n()}}),bU=be({name:"PerformantEllipsis",props:eS,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){const o=H(!1),r=Kw();return ei("-ellipsis",Q2,r),{mouseEntered:o,renderTrigger:()=>{const{lineClamp:s}=e,a=r.value;return v("span",Object.assign({},Ln(t,{class:[`${a}-ellipsis`,s!==void 0?Oh(a):void 0,e.expandTrigger==="click"?zh(a,"pointer"):void 0],style:s===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":s}}),{onMouseenter:()=>{o.value=!0}}),s?n:v("span",null,n))}}},render(){return this.mouseEntered?v(Tm,Ln({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),yU=be({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:n,row:o,renderCell:r}=this;let i;const{render:s,key:a,ellipsis:l}=n;if(s&&!t?i=s(o,this.index):t?i=(e=o[a])===null||e===void 0?void 0:e.value:i=r?r(Sh(o,a),o,n):Sh(o,a),l)if(typeof l=="object"){const{mergedTheme:c}=this;return n.ellipsisComponent==="performant-ellipsis"?v(bU,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Tm,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),u1=be({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):v(Gt,{clsPrefix:e,key:"base-icon"},{default:()=>v(dm,null)})}))}}),xU=be({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=lt(e),o=gn("DataTable",n,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:s}=We(Oo),a=H(e.value),l=D(()=>{const{value:p}=a;return Array.isArray(p)?p:null}),c=D(()=>{const{value:p}=a;return tf(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function u(p){e.onChange(p)}function d(p){e.multiple&&Array.isArray(p)?a.value=p:tf(e.column)&&!Array.isArray(p)?a.value=[p]:a.value=p}function f(){u(a.value),e.onConfirm()}function h(){e.multiple||tf(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:o,mergedTheme:i,locale:s,checkboxGroupValue:l,radioGroupValue:c,handleChange:d,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return v("div",{class:[`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`]},v(Mo,null,{default:()=>{const{checkboxGroupValue:o,handleChange:r}=this;return this.multiple?v(iW,{value:o,class:`${n}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(gl,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(J2,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(Z2,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${n}-data-table-filter-menu__action`},v(Lt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(Lt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),CU=be({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function wU(e,t,n){const o=Object.assign({},e);return o[t]=n,o}const _U=be({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=lt(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:s,doUpdatePage:a,doUpdateFilters:l,filterIconPopoverPropsRef:c}=We(Oo),u=H(!1),d=r,f=D(()=>e.column.filterMultiple!==!1),h=D(()=>{const C=d.value[e.column.key];if(C===void 0){const{value:S}=f;return S?[]:null}return C}),p=D(()=>{const{value:C}=h;return Array.isArray(C)?C.length>0:C!==null}),m=D(()=>{var C,S;return((S=(C=t==null?void 0:t.value)===null||C===void 0?void 0:C.DataTable)===null||S===void 0?void 0:S.renderFilter)||e.column.renderFilter});function g(C){const S=wU(d.value,e.column.key,C);l(S,e.column),s.value==="first"&&a(1)}function b(){u.value=!1}function w(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:o,active:p,showPopover:u,mergedRenderFilter:m,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:g,handleFilterMenuConfirm:w,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n,filterIconPopoverProps:o}=this;return v(pl,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},o,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(CU,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Gt,{clsPrefix:t},{default:()=>v(HN,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):v(xU,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),SU=be({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=We(Oo),n=H(!1);let o=0;function r(l){return l.clientX}function i(l){var c;l.preventDefault();const u=n.value;o=r(l),n.value=!0,u||(St("mousemove",window,s),St("mouseup",window,a),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function s(l){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(l)-o)}function a(){var l;n.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),Tt("mousemove",window,s),Tt("mouseup",window,a)}return rn(()=>{Tt("mousemove",window,s),Tt("mouseup",window,a)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),kU=be({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),PU=be({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=lt(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=We(Oo),r=D(()=>n.value.find(l=>l.columnKey===e.column.key)),i=D(()=>r.value!==void 0),s=D(()=>{const{value:l}=r;return l&&i.value?l.order:!1}),a=D(()=>{var l,c;return((c=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:s,mergedRenderSorter:a}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:o}=this.column;return e?v(kU,{render:e,order:t}):v("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},o?o({order:t}):v(Gt,{clsPrefix:n},{default:()=>v(MN,null)}))}}),Rm="n-dropdown-menu",Fu="n-dropdown",d1="n-dropdown-option",tS=be({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),TU=be({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=We(Rm),{renderLabelRef:n,labelFieldRef:o,nodePropsRef:r,renderOptionRef:i}=We(Fu);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:o,nodeProps:r,renderLabel:i,renderOption:s}=this,{rawNode:a}=this.tmNode,l=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(a)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Kt(a.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(a):Kt((e=a.title)!==null&&e!==void 0?e:a[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return s?s({node:l,option:a}):l}});function nS(e){const{textColorBase:t,opacity1:n,opacity2:o,opacity3:r,opacity4:i,opacity5:s}=e;return{color:t,opacity1Depth:n,opacity2Depth:o,opacity3Depth:r,opacity4Depth:i,opacity5Depth:s}}const RU={name:"Icon",common:xt,self:nS},EU=RU,$U={name:"Icon",common:je,self:nS},AU=$U,IU=L("icon",` + `)])]);function iW(e,t,n){var o;const r=[];let i=!1;for(let a=0;a{const{value:S}=n,{common:{cubicBezierEaseInOut:y},self:{buttonBorderColor:x,buttonBorderColorActive:P,buttonBorderRadius:k,buttonBoxShadow:T,buttonBoxShadowFocus:R,buttonBoxShadowHover:E,buttonColor:q,buttonColorActive:D,buttonTextColor:B,buttonTextColorActive:M,buttonTextColorHover:K,opacityDisabled:V,[Te("buttonHeight",S)]:ae,[Te("fontSize",S)]:pe}}=d.value;return{"--n-font-size":pe,"--n-bezier":y,"--n-button-border-color":x,"--n-button-border-color-active":P,"--n-button-border-radius":k,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":R,"--n-button-box-shadow-hover":E,"--n-button-color":q,"--n-button-color-active":D,"--n-button-text-color":B,"--n-button-text-color-hover":K,"--n-button-text-color-active":M,"--n-height":ae,"--n-opacity-disabled":V}}),_=c?Pt("radio-group",I(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:w,mergedClsPrefix:l,mergedValue:p,handleFocusout:b,handleFocusin:m,cssVars:c?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:o,handleFocusout:r}=this,{children:i,isButtonGroup:a}=iW(Ta(fw(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:o,onFocusout:r,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),sW=xe({name:"RadioButton",props:WS,setup:KS,render(){const{mergedClsPrefix:e}=this;return v("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},v("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${e}-radio-button__state-border`}),At(this.$slots.default,t=>!t&&!this.label?null:v("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),YS=40,QS=40;function o1(e){if(e.type==="selection")return e.width===void 0?YS:bn(e.width);if(e.type==="expand")return e.width===void 0?QS:bn(e.width);if(!("children"in e))return typeof e.width=="string"?bn(e.width):e.width}function lW(e){var t,n;if(e.type==="selection")return qt((t=e.width)!==null&&t!==void 0?t:YS);if(e.type==="expand")return qt((n=e.width)!==null&&n!==void 0?n:QS);if(!("children"in e))return qt(e.width)}function _o(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function r1(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function cW(e){return e==="ascend"?1:e==="descend"?-1:0}function uW(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function dW(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=lW(e),{minWidth:o,maxWidth:r}=e;return{width:n,minWidth:qt(o)||n,maxWidth:qt(r)}}function fW(e,t,n){return typeof n=="function"?n(e,t):n||""}function tf(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function nf(e){return"children"in e?!1:!!e.sorter}function JS(e){return"children"in e&&e.children.length?!1:!!e.resizable}function i1(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function a1(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function hW(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:a1(!1)}:Object.assign(Object.assign({},t),{order:a1(t.order)})}function ZS(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}function pW(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function mW(e,t){const n=e.filter(i=>i.type!=="expand"&&i.type!=="selection"),o=n.map(i=>i.title).join(","),r=t.map(i=>n.map(a=>pW(i[a.key])).join(","));return[o,...r].join(` +`)}const gW=xe({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("DataTable",n,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Ve(Mo),s=U(e.value),l=I(()=>{const{value:p}=s;return Array.isArray(p)?p:null}),c=I(()=>{const{value:p}=s;return tf(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function u(p){e.onChange(p)}function d(p){e.multiple&&Array.isArray(p)?s.value=p:tf(e.column)&&!Array.isArray(p)?s.value=[p]:s.value=p}function f(){u(s.value),e.onConfirm()}function h(){e.multiple||tf(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:o,mergedTheme:i,locale:a,checkboxGroupValue:l,radioGroupValue:c,handleChange:d,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return v("div",{class:[`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`]},v(Oo,null,{default:()=>{const{checkboxGroupValue:o,handleChange:r}=this;return this.multiple?v(oV,{value:o,class:`${n}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(ml,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(XS,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(GS,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${n}-data-table-filter-menu__action`},v(zt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(zt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),vW=xe({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function bW(e,t,n){const o=Object.assign({},e);return o[t]=n,o}const yW=xe({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:s,doUpdateFilters:l,filterIconPopoverPropsRef:c}=Ve(Mo),u=U(!1),d=r,f=I(()=>e.column.filterMultiple!==!1),h=I(()=>{const C=d.value[e.column.key];if(C===void 0){const{value:_}=f;return _?[]:null}return C}),p=I(()=>{const{value:C}=h;return Array.isArray(C)?C.length>0:C!==null}),g=I(()=>{var C,_;return((_=(C=t==null?void 0:t.value)===null||C===void 0?void 0:C.DataTable)===null||_===void 0?void 0:_.renderFilter)||e.column.renderFilter});function m(C){const _=bW(d.value,e.column.key,C);l(_,e.column),a.value==="first"&&s(1)}function b(){u.value=!1}function w(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:o,active:p,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:m,handleFilterMenuConfirm:w,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n,filterIconPopoverProps:o}=this;return v(hl,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},o,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(vW,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Wt,{clsPrefix:t},{default:()=>v($N,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):v(gW,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),xW=xe({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ve(Mo),n=U(!1);let o=0;function r(l){return l.clientX}function i(l){var c;l.preventDefault();const u=n.value;o=r(l),n.value=!0,u||($t("mousemove",window,a),$t("mouseup",window,s),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(l){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(l)-o)}function s(){var l;n.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),Tt("mousemove",window,a),Tt("mouseup",window,s)}return on(()=>{Tt("mousemove",window,a),Tt("mouseup",window,s)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),e2=xe({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function t2(e){const{textColorBase:t,opacity1:n,opacity2:o,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:o,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const CW={name:"Icon",common:xt,self:t2},wW=CW,_W={name:"Icon",common:He,self:t2},SW=_W,kW=z("icon",` height: 1em; width: 1em; line-height: 1em; @@ -1999,7 +1982,7 @@ ${t} position: relative; fill: currentColor; transform: translateZ(0); -`,[Z("color-transition",{transition:"color .3s var(--n-bezier)"}),Z("depth",{color:"var(--n-color)"},[G("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),G("svg",{height:"1em",width:"1em"})]),MU=Object.assign(Object.assign({},Be.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),vr=be({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:MU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Icon","-icon",IU,EU,e,t),r=D(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:a},self:l}=o.value;if(s!==void 0){const{color:c,[`opacity${s}Depth`]:u}=l;return{"--n-bezier":a,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":a,"--n-color":"","--n-opacity":""}}),i=n?Rt("icon",D(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:D(()=>{const{size:s,color:a}=e;return{fontSize:qt(s),color:a}}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:o,component:r,onRender:i,themeClass:s}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Go("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",Ln(this.$attrs,{role:"img",class:[`${o}-icon`,s,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}});function Dh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function OU(e){return e.type==="group"}function oS(e){return e.type==="divider"}function zU(e){return e.type==="render"}const rS=be({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=We(Fu),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:s,animatedRef:a,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:m}=t,g=We(d1,null),b=We(Rm),w=We(js),C=D(()=>e.tmNode.rawNode),S=D(()=>{const{value:K}=f;return Dh(e.tmNode.rawNode,K)}),_=D(()=>{const{disabled:K}=e.tmNode;return K}),x=D(()=>{if(!S.value)return!1;const{key:K,disabled:J}=e.tmNode;if(J)return!1;const{value:se}=n,{value:le}=o,{value:F}=r,{value:E}=i;return se!==null?E.includes(K):le!==null?E.includes(K)&&E[E.length-1]!==K:F!==null?E.includes(K):!1}),y=D(()=>o.value===null&&!a.value),T=E8(x,300,y),k=D(()=>!!(g!=null&&g.enteringSubmenuRef.value)),P=H(!1);at(d1,{enteringSubmenuRef:P});function I(){P.value=!0}function R(){P.value=!1}function W(){const{parentKey:K,tmNode:J}=e;J.disabled||l.value&&(r.value=K,o.value=null,n.value=J.key)}function O(){const{tmNode:K}=e;K.disabled||l.value&&n.value!==K.key&&W()}function M(K){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:J}=K;J&&!fo({target:J},"dropdownOption")&&!fo({target:J},"scrollbarRail")&&(n.value=null)}function z(){const{value:K}=S,{tmNode:J}=e;l.value&&!K&&!J.disabled&&(t.doSelect(J.key,J.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:m,popoverBody:w,animated:a,mergedShowSubmenu:D(()=>T.value&&!k.value),rawNode:C,hasSubmenu:S,pending:Ct(()=>{const{value:K}=i,{key:J}=e.tmNode;return K.includes(J)}),childActive:Ct(()=>{const{value:K}=s,{key:J}=e.tmNode,se=K.findIndex(le=>J===le);return se===-1?!1:se{const{value:K}=s,{key:J}=e.tmNode,se=K.findIndex(le=>J===le);return se===-1?!1:se===K.length-1}),mergedDisabled:_,renderOption:h,nodeProps:p,handleClick:z,handleMouseMove:O,handleMouseEnter:W,handleMouseLeave:M,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:R}},render(){var e,t;const{animated:n,rawNode:o,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:s,siblingHasSubmenu:a,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:f,scrollable:h}=this;let p=null;if(r){const w=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);p=v(iS,Object.assign({},w,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const m={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=d==null?void 0:d(o),b=v("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),v("div",Ln(m,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,s&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Kt(o.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Kt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,a&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(vr,null,{default:()=>v(dm,null)}):null)]),this.hasSubmenu?v(Kp,null,{default:()=>[v(Gp,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(Xp,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},n?v(pn,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return u?u({node:b,option:o}):b}}),DU=be({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:n}=this,{children:o}=e;return v(st,null,v(TU,{clsPrefix:n,tmNode:e,key:e.key}),o==null?void 0:o.map(r=>{const{rawNode:i}=r;return i.show===!1?null:oS(i)?v(tS,{clsPrefix:n,key:r.key}):r.isGroup?(Go("dropdown","`group` node is not allowed to be put in `group` node."),null):v(rS,{clsPrefix:n,tmNode:r,parentKey:t,key:r.key})}))}}),LU=be({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),iS=be({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:n}=We(Fu);at(Rm,{showIconRef:D(()=>{const r=t.value;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:a}=i;return r?r(a):a.icon})}),hasSubmenuRef:D(()=>{const{value:r}=n;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:l})=>Dh(l,r));const{rawNode:a}=i;return Dh(a,r)})})});const o=H(null);return at(ul,null),at(cl,null),at(js,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,o=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:zU(i)?v(LU,{tmNode:r,key:r.key}):oS(i)?v(tS,{clsPrefix:t,key:r.key}):OU(i)?v(DU,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(rS,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n})});return v("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?v(U_,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?e2({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),FU=L("dropdown-menu",` +`,[J("color-transition",{transition:"color .3s var(--n-bezier)"}),J("depth",{color:"var(--n-color)"},[W("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),W("svg",{height:"1em",width:"1em"})]),PW=Object.assign(Object.assign({},Le.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Xo=xe({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:PW,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Icon","-icon",kW,wW,e,t),r=I(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=n?Pt("icon",I(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:I(()=>{const{size:a,color:s}=e;return{fontSize:qt(a),color:s}}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:o,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&cr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",Ln(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}}),Tm="n-dropdown-menu",Fu="n-dropdown",s1="n-dropdown-option";function Lh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function TW(e){return e.type==="group"}function n2(e){return e.type==="divider"}function EW(e){return e.type==="render"}const o2=xe({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ve(Fu),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:g}=t,m=Ve(s1,null),b=Ve(Tm),w=Ve(ja),C=I(()=>e.tmNode.rawNode),_=I(()=>{const{value:K}=f;return Lh(e.tmNode.rawNode,K)}),S=I(()=>{const{disabled:K}=e.tmNode;return K}),y=I(()=>{if(!_.value)return!1;const{key:K,disabled:V}=e.tmNode;if(V)return!1;const{value:ae}=n,{value:pe}=o,{value:Z}=r,{value:N}=i;return ae!==null?N.includes(K):pe!==null?N.includes(K)&&N[N.length-1]!==K:Z!==null?N.includes(K):!1}),x=I(()=>o.value===null&&!s.value),P=m8(y,300,x),k=I(()=>!!(m!=null&&m.enteringSubmenuRef.value)),T=U(!1);at(s1,{enteringSubmenuRef:T});function R(){T.value=!0}function E(){T.value=!1}function q(){const{parentKey:K,tmNode:V}=e;V.disabled||l.value&&(r.value=K,o.value=null,n.value=V.key)}function D(){const{tmNode:K}=e;K.disabled||l.value&&n.value!==K.key&&q()}function B(K){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:V}=K;V&&!lo({target:V},"dropdownOption")&&!lo({target:V},"scrollbarRail")&&(n.value=null)}function M(){const{value:K}=_,{tmNode:V}=e;l.value&&!K&&!V.disabled&&(t.doSelect(V.key,V.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:w,animated:s,mergedShowSubmenu:I(()=>P.value&&!k.value),rawNode:C,hasSubmenu:_,pending:kt(()=>{const{value:K}=i,{key:V}=e.tmNode;return K.includes(V)}),childActive:kt(()=>{const{value:K}=a,{key:V}=e.tmNode,ae=K.findIndex(pe=>V===pe);return ae===-1?!1:ae{const{value:K}=a,{key:V}=e.tmNode,ae=K.findIndex(pe=>V===pe);return ae===-1?!1:ae===K.length-1}),mergedDisabled:S,renderOption:h,nodeProps:p,handleClick:M,handleMouseMove:D,handleMouseEnter:q,handleMouseLeave:B,handleSubmenuBeforeEnter:R,handleSubmenuAfterEnter:E}},render(){var e,t;const{animated:n,rawNode:o,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:f,scrollable:h}=this;let p=null;if(r){const w=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);p=v(r2,Object.assign({},w,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=d==null?void 0:d(o),b=v("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),v("div",Ln(g,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Vt(o.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Vt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(Xo,null,{default:()=>v(um,null)}):null)]),this.hasSubmenu?v(Vp,null,{default:()=>[v(Wp,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(Kp,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},n?v(fn,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return u?u({node:b,option:o}):b}}),RW=xe({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ve(Tm),{renderLabelRef:n,labelFieldRef:o,nodePropsRef:r,renderOptionRef:i}=Ve(Fu);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:o,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Vt(s.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Vt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),AW=xe({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:o}=e;return v(rt,null,v(RW,{clsPrefix:n,tmNode:e,key:e.key}),o==null?void 0:o.map(r=>{const{rawNode:i}=r;return i.show===!1?null:n2(i)?v(e2,{clsPrefix:n,key:r.key}):r.isGroup?(cr("dropdown","`group` node is not allowed to be put in `group` node."),null):v(o2,{clsPrefix:n,tmNode:r,parentKey:t,key:r.key})}))}}),$W=xe({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),r2=xe({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Ve(Fu);at(Tm,{showIconRef:I(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:I(()=>{const{value:r}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Lh(l,r));const{rawNode:s}=i;return Lh(s,r)})})});const o=U(null);return at(sl,null),at(ll,null),at(ja,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,o=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:EW(i)?v($W,{tmNode:r,key:r.key}):n2(i)?v(e2,{clsPrefix:t,key:r.key}):TW(i)?v(AW,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(o2,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n})});return v("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?v(G_,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?Z_({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),IW=z("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); @@ -2008,20 +1991,20 @@ ${t} transition: background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); -`,[Ks(),L("dropdown-option",` +`,[Wa(),z("dropdown-option",` position: relative; - `,[G("a",` + `,[W("a",` text-decoration: none; color: inherit; outline: none; - `,[G("&::before",` + `,[W("&::before",` content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `)]),L("dropdown-option-body",` + `)]),z("dropdown-option-body",` display: flex; cursor: pointer; position: relative; @@ -2030,7 +2013,7 @@ ${t} font-size: var(--n-font-size); color: var(--n-option-text-color); transition: color .3s var(--n-bezier); - `,[G("&::before",` + `,[W("&::before",` content: ""; position: absolute; top: 0; @@ -2039,29 +2022,29 @@ ${t} right: 4px; transition: background-color .3s var(--n-bezier); border-radius: var(--n-border-radius); - `),$t("disabled",[Z("pending",` + `),Et("disabled",[J("pending",` color: var(--n-option-text-color-hover); - `,[V("prefix, suffix",` + `,[j("prefix, suffix",` color: var(--n-option-text-color-hover); - `),G("&::before","background-color: var(--n-option-color-hover);")]),Z("active",` + `),W("&::before","background-color: var(--n-option-color-hover);")]),J("active",` color: var(--n-option-text-color-active); - `,[V("prefix, suffix",` + `,[j("prefix, suffix",` color: var(--n-option-text-color-active); - `),G("&::before","background-color: var(--n-option-color-active);")]),Z("child-active",` + `),W("&::before","background-color: var(--n-option-color-active);")]),J("child-active",` color: var(--n-option-text-color-child-active); - `,[V("prefix, suffix",` + `,[j("prefix, suffix",` color: var(--n-option-text-color-child-active); - `)])]),Z("disabled",` + `)])]),J("disabled",` cursor: not-allowed; opacity: var(--n-option-opacity-disabled); - `),Z("group",` + `),J("group",` font-size: calc(var(--n-font-size) - 1px); color: var(--n-group-header-text-color); - `,[V("prefix",` + `,[j("prefix",` width: calc(var(--n-option-prefix-width) / 2); - `,[Z("show-icon",` + `,[J("show-icon",` width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),V("prefix",` + `)])]),j("prefix",` width: var(--n-option-prefix-width); display: flex; justify-content: center; @@ -2069,15 +2052,15 @@ ${t} color: var(--n-prefix-color); transition: color .3s var(--n-bezier); z-index: 1; - `,[Z("show-icon",` + `,[J("show-icon",` width: var(--n-option-icon-prefix-width); - `),L("icon",` + `),z("icon",` font-size: var(--n-option-icon-size); - `)]),V("label",` + `)]),j("label",` white-space: nowrap; flex: 1; z-index: 1; - `),V("suffix",` + `),j("suffix",` box-sizing: border-box; flex-grow: 0; flex-shrink: 0; @@ -2089,33 +2072,33 @@ ${t} transition: color .3s var(--n-bezier); color: var(--n-suffix-color); z-index: 1; - `,[Z("has-submenu",` + `,[J("has-submenu",` width: var(--n-option-icon-suffix-width); - `),L("icon",` + `),z("icon",` font-size: var(--n-option-icon-size); - `)]),L("dropdown-menu","pointer-events: all;")]),L("dropdown-offset-container",` + `)]),z("dropdown-menu","pointer-events: all;")]),z("dropdown-offset-container",` pointer-events: none; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; - `)]),L("dropdown-divider",` + `)]),z("dropdown-divider",` transition: background-color .3s var(--n-bezier); background-color: var(--n-divider-color); height: 1px; margin: 4px 0; - `),L("dropdown-menu-wrapper",` + `),z("dropdown-menu-wrapper",` transform-origin: var(--v-transform-origin); width: fit-content; - `),G(">",[L("scrollbar",` + `),W(">",[z("scrollbar",` height: inherit; max-height: inherit; - `)]),$t("scrollable",` + `)]),Et("scrollable",` padding: var(--n-padding); - `),Z("scrollable",[V("content",` + `),J("scrollable",[j("content",` padding: var(--n-padding); - `)])]),BU={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]},NU=Object.keys(Is),HU=Object.assign(Object.assign(Object.assign({},Is),BU),Be.props),Em=be({name:"Dropdown",inheritAttrs:!1,props:HU,setup(e){const t=H(!1),n=ln(ze(e,"show"),t),o=D(()=>{const{keyField:R,childrenField:W}=e;return Pi(e.options,{getKey(O){return O[R]},getDisabled(O){return O.disabled===!0},getIgnored(O){return O.type==="divider"||O.type==="render"},getChildren(O){return O[W]}})}),r=D(()=>o.value.treeNodes),i=H(null),s=H(null),a=H(null),l=D(()=>{var R,W,O;return(O=(W=(R=i.value)!==null&&R!==void 0?R:s.value)!==null&&W!==void 0?W:a.value)!==null&&O!==void 0?O:null}),c=D(()=>o.value.getPath(l.value).keyPath),u=D(()=>o.value.getPath(e.value).keyPath),d=Ct(()=>e.keyboard&&n.value);T8({keydown:{ArrowUp:{prevent:!0,handler:_},ArrowRight:{prevent:!0,handler:S},ArrowDown:{prevent:!0,handler:x},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:y},Escape:w}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=lt(e),p=Be("Dropdown","-dropdown",FU,_m,e,f);at(Fu,{labelFieldRef:ze(e,"labelField"),childrenFieldRef:ze(e,"childrenField"),renderLabelRef:ze(e,"renderLabel"),renderIconRef:ze(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:s,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:ze(e,"animated"),mergedShowRef:n,nodePropsRef:ze(e,"nodeProps"),renderOptionRef:ze(e,"renderOption"),menuPropsRef:ze(e,"menuProps"),doSelect:m,doUpdateShow:g}),dt(n,R=>{!e.animated&&!R&&b()});function m(R,W){const{onSelect:O}=e;O&&$e(O,R,W)}function g(R){const{"onUpdate:show":W,onUpdateShow:O}=e;W&&$e(W,R),O&&$e(O,R),t.value=R}function b(){i.value=null,s.value=null,a.value=null}function w(){g(!1)}function C(){k("left")}function S(){k("right")}function _(){k("up")}function x(){k("down")}function y(){const R=T();R!=null&&R.isLeaf&&n.value&&(m(R.key,R.rawNode),g(!1))}function T(){var R;const{value:W}=o,{value:O}=l;return!W||O===null?null:(R=W.getNode(O))!==null&&R!==void 0?R:null}function k(R){const{value:W}=l,{value:{getFirstAvailableNode:O}}=o;let M=null;if(W===null){const z=O();z!==null&&(M=z.key)}else{const z=T();if(z){let K;switch(R){case"down":K=z.getNext();break;case"up":K=z.getPrev();break;case"right":K=z.getChild();break;case"left":K=z.getParent();break}K&&(M=K.key)}}M!==null&&(i.value=null,s.value=M)}const P=D(()=>{const{size:R,inverted:W}=e,{common:{cubicBezierEaseInOut:O},self:M}=p.value,{padding:z,dividerColor:K,borderRadius:J,optionOpacityDisabled:se,[Re("optionIconSuffixWidth",R)]:le,[Re("optionSuffixWidth",R)]:F,[Re("optionIconPrefixWidth",R)]:E,[Re("optionPrefixWidth",R)]:A,[Re("fontSize",R)]:Y,[Re("optionHeight",R)]:ne,[Re("optionIconSize",R)]:fe}=M,Q={"--n-bezier":O,"--n-font-size":Y,"--n-padding":z,"--n-border-radius":J,"--n-option-height":ne,"--n-option-prefix-width":A,"--n-option-icon-prefix-width":E,"--n-option-suffix-width":F,"--n-option-icon-suffix-width":le,"--n-option-icon-size":fe,"--n-divider-color":K,"--n-option-opacity-disabled":se};return W?(Q["--n-color"]=M.colorInverted,Q["--n-option-color-hover"]=M.optionColorHoverInverted,Q["--n-option-color-active"]=M.optionColorActiveInverted,Q["--n-option-text-color"]=M.optionTextColorInverted,Q["--n-option-text-color-hover"]=M.optionTextColorHoverInverted,Q["--n-option-text-color-active"]=M.optionTextColorActiveInverted,Q["--n-option-text-color-child-active"]=M.optionTextColorChildActiveInverted,Q["--n-prefix-color"]=M.prefixColorInverted,Q["--n-suffix-color"]=M.suffixColorInverted,Q["--n-group-header-text-color"]=M.groupHeaderTextColorInverted):(Q["--n-color"]=M.color,Q["--n-option-color-hover"]=M.optionColorHover,Q["--n-option-color-active"]=M.optionColorActive,Q["--n-option-text-color"]=M.optionTextColor,Q["--n-option-text-color-hover"]=M.optionTextColorHover,Q["--n-option-text-color-active"]=M.optionTextColorActive,Q["--n-option-text-color-child-active"]=M.optionTextColorChildActive,Q["--n-prefix-color"]=M.prefixColor,Q["--n-suffix-color"]=M.suffixColor,Q["--n-group-header-text-color"]=M.groupHeaderTextColor),Q}),I=h?Rt("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),P,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:g,cssVars:h?void 0:P,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(o,r,i,s,a)=>{var l;const{mergedClsPrefix:c,menuProps:u}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(u==null?void 0:u(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:Uw(r),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:s,onMouseleave:a};return v(iS,Ln(this.$attrs,f,d))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(pl,Object.assign({},oo(this.$props,NU),n),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}}),sS="_n_all__",aS="_n_none__";function jU(e,t,n,o){return e?r=>{for(const i of e)switch(r){case sS:n(!0);return;case aS:o(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function VU(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:sS};case"none":return{label:t.uncheckTableAll,key:aS};default:return n}}):[]}const WU=be({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:o,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:s}=We(Oo),a=D(()=>jU(o.value,r,i,s)),l=D(()=>VU(o.value,n.value));return()=>{var c,u,d,f;const{clsPrefix:h}=e;return v(Em,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:a.value},{default:()=>v(Gt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(N_,null)})})}}});function of(e){return typeof e.title=="function"?e.title(e):e.title}const UU=be({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:n,width:o}=this;return v("table",{style:{tableLayout:"fixed",width:o},class:`${e}-data-table-table`},v("colgroup",null,n.map(r=>v("col",{key:r.key,style:r.style}))),v("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),lS=be({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:s,rowsRef:a,colsRef:l,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:d,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:m,headerHeightRef:g,onUnstableColumnResize:b,doUpdateResizableWidth:w,handleTableHeaderScroll:C,deriveNextSorter:S,doUncheckAll:_,doCheckAll:x}=We(Oo),y=H(),T=H({});function k(M){const z=T.value[M];return z==null?void 0:z.getBoundingClientRect().width}function P(){i.value?_():x()}function I(M,z){if(fo(M,"dataTableFilter")||fo(M,"dataTableResizable")||!nf(z))return;const K=d.value.find(se=>se.columnKey===z.key)||null,J=sU(z,K);S(J)}const R=new Map;function W(M){R.set(M.key,k(M.key))}function O(M,z){const K=R.get(M.key);if(K===void 0)return;const J=K+z,se=oU(J,M.minWidth,M.maxWidth);b(J,se,M,k),w(M,se)}return{cellElsRef:T,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:s,rows:a,cols:l,mergedTheme:c,checkOptions:u,mergedTableLayout:h,headerCheckboxDisabled:p,headerHeight:g,virtualScrollHeader:m,virtualListRef:y,handleCheckboxUpdateChecked:P,handleColHeaderClick:I,handleTableHeaderScroll:C,handleColumnResizeStart:W,handleColumnResize:O}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:s,rows:a,cols:l,mergedTheme:c,checkOptions:u,componentId:d,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:m,virtualScrollHeader:g,handleColHeaderClick:b,handleCheckboxUpdateChecked:w,handleColumnResizeStart:C,handleColumnResize:S}=this,_=(k,P,I)=>k.map(({column:R,colIndex:W,colSpan:O,rowSpan:M,isLast:z})=>{var K,J;const se=So(R),{ellipsis:le}=R,F=()=>R.type==="selection"?R.multiple!==!1?v(st,null,v(gl,{key:r,privateInsideTable:!0,checked:i,indeterminate:s,disabled:p,onUpdateChecked:w}),u?v(WU,{clsPrefix:t}):null):null:v(st,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},le===!0||le&&!le.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},of(R)):le&&typeof le=="object"?v(Tm,Object.assign({},le,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>of(R)}):of(R)),nf(R)?v(PU,{column:R}):null),l1(R)?v(_U,{column:R,options:R.filterOptions}):null,q2(R)?v(SU,{onResizeStart:()=>{C(R)},onResize:ne=>{S(R,ne)}}):null),E=se in n,A=se in o,Y=P&&!R.fixed?"div":"th";return v(Y,{ref:ne=>e[se]=ne,key:se,style:[P&&!R.fixed?{position:"absolute",left:an(P(W)),top:0,bottom:0}:{left:an((K=n[se])===null||K===void 0?void 0:K.start),right:an((J=o[se])===null||J===void 0?void 0:J.start)},{width:an(R.width),textAlign:R.titleAlign||R.align,height:I}],colspan:O,rowspan:M,"data-col-key":se,class:[`${t}-data-table-th`,(E||A)&&`${t}-data-table-th--fixed-${E?"left":"right"}`,{[`${t}-data-table-th--sorting`]:K2(R,m),[`${t}-data-table-th--filterable`]:l1(R),[`${t}-data-table-th--sortable`]:nf(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:z},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?ne=>{b(ne,R)}:void 0},F())});if(g){const{headerHeight:k}=this;let P=0,I=0;return l.forEach(R=>{R.column.fixed==="left"?P++:R.column.fixed==="right"&&I++}),v(Jp,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:an(k)},onScroll:this.handleTableHeaderScroll,columns:l,itemSize:k,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:UU,visibleItemsProps:{clsPrefix:t,id:d,cols:l,width:qt(this.scrollX)},renderItemWithCols:({startColIndex:R,endColIndex:W,getLeft:O})=>{const M=l.map((K,J)=>({column:K.column,isLast:J===l.length-1,colIndex:K.index,colSpan:1,rowSpan:1})).filter(({column:K},J)=>!!(R<=J&&J<=W||K.fixed)),z=_(M,O,an(k));return z.splice(P,0,v("th",{colspan:l.length-P-I,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",{style:{position:"relative"}},z)}},{default:({renderedItemWithCols:R})=>R})}const x=v("thead",{class:`${t}-data-table-thead`,"data-n-id":d},a.map(k=>v("tr",{class:`${t}-data-table-tr`},_(k,null,void 0))));if(!f)return x;const{handleTableHeaderScroll:y,scrollX:T}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:y},v("table",{class:`${t}-data-table-table`,style:{minWidth:qt(T),tableLayout:h}},v("colgroup",null,l.map(k=>v("col",{key:k.key,style:k.style}))),x))}});function qU(e,t){const n=[];function o(r,i){r.forEach(s=>{s.children&&t.has(s.key)?(n.push({tmNode:s,striped:!1,key:s.key,index:i}),o(s.children,i)):n.push({key:s.key,tmNode:s,striped:!1,index:i})})}return e.forEach(r=>{n.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&o(i,r.index)}),n}const KU=be({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:o,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:r},v("colgroup",null,n.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),GU=be({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:s,colsRef:a,paginatedDataRef:l,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:m,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:w,hoverKeyRef:C,summaryRef:S,mergedSortStateRef:_,virtualScrollRef:x,virtualScrollXRef:y,heightForRowRef:T,minRowHeightRef:k,componentId:P,mergedTableLayoutRef:I,childTriggerColIndexRef:R,indentRef:W,rowPropsRef:O,maxHeightRef:M,stripedRef:z,loadingRef:K,onLoadRef:J,loadingKeySetRef:se,expandableRef:le,stickyExpandedRowsRef:F,renderExpandIconRef:E,summaryPlacementRef:A,treeMateRef:Y,scrollbarPropsRef:ne,setHeaderScrollLeft:fe,doUpdateExpandedRowKeys:Q,handleTableBodyScroll:Ce,doCheck:j,doUncheck:ye,renderCell:Ie}=We(Oo),Le=We(go),U=H(null),B=H(null),ae=H(null),Se=Ct(()=>l.value.length===0),te=Ct(()=>e.showHeader||!Se.value),xe=Ct(()=>e.showHeader||Se.value);let ve="";const $=D(()=>new Set(o.value));function N(Me){var tt;return(tt=Y.value.getNode(Me))===null||tt===void 0?void 0:tt.rawNode}function ee(Me,tt,X){const ce=N(Me.key);if(!ce){Go("data-table",`fail to get row data with key ${Me.key}`);return}if(X){const Ee=l.value.findIndex(Fe=>Fe.key===ve);if(Ee!==-1){const Fe=l.value.findIndex(rt=>rt.key===Me.key),Ve=Math.min(Ee,Fe),Xe=Math.max(Ee,Fe),Qe=[];l.value.slice(Ve,Xe+1).forEach(rt=>{rt.disabled||Qe.push(rt.key)}),tt?j(Qe,!1,ce):ye(Qe,ce),ve=Me.key;return}}tt?j(Me.key,!1,ce):ye(Me.key,ce),ve=Me.key}function we(Me){const tt=N(Me.key);if(!tt){Go("data-table",`fail to get row data with key ${Me.key}`);return}j(Me.key,!0,tt)}function de(){if(!te.value){const{value:tt}=ae;return tt||null}if(x.value)return me();const{value:Me}=U;return Me?Me.containerRef:null}function he(Me,tt){var X;if(se.value.has(Me))return;const{value:ce}=o,Ee=ce.indexOf(Me),Fe=Array.from(ce);~Ee?(Fe.splice(Ee,1),Q(Fe)):tt&&!tt.isLeaf&&!tt.shallowLoaded?(se.value.add(Me),(X=J.value)===null||X===void 0||X.call(J,tt.rawNode).then(()=>{const{value:Ve}=o,Xe=Array.from(Ve);~Xe.indexOf(Me)||Xe.push(Me),Q(Xe)}).finally(()=>{se.value.delete(Me)})):(Fe.push(Me),Q(Fe))}function re(){C.value=null}function me(){const{value:Me}=B;return(Me==null?void 0:Me.listElRef)||null}function Ne(){const{value:Me}=B;return(Me==null?void 0:Me.itemsElRef)||null}function He(Me){var tt;Ce(Me),(tt=U.value)===null||tt===void 0||tt.sync()}function De(Me){var tt;const{onResize:X}=e;X&&X(Me),(tt=U.value)===null||tt===void 0||tt.sync()}const ot={getScrollContainer:de,scrollTo(Me,tt){var X,ce;x.value?(X=B.value)===null||X===void 0||X.scrollTo(Me,tt):(ce=U.value)===null||ce===void 0||ce.scrollTo(Me,tt)}},nt=G([({props:Me})=>{const tt=ce=>ce===null?null:G(`[data-n-id="${Me.componentId}"] [data-col-key="${ce}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),X=ce=>ce===null?null:G(`[data-n-id="${Me.componentId}"] [data-col-key="${ce}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return G([tt(Me.leftActiveFixedColKey),X(Me.rightActiveFixedColKey),Me.leftActiveFixedChildrenColKeys.map(ce=>tt(ce)),Me.rightActiveFixedChildrenColKeys.map(ce=>X(ce))])}]);let Ge=!1;return Jt(()=>{const{value:Me}=p,{value:tt}=m,{value:X}=g,{value:ce}=b;if(!Ge&&Me===null&&X===null)return;const Ee={leftActiveFixedColKey:Me,leftActiveFixedChildrenColKeys:tt,rightActiveFixedColKey:X,rightActiveFixedChildrenColKeys:ce,componentId:P};nt.mount({id:`n-${P}`,force:!0,props:Ee,anchorMetaName:As,parent:Le==null?void 0:Le.styleMountTarget}),Ge=!0}),Fi(()=>{nt.unmount({id:`n-${P}`,parent:Le==null?void 0:Le.styleMountTarget})}),Object.assign({bodyWidth:n,summaryPlacement:A,dataTableSlots:t,componentId:P,scrollbarInstRef:U,virtualListRef:B,emptyElRef:ae,summary:S,mergedClsPrefix:r,mergedTheme:i,scrollX:s,cols:a,loading:K,bodyShowHeaderOnly:xe,shouldDisplaySomeTablePart:te,empty:Se,paginatedDataAndInfo:D(()=>{const{value:Me}=z;let tt=!1;return{data:l.value.map(Me?(ce,Ee)=>(ce.isLeaf||(tt=!0),{tmNode:ce,key:ce.key,striped:Ee%2===1,index:Ee}):(ce,Ee)=>(ce.isLeaf||(tt=!0),{tmNode:ce,key:ce.key,striped:!1,index:Ee})),hasChildren:tt}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:d,currentPage:f,rowClassName:h,renderExpand:w,mergedExpandedRowKeySet:$,hoverKey:C,mergedSortState:_,virtualScroll:x,virtualScrollX:y,heightForRow:T,minRowHeight:k,mergedTableLayout:I,childTriggerColIndex:R,indent:W,rowProps:O,maxHeight:M,loadingKeySet:se,expandable:le,stickyExpandedRows:F,renderExpandIcon:E,scrollbarProps:ne,setHeaderScrollLeft:fe,handleVirtualListScroll:He,handleVirtualListResize:De,handleMouseleaveTable:re,virtualListContainer:me,virtualListContent:Ne,handleTableBodyScroll:Ce,handleCheckboxUpdateChecked:ee,handleRadioUpdateChecked:we,handleUpdateExpanded:he,renderCell:Ie},ot)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:o,maxHeight:r,mergedTableLayout:i,flexHeight:s,loadingKeySet:a,onResize:l,setHeaderScrollLeft:c}=this,u=t!==void 0||r!==void 0||s,d=!u&&i==="auto",f=t!==void 0||d,h={minWidth:qt(t)||"100%"};t&&(h.width="100%");const p=v(Mo,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||d,class:`${n}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:l}),{default:()=>{const m={},g={},{cols:b,paginatedDataAndInfo:w,mergedTheme:C,fixedColumnLeftMap:S,fixedColumnRightMap:_,currentPage:x,rowClassName:y,mergedSortState:T,mergedExpandedRowKeySet:k,stickyExpandedRows:P,componentId:I,childTriggerColIndex:R,expandable:W,rowProps:O,handleMouseleaveTable:M,renderExpand:z,summary:K,handleCheckboxUpdateChecked:J,handleRadioUpdateChecked:se,handleUpdateExpanded:le,heightForRow:F,minRowHeight:E,virtualScrollX:A}=this,{length:Y}=b;let ne;const{data:fe,hasChildren:Q}=w,Ce=Q?qU(fe,k):fe;if(K){const ve=K(this.rawPaginatedData);if(Array.isArray(ve)){const $=ve.map((N,ee)=>({isSummaryRow:!0,key:`__n_summary__${ee}`,tmNode:{rawNode:N,disabled:!0},index:-1}));ne=this.summaryPlacement==="top"?[...$,...Ce]:[...Ce,...$]}else{const $={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ve,disabled:!0},index:-1};ne=this.summaryPlacement==="top"?[$,...Ce]:[...Ce,$]}}else ne=Ce;const j=Q?{width:an(this.indent)}:void 0,ye=[];ne.forEach(ve=>{z&&k.has(ve.key)&&(!W||W(ve.tmNode.rawNode))?ye.push(ve,{isExpandedRow:!0,key:`${ve.key}-expand`,tmNode:ve.tmNode,index:ve.index}):ye.push(ve)});const{length:Ie}=ye,Le={};fe.forEach(({tmNode:ve},$)=>{Le[$]=ve.key});const U=P?this.bodyWidth:null,B=U===null?void 0:`${U}px`,ae=this.virtualScrollX?"div":"td";let Se=0,te=0;A&&b.forEach(ve=>{ve.column.fixed==="left"?Se++:ve.column.fixed==="right"&&te++});const xe=({rowInfo:ve,displayedRowIndex:$,isVirtual:N,isVirtualX:ee,startColIndex:we,endColIndex:de,getLeft:he})=>{const{index:re}=ve;if("isExpandedRow"in ve){const{tmNode:{key:Fe,rawNode:Ve}}=ve;return v("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${Fe}__expand`},v("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,$+1===Ie&&`${n}-data-table-td--last-row`],colspan:Y},P?v("div",{class:`${n}-data-table-expand`,style:{width:B}},z(Ve,re)):z(Ve,re)))}const me="isSummaryRow"in ve,Ne=!me&&ve.striped,{tmNode:He,key:De}=ve,{rawNode:ot}=He,nt=k.has(De),Ge=O?O(ot,re):void 0,Me=typeof y=="string"?y:iU(ot,re,y),tt=ee?b.filter((Fe,Ve)=>!!(we<=Ve&&Ve<=de||Fe.column.fixed)):b,X=ee?an((F==null?void 0:F(ot,re))||E):void 0,ce=tt.map(Fe=>{var Ve,Xe,Qe,rt,wt;const Ft=Fe.index;if($ in m){const Yt=m[$],nn=Yt.indexOf(Ft);if(~nn)return Yt.splice(nn,1),null}const{column:Et}=Fe,yn=So(Fe),{rowSpan:cn,colSpan:Te}=Et,Ue=me?((Ve=ve.tmNode.rawNode[yn])===null||Ve===void 0?void 0:Ve.colSpan)||1:Te?Te(ot,re):1,et=me?((Xe=ve.tmNode.rawNode[yn])===null||Xe===void 0?void 0:Xe.rowSpan)||1:cn?cn(ot,re):1,ft=Ft+Ue===Y,ht=$+et===Ie,oe=et>1;if(oe&&(g[$]={[Ft]:[]}),Ue>1||oe)for(let Yt=$;Yt<$+et;++Yt){oe&&g[$][Ft].push(Le[Yt]);for(let nn=Ft;nn{le(De,ve.tmNode)}})]:null,Et.type==="selection"?me?null:Et.multiple===!1?v(gU,{key:x,rowKey:De,disabled:ve.tmNode.disabled,onUpdateChecked:()=>{se(ve.tmNode)}}):v(cU,{key:x,rowKey:De,disabled:ve.tmNode.disabled,onUpdateChecked:(Yt,nn)=>{J(ve.tmNode,Yt,nn.shiftKey)}}):Et.type==="expand"?me?null:!Et.expandable||!((wt=Et.expandable)===null||wt===void 0)&&wt.call(Et,ot)?v(u1,{clsPrefix:n,rowData:ot,expanded:nt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{le(De,null)}}):null:v(yU,{clsPrefix:n,index:re,row:ot,column:Et,isSummary:me,mergedTheme:C,renderCell:this.renderCell}))});return ee&&Se&&te&&ce.splice(Se,0,v("td",{colspan:b.length-Se-te,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",Object.assign({},Ge,{onMouseenter:Fe=>{var Ve;this.hoverKey=De,(Ve=Ge==null?void 0:Ge.onMouseenter)===null||Ve===void 0||Ve.call(Ge,Fe)},key:De,class:[`${n}-data-table-tr`,me&&`${n}-data-table-tr--summary`,Ne&&`${n}-data-table-tr--striped`,nt&&`${n}-data-table-tr--expanded`,Me,Ge==null?void 0:Ge.class],style:[Ge==null?void 0:Ge.style,ee&&{height:X}]}),ce)};return o?v(Jp,{ref:"virtualListRef",items:ye,itemSize:this.minRowHeight,visibleItemsTag:KU,visibleItemsProps:{clsPrefix:n,id:I,cols:b,onMouseleave:M},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!A,columns:b,renderItemWithCols:A?({itemIndex:ve,item:$,startColIndex:N,endColIndex:ee,getLeft:we})=>xe({displayedRowIndex:ve,isVirtual:!0,isVirtualX:!0,rowInfo:$,startColIndex:N,endColIndex:ee,getLeft:we}):void 0},{default:({item:ve,index:$,renderedItemWithCols:N})=>N||xe({rowInfo:ve,displayedRowIndex:$,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(ee){return 0}})}):v("table",{class:`${n}-data-table-table`,onMouseleave:M,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,b.map(ve=>v("col",{key:ve.key,style:ve.style}))),this.showHeader?v(lS,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},ye.map((ve,$)=>xe({rowInfo:ve,displayedRowIndex:$,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(N){return-1}}))))}});if(this.empty){const m=()=>v("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Dn(this.dataTableSlots.empty,()=>[v(Y_,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(st,null,p,m()):v(cr,{onResize:this.onResize},{default:m})}return p}}),YU=be({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:i,flexHeightRef:s,virtualScrollHeaderRef:a,syncScrollState:l}=We(Oo),c=H(null),u=H(null),d=H(null),f=H(!(n.value.length||t.value.length)),h=D(()=>({maxHeight:qt(r.value),minHeight:qt(i.value)}));function p(w){o.value=w.contentRect.width,l(),f.value||(f.value=!0)}function m(){var w;const{value:C}=c;return C?a.value?((w=C.virtualListRef)===null||w===void 0?void 0:w.listElRef)||null:C.$el:null}function g(){const{value:w}=u;return w?w.getScrollContainer():null}const b={getBodyElement:g,getHeaderElement:m,scrollTo(w,C){var S;(S=u.value)===null||S===void 0||S.scrollTo(w,C)}};return Jt(()=>{const{value:w}=d;if(!w)return;const C=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{w.classList.remove(C)},0):w.classList.add(C)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:d,headerInstRef:c,bodyInstRef:u,bodyStyle:h,flexHeight:s,handleBodyResize:p},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,o=t===void 0&&!n;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:v(lS,{ref:"headerInstRef"}),v(GU,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}))}}),f1=ZU(),XU=G([L("data-table",` + `)])]),OW={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]},MW=Object.keys(Aa),zW=Object.assign(Object.assign(Object.assign({},Aa),OW),Le.props),Em=xe({name:"Dropdown",inheritAttrs:!1,props:zW,setup(e){const t=U(!1),n=rn(Ue(e,"show"),t),o=I(()=>{const{keyField:E,childrenField:q}=e;return Pi(e.options,{getKey(D){return D[E]},getDisabled(D){return D.disabled===!0},getIgnored(D){return D.type==="divider"||D.type==="render"},getChildren(D){return D[q]}})}),r=I(()=>o.value.treeNodes),i=U(null),a=U(null),s=U(null),l=I(()=>{var E,q,D;return(D=(q=(E=i.value)!==null&&E!==void 0?E:a.value)!==null&&q!==void 0?q:s.value)!==null&&D!==void 0?D:null}),c=I(()=>o.value.getPath(l.value).keyPath),u=I(()=>o.value.getPath(e.value).keyPath),d=kt(()=>e.keyboard&&n.value);T8({keydown:{ArrowUp:{prevent:!0,handler:S},ArrowRight:{prevent:!0,handler:_},ArrowDown:{prevent:!0,handler:y},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:x},Escape:w}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=st(e),p=Le("Dropdown","-dropdown",IW,Sm,e,f);at(Fu,{labelFieldRef:Ue(e,"labelField"),childrenFieldRef:Ue(e,"childrenField"),renderLabelRef:Ue(e,"renderLabel"),renderIconRef:Ue(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:Ue(e,"animated"),mergedShowRef:n,nodePropsRef:Ue(e,"nodeProps"),renderOptionRef:Ue(e,"renderOption"),menuPropsRef:Ue(e,"menuProps"),doSelect:g,doUpdateShow:m}),ft(n,E=>{!e.animated&&!E&&b()});function g(E,q){const{onSelect:D}=e;D&&Re(D,E,q)}function m(E){const{"onUpdate:show":q,onUpdateShow:D}=e;q&&Re(q,E),D&&Re(D,E),t.value=E}function b(){i.value=null,a.value=null,s.value=null}function w(){m(!1)}function C(){k("left")}function _(){k("right")}function S(){k("up")}function y(){k("down")}function x(){const E=P();E!=null&&E.isLeaf&&n.value&&(g(E.key,E.rawNode),m(!1))}function P(){var E;const{value:q}=o,{value:D}=l;return!q||D===null?null:(E=q.getNode(D))!==null&&E!==void 0?E:null}function k(E){const{value:q}=l,{value:{getFirstAvailableNode:D}}=o;let B=null;if(q===null){const M=D();M!==null&&(B=M.key)}else{const M=P();if(M){let K;switch(E){case"down":K=M.getNext();break;case"up":K=M.getPrev();break;case"right":K=M.getChild();break;case"left":K=M.getParent();break}K&&(B=K.key)}}B!==null&&(i.value=null,a.value=B)}const T=I(()=>{const{size:E,inverted:q}=e,{common:{cubicBezierEaseInOut:D},self:B}=p.value,{padding:M,dividerColor:K,borderRadius:V,optionOpacityDisabled:ae,[Te("optionIconSuffixWidth",E)]:pe,[Te("optionSuffixWidth",E)]:Z,[Te("optionIconPrefixWidth",E)]:N,[Te("optionPrefixWidth",E)]:O,[Te("fontSize",E)]:ee,[Te("optionHeight",E)]:G,[Te("optionIconSize",E)]:ne}=B,X={"--n-bezier":D,"--n-font-size":ee,"--n-padding":M,"--n-border-radius":V,"--n-option-height":G,"--n-option-prefix-width":O,"--n-option-icon-prefix-width":N,"--n-option-suffix-width":Z,"--n-option-icon-suffix-width":pe,"--n-option-icon-size":ne,"--n-divider-color":K,"--n-option-opacity-disabled":ae};return q?(X["--n-color"]=B.colorInverted,X["--n-option-color-hover"]=B.optionColorHoverInverted,X["--n-option-color-active"]=B.optionColorActiveInverted,X["--n-option-text-color"]=B.optionTextColorInverted,X["--n-option-text-color-hover"]=B.optionTextColorHoverInverted,X["--n-option-text-color-active"]=B.optionTextColorActiveInverted,X["--n-option-text-color-child-active"]=B.optionTextColorChildActiveInverted,X["--n-prefix-color"]=B.prefixColorInverted,X["--n-suffix-color"]=B.suffixColorInverted,X["--n-group-header-text-color"]=B.groupHeaderTextColorInverted):(X["--n-color"]=B.color,X["--n-option-color-hover"]=B.optionColorHover,X["--n-option-color-active"]=B.optionColorActive,X["--n-option-text-color"]=B.optionTextColor,X["--n-option-text-color-hover"]=B.optionTextColorHover,X["--n-option-text-color-active"]=B.optionTextColorActive,X["--n-option-text-color-child-active"]=B.optionTextColorChildActive,X["--n-prefix-color"]=B.prefixColor,X["--n-suffix-color"]=B.suffixColor,X["--n-group-header-text-color"]=B.groupHeaderTextColor),X}),R=h?Pt("dropdown",I(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:m,cssVars:h?void 0:T,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const e=(o,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:u}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(u==null?void 0:u(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:hw(r),class:[o,`${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 v(r2,Ln(this.$attrs,f,d))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(hl,Object.assign({},eo(this.$props,MW),n),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}}),i2="_n_all__",a2="_n_none__";function FW(e,t,n,o){return e?r=>{for(const i of e)switch(r){case i2:n(!0);return;case a2:o(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function DW(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:i2};case"none":return{label:t.uncheckTableAll,key:a2};default:return n}}):[]}const LW=xe({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:o,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Ve(Mo),s=I(()=>FW(o.value,r,i,a)),l=I(()=>DW(o.value,n.value));return()=>{var c,u,d,f;const{clsPrefix:h}=e;return v(Em,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:s.value},{default:()=>v(Wt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(B_,null)})})}}});function of(e){return typeof e.title=="function"?e.title(e):e.title}const s2=xe({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:s,colsRef:l,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:d,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:b,deriveNextSorter:w,doUncheckAll:C,doCheckAll:_}=Ve(Mo),S=U({});function y(E){const q=S.value[E];return q==null?void 0:q.getBoundingClientRect().width}function x(){i.value?C():_()}function P(E,q){if(lo(E,"dataTableFilter")||lo(E,"dataTableResizable")||!nf(q))return;const D=d.value.find(M=>M.columnKey===q.key)||null,B=hW(q,D);w(B)}const k=new Map;function T(E){k.set(E.key,y(E.key))}function R(E,q){const D=k.get(E.key);if(D===void 0)return;const B=D+q,M=uW(B,E.minWidth,E.maxWidth);g(B,M,E,y),m(E,M)}return{cellElsRef:S,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,mergedTableLayout:h,headerCheckboxDisabled:p,handleCheckboxUpdateChecked:x,handleColHeaderClick:P,handleTableHeaderScroll:b,handleColumnResizeStart:T,handleColumnResize:R}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,componentId:d,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:g,handleColHeaderClick:m,handleCheckboxUpdateChecked:b,handleColumnResizeStart:w,handleColumnResize:C}=this,_=v("thead",{class:`${t}-data-table-thead`,"data-n-id":d},s.map(x=>v("tr",{class:`${t}-data-table-tr`},x.map(({column:P,colSpan:k,rowSpan:T,isLast:R})=>{var E,q;const D=_o(P),{ellipsis:B}=P,M=()=>P.type==="selection"?P.multiple!==!1?v(rt,null,v(ml,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:b}),u?v(LW,{clsPrefix:t}):null):null:v(rt,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},B===!0||B&&!B.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},of(P)):B&&typeof B=="object"?v(Pm,Object.assign({},B,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>of(P)}):of(P)),nf(P)?v(tW,{column:P}):null),i1(P)?v(yW,{column:P,options:P.filterOptions}):null,JS(P)?v(xW,{onResizeStart:()=>{w(P)},onResize:ae=>{C(P,ae)}}):null),K=D in n,V=D in o;return v("th",{ref:ae=>e[D]=ae,key:D,style:{textAlign:P.titleAlign||P.align,left:zn((E=n[D])===null||E===void 0?void 0:E.start),right:zn((q=o[D])===null||q===void 0?void 0:q.start)},colspan:k,rowspan:T,"data-col-key":D,class:[`${t}-data-table-th`,(K||V)&&`${t}-data-table-th--fixed-${K?"left":"right"}`,{[`${t}-data-table-th--sorting`]:ZS(P,g),[`${t}-data-table-th--filterable`]:i1(P),[`${t}-data-table-th--sortable`]:nf(P),[`${t}-data-table-th--selection`]:P.type==="selection",[`${t}-data-table-th--last`]:R},P.className],onClick:P.type!=="selection"&&P.type!=="expand"&&!("children"in P)?ae=>{m(ae,P)}:void 0},M())}))));if(!f)return _;const{handleTableHeaderScroll:S,scrollX:y}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:S},v("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:qt(y),tableLayout:h}},v("colgroup",null,l.map(x=>v("col",{key:x.key,style:x.style}))),_))}}),BW=xe({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:n,row:o,renderCell:r}=this;let i;const{render:a,key:s,ellipsis:l}=n;if(a&&!t?i=a(o,this.index):t?i=(e=o[s])===null||e===void 0?void 0:e.value:i=r?r(kh(o,s),o,n):kh(o,s),l)if(typeof l=="object"){const{mergedTheme:c}=this;return n.ellipsisComponent==="performant-ellipsis"?v(JV,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Pm,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),l1=xe({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded}):v(Wt,{clsPrefix:e,key:"base-icon"},{default:()=>v(um,null)})}))}}),NW=xe({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(ml,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),HW=xe({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(GS,{name:n,disabled:e.disabled,checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function jW(e,t){const n=[];function o(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),o(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{n.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&o(i,r.index)}),n}const UW=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:o,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:r},v("colgroup",null,n.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),VW=xe({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:s,paginatedDataRef:l,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:w,hoverKeyRef:C,summaryRef:_,mergedSortStateRef:S,virtualScrollRef:y,componentId:x,mergedTableLayoutRef:P,childTriggerColIndexRef:k,indentRef:T,rowPropsRef:R,maxHeightRef:E,stripedRef:q,loadingRef:D,onLoadRef:B,loadingKeySetRef:M,expandableRef:K,stickyExpandedRowsRef:V,renderExpandIconRef:ae,summaryPlacementRef:pe,treeMateRef:Z,scrollbarPropsRef:N,setHeaderScrollLeft:O,doUpdateExpandedRowKeys:ee,handleTableBodyScroll:G,doCheck:ne,doUncheck:X,renderCell:ce}=Ve(Mo),L=U(null),be=U(null),Oe=U(null),je=kt(()=>l.value.length===0),F=kt(()=>e.showHeader||!je.value),A=kt(()=>e.showHeader||je.value);let re="";const we=I(()=>new Set(o.value));function oe(Me){var Ne;return(Ne=Z.value.getNode(Me))===null||Ne===void 0?void 0:Ne.rawNode}function ve(Me,Ne,et){const $e=oe(Me.key);if(!$e){cr("data-table",`fail to get row data with key ${Me.key}`);return}if(et){const Xe=l.value.findIndex(gt=>gt.key===re);if(Xe!==-1){const gt=l.value.findIndex(qe=>qe.key===Me.key),Q=Math.min(Xe,gt),ye=Math.max(Xe,gt),Ae=[];l.value.slice(Q,ye+1).forEach(qe=>{qe.disabled||Ae.push(qe.key)}),Ne?ne(Ae,!1,$e):X(Ae,$e),re=Me.key;return}}Ne?ne(Me.key,!1,$e):X(Me.key,$e),re=Me.key}function ke(Me){const Ne=oe(Me.key);if(!Ne){cr("data-table",`fail to get row data with key ${Me.key}`);return}ne(Me.key,!0,Ne)}function $(){if(!F.value){const{value:Ne}=Oe;return Ne||null}if(y.value)return Ce();const{value:Me}=L;return Me?Me.containerRef:null}function H(Me,Ne){var et;if(M.value.has(Me))return;const{value:$e}=o,Xe=$e.indexOf(Me),gt=Array.from($e);~Xe?(gt.splice(Xe,1),ee(gt)):Ne&&!Ne.isLeaf&&!Ne.shallowLoaded?(M.value.add(Me),(et=B.value)===null||et===void 0||et.call(B,Ne.rawNode).then(()=>{const{value:Q}=o,ye=Array.from(Q);~ye.indexOf(Me)||ye.push(Me),ee(ye)}).finally(()=>{M.value.delete(Me)})):(gt.push(Me),ee(gt))}function te(){C.value=null}function Ce(){const{value:Me}=be;return(Me==null?void 0:Me.listElRef)||null}function de(){const{value:Me}=be;return(Me==null?void 0:Me.itemsElRef)||null}function ue(Me){var Ne;G(Me),(Ne=L.value)===null||Ne===void 0||Ne.sync()}function ie(Me){var Ne;const{onResize:et}=e;et&&et(Me),(Ne=L.value)===null||Ne===void 0||Ne.sync()}const fe={getScrollContainer:$,scrollTo(Me,Ne){var et,$e;y.value?(et=be.value)===null||et===void 0||et.scrollTo(Me,Ne):($e=L.value)===null||$e===void 0||$e.scrollTo(Me,Ne)}},Fe=W([({props:Me})=>{const Ne=$e=>$e===null?null:W(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),et=$e=>$e===null?null:W(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return W([Ne(Me.leftActiveFixedColKey),et(Me.rightActiveFixedColKey),Me.leftActiveFixedChildrenColKeys.map($e=>Ne($e)),Me.rightActiveFixedChildrenColKeys.map($e=>et($e))])}]);let De=!1;return Yt(()=>{const{value:Me}=p,{value:Ne}=g,{value:et}=m,{value:$e}=b;if(!De&&Me===null&&et===null)return;const Xe={leftActiveFixedColKey:Me,leftActiveFixedChildrenColKeys:Ne,rightActiveFixedColKey:et,rightActiveFixedChildrenColKeys:$e,componentId:x};Fe.mount({id:`n-${x}`,force:!0,props:Xe,anchorMetaName:Ra}),De=!0}),Oa(()=>{Fe.unmount({id:`n-${x}`})}),Object.assign({bodyWidth:n,summaryPlacement:pe,dataTableSlots:t,componentId:x,scrollbarInstRef:L,virtualListRef:be,emptyElRef:Oe,summary:_,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:s,loading:D,bodyShowHeaderOnly:A,shouldDisplaySomeTablePart:F,empty:je,paginatedDataAndInfo:I(()=>{const{value:Me}=q;let Ne=!1;return{data:l.value.map(Me?($e,Xe)=>($e.isLeaf||(Ne=!0),{tmNode:$e,key:$e.key,striped:Xe%2===1,index:Xe}):($e,Xe)=>($e.isLeaf||(Ne=!0),{tmNode:$e,key:$e.key,striped:!1,index:Xe})),hasChildren:Ne}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:d,currentPage:f,rowClassName:h,renderExpand:w,mergedExpandedRowKeySet:we,hoverKey:C,mergedSortState:S,virtualScroll:y,mergedTableLayout:P,childTriggerColIndex:k,indent:T,rowProps:R,maxHeight:E,loadingKeySet:M,expandable:K,stickyExpandedRows:V,renderExpandIcon:ae,scrollbarProps:N,setHeaderScrollLeft:O,handleVirtualListScroll:ue,handleVirtualListResize:ie,handleMouseleaveTable:te,virtualListContainer:Ce,virtualListContent:de,handleTableBodyScroll:G,handleCheckboxUpdateChecked:ve,handleRadioUpdateChecked:ke,handleUpdateExpanded:H,renderCell:ce},fe)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:o,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:s,onResize:l,setHeaderScrollLeft:c}=this,u=t!==void 0||r!==void 0||a,d=!u&&i==="auto",f=t!==void 0||d,h={minWidth:qt(t)||"100%"};t&&(h.width="100%");const p=v(Oo,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||d,class:`${n}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:l}),{default:()=>{const g={},m={},{cols:b,paginatedDataAndInfo:w,mergedTheme:C,fixedColumnLeftMap:_,fixedColumnRightMap:S,currentPage:y,rowClassName:x,mergedSortState:P,mergedExpandedRowKeySet:k,stickyExpandedRows:T,componentId:R,childTriggerColIndex:E,expandable:q,rowProps:D,handleMouseleaveTable:B,renderExpand:M,summary:K,handleCheckboxUpdateChecked:V,handleRadioUpdateChecked:ae,handleUpdateExpanded:pe}=this,{length:Z}=b;let N;const{data:O,hasChildren:ee}=w,G=ee?jW(O,k):O;if(K){const F=K(this.rawPaginatedData);if(Array.isArray(F)){const A=F.map((re,we)=>({isSummaryRow:!0,key:`__n_summary__${we}`,tmNode:{rawNode:re,disabled:!0},index:-1}));N=this.summaryPlacement==="top"?[...A,...G]:[...G,...A]}else{const A={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:F,disabled:!0},index:-1};N=this.summaryPlacement==="top"?[A,...G]:[...G,A]}}else N=G;const ne=ee?{width:zn(this.indent)}:void 0,X=[];N.forEach(F=>{M&&k.has(F.key)&&(!q||q(F.tmNode.rawNode))?X.push(F,{isExpandedRow:!0,key:`${F.key}-expand`,tmNode:F.tmNode,index:F.index}):X.push(F)});const{length:ce}=X,L={};O.forEach(({tmNode:F},A)=>{L[A]=F.key});const be=T?this.bodyWidth:null,Oe=be===null?void 0:`${be}px`,je=(F,A,re)=>{const{index:we}=F;if("isExpandedRow"in F){const{tmNode:{key:ie,rawNode:fe}}=F;return v("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${ie}__expand`},v("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,A+1===ce&&`${n}-data-table-td--last-row`],colspan:Z},T?v("div",{class:`${n}-data-table-expand`,style:{width:Oe}},M(fe,we)):M(fe,we)))}const oe="isSummaryRow"in F,ve=!oe&&F.striped,{tmNode:ke,key:$}=F,{rawNode:H}=ke,te=k.has($),Ce=D?D(H,we):void 0,de=typeof x=="string"?x:fW(H,we,x);return v("tr",Object.assign({onMouseenter:()=>{this.hoverKey=$},key:$,class:[`${n}-data-table-tr`,oe&&`${n}-data-table-tr--summary`,ve&&`${n}-data-table-tr--striped`,te&&`${n}-data-table-tr--expanded`,de]},Ce),b.map((ie,fe)=>{var Fe,De,Me,Ne,et;if(A in g){const Ft=g[A],_e=Ft.indexOf(fe);if(~_e)return Ft.splice(_e,1),null}const{column:$e}=ie,Xe=_o(ie),{rowSpan:gt,colSpan:Q}=$e,ye=oe?((Fe=F.tmNode.rawNode[Xe])===null||Fe===void 0?void 0:Fe.colSpan)||1:Q?Q(H,we):1,Ae=oe?((De=F.tmNode.rawNode[Xe])===null||De===void 0?void 0:De.rowSpan)||1:gt?gt(H,we):1,qe=fe+ye===Z,Qe=A+Ae===ce,Je=Ae>1;if(Je&&(m[A]={[fe]:[]}),ye>1||Je)for(let Ft=A;Ft{pe($,F.tmNode)}})]:null,$e.type==="selection"?oe?null:$e.multiple===!1?v(HW,{key:y,rowKey:$,disabled:F.tmNode.disabled,onUpdateChecked:()=>{ae(F.tmNode)}}):v(NW,{key:y,rowKey:$,disabled:F.tmNode.disabled,onUpdateChecked:(Ft,_e)=>{V(F.tmNode,Ft,_e.shiftKey)}}):$e.type==="expand"?oe?null:!$e.expandable||!((et=$e.expandable)===null||et===void 0)&&et.call($e,H)?v(l1,{clsPrefix:n,expanded:te,renderExpandIcon:this.renderExpandIcon,onClick:()=>{pe($,null)}}):null:v(BW,{clsPrefix:n,index:we,row:H,column:$e,isSummary:oe,mergedTheme:C,renderCell:this.renderCell}))}))};return o?v(Dw,{ref:"virtualListRef",items:X,itemSize:28,visibleItemsTag:UW,visibleItemsProps:{clsPrefix:n,id:R,cols:b,onMouseleave:B},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!0},{default:({item:F,index:A})=>je(F,A,!0)}):v("table",{class:`${n}-data-table-table`,onMouseleave:B,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,b.map(F=>v("col",{key:F.key,style:F.style}))),this.showHeader?v(s2,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":R,class:`${n}-data-table-tbody`},X.map((F,A)=>je(F,A,!1))))}});if(this.empty){const g=()=>v("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},$n(this.dataTableSlots.empty,()=>[v(W_,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(rt,null,p,g()):v(ur,{onResize:this.onResize},{default:g})}return p}}),WW=xe({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,syncScrollState:s}=Ve(Mo),l=U(null),c=U(null),u=U(null),d=U(!(n.value.length||t.value.length)),f=I(()=>({maxHeight:qt(r.value),minHeight:qt(i.value)}));function h(b){o.value=b.contentRect.width,s(),d.value||(d.value=!0)}function p(){const{value:b}=l;return b?b.$el:null}function g(){const{value:b}=c;return b?b.getScrollContainer():null}const m={getBodyElement:g,getHeaderElement:p,scrollTo(b,w){var C;(C=c.value)===null||C===void 0||C.scrollTo(b,w)}};return Yt(()=>{const{value:b}=u;if(!b)return;const w=`${e.value}-data-table-base-table--transition-disabled`;d.value?setTimeout(()=>{b.classList.remove(w)},0):b.classList.add(w)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:u,headerInstRef:l,bodyInstRef:c,bodyStyle:f,flexHeight:a,handleBodyResize:h},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,o=t===void 0&&!n;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:v(s2,{ref:"headerInstRef"}),v(VW,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}))}});function qW(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,i=U(e.defaultCheckedRowKeys),a=I(()=>{var S;const{checkedRowKeys:y}=e,x=y===void 0?i.value:y;return((S=r.value)===null||S===void 0?void 0:S.multiple)===!1?{checkedKeys:x.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(x,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=I(()=>a.value.checkedKeys),l=I(()=>a.value.indeterminateKeys),c=I(()=>new Set(s.value)),u=I(()=>new Set(l.value)),d=I(()=>{const{value:S}=c;return n.value.reduce((y,x)=>{const{key:P,disabled:k}=x;return y+(!k&&S.has(P)?1:0)},0)}),f=I(()=>n.value.filter(S=>S.disabled).length),h=I(()=>{const{length:S}=n.value,{value:y}=u;return d.value>0&&d.valuey.has(x.key))}),p=I(()=>{const{length:S}=n.value;return d.value!==0&&d.value===S-f.value}),g=I(()=>n.value.length===0);function m(S,y,x){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:k,onCheckedRowKeysChange:T}=e,R=[],{value:{getNode:E}}=o;S.forEach(q=>{var D;const B=(D=E(q))===null||D===void 0?void 0:D.rawNode;R.push(B)}),P&&Re(P,S,R,{row:y,action:x}),k&&Re(k,S,R,{row:y,action:x}),T&&Re(T,S,R,{row:y,action:x}),i.value=S}function b(S,y=!1,x){if(!e.loading){if(y){m(Array.isArray(S)?S.slice(0,1):[S],x,"check");return}m(o.value.check(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,x,"check")}}function w(S,y){e.loading||m(o.value.uncheck(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"uncheck")}function C(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(P=>{P.disabled||x.push(P.key)}),m(o.value.check(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function _(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(P=>{P.disabled||x.push(P.key)}),m(o.value.uncheck(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:_,doCheck:b,doUncheck:w}}function Ul(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function KW(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?GW(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function GW(e){return(t,n)=>{const o=t[e],r=n[e];return o==null?r==null?0:-1:r==null?1:typeof o=="number"&&typeof r=="number"?o-r:typeof o=="string"&&typeof r=="string"?o.localeCompare(r):0}}function XW(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(o,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=U(o),i=I(()=>{const h=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=h.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(h.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=I(()=>{const h=i.value.slice().sort((p,g)=>{const m=Ul(p.sorter)||0;return(Ul(g.sorter)||0)-m});return h.length?n.value.slice().sort((g,m)=>{let b=0;return h.some(w=>{const{columnKey:C,sorter:_,order:S}=w,y=KW(_,C);return y&&S&&(b=y(g.rawNode,m.rawNode),b!==0)?(b=b*cW(S),!0):!1}),b}):n.value});function s(h){let p=i.value.slice();return h&&Ul(h.sorter)!==!1?(p=p.filter(g=>Ul(g.sorter)!==!1),f(p,h),p):h||null}function l(h){const p=s(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:m}=e;p&&Re(p,h),g&&Re(g,h),m&&Re(m,h),r.value=h}function u(h,p="ascend"){if(!h)d();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===h);if(!(g!=null&&g.sorter))return;const m=g.sorter;l({columnKey:h,sorter:m,order:p})}}function d(){c(null)}function f(h,p){const g=h.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);g!==void 0&&g>=0?h[g]=p:h.push(p)}return{clearSorter:d,sort:u,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:l}}function YW(e,{dataRelatedColsRef:t}){const n=I(()=>{const Z=N=>{for(let O=0;O{const{childrenKey:Z}=e;return Pi(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:N=>N[Z],getDisabled:N=>{var O,ee;return!!(!((ee=(O=n.value)===null||O===void 0?void 0:O.disabled)===null||ee===void 0)&&ee.call(O,N))}})}),r=kt(()=>{const{columns:Z}=e,{length:N}=Z;let O=null;for(let ee=0;ee{const Z=t.value.filter(ee=>ee.filterOptionValues!==void 0||ee.filterOptionValue!==void 0),N={};return Z.forEach(ee=>{var G;ee.type==="selection"||ee.type==="expand"||(ee.filterOptionValues===void 0?N[ee.key]=(G=ee.filterOptionValue)!==null&&G!==void 0?G:null:N[ee.key]=ee.filterOptionValues)}),Object.assign(r1(i.value),N)}),u=I(()=>{const Z=c.value,{columns:N}=e;function O(ne){return(X,ce)=>!!~String(ce[ne]).indexOf(String(X))}const{value:{treeNodes:ee}}=o,G=[];return N.forEach(ne=>{ne.type==="selection"||ne.type==="expand"||"children"in ne||G.push([ne.key,ne])}),ee?ee.filter(ne=>{const{rawNode:X}=ne;for(const[ce,L]of G){let be=Z[ce];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const Oe=L.filter==="default"?O(ce):L.filter;if(L&&typeof Oe=="function")if(L.filterMode==="and"){if(be.some(je=>!Oe(je,X)))return!1}else{if(be.some(je=>Oe(je,X)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:g}=XW(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(Z=>{var N;if(Z.filter){const O=Z.defaultFilterOptionValues;Z.filterMultiple?i.value[Z.key]=O||[]:O!==void 0?i.value[Z.key]=O===null?[]:O:i.value[Z.key]=(N=Z.defaultFilterOptionValue)!==null&&N!==void 0?N:null}});const m=I(()=>{const{pagination:Z}=e;if(Z!==!1)return Z.page}),b=I(()=>{const{pagination:Z}=e;if(Z!==!1)return Z.pageSize}),w=rn(m,s),C=rn(b,l),_=kt(()=>{const Z=w.value;return e.remote?Z:Math.max(1,Math.min(Math.ceil(u.value.length/C.value),Z))}),S=I(()=>{const{pagination:Z}=e;if(Z){const{pageCount:N}=Z;if(N!==void 0)return N}}),y=I(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const Z=C.value,N=(_.value-1)*Z;return d.value.slice(N,N+Z)}),x=I(()=>y.value.map(Z=>Z.rawNode));function P(Z){const{pagination:N}=e;if(N){const{onChange:O,"onUpdate:page":ee,onUpdatePage:G}=N;O&&Re(O,Z),G&&Re(G,Z),ee&&Re(ee,Z),E(Z)}}function k(Z){const{pagination:N}=e;if(N){const{onPageSizeChange:O,"onUpdate:pageSize":ee,onUpdatePageSize:G}=N;O&&Re(O,Z),G&&Re(G,Z),ee&&Re(ee,Z),q(Z)}}const T=I(()=>{if(e.remote){const{pagination:Z}=e;if(Z){const{itemCount:N}=Z;if(N!==void 0)return N}return}return u.value.length}),R=I(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":k,page:_.value,pageSize:C.value,pageCount:T.value===void 0?S.value:void 0,itemCount:T.value}));function E(Z){const{"onUpdate:page":N,onPageChange:O,onUpdatePage:ee}=e;ee&&Re(ee,Z),N&&Re(N,Z),O&&Re(O,Z),s.value=Z}function q(Z){const{"onUpdate:pageSize":N,onPageSizeChange:O,onUpdatePageSize:ee}=e;O&&Re(O,Z),ee&&Re(ee,Z),N&&Re(N,Z),l.value=Z}function D(Z,N){const{onUpdateFilters:O,"onUpdate:filters":ee,onFiltersChange:G}=e;O&&Re(O,Z,N),ee&&Re(ee,Z,N),G&&Re(G,Z,N),i.value=Z}function B(Z,N,O,ee){var G;(G=e.onUnstableColumnResize)===null||G===void 0||G.call(e,Z,N,O,ee)}function M(Z){E(Z)}function K(){V()}function V(){ae({})}function ae(Z){pe(Z)}function pe(Z){Z?Z&&(i.value=r1(Z)):i.value={}}return{treeMateRef:o,mergedCurrentPageRef:_,mergedPaginationRef:R,paginatedDataRef:y,rawPaginatedDataRef:x,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:U(null),selectionColumnRef:n,childTriggerColIndexRef:r,doUpdateFilters:D,deriveNextSorter:f,doUpdatePageSize:q,doUpdatePage:E,onUnstableColumnResize:B,filter:pe,filters:ae,clearFilter:K,clearFilters:V,clearSorter:g,page:M,sort:p}}function QW(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o}){let r=0;const i=U(),a=U(null),s=U([]),l=U(null),c=U([]),u=I(()=>qt(e.scrollX)),d=I(()=>e.columns.filter(k=>k.fixed==="left")),f=I(()=>e.columns.filter(k=>k.fixed==="right")),h=I(()=>{const k={};let T=0;function R(E){E.forEach(q=>{const D={start:T,end:0};k[_o(q)]=D,"children"in q?(R(q.children),D.end=T):(T+=o1(q)||0,D.end=T)})}return R(d.value),k}),p=I(()=>{const k={};let T=0;function R(E){for(let q=E.length-1;q>=0;--q){const D=E[q],B={start:T,end:0};k[_o(D)]=B,"children"in D?(R(D.children),B.end=T):(T+=o1(D)||0,B.end=T)}}return R(f.value),k});function g(){var k,T;const{value:R}=d;let E=0;const{value:q}=h;let D=null;for(let B=0;B(((k=q[M])===null||k===void 0?void 0:k.start)||0)-E)D=M,E=((T=q[M])===null||T===void 0?void 0:T.end)||0;else break}a.value=D}function m(){s.value=[];let k=e.columns.find(T=>_o(T)===a.value);for(;k&&"children"in k;){const T=k.children.length;if(T===0)break;const R=k.children[T-1];s.value.push(_o(R)),k=R}}function b(){var k,T;const{value:R}=f,E=Number(e.scrollX),{value:q}=o;if(q===null)return;let D=0,B=null;const{value:M}=p;for(let K=R.length-1;K>=0;--K){const V=_o(R[K]);if(Math.round(r+(((k=M[V])===null||k===void 0?void 0:k.start)||0)+q-D)_o(T)===l.value);for(;k&&"children"in k&&k.children.length;){const T=k.children[0];c.value.push(_o(T)),k=T}}function C(){const k=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:k,body:T}}function _(){const{body:k}=C();k&&(k.scrollTop=0)}function S(){i.value!=="body"?Tc(x):i.value=void 0}function y(k){var T;(T=e.onScroll)===null||T===void 0||T.call(e,k),i.value!=="head"?Tc(x):i.value=void 0}function x(){const{header:k,body:T}=C();if(!T)return;const{value:R}=o;if(R!==null){if(e.maxHeight||e.flexHeight){if(!k)return;const E=r-k.scrollLeft;i.value=E!==0?"head":"body",i.value==="head"?(r=k.scrollLeft,T.scrollLeft=r):(r=T.scrollLeft,k.scrollLeft=r)}else r=T.scrollLeft;g(),m(),b(),w()}}function P(k){const{header:T}=C();T&&(T.scrollLeft=k,x())}return ft(n,()=>{_()}),{styleScrollXRef:u,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:s,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:c,syncScrollState:x,handleTableBodyScroll:y,handleTableHeaderScroll:S,setHeaderScrollLeft:P}}function JW(){const e=U({});function t(r){return e.value[r]}function n(r,i){JS(r)&&"key"in r&&(e.value[r.key]=i)}function o(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:o}}function ZW(e,t){const n=[],o=[],r=[],i=new WeakMap;let a=-1,s=0,l=!1;function c(f,h){h>a&&(n[h]=[],a=h);for(const p of f)if("children"in p)c(p.children,h+1);else{const g="key"in p?p.key:void 0;o.push({key:_o(p),style:dW(p,g!==void 0?qt(t(g)):void 0),column:p}),s+=1,l||(l=!!p.ellipsis),r.push(p)}}c(e,0);let u=0;function d(f,h){let p=0;f.forEach(g=>{var m;if("children"in g){const b=u,w={column:g,colSpan:0,rowSpan:1,isLast:!1};d(g.children,h+1),g.children.forEach(C=>{var _,S;w.colSpan+=(S=(_=i.get(C))===null||_===void 0?void 0:_.colSpan)!==null&&S!==void 0?S:0}),b+w.colSpan===s&&(w.isLast=!0),i.set(g,w),n[h].push(w)}else{if(u1&&(p=u+b);const w=u+b===s,C={column:g,colSpan:b,rowSpan:a-h+1,isLast:w};i.set(g,C),n[h].push(C),u+=1}})}return d(e,0),{hasEllipsis:l,rows:n,cols:o,dataRelatedCols:r}}function eq(e,t){const n=I(()=>ZW(e.columns,t));return{rowsRef:I(()=>n.value.rows),colsRef:I(()=>n.value.cols),hasEllipsisRef:I(()=>n.value.hasEllipsis),dataRelatedColsRef:I(()=>n.value.dataRelatedCols)}}function tq(e,t){const n=kt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),o=kt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),r=U(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var d;!((d=o.value)===null||d===void 0)&&d.call(o,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ue(e,"expandedRowKeys"),a=Ue(e,"stickyExpandedRows"),s=rn(i,r);function l(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":d}=e;u&&Re(u,c),d&&Re(d,c),r.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:s,renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:l}}const c1=oq(),nq=W([z("data-table",` width: 100%; font-size: var(--n-font-size); display: flex; @@ -2128,15 +2111,15 @@ ${t} --n-merged-td-color-hover: var(--n-td-color-hover); --n-merged-td-color-sorting: var(--n-td-color-sorting); --n-merged-td-color-striped: var(--n-td-color-striped); - `,[L("data-table-wrapper",` + `,[z("data-table-wrapper",` flex-grow: 1; display: flex; flex-direction: column; - `),Z("flex-height",[G(">",[L("data-table-wrapper",[G(">",[L("data-table-base-table",` + `),J("flex-height",[W(">",[z("data-table-wrapper",[W(">",[z("data-table-base-table",` display: flex; flex-direction: column; flex-grow: 1; - `,[G(">",[L("data-table-base-table-body","flex-basis: 0;",[G("&:last-child","flex-grow: 1;")])])])])])])]),G(">",[L("data-table-loading-wrapper",` + `,[W(">",[z("data-table-base-table-body","flex-basis: 0;",[W("&:last-child","flex-grow: 1;")])])])])])])]),W(">",[z("data-table-loading-wrapper",` color: var(--n-loading-color); font-size: var(--n-loading-size); position: absolute; @@ -2147,15 +2130,15 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[Ks({originalTransform:"translateX(-50%) translateY(-50%)"})])]),L("data-table-expand-placeholder",` + `,[Wa({originalTransform:"translateX(-50%) translateY(-50%)"})])]),z("data-table-expand-placeholder",` margin-right: 8px; display: inline-block; width: 16px; height: 1px; - `),L("data-table-indent",` + `),z("data-table-indent",` display: inline-block; height: 1px; - `),L("data-table-expand-trigger",` + `),z("data-table-expand-trigger",` display: inline-flex; margin-right: 8px; cursor: pointer; @@ -2166,7 +2149,7 @@ ${t} height: 16px; color: var(--n-td-text-color); transition: color .3s var(--n-bezier); - `,[Z("expanded",[L("icon","transform: rotate(90deg);",[Xn({originalTransform:"rotate(90deg)"})]),L("base-icon","transform: rotate(90deg);",[Xn({originalTransform:"rotate(90deg)"})])]),L("base-loading",` + `,[J("expanded",[z("icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})]),z("base-icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})])]),z("base-loading",` color: var(--n-loading-color); transition: color .3s var(--n-bezier); position: absolute; @@ -2174,34 +2157,33 @@ ${t} right: 0; top: 0; bottom: 0; - `,[Xn()]),L("icon",` + `,[Kn()]),z("icon",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[Xn()]),L("base-icon",` + `,[Kn()]),z("base-icon",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[Xn()])]),L("data-table-thead",` + `,[Kn()])]),z("data-table-thead",` transition: background-color .3s var(--n-bezier); background-color: var(--n-merged-th-color); - `),L("data-table-tr",` - position: relative; + `),z("data-table-tr",` box-sizing: border-box; background-clip: padding-box; transition: background-color .3s var(--n-bezier); - `,[L("data-table-expand",` + `,[z("data-table-expand",` position: sticky; left: 0; overflow: hidden; margin: calc(var(--n-th-padding) * -1); padding: var(--n-th-padding); box-sizing: border-box; - `),Z("striped","background-color: var(--n-merged-td-color-striped);",[L("data-table-td","background-color: var(--n-merged-td-color-striped);")]),$t("summary",[G("&:hover","background-color: var(--n-merged-td-color-hover);",[G(">",[L("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),L("data-table-th",` + `),J("striped","background-color: var(--n-merged-td-color-striped);",[z("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Et("summary",[W("&:hover","background-color: var(--n-merged-td-color-hover);",[W(">",[z("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),z("data-table-th",` padding: var(--n-th-padding); position: relative; text-align: start; @@ -2215,41 +2197,41 @@ ${t} color .3s var(--n-bezier), background-color .3s var(--n-bezier); font-weight: var(--n-th-font-weight); - `,[Z("filterable",` + `,[J("filterable",` padding-right: 36px; - `,[Z("sortable",` + `,[J("sortable",` padding-right: calc(var(--n-th-padding) + 36px); - `)]),f1,Z("selection",` + `)]),c1,J("selection",` padding: 0; text-align: center; line-height: 0; z-index: 3; - `),V("title-wrapper",` + `),j("title-wrapper",` display: flex; align-items: center; flex-wrap: nowrap; max-width: 100%; - `,[V("title",` + `,[j("title",` flex: 1; min-width: 0; - `)]),V("ellipsis",` + `)]),j("ellipsis",` display: inline-block; vertical-align: bottom; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; - `),Z("hover",` + `),J("hover",` background-color: var(--n-merged-th-color-hover); - `),Z("sorting",` + `),J("sorting",` background-color: var(--n-merged-th-color-sorting); - `),Z("sortable",` + `),J("sortable",` cursor: pointer; - `,[V("ellipsis",` + `,[j("ellipsis",` max-width: calc(100% - 18px); - `),G("&:hover",` + `),W("&:hover",` background-color: var(--n-merged-th-color-hover); - `)]),L("data-table-sorter",` + `)]),z("data-table-sorter",` height: var(--n-sorter-size); width: var(--n-sorter-size); margin-left: 4px; @@ -2260,13 +2242,13 @@ ${t} vertical-align: -0.2em; color: var(--n-th-icon-color); transition: color .3s var(--n-bezier); - `,[L("base-icon","transition: transform .3s var(--n-bezier)"),Z("desc",[L("base-icon",` + `,[z("base-icon","transition: transform .3s var(--n-bezier)"),J("desc",[z("base-icon",` transform: rotate(0deg); - `)]),Z("asc",[L("base-icon",` + `)]),J("asc",[z("base-icon",` transform: rotate(-180deg); - `)]),Z("asc, desc",` + `)]),J("asc, desc",` color: var(--n-th-icon-color-active); - `)]),L("data-table-resize-button",` + `)]),z("data-table-resize-button",` width: var(--n-resizable-container-size); position: absolute; top: 0; @@ -2274,7 +2256,7 @@ ${t} bottom: 0; cursor: col-resize; user-select: none; - `,[G("&::after",` + `,[W("&::after",` width: var(--n-resizable-size); height: 50%; position: absolute; @@ -2286,11 +2268,11 @@ ${t} transition: background-color .3s var(--n-bezier); z-index: 1; content: ''; - `),Z("active",[G("&::after",` + `),J("active",[W("&::after",` background-color: var(--n-th-icon-color-active); - `)]),G("&:hover::after",` + `)]),W("&:hover::after",` background-color: var(--n-th-icon-color-active); - `)]),L("data-table-filter",` + `)]),z("data-table-filter",` position: absolute; z-index: auto; right: 0; @@ -2306,14 +2288,14 @@ ${t} color .3s var(--n-bezier); font-size: var(--n-filter-size); color: var(--n-th-icon-color); - `,[G("&:hover",` + `,[W("&:hover",` background-color: var(--n-th-button-color-hover); - `),Z("show",` + `),J("show",` background-color: var(--n-th-button-color-hover); - `),Z("active",` + `),J("active",` background-color: var(--n-th-button-color-hover); color: var(--n-th-icon-color-active); - `)])]),L("data-table-td",` + `)])]),z("data-table-td",` padding: var(--n-td-padding); text-align: start; box-sizing: border-box; @@ -2326,21 +2308,21 @@ ${t} background-color .3s var(--n-bezier), border-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[Z("expand",[L("data-table-expand-trigger",` + `,[J("expand",[z("data-table-expand-trigger",` margin-right: 0; - `)]),Z("last-row",` + `)]),J("last-row",` border-bottom: 0 solid var(--n-merged-border-color); - `,[G("&::after",` + `,[W("&::after",` bottom: 0 !important; - `),G("&::before",` + `),W("&::before",` bottom: 0 !important; - `)]),Z("summary",` + `)]),J("summary",` background-color: var(--n-merged-th-color); - `),Z("hover",` + `),J("hover",` background-color: var(--n-merged-td-color-hover); - `),Z("sorting",` + `),J("sorting",` background-color: var(--n-merged-td-color-sorting); - `),V("ellipsis",` + `),j("ellipsis",` display: inline-block; text-overflow: ellipsis; overflow: hidden; @@ -2348,11 +2330,11 @@ ${t} max-width: 100%; vertical-align: bottom; max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); - `),Z("selection, expand",` + `),J("selection, expand",` text-align: center; padding: 0; line-height: 0; - `),f1]),L("data-table-empty",` + `),c1]),z("data-table-empty",` box-sizing: border-box; padding: var(--n-empty-padding); flex-grow: 1; @@ -2362,42 +2344,42 @@ ${t} align-items: center; justify-content: center; transition: opacity .3s var(--n-bezier); - `,[Z("hide",` + `,[J("hide",` opacity: 0; - `)]),V("pagination",` + `)]),j("pagination",` margin: var(--n-pagination-margin); display: flex; justify-content: flex-end; - `),L("data-table-wrapper",` + `),z("data-table-wrapper",` position: relative; opacity: 1; transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); line-height: var(--n-line-height); - `),Z("loading",[L("data-table-wrapper",` + `),J("loading",[z("data-table-wrapper",` opacity: var(--n-opacity-loading); pointer-events: none; - `)]),Z("single-column",[L("data-table-td",` + `)]),J("single-column",[z("data-table-td",` border-bottom: 0 solid var(--n-merged-border-color); - `,[G("&::after, &::before",` + `,[W("&::after, &::before",` bottom: 0 !important; - `)])]),$t("single-line",[L("data-table-th",` + `)])]),Et("single-line",[z("data-table-th",` border-right: 1px solid var(--n-merged-border-color); - `,[Z("last",` + `,[J("last",` border-right: 0 solid var(--n-merged-border-color); - `)]),L("data-table-td",` + `)]),z("data-table-td",` border-right: 1px solid var(--n-merged-border-color); - `,[Z("last-col",` + `,[J("last-col",` border-right: 0 solid var(--n-merged-border-color); - `)])]),Z("bordered",[L("data-table-wrapper",` + `)])]),J("bordered",[z("data-table-wrapper",` border: 1px solid var(--n-merged-border-color); border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); overflow: hidden; - `)]),L("data-table-base-table",[Z("transition-disabled",[L("data-table-th",[G("&::after, &::before","transition: none;")]),L("data-table-td",[G("&::after, &::before","transition: none;")])])]),Z("bottom-bordered",[L("data-table-td",[Z("last-row",` + `)]),z("data-table-base-table",[J("transition-disabled",[z("data-table-th",[W("&::after, &::before","transition: none;")]),z("data-table-td",[W("&::after, &::before","transition: none;")])])]),J("bottom-bordered",[z("data-table-td",[J("last-row",` border-bottom: 1px solid var(--n-merged-border-color); - `)])]),L("data-table-table",` + `)])]),z("data-table-table",` font-variant-numeric: tabular-nums; width: 100%; word-break: break-word; @@ -2405,7 +2387,7 @@ ${t} border-collapse: separate; border-spacing: 0; background-color: var(--n-merged-td-color); - `),L("data-table-base-table-header",` + `),z("data-table-base-table-header",` border-top-left-radius: calc(var(--n-border-radius) - 1px); border-top-right-radius: calc(var(--n-border-radius) - 1px); z-index: 3; @@ -2413,11 +2395,10 @@ ${t} flex-shrink: 0; transition: border-color .3s var(--n-bezier); scrollbar-width: none; - `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - display: none; + `,[W("&::-webkit-scrollbar",` width: 0; height: 0; - `)]),L("data-table-check-extra",` + `)]),z("data-table-check-extra",` transition: color .3s var(--n-bezier); color: var(--n-th-icon-color); position: absolute; @@ -2426,31 +2407,31 @@ ${t} top: 50%; transform: translateY(-50%); z-index: 1; - `)]),L("data-table-filter-menu",[L("scrollbar",` + `)]),z("data-table-filter-menu",[z("scrollbar",` max-height: 240px; - `),V("group",` + `),j("group",` display: flex; flex-direction: column; padding: 12px 12px 0 12px; - `,[L("checkbox",` + `,[z("checkbox",` margin-bottom: 12px; margin-right: 0; - `),L("radio",` + `),z("radio",` margin-bottom: 12px; margin-right: 0; - `)]),V("action",` + `)]),j("action",` padding: var(--n-action-padding); display: flex; flex-wrap: nowrap; justify-content: space-evenly; border-top: 1px solid var(--n-action-divider-color); - `,[L("button",[G("&:not(:last-child)",` + `,[z("button",[W("&:not(:last-child)",` margin: var(--n-action-button-margin); - `),G("&:last-child",` + `),W("&:last-child",` margin-right: 0; - `)])]),L("divider",` + `)])]),z("divider",` margin: 0 !important; - `)]),ll(L("data-table",` + `)]),al(z("data-table",` --n-merged-th-color: var(--n-th-color-modal); --n-merged-td-color: var(--n-td-color-modal); --n-merged-border-color: var(--n-border-color-modal); @@ -2459,7 +2440,7 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-modal); --n-merged-td-color-sorting: var(--n-td-color-hover-modal); --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Su(L("data-table",` + `)),wu(z("data-table",` --n-merged-th-color: var(--n-th-color-popover); --n-merged-td-color: var(--n-td-color-popover); --n-merged-border-color: var(--n-border-color-popover); @@ -2468,11 +2449,11 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-popover); --n-merged-td-color-sorting: var(--n-td-color-hover-popover); --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function ZU(){return[Z("fixed-left",` + `))]);function oq(){return[J("fixed-left",` left: 0; position: sticky; z-index: 2; - `,[G("&::after",` + `,[W("&::after",` pointer-events: none; content: ""; width: 36px; @@ -2482,11 +2463,11 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); right: -36px; - `)]),Z("fixed-right",` + `)]),J("fixed-right",` right: 0; position: sticky; z-index: 1; - `,[G("&::before",` + `,[W("&::before",` pointer-events: none; content: ""; width: 36px; @@ -2496,7 +2477,7 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); left: -36px; - `)])]}function JU(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,i=H(e.defaultCheckedRowKeys),s=D(()=>{var _;const{checkedRowKeys:x}=e,y=x===void 0?i.value:x;return((_=r.value)===null||_===void 0?void 0:_.multiple)===!1?{checkedKeys:y.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(y,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),a=D(()=>s.value.checkedKeys),l=D(()=>s.value.indeterminateKeys),c=D(()=>new Set(a.value)),u=D(()=>new Set(l.value)),d=D(()=>{const{value:_}=c;return n.value.reduce((x,y)=>{const{key:T,disabled:k}=y;return x+(!k&&_.has(T)?1:0)},0)}),f=D(()=>n.value.filter(_=>_.disabled).length),h=D(()=>{const{length:_}=n.value,{value:x}=u;return d.value>0&&d.value<_-f.value||n.value.some(y=>x.has(y.key))}),p=D(()=>{const{length:_}=n.value;return d.value!==0&&d.value===_-f.value}),m=D(()=>n.value.length===0);function g(_,x,y){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:k,onCheckedRowKeysChange:P}=e,I=[],{value:{getNode:R}}=o;_.forEach(W=>{var O;const M=(O=R(W))===null||O===void 0?void 0:O.rawNode;I.push(M)}),T&&$e(T,_,I,{row:x,action:y}),k&&$e(k,_,I,{row:x,action:y}),P&&$e(P,_,I,{row:x,action:y}),i.value=_}function b(_,x=!1,y){if(!e.loading){if(x){g(Array.isArray(_)?_.slice(0,1):[_],y,"check");return}g(o.value.check(_,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"check")}}function w(_,x){e.loading||g(o.value.uncheck(_,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,x,"uncheck")}function C(_=!1){const{value:x}=r;if(!x||e.loading)return;const y=[];(_?o.value.treeNodes:n.value).forEach(T=>{T.disabled||y.push(T.key)}),g(o.value.check(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function S(_=!1){const{value:x}=r;if(!x||e.loading)return;const y=[];(_?o.value.treeNodes:n.value).forEach(T=>{T.disabled||y.push(T.key)}),g(o.value.uncheck(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:a,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:m,doUpdateCheckedRowKeys:g,doCheckAll:C,doUncheckAll:S,doCheck:b,doUncheck:w}}function QU(e,t){const n=Ct(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),o=Ct(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),r=H(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var d;!((d=o.value)===null||d===void 0)&&d.call(o,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=ze(e,"expandedRowKeys"),s=ze(e,"stickyExpandedRows"),a=ln(i,r);function l(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":d}=e;u&&$e(u,c),d&&$e(d,c),r.value=c}return{stickyExpandedRowsRef:s,mergedExpandedRowKeysRef:a,renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:l}}function eq(e,t){const n=[],o=[],r=[],i=new WeakMap;let s=-1,a=0,l=!1,c=0;function u(f,h){h>s&&(n[h]=[],s=h),f.forEach(p=>{if("children"in p)u(p.children,h+1);else{const m="key"in p?p.key:void 0;o.push({key:So(p),style:rU(p,m!==void 0?qt(t(m)):void 0),column:p,index:c++,width:p.width===void 0?128:Number(p.width)}),a+=1,l||(l=!!p.ellipsis),r.push(p)}})}u(e,0),c=0;function d(f,h){let p=0;f.forEach(m=>{var g;if("children"in m){const b=c,w={column:m,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};d(m.children,h+1),m.children.forEach(C=>{var S,_;w.colSpan+=(_=(S=i.get(C))===null||S===void 0?void 0:S.colSpan)!==null&&_!==void 0?_:0}),b+w.colSpan===a&&(w.isLast=!0),i.set(m,w),n[h].push(w)}else{if(c1&&(p=c+b);const w=c+b===a,C={column:m,colSpan:b,colIndex:c,rowSpan:s-h+1,isLast:w};i.set(m,C),n[h].push(C),c+=1}})}return d(e,0),{hasEllipsis:l,rows:n,cols:o,dataRelatedCols:r}}function tq(e,t){const n=D(()=>eq(e.columns,t));return{rowsRef:D(()=>n.value.rows),colsRef:D(()=>n.value.cols),hasEllipsisRef:D(()=>n.value.hasEllipsis),dataRelatedColsRef:D(()=>n.value.dataRelatedCols)}}function nq(){const e=H({});function t(r){return e.value[r]}function n(r,i){q2(r)&&"key"in r&&(e.value[r.key]=i)}function o(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:o}}function oq(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o}){let r=0;const i=H(),s=H(null),a=H([]),l=H(null),c=H([]),u=D(()=>qt(e.scrollX)),d=D(()=>e.columns.filter(k=>k.fixed==="left")),f=D(()=>e.columns.filter(k=>k.fixed==="right")),h=D(()=>{const k={};let P=0;function I(R){R.forEach(W=>{const O={start:P,end:0};k[So(W)]=O,"children"in W?(I(W.children),O.end=P):(P+=s1(W)||0,O.end=P)})}return I(d.value),k}),p=D(()=>{const k={};let P=0;function I(R){for(let W=R.length-1;W>=0;--W){const O=R[W],M={start:P,end:0};k[So(O)]=M,"children"in O?(I(O.children),M.end=P):(P+=s1(O)||0,M.end=P)}}return I(f.value),k});function m(){var k,P;const{value:I}=d;let R=0;const{value:W}=h;let O=null;for(let M=0;M(((k=W[z])===null||k===void 0?void 0:k.start)||0)-R)O=z,R=((P=W[z])===null||P===void 0?void 0:P.end)||0;else break}s.value=O}function g(){a.value=[];let k=e.columns.find(P=>So(P)===s.value);for(;k&&"children"in k;){const P=k.children.length;if(P===0)break;const I=k.children[P-1];a.value.push(So(I)),k=I}}function b(){var k,P;const{value:I}=f,R=Number(e.scrollX),{value:W}=o;if(W===null)return;let O=0,M=null;const{value:z}=p;for(let K=I.length-1;K>=0;--K){const J=So(I[K]);if(Math.round(r+(((k=z[J])===null||k===void 0?void 0:k.start)||0)+W-O)So(P)===l.value);for(;k&&"children"in k&&k.children.length;){const P=k.children[0];c.value.push(So(P)),k=P}}function C(){const k=t.value?t.value.getHeaderElement():null,P=t.value?t.value.getBodyElement():null;return{header:k,body:P}}function S(){const{body:k}=C();k&&(k.scrollTop=0)}function _(){i.value!=="body"?Ec(y):i.value=void 0}function x(k){var P;(P=e.onScroll)===null||P===void 0||P.call(e,k),i.value!=="head"?Ec(y):i.value=void 0}function y(){const{header:k,body:P}=C();if(!P)return;const{value:I}=o;if(I!==null){if(e.maxHeight||e.flexHeight){if(!k)return;const R=r-k.scrollLeft;i.value=R!==0?"head":"body",i.value==="head"?(r=k.scrollLeft,P.scrollLeft=r):(r=P.scrollLeft,k.scrollLeft=r)}else r=P.scrollLeft;m(),g(),b(),w()}}function T(k){const{header:P}=C();P&&(P.scrollLeft=k,y())}return dt(n,()=>{S()}),{styleScrollXRef:u,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:s,leftActiveFixedChildrenColKeysRef:a,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:c,syncScrollState:y,handleTableBodyScroll:x,handleTableHeaderScroll:_,setHeaderScrollLeft:T}}function Wl(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function rq(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?iq(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function iq(e){return(t,n)=>{const o=t[e],r=n[e];return o==null?r==null?0:-1:r==null?1:typeof o=="number"&&typeof r=="number"?o-r:typeof o=="string"&&typeof r=="string"?o.localeCompare(r):0}}function sq(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(o,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=H(o),i=D(()=>{const h=t.value.filter(g=>g.type!=="selection"&&g.sorter!==void 0&&(g.sortOrder==="ascend"||g.sortOrder==="descend"||g.sortOrder===!1)),p=h.filter(g=>g.sortOrder!==!1);if(p.length)return p.map(g=>({columnKey:g.key,order:g.sortOrder,sorter:g.sorter}));if(h.length)return[];const{value:m}=r;return Array.isArray(m)?m:m?[m]:[]}),s=D(()=>{const h=i.value.slice().sort((p,m)=>{const g=Wl(p.sorter)||0;return(Wl(m.sorter)||0)-g});return h.length?n.value.slice().sort((m,g)=>{let b=0;return h.some(w=>{const{columnKey:C,sorter:S,order:_}=w,x=rq(S,C);return x&&_&&(b=x(m.rawNode,g.rawNode),b!==0)?(b=b*nU(_),!0):!1}),b}):n.value});function a(h){let p=i.value.slice();return h&&Wl(h.sorter)!==!1?(p=p.filter(m=>Wl(m.sorter)!==!1),f(p,h),p):h||null}function l(h){const p=a(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:m,onSorterChange:g}=e;p&&$e(p,h),m&&$e(m,h),g&&$e(g,h),r.value=h}function u(h,p="ascend"){if(!h)d();else{const m=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===h);if(!(m!=null&&m.sorter))return;const g=m.sorter;l({columnKey:h,sorter:g,order:p})}}function d(){c(null)}function f(h,p){const m=h.findIndex(g=>(p==null?void 0:p.columnKey)&&g.columnKey===p.columnKey);m!==void 0&&m>=0?h[m]=p:h.push(p)}return{clearSorter:d,sort:u,sortedDataRef:s,mergedSortStateRef:i,deriveNextSorter:l}}function aq(e,{dataRelatedColsRef:t}){const n=D(()=>{const F=E=>{for(let A=0;A{const{childrenKey:F}=e;return Pi(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:E=>E[F],getDisabled:E=>{var A,Y;return!!(!((Y=(A=n.value)===null||A===void 0?void 0:A.disabled)===null||Y===void 0)&&Y.call(A,E))}})}),r=Ct(()=>{const{columns:F}=e,{length:E}=F;let A=null;for(let Y=0;Y{const F=t.value.filter(Y=>Y.filterOptionValues!==void 0||Y.filterOptionValue!==void 0),E={};return F.forEach(Y=>{var ne;Y.type==="selection"||Y.type==="expand"||(Y.filterOptionValues===void 0?E[Y.key]=(ne=Y.filterOptionValue)!==null&&ne!==void 0?ne:null:E[Y.key]=Y.filterOptionValues)}),Object.assign(a1(i.value),E)}),u=D(()=>{const F=c.value,{columns:E}=e;function A(fe){return(Q,Ce)=>!!~String(Ce[fe]).indexOf(String(Q))}const{value:{treeNodes:Y}}=o,ne=[];return E.forEach(fe=>{fe.type==="selection"||fe.type==="expand"||"children"in fe||ne.push([fe.key,fe])}),Y?Y.filter(fe=>{const{rawNode:Q}=fe;for(const[Ce,j]of ne){let ye=F[Ce];if(ye==null||(Array.isArray(ye)||(ye=[ye]),!ye.length))continue;const Ie=j.filter==="default"?A(Ce):j.filter;if(j&&typeof Ie=="function")if(j.filterMode==="and"){if(ye.some(Le=>!Ie(Le,Q)))return!1}else{if(ye.some(Le=>Ie(Le,Q)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:m}=sq(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(F=>{var E;if(F.filter){const A=F.defaultFilterOptionValues;F.filterMultiple?i.value[F.key]=A||[]:A!==void 0?i.value[F.key]=A===null?[]:A:i.value[F.key]=(E=F.defaultFilterOptionValue)!==null&&E!==void 0?E:null}});const g=D(()=>{const{pagination:F}=e;if(F!==!1)return F.page}),b=D(()=>{const{pagination:F}=e;if(F!==!1)return F.pageSize}),w=ln(g,a),C=ln(b,l),S=Ct(()=>{const F=w.value;return e.remote?F:Math.max(1,Math.min(Math.ceil(u.value.length/C.value),F))}),_=D(()=>{const{pagination:F}=e;if(F){const{pageCount:E}=F;if(E!==void 0)return E}}),x=D(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const F=C.value,E=(S.value-1)*F;return d.value.slice(E,E+F)}),y=D(()=>x.value.map(F=>F.rawNode));function T(F){const{pagination:E}=e;if(E){const{onChange:A,"onUpdate:page":Y,onUpdatePage:ne}=E;A&&$e(A,F),ne&&$e(ne,F),Y&&$e(Y,F),R(F)}}function k(F){const{pagination:E}=e;if(E){const{onPageSizeChange:A,"onUpdate:pageSize":Y,onUpdatePageSize:ne}=E;A&&$e(A,F),ne&&$e(ne,F),Y&&$e(Y,F),W(F)}}const P=D(()=>{if(e.remote){const{pagination:F}=e;if(F){const{itemCount:E}=F;if(E!==void 0)return E}return}return u.value.length}),I=D(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":T,"onUpdate:pageSize":k,page:S.value,pageSize:C.value,pageCount:P.value===void 0?_.value:void 0,itemCount:P.value}));function R(F){const{"onUpdate:page":E,onPageChange:A,onUpdatePage:Y}=e;Y&&$e(Y,F),E&&$e(E,F),A&&$e(A,F),a.value=F}function W(F){const{"onUpdate:pageSize":E,onPageSizeChange:A,onUpdatePageSize:Y}=e;A&&$e(A,F),Y&&$e(Y,F),E&&$e(E,F),l.value=F}function O(F,E){const{onUpdateFilters:A,"onUpdate:filters":Y,onFiltersChange:ne}=e;A&&$e(A,F,E),Y&&$e(Y,F,E),ne&&$e(ne,F,E),i.value=F}function M(F,E,A,Y){var ne;(ne=e.onUnstableColumnResize)===null||ne===void 0||ne.call(e,F,E,A,Y)}function z(F){R(F)}function K(){J()}function J(){se({})}function se(F){le(F)}function le(F){F?F&&(i.value=a1(F)):i.value={}}return{treeMateRef:o,mergedCurrentPageRef:S,mergedPaginationRef:I,paginatedDataRef:x,rawPaginatedDataRef:y,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:H(null),selectionColumnRef:n,childTriggerColIndexRef:r,doUpdateFilters:O,deriveNextSorter:f,doUpdatePageSize:W,doUpdatePage:R,onUnstableColumnResize:M,filter:le,filters:se,clearFilter:K,clearFilters:J,clearSorter:m,page:z,sort:p}}const Bu=be({name:"DataTable",alias:["AdvancedTable"],props:eU,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=lt(e),s=gn("DataTable",i,o),a=D(()=>{const{bottomBordered:X}=e;return n.value?!1:X!==void 0?X:!0}),l=Be("DataTable","-data-table",XU,ZW,e,o),c=H(null),u=H(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=nq(),{rowsRef:p,colsRef:m,dataRelatedColsRef:g,hasEllipsisRef:b}=tq(e,d),{treeMateRef:w,mergedCurrentPageRef:C,paginatedDataRef:S,rawPaginatedDataRef:_,selectionColumnRef:x,hoverKeyRef:y,mergedPaginationRef:T,mergedFilterStateRef:k,mergedSortStateRef:P,childTriggerColIndexRef:I,doUpdatePage:R,doUpdateFilters:W,onUnstableColumnResize:O,deriveNextSorter:M,filter:z,filters:K,clearFilter:J,clearFilters:se,clearSorter:le,page:F,sort:E}=aq(e,{dataRelatedColsRef:g}),A=X=>{const{fileName:ce="data.csv",keepOriginalData:Ee=!1}=X||{},Fe=Ee?e.data:_.value,Ve=lU(e.columns,Fe,e.getCsvCell,e.getCsvHeader),Xe=new Blob([Ve],{type:"text/csv;charset=utf-8"}),Qe=URL.createObjectURL(Xe);kI(Qe,ce.endsWith(".csv")?ce:`${ce}.csv`),URL.revokeObjectURL(Qe)},{doCheckAll:Y,doUncheckAll:ne,doCheck:fe,doUncheck:Q,headerCheckboxDisabledRef:Ce,someRowsCheckedRef:j,allRowsCheckedRef:ye,mergedCheckedRowKeySetRef:Ie,mergedInderminateRowKeySetRef:Le}=JU(e,{selectionColumnRef:x,treeMateRef:w,paginatedDataRef:S}),{stickyExpandedRowsRef:U,mergedExpandedRowKeysRef:B,renderExpandRef:ae,expandableRef:Se,doUpdateExpandedRowKeys:te}=QU(e,w),{handleTableBodyScroll:xe,handleTableHeaderScroll:ve,syncScrollState:$,setHeaderScrollLeft:N,leftActiveFixedColKeyRef:ee,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:he,leftFixedColumnsRef:re,rightFixedColumnsRef:me,fixedColumnLeftMapRef:Ne,fixedColumnRightMapRef:He}=oq(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:C}),{localeRef:De}=Vi("DataTable"),ot=D(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);at(Oo,{props:e,treeMateRef:w,renderExpandIconRef:ze(e,"renderExpandIcon"),loadingKeySetRef:H(new Set),slots:t,indentRef:ze(e,"indent"),childTriggerColIndexRef:I,bodyWidthRef:c,componentId:Zr(),hoverKeyRef:y,mergedClsPrefixRef:o,mergedThemeRef:l,scrollXRef:D(()=>e.scrollX),rowsRef:p,colsRef:m,paginatedDataRef:S,leftActiveFixedColKeyRef:ee,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:he,leftFixedColumnsRef:re,rightFixedColumnsRef:me,fixedColumnLeftMapRef:Ne,fixedColumnRightMapRef:He,mergedCurrentPageRef:C,someRowsCheckedRef:j,allRowsCheckedRef:ye,mergedSortStateRef:P,mergedFilterStateRef:k,loadingRef:ze(e,"loading"),rowClassNameRef:ze(e,"rowClassName"),mergedCheckedRowKeySetRef:Ie,mergedExpandedRowKeysRef:B,mergedInderminateRowKeySetRef:Le,localeRef:De,expandableRef:Se,stickyExpandedRowsRef:U,rowKeyRef:ze(e,"rowKey"),renderExpandRef:ae,summaryRef:ze(e,"summary"),virtualScrollRef:ze(e,"virtualScroll"),virtualScrollXRef:ze(e,"virtualScrollX"),heightForRowRef:ze(e,"heightForRow"),minRowHeightRef:ze(e,"minRowHeight"),virtualScrollHeaderRef:ze(e,"virtualScrollHeader"),headerHeightRef:ze(e,"headerHeight"),rowPropsRef:ze(e,"rowProps"),stripedRef:ze(e,"striped"),checkOptionsRef:D(()=>{const{value:X}=x;return X==null?void 0:X.options}),rawPaginatedDataRef:_,filterMenuCssVarsRef:D(()=>{const{self:{actionDividerColor:X,actionPadding:ce,actionButtonMargin:Ee}}=l.value;return{"--n-action-padding":ce,"--n-action-button-margin":Ee,"--n-action-divider-color":X}}),onLoadRef:ze(e,"onLoad"),mergedTableLayoutRef:ot,maxHeightRef:ze(e,"maxHeight"),minHeightRef:ze(e,"minHeight"),flexHeightRef:ze(e,"flexHeight"),headerCheckboxDisabledRef:Ce,paginationBehaviorOnFilterRef:ze(e,"paginationBehaviorOnFilter"),summaryPlacementRef:ze(e,"summaryPlacement"),filterIconPopoverPropsRef:ze(e,"filterIconPopoverProps"),scrollbarPropsRef:ze(e,"scrollbarProps"),syncScrollState:$,doUpdatePage:R,doUpdateFilters:W,getResizableWidth:d,onUnstableColumnResize:O,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:M,doCheck:fe,doUncheck:Q,doCheckAll:Y,doUncheckAll:ne,doUpdateExpandedRowKeys:te,handleTableHeaderScroll:ve,handleTableBodyScroll:xe,setHeaderScrollLeft:N,renderCell:ze(e,"renderCell")});const nt={filter:z,filters:K,clearFilters:se,clearSorter:le,page:F,sort:E,clearFilter:J,downloadCsv:A,scrollTo:(X,ce)=>{var Ee;(Ee=u.value)===null||Ee===void 0||Ee.scrollTo(X,ce)}},Ge=D(()=>{const{size:X}=e,{common:{cubicBezierEaseInOut:ce},self:{borderColor:Ee,tdColorHover:Fe,tdColorSorting:Ve,tdColorSortingModal:Xe,tdColorSortingPopover:Qe,thColorSorting:rt,thColorSortingModal:wt,thColorSortingPopover:Ft,thColor:Et,thColorHover:yn,tdColor:cn,tdTextColor:Te,thTextColor:Ue,thFontWeight:et,thButtonColorHover:ft,thIconColor:ht,thIconColorActive:oe,filterSize:ke,borderRadius:qe,lineHeight:ct,tdColorModal:At,thColorModal:It,borderColorModal:Yt,thColorHoverModal:nn,tdColorHoverModal:Gn,borderColorPopover:Jo,thColorPopover:Qo,tdColorPopover:oi,tdColorHoverPopover:Qs,thColorHoverPopover:ea,paginationMargin:ta,emptyPadding:na,boxShadowAfter:oa,boxShadowBefore:yr,sorterSize:xr,resizableContainerSize:nd,resizableSize:od,loadingColor:rd,loadingSize:id,opacityLoading:sd,tdColorStriped:ad,tdColorStripedModal:ld,tdColorStripedPopover:cd,[Re("fontSize",X)]:ud,[Re("thPadding",X)]:dd,[Re("tdPadding",X)]:fd}}=l.value;return{"--n-font-size":ud,"--n-th-padding":dd,"--n-td-padding":fd,"--n-bezier":ce,"--n-border-radius":qe,"--n-line-height":ct,"--n-border-color":Ee,"--n-border-color-modal":Yt,"--n-border-color-popover":Jo,"--n-th-color":Et,"--n-th-color-hover":yn,"--n-th-color-modal":It,"--n-th-color-hover-modal":nn,"--n-th-color-popover":Qo,"--n-th-color-hover-popover":ea,"--n-td-color":cn,"--n-td-color-hover":Fe,"--n-td-color-modal":At,"--n-td-color-hover-modal":Gn,"--n-td-color-popover":oi,"--n-td-color-hover-popover":Qs,"--n-th-text-color":Ue,"--n-td-text-color":Te,"--n-th-font-weight":et,"--n-th-button-color-hover":ft,"--n-th-icon-color":ht,"--n-th-icon-color-active":oe,"--n-filter-size":ke,"--n-pagination-margin":ta,"--n-empty-padding":na,"--n-box-shadow-before":yr,"--n-box-shadow-after":oa,"--n-sorter-size":xr,"--n-resizable-container-size":nd,"--n-resizable-size":od,"--n-loading-size":id,"--n-loading-color":rd,"--n-opacity-loading":sd,"--n-td-color-striped":ad,"--n-td-color-striped-modal":ld,"--n-td-color-striped-popover":cd,"n-td-color-sorting":Ve,"n-td-color-sorting-modal":Xe,"n-td-color-sorting-popover":Qe,"n-th-color-sorting":rt,"n-th-color-sorting-modal":wt,"n-th-color-sorting-popover":Ft}}),Me=r?Rt("data-table",D(()=>e.size[0]),Ge,e):void 0,tt=D(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const X=T.value,{pageCount:ce}=X;return ce!==void 0?ce>1:X.itemCount&&X.pageSize&&X.itemCount>X.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:o,rtlEnabled:s,mergedTheme:l,paginatedData:S,mergedBordered:n,mergedBottomBordered:a,mergedPagination:T,mergedShowPagination:tt,cssVars:r?void 0:Ge,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},nt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:o,spinProps:r}=this;return n==null||n(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(YU,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(LW,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(pn,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},Dn(o.loading,()=>[v(ti,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),lq={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function cq(e){const{popoverColor:t,textColor2:n,primaryColor:o,hoverColor:r,dividerColor:i,opacityDisabled:s,boxShadow2:a,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},lq),{panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:n,itemTextColorActive:o,itemColorHover:r,itemOpacityDisabled:s,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const uq={name:"TimePicker",common:je,peers:{Scrollbar:qn,Button:Kn,Input:xo},self:cq},cS=uq,dq={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 fq(e){const{hoverColor:t,fontSize:n,textColor2:o,textColorDisabled:r,popoverColor:i,primaryColor:s,borderRadiusSmall:a,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return Object.assign(Object.assign({},dq),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:s,itemColorIncluded:Ae(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:a,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const hq={name:"DatePicker",common:je,peers:{Input:xo,Button:Kn,TimePicker:cS,Scrollbar:qn},self(e){const{popoverColor:t,hoverColor:n,primaryColor:o}=e,r=fq(e);return r.itemColorDisabled=Ye(t,n),r.itemColorIncluded=Ae(o,{alpha:.15}),r.itemColorHover=Ye(t,n),r}},pq=hq,mq={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 gq(e){const{tableHeaderColor:t,textColor2:n,textColor1:o,cardColor:r,modalColor:i,popoverColor:s,dividerColor:a,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},mq),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:o,thColor:Ye(r,t),thColorModal:Ye(i,t),thColorPopover:Ye(s,t),thTextColor:o,thFontWeight:c,tdTextColor:n,tdColor:r,tdColorModal:i,tdColorPopover:s,borderColor:Ye(r,a),borderColorModal:Ye(i,a),borderColorPopover:Ye(s,a),borderRadius:l})}const vq={name:"Descriptions",common:je,self:gq},bq=vq,uS="n-dialog-provider",dS="n-dialog-api",yq="n-dialog-reactive-list";function xq(){const e=We(dS,null);return e===null&&hr("use-dialog","No outer founded."),e}const Cq={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 fS(e){const{textColor1:t,textColor2:n,modalColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:a,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:m,fontWeightStrong:g,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},Cq),{fontSize:w,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:o,closeColorHover:a,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:m,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:m,titleFontWeight:g})}const wq={name:"Dialog",common:xt,peers:{Button:Ou},self:fS},hS=wq,_q={name:"Dialog",common:je,peers:{Button:Kn},self:fS},pS=_q,Nu={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},mS=Qr(Nu),Sq=G([L("dialog",` + `)])]}const Du=xe({name:"DataTable",alias:["AdvancedTable"],props:ZV,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=pn("DataTable",i,o),s=I(()=>{const{bottomBordered:Q}=e;return n.value?!1:Q!==void 0?Q:!0}),l=Le("DataTable","-data-table",nq,GV,e,o),c=U(null),u=U(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=JW(),{rowsRef:p,colsRef:g,dataRelatedColsRef:m,hasEllipsisRef:b}=eq(e,d),{treeMateRef:w,mergedCurrentPageRef:C,paginatedDataRef:_,rawPaginatedDataRef:S,selectionColumnRef:y,hoverKeyRef:x,mergedPaginationRef:P,mergedFilterStateRef:k,mergedSortStateRef:T,childTriggerColIndexRef:R,doUpdatePage:E,doUpdateFilters:q,onUnstableColumnResize:D,deriveNextSorter:B,filter:M,filters:K,clearFilter:V,clearFilters:ae,clearSorter:pe,page:Z,sort:N}=YW(e,{dataRelatedColsRef:m}),O=Q=>{const{fileName:ye="data.csv",keepOriginalData:Ae=!1}=Q||{},qe=Ae?e.data:S.value,Qe=mW(e.columns,qe),Je=new Blob([Qe],{type:"text/csv;charset=utf-8"}),tt=URL.createObjectURL(Je);wO(tt,ye.endsWith(".csv")?ye:`${ye}.csv`),URL.revokeObjectURL(tt)},{doCheckAll:ee,doUncheckAll:G,doCheck:ne,doUncheck:X,headerCheckboxDisabledRef:ce,someRowsCheckedRef:L,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:Oe,mergedInderminateRowKeySetRef:je}=qW(e,{selectionColumnRef:y,treeMateRef:w,paginatedDataRef:_}),{stickyExpandedRowsRef:F,mergedExpandedRowKeysRef:A,renderExpandRef:re,expandableRef:we,doUpdateExpandedRowKeys:oe}=tq(e,w),{handleTableBodyScroll:ve,handleTableHeaderScroll:ke,syncScrollState:$,setHeaderScrollLeft:H,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De}=QW(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:C}),{localeRef:Me}=Hi("DataTable"),Ne=I(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);at(Mo,{props:e,treeMateRef:w,renderExpandIconRef:Ue(e,"renderExpandIcon"),loadingKeySetRef:U(new Set),slots:t,indentRef:Ue(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:c,componentId:Qr(),hoverKeyRef:x,mergedClsPrefixRef:o,mergedThemeRef:l,scrollXRef:I(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:_,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De,mergedCurrentPageRef:C,someRowsCheckedRef:L,allRowsCheckedRef:be,mergedSortStateRef:T,mergedFilterStateRef:k,loadingRef:Ue(e,"loading"),rowClassNameRef:Ue(e,"rowClassName"),mergedCheckedRowKeySetRef:Oe,mergedExpandedRowKeysRef:A,mergedInderminateRowKeySetRef:je,localeRef:Me,expandableRef:we,stickyExpandedRowsRef:F,rowKeyRef:Ue(e,"rowKey"),renderExpandRef:re,summaryRef:Ue(e,"summary"),virtualScrollRef:Ue(e,"virtualScroll"),rowPropsRef:Ue(e,"rowProps"),stripedRef:Ue(e,"striped"),checkOptionsRef:I(()=>{const{value:Q}=y;return Q==null?void 0:Q.options}),rawPaginatedDataRef:S,filterMenuCssVarsRef:I(()=>{const{self:{actionDividerColor:Q,actionPadding:ye,actionButtonMargin:Ae}}=l.value;return{"--n-action-padding":ye,"--n-action-button-margin":Ae,"--n-action-divider-color":Q}}),onLoadRef:Ue(e,"onLoad"),mergedTableLayoutRef:Ne,maxHeightRef:Ue(e,"maxHeight"),minHeightRef:Ue(e,"minHeight"),flexHeightRef:Ue(e,"flexHeight"),headerCheckboxDisabledRef:ce,paginationBehaviorOnFilterRef:Ue(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ue(e,"summaryPlacement"),filterIconPopoverPropsRef:Ue(e,"filterIconPopoverProps"),scrollbarPropsRef:Ue(e,"scrollbarProps"),syncScrollState:$,doUpdatePage:E,doUpdateFilters:q,getResizableWidth:d,onUnstableColumnResize:D,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:B,doCheck:ne,doUncheck:X,doCheckAll:ee,doUncheckAll:G,doUpdateExpandedRowKeys:oe,handleTableHeaderScroll:ke,handleTableBodyScroll:ve,setHeaderScrollLeft:H,renderCell:Ue(e,"renderCell")});const et={filter:M,filters:K,clearFilters:ae,clearSorter:pe,page:Z,sort:N,clearFilter:V,downloadCsv:O,scrollTo:(Q,ye)=>{var Ae;(Ae=u.value)===null||Ae===void 0||Ae.scrollTo(Q,ye)}},$e=I(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:ye},self:{borderColor:Ae,tdColorHover:qe,tdColorSorting:Qe,tdColorSortingModal:Je,tdColorSortingPopover:tt,thColorSorting:it,thColorSortingModal:vt,thColorSortingPopover:an,thColor:Ft,thColorHover:_e,tdColor:Be,tdTextColor:Ze,thTextColor:ht,thFontWeight:bt,thButtonColorHover:ut,thIconColor:Rt,thIconColorActive:le,filterSize:Ee,borderRadius:ot,lineHeight:Bt,tdColorModal:Kt,thColorModal:Dt,borderColorModal:yo,thColorHoverModal:xo,tdColorHoverModal:Co,borderColorPopover:Jo,thColorPopover:Zo,tdColorPopover:oi,tdColorHoverPopover:Qa,thColorHoverPopover:Ja,paginationMargin:Za,emptyPadding:es,boxShadowAfter:yr,boxShadowBefore:xr,sorterSize:ed,resizableContainerSize:td,resizableSize:nd,loadingColor:od,loadingSize:rd,opacityLoading:id,tdColorStriped:ad,tdColorStripedModal:sd,tdColorStripedPopover:ld,[Te("fontSize",Q)]:cd,[Te("thPadding",Q)]:ud,[Te("tdPadding",Q)]:dd}}=l.value;return{"--n-font-size":cd,"--n-th-padding":ud,"--n-td-padding":dd,"--n-bezier":ye,"--n-border-radius":ot,"--n-line-height":Bt,"--n-border-color":Ae,"--n-border-color-modal":yo,"--n-border-color-popover":Jo,"--n-th-color":Ft,"--n-th-color-hover":_e,"--n-th-color-modal":Dt,"--n-th-color-hover-modal":xo,"--n-th-color-popover":Zo,"--n-th-color-hover-popover":Ja,"--n-td-color":Be,"--n-td-color-hover":qe,"--n-td-color-modal":Kt,"--n-td-color-hover-modal":Co,"--n-td-color-popover":oi,"--n-td-color-hover-popover":Qa,"--n-th-text-color":ht,"--n-td-text-color":Ze,"--n-th-font-weight":bt,"--n-th-button-color-hover":ut,"--n-th-icon-color":Rt,"--n-th-icon-color-active":le,"--n-filter-size":Ee,"--n-pagination-margin":Za,"--n-empty-padding":es,"--n-box-shadow-before":xr,"--n-box-shadow-after":yr,"--n-sorter-size":ed,"--n-resizable-container-size":td,"--n-resizable-size":nd,"--n-loading-size":rd,"--n-loading-color":od,"--n-opacity-loading":id,"--n-td-color-striped":ad,"--n-td-color-striped-modal":sd,"--n-td-color-striped-popover":ld,"n-td-color-sorting":Qe,"n-td-color-sorting-modal":Je,"n-td-color-sorting-popover":tt,"n-th-color-sorting":it,"n-th-color-sorting-modal":vt,"n-th-color-sorting-popover":an}}),Xe=r?Pt("data-table",I(()=>e.size[0]),$e,e):void 0,gt=I(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Q=P.value,{pageCount:ye}=Q;return ye!==void 0?ye>1:Q.itemCount&&Q.pageSize&&Q.itemCount>Q.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:o,rtlEnabled:a,mergedTheme:l,paginatedData:_,mergedBordered:n,mergedBottomBordered:s,mergedPagination:P,mergedShowPagination:gt,cssVars:r?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender},et)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:o,spinProps:r}=this;return n==null||n(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(WW,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(MV,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(fn,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},$n(o.loading,()=>[v(ti,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),rq={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function iq(e){const{popoverColor:t,textColor2:n,primaryColor:o,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},rq),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:n,itemTextColorActive:o,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const aq={name:"TimePicker",common:He,peers:{Scrollbar:Un,Button:Vn,Input:go},self:iq},l2=aq,sq={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 lq(e){const{hoverColor:t,fontSize:n,textColor2:o,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return Object.assign(Object.assign({},sq),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Ie(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const cq={name:"DatePicker",common:He,peers:{Input:go,Button:Vn,TimePicker:l2,Scrollbar:Un},self(e){const{popoverColor:t,hoverColor:n,primaryColor:o}=e,r=lq(e);return r.itemColorDisabled=Ke(t,n),r.itemColorIncluded=Ie(o,{alpha:.15}),r.itemColorHover=Ke(t,n),r}},uq=cq,dq={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 fq(e){const{tableHeaderColor:t,textColor2:n,textColor1:o,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},dq),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:o,thColor:Ke(r,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:o,thFontWeight:c,tdTextColor:n,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ke(r,s),borderColorModal:Ke(i,s),borderColorPopover:Ke(a,s),borderRadius:l})}const hq={name:"Descriptions",common:He,self:fq},pq=hq,mq={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 c2(e){const{textColor1:t,textColor2:n,modalColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},mq),{fontSize:w,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:o,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:g,titleFontWeight:m})}const gq={name:"Dialog",common:xt,peers:{Button:Iu},self:c2},u2=gq,vq={name:"Dialog",common:He,peers:{Button:Vn},self:c2},d2=vq,Lu={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},f2=Jr(Lu),bq=W([z("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); @@ -2511,9 +2492,9 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[V("icon",{color:"var(--n-icon-color)"}),Z("bordered",{border:"var(--n-border)"}),Z("icon-top",[V("close",{margin:"var(--n-close-margin)"}),V("icon",{margin:"var(--n-icon-margin)"}),V("content",{textAlign:"center"}),V("title",{justifyContent:"center"}),V("action",{justifyContent:"center"})]),Z("icon-left",[V("icon",{margin:"var(--n-icon-margin)"}),Z("closable",[V("title",` + `,[j("icon",{color:"var(--n-icon-color)"}),J("bordered",{border:"var(--n-border)"}),J("icon-top",[j("close",{margin:"var(--n-close-margin)"}),j("icon",{margin:"var(--n-icon-margin)"}),j("content",{textAlign:"center"}),j("title",{justifyContent:"center"}),j("action",{justifyContent:"center"})]),J("icon-left",[j("icon",{margin:"var(--n-icon-margin)"}),J("closable",[j("title",` padding-right: calc(var(--n-close-size) + 6px); - `)])]),V("close",` + `)])]),j("close",` position: absolute; right: 0; top: 0; @@ -2522,377 +2503,67 @@ ${t} background-color .3s var(--n-bezier), color .3s var(--n-bezier); z-index: 1; - `),V("content",` + `),j("content",` font-size: var(--n-font-size); margin: var(--n-content-margin); position: relative; word-break: break-word; - `,[Z("last","margin-bottom: 0;")]),V("action",` + `,[J("last","margin-bottom: 0;")]),j("action",` display: flex; justify-content: flex-end; - `,[G("> *:not(:last-child)",` + `,[W("> *:not(:last-child)",` margin-right: var(--n-action-space); - `)]),V("icon",` + `)]),j("icon",` font-size: var(--n-icon-size); transition: color .3s var(--n-bezier); - `),V("title",` + `),j("title",` transition: color .3s var(--n-bezier); display: flex; align-items: center; font-size: var(--n-title-font-size); font-weight: var(--n-title-font-weight); color: var(--n-title-text-color); - `),L("dialog-icon-container",` + `),z("dialog-icon-container",` display: flex; justify-content: center; - `)]),ll(L("dialog",` + `)]),al(z("dialog",` width: 446px; max-width: calc(100vw - 32px); - `)),L("dialog",[bw(` + `)),z("dialog",[Cw(` width: 446px; max-width: calc(100vw - 32px); - `)])]),kq={default:()=>v(Vr,null),info:()=>v(Vr,null),success:()=>v(qi,null),warning:()=>v(Ki,null),error:()=>v(Ui,null)},gS=be({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Be.props),Nu),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=lt(e),i=gn("Dialog",r,n),s=D(()=>{var h,p;const{iconPlacement:m}=e;return m||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function a(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=Be("Dialog","-dialog",Sq,hS,e,n),d=D(()=>{const{type:h}=e,p=s.value,{common:{cubicBezierEaseInOut:m},self:{fontSize:g,lineHeight:b,border:w,titleTextColor:C,textColor:S,color:_,closeBorderRadius:x,closeColorHover:y,closeColorPressed:T,closeIconColor:k,closeIconColorHover:P,closeIconColorPressed:I,closeIconSize:R,borderRadius:W,titleFontWeight:O,titleFontSize:M,padding:z,iconSize:K,actionSpace:J,contentMargin:se,closeSize:le,[p==="top"?"iconMarginIconTop":"iconMargin"]:F,[p==="top"?"closeMarginIconTop":"closeMargin"]:E,[Re("iconColor",h)]:A}}=u.value,Y=zn(F);return{"--n-font-size":g,"--n-icon-color":A,"--n-bezier":m,"--n-close-margin":E,"--n-icon-margin-top":Y.top,"--n-icon-margin-right":Y.right,"--n-icon-margin-bottom":Y.bottom,"--n-icon-margin-left":Y.left,"--n-icon-size":K,"--n-close-size":le,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":y,"--n-close-color-pressed":T,"--n-close-icon-color":k,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":I,"--n-color":_,"--n-text-color":S,"--n-border-radius":W,"--n-padding":z,"--n-line-height":b,"--n-border":w,"--n-content-margin":se,"--n-title-font-size":M,"--n-title-font-weight":O,"--n-title-text-color":C,"--n-action-space":J}}),f=o?Rt("dialog",D(()=>`${e.type[0]}${s.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:a,handleNegativeClick:l,handleCloseClick:c,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:o,closable:r,showIcon:i,title:s,content:a,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:m,loading:g,type:b,mergedClsPrefix:w}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?v(Gt,{clsPrefix:w,class:`${w}-dialog__icon`},{default:()=>Mt(this.$slots.icon,_=>_||(this.icon?Kt(this.icon):kq[this.type]()))}):null,S=Mt(this.$slots.action,_=>_||u||c||l?v("div",{class:[`${w}-dialog__action`,this.actionClass],style:this.actionStyle},_||(l?[Kt(l)]:[this.negativeText&&v(Lt,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,ghost:!0,size:"small",onClick:p},f),{default:()=>Kt(this.negativeText)}),this.positiveText&&v(Lt,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:g,loading:g,onClick:h},d),{default:()=>Kt(this.positiveText)})])):null);return v("div",{class:[`${w}-dialog`,this.themeClass,this.closable&&`${w}-dialog--closable`,`${w}-dialog--icon-${n}`,t&&`${w}-dialog--bordered`,this.rtlEnabled&&`${w}-dialog--rtl`],style:o,role:"dialog"},r?Mt(this.$slots.close,_=>{const x=[`${w}-dialog__close`,this.rtlEnabled&&`${w}-dialog--rtl`];return _?v("div",{class:x},_):v(Gi,{clsPrefix:w,class:x,onClick:this.handleCloseClick})}):null,i&&n==="top"?v("div",{class:`${w}-dialog-icon-container`},C):null,v("div",{class:[`${w}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?C:null,Dn(this.$slots.header,()=>[Kt(s)])),v("div",{class:[`${w}-dialog__content`,S?"":`${w}-dialog__content--last`,this.contentClass],style:this.contentStyle},Dn(this.$slots.default,()=>[Kt(a)])),S)}});function vS(e){const{modalColor:t,textColor2:n,boxShadow3:o}=e;return{color:t,textColor:n,boxShadow:o}}const Pq={name:"Modal",common:xt,peers:{Scrollbar:Yi,Dialog:hS,Card:y2},self:vS},Tq=Pq,Rq={name:"Modal",common:je,peers:{Scrollbar:qn,Dialog:pS,Card:x2},self:vS},Eq=Rq,$q="n-modal-provider",bS="n-modal-api",Aq="n-modal-reactive-list";function Iq(){const e=We(bS,null);return e===null&&hr("use-modal","No outer founded."),e}const Lh="n-draggable";function Mq(e,t){let n;const o=D(()=>e.value!==!1),r=D(()=>o.value?Lh:""),i=D(()=>{const l=e.value;return l===!0||l===!1?!0:l?l.bounds!=="none":!0});function s(l){const c=l.querySelector(`.${Lh}`);if(!c||!r.value)return;let u=0,d=0,f=0,h=0,p=0,m=0,g;function b(S){S.preventDefault(),g=S;const{x:_,y:x,right:y,bottom:T}=l.getBoundingClientRect();d=_,h=x,u=window.innerWidth-y,f=window.innerHeight-T;const{left:k,top:P}=l.style;p=+P.slice(0,-2),m=+k.slice(0,-2)}function w(S){if(!g)return;const{clientX:_,clientY:x}=g;let y=S.clientX-_,T=S.clientY-x;i.value&&(y>u?y=u:-y>d&&(y=-d),T>f?T=f:-T>h&&(T=-h));const k=y+m,P=T+p;l.style.top=`${P}px`,l.style.left=`${k}px`}function C(){g=void 0,t.onEnd(l)}St("mousedown",c,b),St("mousemove",window,w),St("mouseup",window,C),n=()=>{Tt("mousedown",c,b),St("mousemove",window,w),St("mouseup",window,C)}}function a(){n&&(n(),n=void 0)}return Fi(a),{stopDrag:a,startDrag:s,draggableRef:o,draggableClassRef:r}}const $m=Object.assign(Object.assign({},bm),Nu),Oq=Qr($m),zq=be({name:"ModalBody",inheritAttrs:!1,slots:Object,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,draggable:{type:[Boolean,Object],default:!1}},$m),{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=H(null),n=H(null),o=H(e.show),r=H(null),i=H(null),s=We(Sw);let a=null;dt(ze(e,"show"),T=>{T&&(a=s.getMousePosition())},{immediate:!0});const{stopDrag:l,startDrag:c,draggableRef:u,draggableClassRef:d}=Mq(ze(e,"draggable"),{onEnd:T=>{m(T)}}),f=D(()=>ho([e.titleClass,d.value])),h=D(()=>ho([e.headerClass,d.value]));dt(ze(e,"show"),T=>{T&&(o.value=!0)}),Tw(D(()=>e.blockScroll&&o.value));function p(){if(s.transformOriginRef.value==="center")return"";const{value:T}=r,{value:k}=i;if(T===null||k===null)return"";if(n.value){const P=n.value.containerScrollTop;return`${T}px ${k+P}px`}return""}function m(T){if(s.transformOriginRef.value==="center"||!a||!n.value)return;const k=n.value.containerScrollTop,{offsetLeft:P,offsetTop:I}=T,R=a.y,W=a.x;r.value=-(P-W),i.value=-(I-R-k),T.style.transformOrigin=p()}function g(T){Vt(()=>{m(T)})}function b(T){T.style.transformOrigin=p(),e.onBeforeLeave()}function w(T){const k=T;u.value&&c(k),e.onAfterEnter&&e.onAfterEnter(k)}function C(){o.value=!1,r.value=null,i.value=null,l(),e.onAfterLeave()}function S(){const{onClose:T}=e;T&&T()}function _(){e.onNegativeClick()}function x(){e.onPositiveClick()}const y=H(null);return dt(y,T=>{T&&Vt(()=>{const k=T.el;k&&t.value!==k&&(t.value=k)})}),at(ul,t),at(cl,null),at(js,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:d,displayed:o,childNodeRef:y,cardHeaderClass:h,dialogTitleClass:f,handlePositiveClick:x,handleNegativeClick:_,handleCloseClick:S,handleAfterEnter:w,handleAfterLeave:C,handleBeforeLeave:b,handleEnter:g}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:o,handleAfterLeave:r,handleBeforeLeave:i,preset:s,mergedClsPrefix:a}=this;let l=null;if(!s){if(l=EI("default",e.default,{draggableClass:this.draggableClass}),!l){Go("modal","default slot is empty");return}l=mo(l),l.props=Ln({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?hn(v("div",{role:"none",class:`${a}-modal-body-wrapper`},v(Mo,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var c;return[(c=this.renderMask)===null||c===void 0?void 0:c.call(this),v(Qp,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return v(pn,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:n,onAfterEnter:o,onAfterLeave:r,onBeforeLeave:i},{default:()=>{const d=[[Nn,this.show]],{onClickoutside:f}=this;return f&&d.push([$s,this.onClickoutside,void 0,{capture:!0}]),hn(this.preset==="confirm"||this.preset==="dialog"?v(gS,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},oo(this.$props,mS),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?v(Co,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},oo(this.$props,RV),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[Nn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Dq=G([L("modal-container",` + `)])]),yq={default:()=>v(Ur,null),info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null)},h2=xe({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Le.props),Lu),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=pn("Dialog",r,n),a=I(()=>{var h,p;const{iconPlacement:g}=e;return g||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function s(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=Le("Dialog","-dialog",bq,u2,e,n),d=I(()=>{const{type:h}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:m,lineHeight:b,border:w,titleTextColor:C,textColor:_,color:S,closeBorderRadius:y,closeColorHover:x,closeColorPressed:P,closeIconColor:k,closeIconColorHover:T,closeIconColorPressed:R,closeIconSize:E,borderRadius:q,titleFontWeight:D,titleFontSize:B,padding:M,iconSize:K,actionSpace:V,contentMargin:ae,closeSize:pe,[p==="top"?"iconMarginIconTop":"iconMargin"]:Z,[p==="top"?"closeMarginIconTop":"closeMargin"]:N,[Te("iconColor",h)]:O}}=u.value,ee=co(Z);return{"--n-font-size":m,"--n-icon-color":O,"--n-bezier":g,"--n-close-margin":N,"--n-icon-margin-top":ee.top,"--n-icon-margin-right":ee.right,"--n-icon-margin-bottom":ee.bottom,"--n-icon-margin-left":ee.left,"--n-icon-size":K,"--n-close-size":pe,"--n-close-icon-size":E,"--n-close-border-radius":y,"--n-close-color-hover":x,"--n-close-color-pressed":P,"--n-close-icon-color":k,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":R,"--n-color":S,"--n-text-color":_,"--n-border-radius":q,"--n-padding":M,"--n-line-height":b,"--n-border":w,"--n-content-margin":ae,"--n-title-font-size":B,"--n-title-font-weight":D,"--n-title-text-color":C,"--n-action-space":V}}),f=o?Pt("dialog",I(()=>`${e.type[0]}${a.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:o,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:g,loading:m,type:b,mergedClsPrefix:w}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?v(Wt,{clsPrefix:w,class:`${w}-dialog__icon`},{default:()=>At(this.$slots.icon,S=>S||(this.icon?Vt(this.icon):yq[this.type]()))}):null,_=At(this.$slots.action,S=>S||u||c||l?v("div",{class:[`${w}-dialog__action`,this.actionClass],style:this.actionStyle},S||(l?[Vt(l)]:[this.negativeText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},f),{default:()=>Vt(this.negativeText)}),this.positiveText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:m,loading:m,onClick:h},d),{default:()=>Vt(this.positiveText)})])):null);return v("div",{class:[`${w}-dialog`,this.themeClass,this.closable&&`${w}-dialog--closable`,`${w}-dialog--icon-${n}`,t&&`${w}-dialog--bordered`,this.rtlEnabled&&`${w}-dialog--rtl`],style:o,role:"dialog"},r?At(this.$slots.close,S=>{const y=[`${w}-dialog__close`,this.rtlEnabled&&`${w}-dialog--rtl`];return S?v("div",{class:y},S):v(qi,{clsPrefix:w,class:y,onClick:this.handleCloseClick})}):null,i&&n==="top"?v("div",{class:`${w}-dialog-icon-container`},C):null,v("div",{class:[`${w}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?C:null,$n(this.$slots.header,()=>[Vt(a)])),v("div",{class:[`${w}-dialog__content`,_?"":`${w}-dialog__content--last`,this.contentClass],style:this.contentStyle},$n(this.$slots.default,()=>[Vt(s)])),_)}}),p2="n-dialog-provider",m2="n-dialog-api",xq="n-dialog-reactive-list";function g2(e){const{modalColor:t,textColor2:n,boxShadow3:o}=e;return{color:t,textColor:n,boxShadow:o}}const Cq={name:"Modal",common:xt,peers:{Scrollbar:Gi,Dialog:u2,Card:bS},self:g2},wq=Cq,_q={name:"Modal",common:He,peers:{Scrollbar:Un,Dialog:d2,Card:yS},self:g2},Sq=_q,Rm=Object.assign(Object.assign({},vm),Lu),kq=Jr(Rm),Pq=xe({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Rm),{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=U(null),n=U(null),o=U(e.show),r=U(null),i=U(null);ft(Ue(e,"show"),m=>{m&&(o.value=!0)}),Uw(I(()=>e.blockScroll&&o.value));const a=Ve(Pw);function s(){if(a.transformOriginRef.value==="center")return"";const{value:m}=r,{value:b}=i;if(m===null||b===null)return"";if(n.value){const w=n.value.containerScrollTop;return`${m}px ${b+w}px`}return""}function l(m){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!n.value)return;const w=n.value.containerScrollTop,{offsetLeft:C,offsetTop:_}=m;if(b){const S=b.y,y=b.x;r.value=-(C-y),i.value=-(_-S-w)}m.style.transformOrigin=s()}function c(m){Ht(()=>{l(m)})}function u(m){m.style.transformOrigin=s(),e.onBeforeLeave()}function d(){o.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:m}=e;m&&m()}function h(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=U(null);return ft(g,m=>{m&&Ht(()=>{const b=m.el;b&&t.value!==b&&(t.value=b)})}),at(sl,t),at(ll,null),at(ja,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:o,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:o,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=mh(e),!s){cr("modal","default slot is empty");return}s=fo(s),s.props=Ln({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none",class:`${a}-modal-body-wrapper`},v(Oo,{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),v(Xp,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return v(fn,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:r},{default:()=>{const u=[[Mn,this.show]],{onClickoutside:d}=this;return d&&u.push([Ea,this.onClickoutside,void 0,{capture:!0}]),dn(this.preset==="confirm"||this.preset==="dialog"?v(h2,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},eo(this.$props,f2),{"aria-modal":"true"}),e):this.preset==="card"?v(vo,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},eo(this.$props,SU),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,u)}})}})]}})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Tq=W([z("modal-container",` position: fixed; left: 0; top: 0; height: 0; width: 0; display: flex; - `),L("modal-mask",` + `),z("modal-mask",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, .4); - `,[fl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),L("modal-body-wrapper",` + `,[dl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),z("modal-body-wrapper",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; overflow: visible; - `,[L("modal-scroll-content",` + `,[z("modal-scroll-content",` min-height: 100%; display: flex; position: relative; - `)]),L("modal",` + `)]),z("modal",` position: relative; align-self: center; color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[Ks({duration:".25s",enterScale:".5"}),G(`.${Lh}`,` - cursor: move; - user-select: none; - `)])]),yS=Object.assign(Object.assign(Object.assign(Object.assign({},Be.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}}),$m),{draggable:[Boolean,Object],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}),ni=be({name:"Modal",inheritAttrs:!1,props:yS,slots:Object,setup(e){const t=H(null),{mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:r}=lt(e),i=Be("Modal","-modal",Dq,Tq,e,n),s=jp(64),a=Hp(),l=Jr(),c=e.internalDialog?We(uS,null):null,u=e.internalModal?We(R8,null):null,d=Pw();function f(x){const{onUpdateShow:y,"onUpdate:show":T,onHide:k}=e;y&&$e(y,x),T&&$e(T,x),k&&!x&&k(x)}function h(){const{onClose:x}=e;x?Promise.resolve(x()).then(y=>{y!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:x}=e;x?Promise.resolve(x()).then(y=>{y!==!1&&f(!1)}):f(!1)}function m(){const{onNegativeClick:x}=e;x?Promise.resolve(x()).then(y=>{y!==!1&&f(!1)}):f(!1)}function g(){const{onBeforeLeave:x,onBeforeHide:y}=e;x&&$e(x),y&&y()}function b(){const{onAfterLeave:x,onAfterHide:y}=e;x&&$e(x),y&&y()}function w(x){var y;const{onMaskClick:T}=e;T&&T(x),e.maskClosable&&!((y=t.value)===null||y===void 0)&&y.contains(Ai(x))&&f(!1)}function C(x){var y;(y=e.onEsc)===null||y===void 0||y.call(e),e.show&&e.closeOnEsc&&Ww(x)&&(d.value||f(!1))}at(Sw,{getMousePosition:()=>{const x=c||u;if(x){const{clickedRef:y,clickedPositionRef:T}=x;if(y.value&&T.value)return T.value}return s.value?a.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:l,appearRef:ze(e,"internalAppear"),transformOriginRef:ze(e,"transformOrigin")});const S=D(()=>{const{common:{cubicBezierEaseOut:x},self:{boxShadow:y,color:T,textColor:k}}=i.value;return{"--n-bezier-ease-out":x,"--n-box-shadow":y,"--n-color":T,"--n-text-color":k}}),_=r?Rt("theme-class",void 0,S,e):void 0;return{mergedClsPrefix:n,namespace:o,isMounted:l,containerRef:t,presetProps:D(()=>oo(e,Oq)),handleEsc:C,handleAfterLeave:b,handleClickoutside:w,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:m,handlePositiveClick:p,handleCloseClick:h,cssVars:r?void 0:S,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return v(Tu,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return hn(v("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},v(zq,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,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:n?void 0:this.handleClickoutside,renderMask:n?()=>{var o;return v(pn,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Pu,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Lq=Object.assign(Object.assign({},Nu),{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,draggable:[Boolean,Object]}),Fq=be({name:"DialogEnvironment",props:Object.assign(Object.assign({},Lq),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=H(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(u){const{onPositiveClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function r(u){const{onNegativeClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function s(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function a(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:s,handleEsc:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:r,handleMaskClick:i,handleEsc:s,to:a,maskClosable:l,show:c}=this;return v(ni,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:a,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:u})=>v(gS,Object.assign({},oo(this.$props,mS),{titleClass:ho([this.titleClass,u]),style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:e}))})}}),Bq={injectionKey:String,to:[String,Object]},Nq=be({name:"DialogProvider",props:Bq,setup(){const e=H([]),t={};function n(a={}){const l=Zr(),c=ro(Object.assign(Object.assign({},a),{key:l,destroy:()=>{var u;(u=t[`n-dialog-${l}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(a=>l=>n(Object.assign(Object.assign({},l),{type:a})));function r(a){const{value:l}=e;l.splice(l.findIndex(c=>c.key===a),1)}function i(){Object.values(t).forEach(a=>{a==null||a.hide()})}const s={create:n,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return at(dS,s),at(uS,{clickedRef:jp(64),clickedPositionRef:Hp()}),at(yq,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return v(st,null,[this.dialogList.map(n=>v(Fq,Vs(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),xS="n-loading-bar",CS="n-loading-bar-api",Hq={name:"LoadingBar",common:je,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},jq=Hq;function Vq(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const Wq={name:"LoadingBar",common:xt,self:Vq},Uq=Wq,qq=L("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[fl({enterDuration:"0.3s",leaveDuration:"0.8s"}),L("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[Z("starting",` - background: var(--n-color-loading); - `),Z("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),Z("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Ul=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((o=o.apply(e,t||[])).next())})};function ql(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const Kq=be({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=lt(),{props:t,mergedClsPrefixRef:n}=We(xS),o=H(null),r=H(!1),i=H(!1),s=H(!1),a=H(!1);let l=!1;const c=H(!1),u=D(()=>{const{loadingBarStyle:_}=t;return _?_[c.value?"error":"loading"]:""});function d(){return Ul(this,void 0,void 0,function*(){r.value=!1,s.value=!1,l=!1,c.value=!1,a.value=!0,yield Vt(),a.value=!1})}function f(){return Ul(this,arguments,void 0,function*(_=0,x=80,y="starting"){if(i.value=!0,yield d(),l)return;s.value=!0,yield Vt();const T=o.value;T&&(T.style.maxWidth=`${_}%`,T.style.transition="none",T.offsetWidth,T.className=ql(y,n.value),T.style.transition="",T.style.maxWidth=`${x}%`)})}function h(){return Ul(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Vt()),l=!0;const _=o.value;_&&(_.className=ql("finishing",n.value),_.style.maxWidth="100%",_.offsetWidth,s.value=!1)})}function p(){if(!(l||c.value))if(!s.value)f(100,100,"error").then(()=>{c.value=!0;const _=o.value;_&&(_.className=ql("error",n.value),_.offsetWidth,s.value=!1)});else{c.value=!0;const _=o.value;if(!_)return;_.className=ql("error",n.value),_.style.maxWidth="100%",_.offsetWidth,s.value=!1}}function m(){r.value=!0}function g(){r.value=!1}function b(){return Ul(this,void 0,void 0,function*(){yield d()})}const w=Be("LoadingBar","-loading-bar",qq,Uq,t,n),C=D(()=>{const{self:{height:_,colorError:x,colorLoading:y}}=w.value;return{"--n-height":_,"--n-color-loading":y,"--n-color-error":x}}),S=e?Rt("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:o,started:i,loading:s,entering:r,transitionDisabled:a,start:f,error:p,finish:h,handleEnter:m,handleAfterEnter:g,handleAfterLeave:b,mergedLoadingBarStyle:u,cssVars:e?void 0:C,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return v(pn,{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),hn(v("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},v("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Nn,this.loading||!this.loading&&this.entering]])}})}}),Gq=Object.assign(Object.assign({},Be.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),Yq=be({name:"LoadingBarProvider",props:Gq,setup(e){const t=Jr(),n=H(null),o={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Vt(()=>{var s;(s=n.value)===null||s===void 0||s.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Vt(()=>{var s;(s=n.value)===null||s===void 0||s.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Vt(()=>{var s;(s=n.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:r}=lt(e);return at(CS,o),at(xS,{props:e,mergedClsPrefixRef:r}),Object.assign(o,{loadingBarRef:n})},render(){var e,t;return v(st,null,v(tu,{disabled:this.to===!1,to:this.to||"body"},v(Kq,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function Xq(){const e=We(CS,null);return e===null&&hr("use-loading-bar","No outer founded."),e}const wS="n-message-api",_S="n-message-provider",Zq={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 SS(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,infoColor:i,successColor:s,errorColor:a,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:m}=e;return Object.assign(Object.assign({},Zq),{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:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:l,iconColorError:a,iconColorLoading:d,closeColorHover:p,closeColorPressed:m,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:m,closeIconColorInfo:n,closeIconColorHoverInfo:o,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:m,closeIconColorSuccess:n,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:m,closeIconColorError:n,closeIconColorHoverError:o,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:m,closeIconColorWarning:n,closeIconColorHoverWarning:o,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:m,closeIconColorLoading:n,closeIconColorHoverLoading:o,closeIconColorPressedLoading:r,loadingColor:d,lineHeight:f,borderRadius:h})}const Jq={name:"Message",common:xt,self:SS},Qq=Jq,eK={name:"Message",common:je,self:SS},tK=eK,kS={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},nK=G([L("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[mm({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),L("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[V("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),V("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>Z(`${e}-type`,[G("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),G("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[Xn()])]),V("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[G("&:hover",` - color: var(--n-close-icon-color-hover); - `),G("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),L("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[Z("top",` - top: 12px; - left: 0; - right: 0; - `),Z("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),Z("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),Z("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),Z("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),Z("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),oK={info:()=>v(Vr,null),success:()=>v(qi,null),warning:()=>v(Ki,null),error:()=>v(Ui,null),default:()=>null},rK=be({name:"Message",props:Object.assign(Object.assign({},kS),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=lt(e),{props:o,mergedClsPrefixRef:r}=We(_S),i=gn("Message",n,r),s=Be("Message","-message",nK,Qq,o,r),a=D(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:h,iconMargin:p,closeMargin:m,closeSize:g,iconSize:b,fontSize:w,lineHeight:C,borderRadius:S,iconColorInfo:_,iconColorSuccess:x,iconColorWarning:y,iconColorError:T,iconColorLoading:k,closeIconSize:P,closeBorderRadius:I,[Re("textColor",c)]:R,[Re("boxShadow",c)]:W,[Re("color",c)]:O,[Re("closeColorHover",c)]:M,[Re("closeColorPressed",c)]:z,[Re("closeIconColor",c)]:K,[Re("closeIconColorPressed",c)]:J,[Re("closeIconColorHover",c)]:se}}=s.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":h,"--n-font-size":w,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":P,"--n-close-border-radius":I,"--n-close-size":g,"--n-close-margin":m,"--n-text-color":R,"--n-color":O,"--n-box-shadow":W,"--n-icon-color-info":_,"--n-icon-color-success":x,"--n-icon-color-warning":y,"--n-icon-color-error":T,"--n-icon-color-loading":k,"--n-close-color-hover":M,"--n-close-color-pressed":z,"--n-close-icon-color":K,"--n-close-icon-color-pressed":J,"--n-close-icon-color-hover":se,"--n-line-height":C,"--n-border-radius":S}}),l=t?Rt("message",D(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:n,content:o,mergedClsPrefix:r,cssVars:i,themeClass:s,onRender:a,icon:l,handleClose:c,showIcon:u}=this;a==null||a();let d;return v("div",{class:[`${r}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):v("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(d=iK(l,t,r))&&u?v("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},v(Wi,null,{default:()=>d})):null,v("div",{class:`${r}-message__content`},Kt(o)),n?v(Gi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function iK(e,t,n){if(typeof e=="function")return e();{const o=t==="loading"?v(ti,{clsPrefix:n,strokeWidth:24,scale:.85}):oK[t]();return o?v(Gt,{clsPrefix:n,key:t},{default:()=>o}):null}}const sK=be({name:"MessageEnvironment",props:Object.assign(Object.assign({},kS),{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 n=H(!0);Wt(()=>{o()});function o(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function r(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&o()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function a(){const{onClose:u}=e;u&&u(),s()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:h}=e;u&&u(),d&&d(h),f&&f()}function c(){s()}return{show:n,hide:s,handleClose:a,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return v(Iu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?v(rK,{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]})}}),aK=Object.assign(Object.assign({},Be.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]}),lK=be({name:"MessageProvider",props:aK,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=H([]),o=H({}),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:a};at(_S,{props:e,mergedClsPrefixRef:t}),at(wS,r);function i(l,c){const u=Zr(),d=ro(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=o.value[u])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&n.value.length>=f&&n.value.shift(),n.value.push(d),d}function s(l){n.value.splice(n.value.findIndex(c=>c.key===l),1),delete o.value[l]}function a(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:n,handleAfterLeave:s},r)},render(){var e,t,n;return v(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?v(tu,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>v(sK,Object.assign({ref:r=>{r&&(this.messageRefs[o.key]=r)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Vs(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function cK(){const e=We(wS,null);return e===null&&hr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const uK=be({name:"ModalEnvironment",props:Object.assign(Object.assign({},yS),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=H(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function r(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function s(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function a(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:s,handleEsc:a}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:o,show:r}=this;return v(ni,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:n,onEsc:o,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),dK={to:[String,Object]},fK=be({name:"ModalProvider",props:dK,setup(){const e=H([]),t={};function n(s={}){const a=Zr(),l=ro(Object.assign(Object.assign({},s),{key:a,destroy:()=>{var c;(c=t[`n-modal-${a}`])===null||c===void 0||c.hide()}}));return e.value.push(l),l}function o(s){const{value:a}=e;a.splice(a.findIndex(l=>l.key===s),1)}function r(){Object.values(t).forEach(s=>{s==null||s.hide()})}const i={create:n,destroyAll:r};return at(bS,i),at($q,{clickedRef:jp(64),clickedPositionRef:Hp()}),at(Aq,e),Object.assign(Object.assign({},i),{modalList:e,modalInstRefs:t,handleAfterLeave:o})},render(){var e,t;return v(st,null,[this.modalList.map(n=>{var o;return v(uK,Vs(n,["destroy"],{to:(o=n.to)!==null&&o!==void 0?o:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),hK={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function PS(e){const{textColor2:t,successColor:n,infoColor:o,warningColor:r,errorColor:i,popoverColor:s,closeIconColor:a,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:m,boxShadow2:g,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},hK),{borderRadius:p,lineHeight:b,fontSize:w,headerFontWeight:m,iconColor:t,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:r,iconColorError:i,color:s,textColor:t,closeIconColor:a,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:g})}const pK={name:"Notification",common:xt,peers:{Scrollbar:Yi},self:PS},mK=pK,gK={name:"Notification",common:je,peers:{Scrollbar:qn},self:PS},vK=gK,Hu="n-notification-provider",bK=be({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=We(Hu),o=H(null);return Jt(()=>{var r,i;n.value>0?(r=o==null?void 0:o.value)===null||r===void 0||r.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:o,placement:r}=this;return v("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${r}`]},t?v(Mo,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),yK={info:()=>v(Vr,null),success:()=>v(qi,null),warning:()=>v(Ki,null),error:()=>v(Ui,null),default:()=>null},Am={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},xK=Qr(Am),CK=be({name:"Notification",props:Am,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:o}=We(Hu),{inlineThemeDisabled:r,mergedRtlRef:i}=lt(),s=gn("Notification",i,t),a=D(()=>{const{type:c}=e,{self:{color:u,textColor:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:m,descriptionTextColor:g,actionTextColor:b,borderRadius:w,headerFontWeight:C,boxShadow:S,lineHeight:_,fontSize:x,closeMargin:y,closeSize:T,width:k,padding:P,closeIconSize:I,closeBorderRadius:R,closeColorHover:W,closeColorPressed:O,titleFontSize:M,metaFontSize:z,descriptionFontSize:K,[Re("iconColor",c)]:J},common:{cubicBezierEaseOut:se,cubicBezierEaseIn:le,cubicBezierEaseInOut:F}}=n.value,{left:E,right:A,top:Y,bottom:ne}=zn(P);return{"--n-color":u,"--n-font-size":x,"--n-text-color":d,"--n-description-text-color":g,"--n-action-text-color":b,"--n-title-text-color":m,"--n-title-font-weight":C,"--n-bezier":F,"--n-bezier-ease-out":se,"--n-bezier-ease-in":le,"--n-border-radius":w,"--n-box-shadow":S,"--n-close-border-radius":R,"--n-close-color-hover":W,"--n-close-color-pressed":O,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":_,"--n-icon-color":J,"--n-close-margin":y,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":k,"--n-padding-left":E,"--n-padding-right":A,"--n-padding-top":Y,"--n-padding-bottom":ne,"--n-title-font-size":M,"--n-meta-font-size":z,"--n-description-font-size":K}}),l=r?Rt("notification",D(()=>e.type[0]),a,o):void 0;return{mergedClsPrefix:t,showAvatar:D(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},v("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?v("div",{class:`${t}-notification__avatar`},this.avatar?Kt(this.avatar):this.type!=="default"?v(Gt,{clsPrefix:t},{default:()=>yK[this.type]()}):null):null,this.closable?v(Gi,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,v("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?v("div",{class:`${t}-notification-main__header`},Kt(this.title)):null,this.description?v("div",{class:`${t}-notification-main__description`},Kt(this.description)):null,this.content?v("pre",{class:`${t}-notification-main__content`},Kt(this.content)):null,this.meta||this.action?v("div",{class:`${t}-notification-main-footer`},this.meta?v("div",{class:`${t}-notification-main-footer__meta`},Kt(this.meta)):null,this.action?v("div",{class:`${t}-notification-main-footer__action`},Kt(this.action)):null):null)))}}),wK=Object.assign(Object.assign({},Am),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),_K=be({name:"NotificationEnvironment",props:Object.assign(Object.assign({},wK),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=We(Hu),n=H(!0);let o=null;function r(){n.value=!1,o&&window.clearTimeout(o)}function i(p){t.value++,Vt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function s(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:m,onAfterShow:g}=e;m&&m(),g&&g()}function a(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:m}=e;m&&m(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:m,onAfterHide:g,internalKey:b}=e;p&&p(),m(b),g&&g()}function u(){const{duration:p}=e;p&&(o=window.setTimeout(r,p))}function d(p){p.currentTarget===p.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(m=>{m!==!1&&r()}):r()}return Wt(()=>{e.duration&&(o=window.setTimeout(r,e.duration))}),{show:n,hide:r,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:a,handleAfterEnter:s,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return v(pn,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?v(CK,Object.assign({},oo(this.$props,xK),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),SK=G([L("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[G(">",[L("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[G(">",[L("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[L("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),Z("top, top-right, top-left",` - top: 12px; - `,[G("&.transitioning >",[L("scrollbar",[G(">",[L("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),Z("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[G(">",[L("scrollbar",[G(">",[L("scrollbar-container",[L("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),L("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),Z("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[L("notification-wrapper",[G("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),G("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),Z("top",[L("notification-wrapper",` - transform-origin: top center; - `)]),Z("bottom",[L("notification-wrapper",` - transform-origin: bottom center; - `)]),Z("top-right, bottom-right",[L("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),Z("top-left, bottom-left",[L("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),Z("top-right",` - right: 0; - `,[Kl("top-right")]),Z("top-left",` - left: 0; - `,[Kl("top-left")]),Z("bottom-right",` - right: 0; - `,[Kl("bottom-right")]),Z("bottom-left",` - left: 0; - `,[Kl("bottom-left")]),Z("scrollable",[Z("top-right",` - top: 0; - `),Z("top-left",` - top: 0; - `),Z("bottom-right",` - bottom: 0; - `),Z("bottom-left",` - bottom: 0; - `)]),L("notification-wrapper",` - margin-bottom: 12px; - `,[G("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),G("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),G("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),G("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),L("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - max-width: calc(100vw - 16px - 16px); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[V("avatar",[L("icon",` - color: var(--n-icon-color); - `),L("base-icon",` - color: var(--n-icon-color); - `)]),Z("show-avatar",[L("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),Z("closable",[L("notification-main",[G("> *:first-child",` - padding-right: 20px; - `)]),V("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),V("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[L("icon","transition: color .3s var(--n-bezier);")]),L("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[L("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[V("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),V("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),V("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),V("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),V("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[G("&:first-child","margin: 0;")])])])])]);function Kl(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return L("notification-wrapper",[G("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),G("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${o}, 0); - `)])}const TS="n-notification-api",kK=Object.assign(Object.assign({},Be.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),PK=be({name:"NotificationProvider",props:kK,setup(e){const{mergedClsPrefixRef:t}=lt(e),n=H([]),o={},r=new Set;function i(h){const p=Zr(),m=()=>{r.add(p),o[p]&&o[p].hide()},g=ro(Object.assign(Object.assign({},h),{key:p,destroy:m,hide:m,deactivate:m})),{max:b}=e;if(b&&n.value.length-r.size>=b){let w=!1,C=0;for(const S of n.value){if(!r.has(S.key)){o[S.key]&&(S.destroy(),w=!0);break}C++}w||n.value.splice(C,1)}return n.value.push(g),g}const s=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function a(h){r.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=Be("Notification","-notification",SK,mK,e,t),c={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:d,destroyAll:f},u=H(0);at(TS,c),at(Hu,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function d(h){return i(h)}function f(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:o,handleAfterLeave:a},c)},render(){var e,t,n;const{placement:o}=this;return v(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?v(tu,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v(bK,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(r=>v(_K,Object.assign({ref:i=>{const s=r.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},Vs(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function TK(){const e=We(TS,null);return e===null&&hr("use-notification","No outer `n-notification-provider` found."),e}const RK=be({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),EK={message:cK,notification:TK,loadingBar:Xq,dialog:xq,modal:Iq};function $K({providersAndProps:e,configProviderProps:t}){let n=wx(r);const o={app:n};function r(){return v(T2,_e(t),{default:()=>e.map(({type:a,Provider:l,props:c})=>v(l,_e(c),{default:()=>v(RK,{onSetup:()=>o[a]=EK[a]()})}))})}let i;return fr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){Go("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},o)}function AK(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:o,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(c=>{switch(c){case"message":a.push({type:c,Provider:lK,props:n});break;case"notification":a.push({type:c,Provider:PK,props:r});break;case"dialog":a.push({type:c,Provider:Nq,props:o});break;case"loadingBar":a.push({type:c,Provider:Yq,props:i});break;case"modal":a.push({type:c,Provider:fK,props:s})}}),$K({providersAndProps:a,configProviderProps:t})}function RS(e){const{textColor1:t,dividerColor:n,fontWeightStrong:o}=e;return{textColor:t,color:n,fontWeight:o}}const IK={name:"Divider",common:xt,self:RS},MK=IK,OK={name:"Divider",common:je,self:RS},zK=OK,DK=L("divider",` + `,[Wa({duration:".25s",enterScale:".5"})])]),v2=Object.assign(Object.assign(Object.assign(Object.assign({},Le.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}}),Rm),{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}),ni=xe({name:"Modal",inheritAttrs:!1,props:v2,setup(e){const t=U(null),{mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Modal","-modal",Tq,wq,e,n),a=Ac(64),s=Rc(),l=Zr(),c=e.internalDialog?Ve(p2,null):null,u=e.internalModal?Ve(E8,null):null,d=Vw();function f(y){const{onUpdateShow:x,"onUpdate:show":P,onHide:k}=e;x&&Re(x,y),P&&Re(P,y),k&&!y&&k(y)}function h(){const{onClose:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function m(){const{onBeforeLeave:y,onBeforeHide:x}=e;y&&Re(y),x&&x()}function b(){const{onAfterLeave:y,onAfterHide:x}=e;y&&Re(y),x&&x()}function w(y){var x;const{onMaskClick:P}=e;P&&P(y),e.maskClosable&&!((x=t.value)===null||x===void 0)&&x.contains($i(y))&&f(!1)}function C(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&_w(y)&&(d.value||f(!1))}at(Pw,{getMousePosition:()=>{const y=c||u;if(y){const{clickedRef:x,clickedPositionRef:P}=y;if(x.value&&P.value)return P.value}return a.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:l,appearRef:Ue(e,"internalAppear"),transformOriginRef:Ue(e,"transformOrigin")});const _=I(()=>{const{common:{cubicBezierEaseOut:y},self:{boxShadow:x,color:P,textColor:k}}=i.value;return{"--n-bezier-ease-out":y,"--n-box-shadow":x,"--n-color":P,"--n-text-color":k}}),S=r?Pt("theme-class",void 0,_,e):void 0;return{mergedClsPrefix:n,namespace:o,isMounted:l,containerRef:t,presetProps:I(()=>eo(e,kq)),handleEsc:C,handleAfterLeave:b,handleClickoutside:w,handleBeforeLeave:m,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e}=this;return v(ku,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return dn(v("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},v(Pq,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:n?void 0:this.handleClickoutside,renderMask:n?()=>{var o;return v(fn,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Su,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Eq=Object.assign(Object.assign({},Lu),{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}),Rq=xe({name:"DialogEnvironment",props:Object.assign(Object.assign({},Eq),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(u){const{onPositiveClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function r(u){const{onNegativeClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return v(ni,{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:()=>v(h2,Object.assign({},eo(this.$props,f2),{style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:e}))})}}),Aq={injectionKey:String,to:[String,Object]},$q=xe({name:"DialogProvider",props:Aq,setup(){const e=U([]),t={};function n(s={}){const l=Qr(),c=to(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var u;(u=t[`n-dialog-${l}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(s=>l=>n(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:n,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return at(m2,a),at(p2,{clickedRef:Ac(64),clickedPositionRef:Rc()}),at(xq,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return v(rt,null,[this.dialogList.map(n=>v(Rq,Ha(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Iq(){const e=Ve(m2,null);return e===null&&hr("use-dialog","No outer founded."),e}function b2(e){const{textColor1:t,dividerColor:n,fontWeightStrong:o}=e;return{textColor:t,color:n,fontWeight:o}}const Oq={name:"Divider",common:xt,self:b2},Mq=Oq,zq={name:"Divider",common:He,self:b2},Fq=zq,Dq=z("divider",` position: relative; display: flex; width: 100%; @@ -2902,38 +2573,38 @@ ${t} transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier); -`,[$t("vertical",` +`,[Et("vertical",` margin-top: 24px; margin-bottom: 24px; - `,[$t("no-title",` + `,[Et("no-title",` display: flex; align-items: center; - `)]),V("title",` + `)]),j("title",` display: flex; align-items: center; margin-left: 12px; margin-right: 12px; white-space: nowrap; font-weight: var(--n-font-weight); - `),Z("title-position-left",[V("line",[Z("left",{width:"28px"})])]),Z("title-position-right",[V("line",[Z("right",{width:"28px"})])]),Z("dashed",[V("line",` + `),J("title-position-left",[j("line",[J("left",{width:"28px"})])]),J("title-position-right",[j("line",[J("right",{width:"28px"})])]),J("dashed",[j("line",` background-color: #0000; height: 0px; width: 100%; border-style: dashed; border-width: 1px 0 0; - `)]),Z("vertical",` + `)]),J("vertical",` display: inline-block; height: 1em; margin: 0 8px; vertical-align: middle; width: 1px; - `),V("line",` + `),j("line",` border: none; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); height: 1px; width: 100%; margin: 0; - `),$t("dashed",[V("line",{backgroundColor:"var(--n-color)"})]),Z("dashed",[V("line",{borderColor:"var(--n-color)"})]),Z("vertical",{backgroundColor:"var(--n-color)"})]),LK=Object.assign(Object.assign({},Be.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Ji=be({name:"Divider",props:LK,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Divider","-divider",DK,MK,e,t),r=D(()=>{const{common:{cubicBezierEaseInOut:s},self:{color:a,textColor:l,fontWeight:c}}=o.value;return{"--n-bezier":s,"--n-color":a,"--n-text-color":l,"--n-font-weight":c}}),i=n?Rt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:o,dashed:r,cssVars:i,mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{role:"separator",class:[`${s}-divider`,this.themeClass,{[`${s}-divider--vertical`]:o,[`${s}-divider--no-title`]:!t.default,[`${s}-divider--dashed`]:r,[`${s}-divider--title-position-${n}`]:t.default&&n}],style:i},o?null:v("div",{class:`${s}-divider__line ${s}-divider__line--left`}),!o&&t.default?v(st,null,v("div",{class:`${s}-divider__title`},this.$slots),v("div",{class:`${s}-divider__line ${s}-divider__line--right`})):null)}});function ES(e){const{modalColor:t,textColor1:n,textColor2:o,boxShadow3:r,lineHeight:i,fontWeightStrong:s,dividerColor:a,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:s,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:p}}const FK={name:"Drawer",common:xt,peers:{Scrollbar:Yi},self:ES},BK=FK,NK={name:"Drawer",common:je,peers:{Scrollbar:qn},self:ES},HK=NK,jK=be({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=H(!!e.show),n=H(null),o=We(Wp);let r=0,i="",s=null;const a=H(!1),l=H(!1),c=D(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:d}=lt(e),f=gn("Drawer",d,u),h=x,p=k=>{l.value=!0,r=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",_),document.body.addEventListener("mouseleave",h),document.body.addEventListener("mouseup",x)},m=()=>{s!==null&&(window.clearTimeout(s),s=null),l.value?a.value=!0:s=window.setTimeout(()=>{a.value=!0},300)},g=()=>{s!==null&&(window.clearTimeout(s),s=null),a.value=!1},{doUpdateHeight:b,doUpdateWidth:w}=o,C=k=>{const{maxWidth:P}=e;if(P&&k>P)return P;const{minWidth:I}=e;return I&&k{const{maxHeight:P}=e;if(P&&k>P)return P;const{minHeight:I}=e;return I&&k{e.show&&(t.value=!0)}),dt(()=>e.show,k=>{k||x()}),rn(()=>{x()});const y=D(()=>{const{show:k}=e,P=[[Nn,k]];return e.showMask||P.push([$s,e.onClickoutside,void 0,{capture:!0}]),P});function T(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return Tw(D(()=>e.blockScroll&&t.value)),at(cl,n),at(js,null),at(ul,null),{bodyRef:n,rtlEnabled:f,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:D(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:T,bodyDirectives:y,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:m,handleMouseleaveResizeTrigger:g,isDragging:l,isHoverOnResizeTrigger:a}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?hn(v("div",{role:"none"},v(Qp,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>v(pn,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>hn(v("div",Ln(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?v("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?v("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):v(Mo,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Nn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:VK,cubicBezierEaseOut:WK}=yo;function UK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[G(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${VK}`}),G(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${WK}`}),G(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),G(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),G(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),G(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:qK,cubicBezierEaseOut:KK}=yo;function GK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[G(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${qK}`}),G(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${KK}`}),G(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),G(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),G(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),G(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:YK,cubicBezierEaseOut:XK}=yo;function ZK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[G(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${YK}`}),G(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${XK}`}),G(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),G(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),G(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),G(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:JK,cubicBezierEaseOut:QK}=yo;function eG({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[G(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${JK}`}),G(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${QK}`}),G(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),G(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),G(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),G(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const tG=G([L("drawer",` + `),Et("dashed",[j("line",{backgroundColor:"var(--n-color)"})]),J("dashed",[j("line",{borderColor:"var(--n-color)"})]),J("vertical",{backgroundColor:"var(--n-color)"})]),Lq=Object.assign(Object.assign({},Le.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Yi=xe({name:"Divider",props:Lq,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Divider","-divider",Dq,Mq,e,t),r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:s,textColor:l,fontWeight:c}}=o.value;return{"--n-bezier":a,"--n-color":s,"--n-text-color":l,"--n-font-weight":c}}),i=n?Pt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:o,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:o,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},o?null:v("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!o&&t.default?v(rt,null,v("div",{class:`${a}-divider__title`},this.$slots),v("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function y2(e){const{modalColor:t,textColor1:n,textColor2:o,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:p}}const Bq={name:"Drawer",common:xt,peers:{Scrollbar:Gi},self:y2},Nq=Bq,Hq={name:"Drawer",common:He,peers:{Scrollbar:Un},self:y2},jq=Hq,Uq=xe({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=U(!!e.show),n=U(null),o=Ve(Up);let r=0,i="",a=null;const s=U(!1),l=U(!1),c=I(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:d}=st(e),f=pn("Drawer",d,u),h=y,p=k=>{l.value=!0,r=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",S),document.body.addEventListener("mouseleave",h),document.body.addEventListener("mouseup",y)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value?s.value=!0:a=window.setTimeout(()=>{s.value=!0},300)},m=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value=!1},{doUpdateHeight:b,doUpdateWidth:w}=o,C=k=>{const{maxWidth:T}=e;if(T&&k>T)return T;const{minWidth:R}=e;return R&&k{const{maxHeight:T}=e;if(T&&k>T)return T;const{minHeight:R}=e;return R&&k{e.show&&(t.value=!0)}),ft(()=>e.show,k=>{k||y()}),on(()=>{y()});const x=I(()=>{const{show:k}=e,T=[[Mn,k]];return e.showMask||T.push([Ea,e.onClickoutside,void 0,{capture:!0}]),T});function P(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return Uw(I(()=>e.blockScroll&&t.value)),at(ll,n),at(ja,null),at(sl,null),{bodyRef:n,rtlEnabled:f,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:I(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:P,bodyDirectives:x,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:m,isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none"},v(Xp,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>v(fn,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>dn(v("div",Ln(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?v("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?v("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):v(Oo,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Vq,cubicBezierEaseOut:Wq}=mo;function qq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Vq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Wq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:Kq,cubicBezierEaseOut:Gq}=mo;function Xq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Kq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Gq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:Yq,cubicBezierEaseOut:Qq}=mo;function Jq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Yq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:Zq,cubicBezierEaseOut:eK}=mo;function tK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eK}`}),W(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const nK=W([z("drawer",` word-break: break-word; line-height: var(--n-line-height); position: absolute; @@ -2945,34 +2616,34 @@ ${t} background-color: var(--n-color); color: var(--n-text-color); box-sizing: border-box; - `,[ZK(),GK(),eG(),UK(),Z("unselectable",` + `,[qq(),Xq(),Jq(),tK(),J("unselectable",` user-select: none; -webkit-user-select: none; - `),Z("native-scrollbar",[L("drawer-content-wrapper",` + `),J("native-scrollbar",[z("drawer-content-wrapper",` overflow: auto; height: 100%; - `)]),V("resize-trigger",` + `)]),j("resize-trigger",` position: absolute; background-color: #0000; transition: background-color .3s var(--n-bezier); - `,[Z("hover",` + `,[J("hover",` background-color: var(--n-resize-trigger-color-hover); - `)]),L("drawer-content-wrapper",` + `)]),z("drawer-content-wrapper",` box-sizing: border-box; - `),L("drawer-content",` + `),z("drawer-content",` height: 100%; display: flex; flex-direction: column; - `,[Z("native-scrollbar",[L("drawer-body-content-wrapper",` + `,[J("native-scrollbar",[z("drawer-body-content-wrapper",` height: 100%; overflow: auto; - `)]),L("drawer-body",` + `)]),z("drawer-body",` flex: 1 0 0; overflow: hidden; - `),L("drawer-body-content-wrapper",` + `),z("drawer-body-content-wrapper",` box-sizing: border-box; padding: var(--n-body-padding); - `),L("drawer-header",` + `),z("drawer-header",` font-weight: var(--n-title-font-weight); line-height: 1; font-size: var(--n-title-font-size); @@ -2984,74 +2655,72 @@ ${t} display: flex; justify-content: space-between; align-items: center; - `,[V("main",` - flex: 1; - `),V("close",` + `,[j("close",` margin-left: 6px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),L("drawer-footer",` + `)]),z("drawer-footer",` display: flex; justify-content: flex-end; border-top: var(--n-footer-border-top); transition: border .3s var(--n-bezier); padding: var(--n-footer-padding); - `)]),Z("right-placement",` + `)]),J("right-placement",` top: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-bottom-left-radius: var(--n-border-radius); - `,[V("resize-trigger",` + `,[j("resize-trigger",` width: 3px; height: 100%; top: 0; left: 0; transform: translateX(-1.5px); cursor: ew-resize; - `)]),Z("left-placement",` + `)]),J("left-placement",` top: 0; bottom: 0; left: 0; border-top-right-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[V("resize-trigger",` + `,[j("resize-trigger",` width: 3px; height: 100%; top: 0; right: 0; transform: translateX(1.5px); cursor: ew-resize; - `)]),Z("top-placement",` + `)]),J("top-placement",` top: 0; left: 0; right: 0; border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[V("resize-trigger",` + `,[j("resize-trigger",` width: 100%; height: 3px; bottom: 0; left: 0; transform: translateY(1.5px); cursor: ns-resize; - `)]),Z("bottom-placement",` + `)]),J("bottom-placement",` left: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); - `,[V("resize-trigger",` + `,[j("resize-trigger",` width: 100%; height: 3px; top: 0; left: 0; transform: translateY(-1.5px); cursor: ns-resize; - `)])]),G("body",[G(">",[L("drawer-container",` + `)])]),W("body",[W(">",[z("drawer-container",` position: fixed; - `)])]),L("drawer-container",` + `)])]),z("drawer-container",` position: relative; position: absolute; left: 0; @@ -3059,24 +2728,24 @@ ${t} top: 0; bottom: 0; pointer-events: none; - `,[G("> *",` + `,[W("> *",` pointer-events: all; - `)]),L("drawer-mask",` + `)]),z("drawer-mask",` background-color: rgba(0, 0, 0, .3); position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[Z("invisible",` + `,[J("invisible",` background-color: rgba(0, 0, 0, 0) - `),fl({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),nG=Object.assign(Object.assign({},Be.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),$S=be({name:"Drawer",inheritAttrs:!1,props:nG,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:o}=lt(e),r=Jr(),i=Be("Drawer","-drawer",tG,BK,e,t),s=H(e.defaultWidth),a=H(e.defaultHeight),l=ln(ze(e,"width"),s),c=ln(ze(e,"height"),a),u=D(()=>{const{placement:x}=e;return x==="top"||x==="bottom"?"":qt(l.value)}),d=D(()=>{const{placement:x}=e;return x==="left"||x==="right"?"":qt(c.value)}),f=x=>{const{onUpdateWidth:y,"onUpdate:width":T}=e;y&&$e(y,x),T&&$e(T,x),s.value=x},h=x=>{const{onUpdateHeight:y,"onUpdate:width":T}=e;y&&$e(y,x),T&&$e(T,x),a.value=x},p=D(()=>[{width:u.value,height:d.value},e.drawerStyle||""]);function m(x){const{onMaskClick:y,maskClosable:T}=e;T&&C(!1),y&&y(x)}function g(x){m(x)}const b=Pw();function w(x){var y;(y=e.onEsc)===null||y===void 0||y.call(e),e.show&&e.closeOnEsc&&Ww(x)&&(b.value||C(!1))}function C(x){const{onHide:y,onUpdateShow:T,"onUpdate:show":k}=e;T&&$e(T,x),k&&$e(k,x),y&&!x&&$e(y,x)}at(Wp,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:C,doUpdateHeight:h,doUpdateWidth:f});const S=D(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:y,cubicBezierEaseOut:T},self:{color:k,textColor:P,boxShadow:I,lineHeight:R,headerPadding:W,footerPadding:O,borderRadius:M,bodyPadding:z,titleFontSize:K,titleTextColor:J,titleFontWeight:se,headerBorderBottom:le,footerBorderTop:F,closeIconColor:E,closeIconColorHover:A,closeIconColorPressed:Y,closeColorHover:ne,closeColorPressed:fe,closeIconSize:Q,closeSize:Ce,closeBorderRadius:j,resizableTriggerColorHover:ye}}=i.value;return{"--n-line-height":R,"--n-color":k,"--n-border-radius":M,"--n-text-color":P,"--n-box-shadow":I,"--n-bezier":x,"--n-bezier-out":T,"--n-bezier-in":y,"--n-header-padding":W,"--n-body-padding":z,"--n-footer-padding":O,"--n-title-text-color":J,"--n-title-font-size":K,"--n-title-font-weight":se,"--n-header-border-bottom":le,"--n-footer-border-top":F,"--n-close-icon-color":E,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":Y,"--n-close-size":Ce,"--n-close-color-hover":ne,"--n-close-color-pressed":fe,"--n-close-icon-size":Q,"--n-close-border-radius":j,"--n-resize-trigger-color-hover":ye}}),_=o?Rt("drawer",void 0,S,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleOutsideClick:g,handleMaskClick:m,handleEsc:w,mergedTheme:i,cssVars:o?void 0:S,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return v(Tu,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),hn(v("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?v(pn,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,v(jK,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Pu,{zIndex:this.zIndex,enabled:this.show}]])}})}}),oG={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},rG=be({name:"DrawerContent",props:oG,slots:Object,setup(){const e=We(Wp,null);e||hr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyClass:r,bodyStyle:i,bodyContentClass:s,bodyContentStyle:a,headerClass:l,headerStyle:c,footerClass:u,footerStyle:d,scrollbarProps:f,closable:h,$slots:p}=this;return v("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},p.header||e||h?v("div",{class:[`${t}-drawer-header`,l],style:c,role:"none"},v("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),h&&v(Gi,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?v("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},v("div",{class:[`${t}-drawer-body-content-wrapper`,s],style:a,role:"none"},p)):v(Mo,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},f,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,s],contentStyle:a}),p),p.footer?v("div",{class:[`${t}-drawer-footer`,u],style:d,role:"none"},p.footer()):null)}}),iG={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},sG={name:"DynamicInput",common:je,peers:{Input:xo,Button:Kn},self(){return iG}},aG=sG,AS={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},lG={name:"Space",self(){return AS}},IS=lG;function cG(){return AS}const uG={name:"Space",self:cG},dG=uG;let rf;function fG(){if(!fr)return!0;if(rf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),rf=t}return rf}const hG=Object.assign(Object.assign({},Be.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Qi=be({name:"Space",props:hG,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=lt(e),o=Be("Space","-space",void 0,dG,e,t),r=gn("Space",n,t);return{useGap:fG(),rtlEnabled:r,mergedClsPrefix:t,margin:D(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Re("gap",i)]:s}}=o.value,{row:a,col:l}=s8(s);return{horizontal:Cn(l),vertical:Cn(a)}})}},render(){const{vertical:e,reverse:t,align:n,inline:o,justify:r,itemClass:i,itemStyle:s,margin:a,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:h}=this,p=Ii(qw(this),!1);if(!p.length)return null;const m=`${a.horizontal}px`,g=`${a.horizontal/2}px`,b=`${a.vertical}px`,w=`${a.vertical/2}px`,C=p.length-1,S=r.startsWith("space-");return v("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${w}`,marginBottom:d||e?"":`-${w}`,alignItems:n,gap:d?`${a.vertical}px ${a.horizontal}px`:""}},!f&&(d||h)?p:p.map((_,x)=>_.type===Pn?_:v("div",{role:"none",class:i,style:[s,{maxWidth:"100%"},d?"":e?{marginBottom:x!==C?b:""}:u?{marginLeft:S?r==="space-between"&&x===C?"":g:x!==C?m:"",marginRight:S?r==="space-between"&&x===0?"":g:"",paddingTop:w,paddingBottom:w}:{marginRight:S?r==="space-between"&&x===C?"":g:x!==C?m:"",marginLeft:S?r==="space-between"&&x===0?"":g:"",paddingTop:w,paddingBottom:w}]},_)))}}),pG={name:"DynamicTags",common:je,peers:{Input:xo,Button:Kn,Tag:n2,Space:IS},self(){return{inputWidth:"64px"}}},mG=pG,gG={name:"Element",common:je},vG=gG,bG={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},yG={name:"Flex",self(){return bG}},xG=yG,CG={name:"ButtonGroup",common:je},wG=CG,_G={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 SG(e){const{heightSmall:t,heightMedium:n,heightLarge:o,textColor1:r,errorColor:i,warningColor:s,lineHeight:a,textColor3:l}=e;return Object.assign(Object.assign({},_G),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:o,lineHeight:a,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:s,feedbackTextColor:l})}const kG={name:"Form",common:je,self:SG},PG=kG,TG={name:"GradientText",common:je,self(e){const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,primaryColorSuppl:s,successColorSuppl:a,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:i,colorEndInfo:u,colorStartWarning:o,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:n,colorEndSuccess:a}}},RG=TG,EG={name:"InputNumber",common:je,peers:{Button:Kn,Input:xo},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},$G=EG;function AG(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const IG={name:"InputNumber",common:xt,peers:{Button:Ou,Input:gm},self:AG},MG=IG,OG={name:"Layout",common:je,peers:{Scrollbar:qn},self(e){const{textColor2:t,bodyColor:n,popoverColor:o,cardColor:r,dividerColor:i,scrollbarColor:s,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,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:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ye(n,s),siderToggleBarColorHover:Ye(n,a),__invertScrollbar:"false"}}},zG=OG;function DG(e){const{baseColor:t,textColor2:n,bodyColor:o,cardColor:r,dividerColor:i,actionColor:s,scrollbarColor:a,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:o,colorEmbedded:s,headerColor:r,headerColorInverted:c,footerColor:s,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:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Ye(o,a),siderToggleBarColorHover:Ye(o,l),__invertScrollbar:"true"}}const LG={name:"Layout",common:xt,peers:{Scrollbar:Yi},self:DG},MS=LG,FG={name:"Row",common:je},BG=FG;function OS(e){const{textColor2:t,cardColor:n,modalColor:o,popoverColor:r,dividerColor:i,borderRadius:s,fontSize:a,hoverColor:l}=e;return{textColor:t,color:n,colorHover:l,colorModal:o,colorHoverModal:Ye(o,l),colorPopover:r,colorHoverPopover:Ye(r,l),borderColor:i,borderColorModal:Ye(o,i),borderColorPopover:Ye(r,i),borderRadius:s,fontSize:a}}const NG={name:"List",common:xt,self:OS},HG=NG,jG={name:"List",common:je,self:OS},VG=jG,WG={name:"Log",common:je,peers:{Scrollbar:qn,Code:P2},self(e){const{textColor2:t,inputColor:n,fontSize:o,primaryColor:r}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:r}}},UG=WG,qG={name:"Mention",common:je,peers:{InternalSelectMenu:hl,Input:xo},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},KG=qG;function GG(e,t,n,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:o}}function zS(e){const{borderRadius:t,textColor3:n,primaryColor:o,textColor2:r,textColor1:i,fontSize:s,dividerColor:a,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:l,itemColorActive:Ae(o,{alpha:.1}),itemColorActiveHover:Ae(o,{alpha:.1}),itemColorActiveCollapsed:Ae(o,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:s,dividerColor:a},GG("#BBB",o,"#FFF","#AAA"))}const YG={name:"Menu",common:xt,peers:{Tooltip:km,Dropdown:_m},self:zS},XG=YG,ZG={name:"Menu",common:je,peers:{Tooltip:Du,Dropdown:Sm},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,o=zS(e);return o.itemColorActive=Ae(t,{alpha:.15}),o.itemColorActiveHover=Ae(t,{alpha:.15}),o.itemColorActiveCollapsed=Ae(t,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveHoverInverted=n,o.itemColorActiveCollapsedInverted=n,o}},JG=ZG,QG={titleFontSize:"18px",backSize:"22px"};function eY(e){const{textColor1:t,textColor2:n,textColor3:o,fontSize:r,fontWeightStrong:i,primaryColorHover:s,primaryColorPressed:a}=e;return Object.assign(Object.assign({},QG),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:n,backColorHover:s,backColorPressed:a,subtitleTextColor:o})}const tY={name:"PageHeader",common:je,self:eY},nY={iconSize:"22px"};function oY(e){const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},nY),{fontSize:t,iconColor:n})}const rY={name:"Popconfirm",common:je,peers:{Button:Kn,Popover:Zi},self:oY},iY=rY;function DS(e){const{infoColor:t,successColor:n,warningColor:o,errorColor:r,textColor2:i,progressRailColor:s,fontSize:a,fontWeight:l}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:l,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:o,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:o,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const sY={name:"Progress",common:xt,self:DS},aY=sY,lY={name:"Progress",common:je,self(e){const t=DS(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}},LS=lY,cY={name:"Rate",common:je,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},uY=cY,dY={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 FS(e){const{textColor2:t,textColor1:n,errorColor:o,successColor:r,infoColor:i,warningColor:s,lineHeight:a,fontWeightStrong:l}=e;return Object.assign(Object.assign({},dY),{lineHeight:a,titleFontWeight:l,titleTextColor:n,textColor:t,iconColorError:o,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:s})}const fY={name:"Result",common:xt,self:FS},hY=fY,pY={name:"Result",common:je,self:FS},mY=pY,gY={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},vY={name:"Slider",common:je,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:o,primaryColorSuppl:r,popoverColor:i,textColor2:s,cardColor:a,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},gY),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:o,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:s,indicatorBorderRadius:l,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}},bY=vY;function BS(e){const{opacityDisabled:t,heightTiny:n,heightSmall:o,heightMedium:r,heightLarge:i,heightHuge:s,primaryColor:a,fontSize:l}=e;return{fontSize:l,textColor:a,sizeTiny:n,sizeSmall:o,sizeMedium:r,sizeLarge:i,sizeHuge:s,color:a,opacitySpinning:t}}const yY={name:"Spin",common:xt,self:BS},xY=yY,CY={name:"Spin",common:je,self:BS},wY=CY;function _Y(e){const{textColor2:t,textColor3:n,fontSize:o,fontWeight:r}=e;return{labelFontSize:o,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const SY={name:"Statistic",common:je,self:_Y},kY=SY,PY={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function TY(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:o,primaryColor:r,errorColor:i,textColor1:s,textColor2:a}=e;return Object.assign(Object.assign({},PY),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:o,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:r,splitorColorError:o,headerTextColorProcess:s,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})}const RY={name:"Steps",common:je,self:TY},EY=RY,NS={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"},$Y={name:"Switch",common:je,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:o,primaryColor:r,textColor2:i,baseColor:s}=e,a="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},NS),{iconColor:s,textColor:i,loadingColor:t,opacityDisabled:n,railColor:a,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Ae(r,{alpha:.3})}`})}},AY=$Y;function IY(e){const{primaryColor:t,opacityDisabled:n,borderRadius:o,textColor3:r}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},NS),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Ae(t,{alpha:.2})}`})}const MY={name:"Switch",common:xt,self:IY},OY=MY,zY={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function DY(e){const{dividerColor:t,cardColor:n,modalColor:o,popoverColor:r,tableHeaderColor:i,tableColorStriped:s,textColor1:a,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},zY),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:d,borderRadius:c,borderColor:Ye(n,t),borderColorModal:Ye(o,t),borderColorPopover:Ye(r,t),tdColor:n,tdColorModal:o,tdColorPopover:r,tdColorStriped:Ye(n,s),tdColorStripedModal:Ye(o,s),tdColorStripedPopover:Ye(r,s),thColor:Ye(n,i),thColorModal:Ye(o,i),thColorPopover:Ye(r,i),thTextColor:a,tdTextColor:l,thFontWeight:u})}const LY={name:"Table",common:je,self:DY},FY=LY,BY={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 NY(e){const{textColor2:t,primaryColor:n,textColorDisabled:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:a,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:h,borderRadius:p,fontSize:m,fontWeightStrong:g}=e;return Object.assign(Object.assign({},BY),{colorSegment:c,tabFontSizeCard:m,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:a,closeColorPressed:l,closeBorderRadius:p,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:g})}const HY={name:"Tabs",common:je,self(e){const t=NY(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},jY=HY;function VY(e){const{textColor1:t,textColor2:n,fontWeightStrong:o,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:n,titleFontWeight:o}}const WY={name:"Thing",common:je,self:VY},UY=WY,qY={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},KY={name:"Timeline",common:je,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:r,warningColorSuppl:i,textColor1:s,textColor2:a,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},qY),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:o,iconColorSuccess:r,iconColorWarning:i,titleTextColor:s,contentTextColor:a,metaTextColor:t,lineColor:l})}},GY=KY,YY={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},XY={name:"Transfer",common:je,peers:{Checkbox:Ys,Scrollbar:qn,Input:xo,Empty:Xi,Button:Kn},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:o,fontSizeSmall:r,heightLarge:i,heightMedium:s,borderRadius:a,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:m,closeColorPressed:g,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C,dividerColor:S}=e;return Object.assign(Object.assign({},YY),{itemHeightSmall:s,itemHeightMedium:s,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n,borderRadius:a,dividerColor:S,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:h,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:p,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C})}},ZY=XY;function JY(e){const{borderRadiusSmall:t,dividerColor:n,hoverColor:o,pressedColor:r,primaryColor:i,textColor3:s,textColor2:a,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:r,nodeColorActive:Ae(i,{alpha:.1}),arrowColor:s,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:n}}const QY={name:"Tree",common:je,peers:{Checkbox:Ys,Scrollbar:qn,Empty:Xi},self(e){const{primaryColor:t}=e,n=JY(e);return n.nodeColorActive=Ae(t,{alpha:.15}),n}},HS=QY,eX={name:"TreeSelect",common:je,peers:{Tree:HS,Empty:Xi,InternalSelection:pm}},tX=eX,nX={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 oX(e){const{primaryColor:t,textColor2:n,borderColor:o,lineHeight:r,fontSize:i,borderRadiusSmall:s,dividerColor:a,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:h,successColor:p,codeColor:m}=e;return Object.assign(Object.assign({},nX),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:s,liTextColor:n,liLineHeight:r,liFontSize:i,hrColor:a,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:n,codeColor:m,codeBorder:"1px solid #0000"})}const rX={name:"Typography",common:je,self:oX},iX=rX;function sX(e){const{iconColor:t,primaryColor:n,errorColor:o,textColor2:r,successColor:i,opacityDisabled:s,actionColor:a,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:a,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:Ae(o,{alpha:.06}),itemTextColor:r,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}}const aX={name:"Upload",common:je,peers:{Button:Kn,Progress:LS},self(e){const{errorColor:t}=e,n=sX(e);return n.itemColorHoverError=Ae(t,{alpha:.09}),n}},lX=aX,cX={name:"Watermark",common:je,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},uX=cX,dX={name:"FloatButton",common:je,self(e){const{popoverColor:t,textColor2:n,buttonColor2Hover:o,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:s,primaryColorPressed:a,baseColor:l,borderRadius:c}=e;return{color:t,textColor:n,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:o,colorPressed:r,colorPrimary:i,colorPrimaryHover:s,colorPrimaryPressed:a,textColorPrimary:l,borderRadiusSquare:c}}},fX=dX;function hX(e){const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}const pX={name:"IconWrapper",common:je,self:hX},mX=pX,gX={name:"Image",common:je,peers:{Tooltip:Du},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},vX=G([L("input-number-suffix",` + `),dl({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),oK=Object.assign(Object.assign({},Le.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),x2=xe({name:"Drawer",inheritAttrs:!1,props:oK,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:o}=st(e),r=Zr(),i=Le("Drawer","-drawer",nK,Nq,e,t),a=U(e.defaultWidth),s=U(e.defaultHeight),l=rn(Ue(e,"width"),a),c=rn(Ue(e,"height"),s),u=I(()=>{const{placement:y}=e;return y==="top"||y==="bottom"?"":qt(l.value)}),d=I(()=>{const{placement:y}=e;return y==="left"||y==="right"?"":qt(c.value)}),f=y=>{const{onUpdateWidth:x,"onUpdate:width":P}=e;x&&Re(x,y),P&&Re(P,y),a.value=y},h=y=>{const{onUpdateHeight:x,"onUpdate:width":P}=e;x&&Re(x,y),P&&Re(P,y),s.value=y},p=I(()=>[{width:u.value,height:d.value},e.drawerStyle||""]);function g(y){const{onMaskClick:x,maskClosable:P}=e;P&&C(!1),x&&x(y)}function m(y){g(y)}const b=Vw();function w(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&_w(y)&&(b.value||C(!1))}function C(y){const{onHide:x,onUpdateShow:P,"onUpdate:show":k}=e;P&&Re(P,y),k&&Re(k,y),x&&!y&&Re(x,y)}at(Up,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:C,doUpdateHeight:h,doUpdateWidth:f});const _=I(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:x,cubicBezierEaseOut:P},self:{color:k,textColor:T,boxShadow:R,lineHeight:E,headerPadding:q,footerPadding:D,borderRadius:B,bodyPadding:M,titleFontSize:K,titleTextColor:V,titleFontWeight:ae,headerBorderBottom:pe,footerBorderTop:Z,closeIconColor:N,closeIconColorHover:O,closeIconColorPressed:ee,closeColorHover:G,closeColorPressed:ne,closeIconSize:X,closeSize:ce,closeBorderRadius:L,resizableTriggerColorHover:be}}=i.value;return{"--n-line-height":E,"--n-color":k,"--n-border-radius":B,"--n-text-color":T,"--n-box-shadow":R,"--n-bezier":y,"--n-bezier-out":P,"--n-bezier-in":x,"--n-header-padding":q,"--n-body-padding":M,"--n-footer-padding":D,"--n-title-text-color":V,"--n-title-font-size":K,"--n-title-font-weight":ae,"--n-header-border-bottom":pe,"--n-footer-border-top":Z,"--n-close-icon-color":N,"--n-close-icon-color-hover":O,"--n-close-icon-color-pressed":ee,"--n-close-size":ce,"--n-close-color-hover":G,"--n-close-color-pressed":ne,"--n-close-icon-size":X,"--n-close-border-radius":L,"--n-resize-trigger-color-hover":be}}),S=o?Pt("drawer",void 0,_,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleOutsideClick:m,handleMaskClick:g,handleEsc:w,mergedTheme:i,cssVars:o?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return v(ku,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),dn(v("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?v(fn,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,v(Uq,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Su,{zIndex:this.zIndex,enabled:this.show}]])}})}}),rK={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},iK=xe({name:"DrawerContent",props:rK,setup(){const e=Ve(Up,null);e||hr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:s,headerClass:l,headerStyle:c,footerClass:u,footerStyle:d,scrollbarProps:f,closable:h,$slots:p}=this;return v("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},p.header||e||h?v("div",{class:[`${t}-drawer-header`,l],style:c,role:"none"},v("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),h&&v(qi,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?v("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},v("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:s,role:"none"},p)):v(Oo,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},f,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:s}),p),p.footer?v("div",{class:[`${t}-drawer-footer`,u],style:d,role:"none"},p.footer()):null)}}),aK={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},sK={name:"DynamicInput",common:He,peers:{Input:go,Button:Vn},self(){return aK}},lK=sK,C2={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},cK={name:"Space",self(){return C2}},w2=cK;function uK(){return C2}const dK={name:"Space",self:uK},fK=dK;let rf;function hK(){if(!pr)return!0;if(rf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),rf=t}return rf}const pK=Object.assign(Object.assign({},Le.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Qi=xe({name:"Space",props:pK,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=Le("Space","-space",void 0,fK,e,t),r=pn("Space",n,t);return{useGap:hK(),rtlEnabled:r,mergedClsPrefix:t,margin:I(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Te("gap",i)]:a}}=o.value,{row:s,col:l}=MI(a);return{horizontal:bn(l),vertical:bn(s)}})}},render(){const{vertical:e,reverse:t,align:n,inline:o,justify:r,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:h}=this,p=Ta(fw(this),!1);if(!p.length)return null;const g=`${s.horizontal}px`,m=`${s.horizontal/2}px`,b=`${s.vertical}px`,w=`${s.vertical/2}px`,C=p.length-1,_=r.startsWith("space-");return v("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${w}`,marginBottom:d||e?"":`-${w}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:""}},!f&&(d||h)?p:p.map((S,y)=>S.type===_n?S:v("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},d?"":e?{marginBottom:y!==C?b:""}:u?{marginLeft:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginRight:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}:{marginRight:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginLeft:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}]},S)))}}),mK={name:"DynamicTags",common:He,peers:{Input:go,Button:Vn,Tag:tS,Space:w2},self(){return{inputWidth:"64px"}}},gK=mK,vK={name:"Element",common:He},bK=vK,yK={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},xK={name:"Flex",self(){return yK}},CK=xK,wK={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 _K(e){const{heightSmall:t,heightMedium:n,heightLarge:o,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},wK),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:o,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const SK={name:"Form",common:He,self:_K},kK=SK,PK={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function _2(e){const{textColor2:t,successColor:n,infoColor:o,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},PK),{borderRadius:p,lineHeight:b,fontSize:w,headerFontWeight:g,iconColor:t,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:m})}const TK={name:"Notification",common:xt,peers:{Scrollbar:Gi},self:_2},EK=TK,RK={name:"Notification",common:He,peers:{Scrollbar:Un},self:_2},AK=RK,$K={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 S2(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},$K),{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:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:p,closeColorPressed:g,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:n,closeIconColorHoverInfo:o,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:n,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:n,closeIconColorHoverError:o,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:n,closeIconColorHoverWarning:o,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:n,closeIconColorHoverLoading:o,closeIconColorPressedLoading:r,loadingColor:d,lineHeight:f,borderRadius:h})}const IK={name:"Message",common:xt,self:S2},OK=IK,MK={name:"Message",common:He,self:S2},zK=MK,FK={name:"ButtonGroup",common:He},DK=FK,LK={name:"GradientText",common:He,self(e){const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:o,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:n,colorEndSuccess:s}}},BK=LK,NK={name:"InputNumber",common:He,peers:{Button:Vn,Input:go},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},HK=NK;function jK(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const UK={name:"InputNumber",common:xt,peers:{Button:Iu,Input:mm},self:jK},VK=UK,WK={name:"Layout",common:He,peers:{Scrollbar:Un},self(e){const{textColor2:t,bodyColor:n,popoverColor:o,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,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:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ke(n,a),siderToggleBarColorHover:Ke(n,s),__invertScrollbar:"false"}}},qK=WK;function KK(e){const{baseColor:t,textColor2:n,bodyColor:o,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:o,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:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Ke(o,s),siderToggleBarColorHover:Ke(o,l),__invertScrollbar:"true"}}const GK={name:"Layout",common:xt,peers:{Scrollbar:Gi},self:KK},k2=GK;function P2(e){const{textColor2:t,cardColor:n,modalColor:o,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:n,colorHover:l,colorModal:o,colorHoverModal:Ke(o,l),colorPopover:r,colorHoverPopover:Ke(r,l),borderColor:i,borderColorModal:Ke(o,i),borderColorPopover:Ke(r,i),borderRadius:a,fontSize:s}}const XK={name:"List",common:xt,self:P2},YK=XK,QK={name:"List",common:He,self:P2},JK=QK,ZK={name:"LoadingBar",common:He,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},eG=ZK;function tG(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const nG={name:"LoadingBar",common:xt,self:tG},oG=nG,rG={name:"Log",common:He,peers:{Scrollbar:Un,Code:kS},self(e){const{textColor2:t,inputColor:n,fontSize:o,primaryColor:r}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:r}}},iG=rG,aG={name:"Mention",common:He,peers:{InternalSelectMenu:fl,Input:go},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},sG=aG;function lG(e,t,n,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:o}}function T2(e){const{borderRadius:t,textColor3:n,primaryColor:o,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:l,itemColorActive:Ie(o,{alpha:.1}),itemColorActiveHover:Ie(o,{alpha:.1}),itemColorActiveCollapsed:Ie(o,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},lG("#BBB",o,"#FFF","#AAA"))}const cG={name:"Menu",common:xt,peers:{Tooltip:wm,Dropdown:Sm},self:T2},uG=cG,dG={name:"Menu",common:He,peers:{Tooltip:Mu,Dropdown:km},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,o=T2(e);return o.itemColorActive=Ie(t,{alpha:.15}),o.itemColorActiveHover=Ie(t,{alpha:.15}),o.itemColorActiveCollapsed=Ie(t,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveHoverInverted=n,o.itemColorActiveCollapsedInverted=n,o}},fG=dG,hG={titleFontSize:"18px",backSize:"22px"};function pG(e){const{textColor1:t,textColor2:n,textColor3:o,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},hG),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:s,subtitleTextColor:o})}const mG={name:"PageHeader",common:He,self:pG},gG={iconSize:"22px"};function vG(e){const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},gG),{fontSize:t,iconColor:n})}const bG={name:"Popconfirm",common:He,peers:{Button:Vn,Popover:Xi},self:vG},yG=bG;function E2(e){const{infoColor:t,successColor:n,warningColor:o,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:n,iconColorWarning:o,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:o,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const xG={name:"Progress",common:xt,self:E2},CG=xG,wG={name:"Progress",common:He,self(e){const t=E2(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}},R2=wG,_G={name:"Rate",common:He,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},SG=_G,kG={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 A2(e){const{textColor2:t,textColor1:n,errorColor:o,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},kG),{lineHeight:s,titleFontWeight:l,titleTextColor:n,textColor:t,iconColorError:o,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const PG={name:"Result",common:xt,self:A2},TG=PG,EG={name:"Result",common:He,self:A2},RG=EG,AG={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},$G={name:"Slider",common:He,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:o,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},AG),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:u,handleColor:"#FFF",dotColor:s,dotColorModal:o,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 ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}},IG=$G;function $2(e){const{opacityDisabled:t,heightTiny:n,heightSmall:o,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:n,sizeSmall:o,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const OG={name:"Spin",common:xt,self:$2},MG=OG,zG={name:"Spin",common:He,self:$2},FG=zG;function DG(e){const{textColor2:t,textColor3:n,fontSize:o,fontWeight:r}=e;return{labelFontSize:o,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const LG={name:"Statistic",common:He,self:DG},BG=LG,NG={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function HG(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:o,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},NG),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:o,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:r,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})}const jG={name:"Steps",common:He,self:HG},UG=jG,I2={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"},VG={name:"Switch",common:He,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:o,primaryColor:r,textColor2:i,baseColor:a}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},I2),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Ie(r,{alpha:.3})}`})}},WG=VG;function qG(e){const{primaryColor:t,opacityDisabled:n,borderRadius:o,textColor3:r}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},I2),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Ie(t,{alpha:.2})}`})}const KG={name:"Switch",common:xt,self:qG},GG=KG,XG={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function YG(e){const{dividerColor:t,cardColor:n,modalColor:o,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},XG),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:d,borderRadius:c,borderColor:Ke(n,t),borderColorModal:Ke(o,t),borderColorPopover:Ke(r,t),tdColor:n,tdColorModal:o,tdColorPopover:r,tdColorStriped:Ke(n,a),tdColorStripedModal:Ke(o,a),tdColorStripedPopover:Ke(r,a),thColor:Ke(n,i),thColorModal:Ke(o,i),thColorPopover:Ke(r,i),thTextColor:s,tdTextColor:l,thFontWeight:u})}const QG={name:"Table",common:He,self:YG},JG=QG,ZG={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 eX(e){const{textColor2:t,primaryColor:n,textColorDisabled:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:m}=e;return Object.assign(Object.assign({},ZG),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:p,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})}const tX={name:"Tabs",common:He,self(e){const t=eX(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},nX=tX;function oX(e){const{textColor1:t,textColor2:n,fontWeightStrong:o,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:n,titleFontWeight:o}}const rX={name:"Thing",common:He,self:oX},iX=rX,aX={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},sX={name:"Timeline",common:He,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},aX),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:o,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},lX=sX,cX={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},uX={name:"Transfer",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Input:go,Empty:Ki,Button:Vn},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:o,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C,dividerColor:_}=e;return Object.assign(Object.assign({},cX),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n,borderRadius:s,dividerColor:_,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:h,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C})}},dX=uX;function fX(e){const{borderRadiusSmall:t,dividerColor:n,hoverColor:o,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:o,nodeColorPressed:r,nodeColorActive:Ie(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:n}}const hX={name:"Tree",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Empty:Ki},self(e){const{primaryColor:t}=e,n=fX(e);return n.nodeColorActive=Ie(t,{alpha:.15}),n}},O2=hX,pX={name:"TreeSelect",common:He,peers:{Tree:O2,Empty:Ki,InternalSelection:hm}},mX=pX,gX={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 vX(e){const{primaryColor:t,textColor2:n,borderColor:o,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},gX),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}const bX={name:"Typography",common:He,self:vX},yX=bX;function xX(e){const{iconColor:t,primaryColor:n,errorColor:o,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:Ie(o,{alpha:.06}),itemTextColor:r,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}}const CX={name:"Upload",common:He,peers:{Button:Vn,Progress:R2},self(e){const{errorColor:t}=e,n=xX(e);return n.itemColorHoverError=Ie(t,{alpha:.09}),n}},wX=CX,_X={name:"Watermark",common:He,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},SX=_X,kX={name:"Row",common:He},PX=kX,TX={name:"FloatButton",common:He,self(e){const{popoverColor:t,textColor2:n,buttonColor2Hover:o,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:n,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:o,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},EX=TX;function RX(e){const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}const AX={name:"IconWrapper",common:He,self:RX},$X=AX,IX={name:"Image",common:He,peers:{Tooltip:Mu},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function OX(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function MX(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function af(e){return e==null?!0:!Number.isNaN(e)}function u1(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function sf(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const zX=W([z("input-number-suffix",` display: inline-block; margin-right: 10px; - `),L("input-number-prefix",` + `),z("input-number-prefix",` display: inline-block; margin-left: 10px; - `)]);function bX(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function yX(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function sf(e){return e==null?!0:!Number.isNaN(e)}function h1(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function af(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const p1=800,m1=100,xX=Object.assign(Object.assign({},Be.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),CX=be({name:"InputNumber",props:xX,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:o}=lt(e),r=Be("InputNumber","-input-number",vX,MG,e,n),{localeRef:i}=Vi("InputNumber"),s=pr(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:c}=s,u=H(null),d=H(null),f=H(null),h=H(e.defaultValue),p=ze(e,"value"),m=ln(p,h),g=H(""),b=te=>{const xe=String(te).split(".")[1];return xe?xe.length:0},w=te=>{const xe=[e.min,e.max,e.step,te].map(ve=>ve===void 0?0:b(ve));return Math.max(...xe)},C=Ct(()=>{const{placeholder:te}=e;return te!==void 0?te:i.value.placeholder}),S=Ct(()=>{const te=af(e.step);return te!==null?te===0?1:Math.abs(te):1}),_=Ct(()=>{const te=af(e.min);return te!==null?te:null}),x=Ct(()=>{const te=af(e.max);return te!==null?te:null}),y=()=>{const{value:te}=m;if(sf(te)){const{format:xe,precision:ve}=e;xe?g.value=xe(te):te===null||ve===void 0||b(te)>ve?g.value=h1(te,void 0):g.value=h1(te,ve)}else g.value=String(te)};y();const T=te=>{const{value:xe}=m;if(te===xe){y();return}const{"onUpdate:value":ve,onUpdateValue:$,onChange:N}=e,{nTriggerFormInput:ee,nTriggerFormChange:we}=s;N&&$e(N,te),$&&$e($,te),ve&&$e(ve,te),h.value=te,ee(),we()},k=({offset:te,doUpdateIfValid:xe,fixPrecision:ve,isInputing:$})=>{const{value:N}=g;if($&&yX(N))return!1;const ee=(e.parse||bX)(N);if(ee===null)return xe&&T(null),null;if(sf(ee)){const we=b(ee),{precision:de}=e;if(de!==void 0&&dere){if(!xe||$)return!1;he=re}if(me!==null&&hek({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=Ct(()=>{const{value:te}=m;if(e.validator&&te===null)return!1;const{value:xe}=S;return k({offset:-xe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),R=Ct(()=>{const{value:te}=m;if(e.validator&&te===null)return!1;const{value:xe}=S;return k({offset:+xe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function W(te){const{onFocus:xe}=e,{nTriggerFormFocus:ve}=s;xe&&$e(xe,te),ve()}function O(te){var xe,ve;if(te.target===((xe=u.value)===null||xe===void 0?void 0:xe.wrapperElRef))return;const $=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if($!==!1){const we=(ve=u.value)===null||ve===void 0?void 0:ve.inputElRef;we&&(we.value=String($||"")),m.value===$&&y()}else y();const{onBlur:N}=e,{nTriggerFormBlur:ee}=s;N&&$e(N,te),ee(),Vt(()=>{y()})}function M(te){const{onClear:xe}=e;xe&&$e(xe,te)}function z(){const{value:te}=R;if(!te){Ce();return}const{value:xe}=m;if(xe===null)e.validator||T(le());else{const{value:ve}=S;k({offset:ve,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function K(){const{value:te}=I;if(!te){fe();return}const{value:xe}=m;if(xe===null)e.validator||T(le());else{const{value:ve}=S;k({offset:-ve,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const J=W,se=O;function le(){if(e.validator)return null;const{value:te}=_,{value:xe}=x;return te!==null?Math.max(0,te):xe!==null?Math.min(0,xe):0}function F(te){M(te),T(null)}function E(te){var xe,ve,$;!((xe=f.value)===null||xe===void 0)&&xe.$el.contains(te.target)&&te.preventDefault(),!((ve=d.value)===null||ve===void 0)&&ve.$el.contains(te.target)&&te.preventDefault(),($=u.value)===null||$===void 0||$.activate()}let A=null,Y=null,ne=null;function fe(){ne&&(window.clearTimeout(ne),ne=null),A&&(window.clearInterval(A),A=null)}let Q=null;function Ce(){Q&&(window.clearTimeout(Q),Q=null),Y&&(window.clearInterval(Y),Y=null)}function j(){fe(),ne=window.setTimeout(()=>{A=window.setInterval(()=>{K()},m1)},p1),St("mouseup",document,fe,{once:!0})}function ye(){Ce(),Q=window.setTimeout(()=>{Y=window.setInterval(()=>{z()},m1)},p1),St("mouseup",document,Ce,{once:!0})}const Ie=()=>{Y||z()},Le=()=>{A||K()};function U(te){var xe,ve;if(te.key==="Enter"){if(te.target===((xe=u.value)===null||xe===void 0?void 0:xe.wrapperElRef))return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ve=u.value)===null||ve===void 0||ve.deactivate())}else if(te.key==="ArrowUp"){if(!R.value||e.keyboard.ArrowUp===!1)return;te.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&z()}else if(te.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;te.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&K()}}function B(te){g.value=te,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}dt(m,()=>{y()});const ae={focus:()=>{var te;return(te=u.value)===null||te===void 0?void 0:te.focus()},blur:()=>{var te;return(te=u.value)===null||te===void 0?void 0:te.blur()},select:()=>{var te;return(te=u.value)===null||te===void 0?void 0:te.select()}},Se=gn("InputNumber",o,n);return Object.assign(Object.assign({},ae),{rtlEnabled:Se,inputInstRef:u,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:h,mergedValue:m,mergedPlaceholder:C,displayedValueInvalid:P,mergedSize:a,mergedDisabled:l,displayedValue:g,addable:R,minusable:I,mergedStatus:c,handleFocus:J,handleBlur:se,handleClear:F,handleMouseDown:E,handleAddClick:Ie,handleMinusClick:Le,handleAddMousedown:ye,handleMinusMousedown:j,handleKeyDown:U,handleUpdateDisplayedValue:B,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:D(()=>{const{self:{iconColorDisabled:te}}=r.value,[xe,ve,$,N]=qo(te);return{textColorTextDisabled:`rgb(${xe}, ${ve}, ${$})`,opacityDisabled:`${N}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>v(Z0,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Dn(t["minus-icon"],()=>[v(Gt,{clsPrefix:e},{default:()=>v(jN,null)})])}),o=()=>v(Z0,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Dn(t["add-icon"],()=>[v(Gt,{clsPrefix:e},{default:()=>v(IN,null)})])});return v("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},v(ur,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[n(),Mt(t.prefix,i=>i?v("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[Mt(t.suffix,i=>i?v("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,o()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),jS="n-layout-sider",VS={type:String,default:"static"},wX=L("layout",` + `)]),d1=800,f1=100,FX=Object.assign(Object.assign({},Le.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),DX=xe({name:"InputNumber",props:FX,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:o}=st(e),r=Le("InputNumber","-input-number",zX,VK,e,n),{localeRef:i}=Hi("InputNumber"),a=mr(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:c}=a,u=U(null),d=U(null),f=U(null),h=U(e.defaultValue),p=Ue(e,"value"),g=rn(p,h),m=U(""),b=oe=>{const ve=String(oe).split(".")[1];return ve?ve.length:0},w=oe=>{const ve=[e.min,e.max,e.step,oe].map(ke=>ke===void 0?0:b(ke));return Math.max(...ve)},C=kt(()=>{const{placeholder:oe}=e;return oe!==void 0?oe:i.value.placeholder}),_=kt(()=>{const oe=sf(e.step);return oe!==null?oe===0?1:Math.abs(oe):1}),S=kt(()=>{const oe=sf(e.min);return oe!==null?oe:null}),y=kt(()=>{const oe=sf(e.max);return oe!==null?oe:null}),x=()=>{const{value:oe}=g;if(af(oe)){const{format:ve,precision:ke}=e;ve?m.value=ve(oe):oe===null||ke===void 0||b(oe)>ke?m.value=u1(oe,void 0):m.value=u1(oe,ke)}else m.value=String(oe)};x();const P=oe=>{const{value:ve}=g;if(oe===ve){x();return}const{"onUpdate:value":ke,onUpdateValue:$,onChange:H}=e,{nTriggerFormInput:te,nTriggerFormChange:Ce}=a;H&&Re(H,oe),$&&Re($,oe),ke&&Re(ke,oe),h.value=oe,te(),Ce()},k=({offset:oe,doUpdateIfValid:ve,fixPrecision:ke,isInputing:$})=>{const{value:H}=m;if($&&MX(H))return!1;const te=(e.parse||OX)(H);if(te===null)return ve&&P(null),null;if(af(te)){const Ce=b(te),{precision:de}=e;if(de!==void 0&&deie){if(!ve||$)return!1;ue=ie}if(fe!==null&&uek({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),R=kt(()=>{const{value:oe}=g;if(e.validator&&oe===null)return!1;const{value:ve}=_;return k({offset:-ve,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),E=kt(()=>{const{value:oe}=g;if(e.validator&&oe===null)return!1;const{value:ve}=_;return k({offset:+ve,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function q(oe){const{onFocus:ve}=e,{nTriggerFormFocus:ke}=a;ve&&Re(ve,oe),ke()}function D(oe){var ve,ke;if(oe.target===((ve=u.value)===null||ve===void 0?void 0:ve.wrapperElRef))return;const $=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if($!==!1){const Ce=(ke=u.value)===null||ke===void 0?void 0:ke.inputElRef;Ce&&(Ce.value=String($||"")),g.value===$&&x()}else x();const{onBlur:H}=e,{nTriggerFormBlur:te}=a;H&&Re(H,oe),te(),Ht(()=>{x()})}function B(oe){const{onClear:ve}=e;ve&&Re(ve,oe)}function M(){const{value:oe}=E;if(!oe){ce();return}const{value:ve}=g;if(ve===null)e.validator||P(pe());else{const{value:ke}=_;k({offset:ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function K(){const{value:oe}=R;if(!oe){ne();return}const{value:ve}=g;if(ve===null)e.validator||P(pe());else{const{value:ke}=_;k({offset:-ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const V=q,ae=D;function pe(){if(e.validator)return null;const{value:oe}=S,{value:ve}=y;return oe!==null?Math.max(0,oe):ve!==null?Math.min(0,ve):0}function Z(oe){B(oe),P(null)}function N(oe){var ve,ke,$;!((ve=f.value)===null||ve===void 0)&&ve.$el.contains(oe.target)&&oe.preventDefault(),!((ke=d.value)===null||ke===void 0)&&ke.$el.contains(oe.target)&&oe.preventDefault(),($=u.value)===null||$===void 0||$.activate()}let O=null,ee=null,G=null;function ne(){G&&(window.clearTimeout(G),G=null),O&&(window.clearInterval(O),O=null)}let X=null;function ce(){X&&(window.clearTimeout(X),X=null),ee&&(window.clearInterval(ee),ee=null)}function L(){ne(),G=window.setTimeout(()=>{O=window.setInterval(()=>{K()},f1)},d1),$t("mouseup",document,ne,{once:!0})}function be(){ce(),X=window.setTimeout(()=>{ee=window.setInterval(()=>{M()},f1)},d1),$t("mouseup",document,ce,{once:!0})}const Oe=()=>{ee||M()},je=()=>{O||K()};function F(oe){var ve,ke;if(oe.key==="Enter"){if(oe.target===((ve=u.value)===null||ve===void 0?void 0:ve.wrapperElRef))return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ke=u.value)===null||ke===void 0||ke.deactivate())}else if(oe.key==="ArrowUp"){if(!E.value||e.keyboard.ArrowUp===!1)return;oe.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&M()}else if(oe.key==="ArrowDown"){if(!R.value||e.keyboard.ArrowDown===!1)return;oe.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&K()}}function A(oe){m.value=oe,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}ft(g,()=>{x()});const re={focus:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.focus()},blur:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.blur()},select:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.select()}},we=pn("InputNumber",o,n);return Object.assign(Object.assign({},re),{rtlEnabled:we,inputInstRef:u,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:h,mergedValue:g,mergedPlaceholder:C,displayedValueInvalid:T,mergedSize:s,mergedDisabled:l,displayedValue:m,addable:E,minusable:R,mergedStatus:c,handleFocus:V,handleBlur:ae,handleClear:Z,handleMouseDown:N,handleAddClick:Oe,handleMinusClick:je,handleAddMousedown:be,handleMinusMousedown:L,handleKeyDown:F,handleUpdateDisplayedValue:A,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:I(()=>{const{self:{iconColorDisabled:oe}}=r.value,[ve,ke,$,H]=qo(oe);return{textColorTextDisabled:`rgb(${ve}, ${ke}, ${$})`,opacityDisabled:`${H}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>v(G0,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>$n(t["minus-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(IN,null)})])}),o=()=>v(G0,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>$n(t["add-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(SN,null)})])});return v("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},v(dr,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[n(),At(t.prefix,i=>i?v("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[At(t.suffix,i=>i?v("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,o()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),M2="n-layout-sider",z2={type:String,default:"static"},LX=z("layout",` color: var(--n-text-color); background-color: var(--n-color); box-sizing: border-box; @@ -3088,17 +2757,17 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); -`,[L("layout-scroll-container",` +`,[z("layout-scroll-container",` overflow-x: hidden; box-sizing: border-box; height: 100%; - `),Z("absolute-positioned",` + `),J("absolute-positioned",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `)]),_X={embedded:Boolean,position:VS,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},WS="n-layout";function SX(e){return be({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Be.props),_X),setup(t){const n=H(null),o=H(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=lt(t),s=Be("Layout","-layout",wX,MS,t,r);function a(m,g){if(t.nativeScrollbar){const{value:b}=n;b&&(g===void 0?b.scrollTo(m):b.scrollTo(m,g))}else{const{value:b}=o;b&&b.scrollTo(m,g)}}at(WS,t);let l=0,c=0;const u=m=>{var g;const b=m.target;l=b.scrollLeft,c=b.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,m)};qp(()=>{if(t.nativeScrollbar){const m=n.value;m&&(m.scrollTop=c,m.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:a},h=D(()=>{const{common:{cubicBezierEaseInOut:m},self:g}=s.value;return{"--n-bezier":m,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),p=i?Rt("layout",D(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:n,scrollbarInstRef:o,hasSiderStyle:d,mergedTheme:s,handleNativeElScroll:u,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:n,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(Mo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const kX=SX(!1),PX=L("layout-sider",` + `)]),BX={embedded:Boolean,position:z2,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},F2="n-layout";function NX(e){return xe({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Le.props),BX),setup(t){const n=U(null),o=U(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(t),a=Le("Layout","-layout",LX,k2,t,r);function s(g,m){if(t.nativeScrollbar){const{value:b}=n;b&&(m===void 0?b.scrollTo(g):b.scrollTo(g,m))}else{const{value:b}=o;b&&b.scrollTo(g,m)}}at(F2,t);let l=0,c=0;const u=g=>{var m;const b=g.target;l=b.scrollLeft,c=b.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,g)};Qp(()=>{if(t.nativeScrollbar){const g=n.value;g&&(g.scrollTop=c,g.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},h=I(()=>{const{common:{cubicBezierEaseInOut:g},self:m}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Pt("layout",I(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:n,scrollbarInstRef:o,hasSiderStyle:d,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:n,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(Oo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const HX=NX(!1),jX=z("layout-sider",` flex-shrink: 0; box-sizing: border-box; position: relative; @@ -3114,7 +2783,7 @@ ${t} background-color: var(--n-color); display: flex; justify-content: flex-end; -`,[Z("bordered",[V("border",` +`,[J("bordered",[j("border",` content: ""; position: absolute; top: 0; @@ -3122,25 +2791,25 @@ ${t} width: 1px; background-color: var(--n-border-color); transition: background-color .3s var(--n-bezier); - `)]),V("left-placement",[Z("bordered",[V("border",` + `)]),j("left-placement",[J("bordered",[j("border",` right: 0; - `)])]),Z("right-placement",` + `)])]),J("right-placement",` justify-content: flex-start; - `,[Z("bordered",[V("border",` + `,[J("bordered",[j("border",` left: 0; - `)]),Z("collapsed",[L("layout-toggle-button",[L("base-icon",` + `)]),J("collapsed",[z("layout-toggle-button",[z("base-icon",` transform: rotate(180deg); - `)]),L("layout-toggle-bar",[G("&:hover",[V("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),V("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),L("layout-toggle-button",` + `)]),z("layout-toggle-bar",[W("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),z("layout-toggle-button",` left: 0; transform: translateX(-50%) translateY(-50%); - `,[L("base-icon",` + `,[z("base-icon",` transform: rotate(0); - `)]),L("layout-toggle-bar",` + `)]),z("layout-toggle-bar",` left: -28px; transform: rotate(180deg); - `,[G("&:hover",[V("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),V("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),Z("collapsed",[L("layout-toggle-bar",[G("&:hover",[V("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),V("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),L("layout-toggle-button",[L("base-icon",` + `,[W("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),J("collapsed",[z("layout-toggle-bar",[W("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),z("layout-toggle-button",[z("base-icon",` transform: rotate(0); - `)])]),L("layout-toggle-button",` + `)])]),z("layout-toggle-button",` transition: color .3s var(--n-bezier), right .3s var(--n-bezier), @@ -3164,17 +2833,17 @@ ${t} box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); transform: translateX(50%) translateY(-50%); z-index: 1; - `,[L("base-icon",` + `,[z("base-icon",` transition: transform .3s var(--n-bezier); transform: rotate(180deg); - `)]),L("layout-toggle-bar",` + `)]),z("layout-toggle-bar",` cursor: pointer; height: 72px; width: 32px; position: absolute; top: calc(50% - 36px); right: -28px; - `,[V("top, bottom",` + `,[j("top, bottom",` position: absolute; width: 4px; border-radius: 2px; @@ -3183,17 +2852,17 @@ ${t} transition: background-color .3s var(--n-bezier), transform .3s var(--n-bezier); - `),V("bottom",` + `),j("bottom",` position: absolute; top: 34px; - `),G("&:hover",[V("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),V("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),V("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),G("&:hover",[V("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),V("border",` + `),W("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),W("&:hover",[j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),j("border",` position: absolute; top: 0; right: 0; bottom: 0; width: 1px; transition: background-color .3s var(--n-bezier); - `),L("layout-sider-scroll-container",` + `),z("layout-sider-scroll-container",` flex-grow: 1; flex-shrink: 0; box-sizing: border-box; @@ -3201,12 +2870,12 @@ ${t} opacity: 0; transition: opacity .3s var(--n-bezier); max-width: 100%; - `),Z("show-content",[L("layout-sider-scroll-container",{opacity:1})]),Z("absolute-positioned",` + `),J("show-content",[z("layout-sider-scroll-container",{opacity:1})]),J("absolute-positioned",` position: absolute; left: 0; top: 0; bottom: 0; - `)]),TX=be({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),RX=be({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Gt,{clsPrefix:e},{default:()=>v(dm,null)}))}}),EX={position:VS,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},$X=be({name:"LayoutSider",props:Object.assign(Object.assign({},Be.props),EX),setup(e){const t=We(WS),n=H(null),o=H(null),r=H(e.defaultCollapsed),i=ln(ze(e,"collapsed"),r),s=D(()=>qt(i.value?e.collapsedWidth:e.width)),a=D(()=>e.collapseMode!=="transform"?{}:{minWidth:qt(e.width)}),l=D(()=>t?t.siderPlacement:"left");function c(_,x){if(e.nativeScrollbar){const{value:y}=n;y&&(x===void 0?y.scrollTo(_):y.scrollTo(_,x))}else{const{value:y}=o;y&&y.scrollTo(_,x)}}function u(){const{"onUpdate:collapsed":_,onUpdateCollapsed:x,onExpand:y,onCollapse:T}=e,{value:k}=i;x&&$e(x,!k),_&&$e(_,!k),r.value=!k,k?y&&$e(y):T&&$e(T)}let d=0,f=0;const h=_=>{var x;const y=_.target;d=y.scrollLeft,f=y.scrollTop,(x=e.onScroll)===null||x===void 0||x.call(e,_)};qp(()=>{if(e.nativeScrollbar){const _=n.value;_&&(_.scrollTop=f,_.scrollLeft=d)}}),at(jS,{collapsedRef:i,collapseModeRef:ze(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:m}=lt(e),g=Be("Layout","-layout-sider",PX,MS,e,p);function b(_){var x,y;_.propertyName==="max-width"&&(i.value?(x=e.onAfterLeave)===null||x===void 0||x.call(e):(y=e.onAfterEnter)===null||y===void 0||y.call(e))}const w={scrollTo:c},C=D(()=>{const{common:{cubicBezierEaseInOut:_},self:x}=g.value,{siderToggleButtonColor:y,siderToggleButtonBorder:T,siderToggleBarColor:k,siderToggleBarColorHover:P}=x,I={"--n-bezier":_,"--n-toggle-button-color":y,"--n-toggle-button-border":T,"--n-toggle-bar-color":k,"--n-toggle-bar-color-hover":P};return e.inverted?(I["--n-color"]=x.siderColorInverted,I["--n-text-color"]=x.textColorInverted,I["--n-border-color"]=x.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=x.siderToggleButtonIconColorInverted,I.__invertScrollbar=x.__invertScrollbar):(I["--n-color"]=x.siderColor,I["--n-text-color"]=x.textColor,I["--n-border-color"]=x.siderBorderColor,I["--n-toggle-button-icon-color"]=x.siderToggleButtonIconColor),I}),S=m?Rt("layout-sider",D(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:p,mergedTheme:g,styleMaxWidth:s,mergedCollapsed:i,scrollContainerStyle:a,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:b,handleTriggerClick:u,inlineThemeDisabled:m,cssVars:C,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender},w)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("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`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:qt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(Mo,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),o?o==="bar"?v(TX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(RX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),AX={extraFontSize:"12px",width:"440px"},IX={name:"Transfer",common:je,peers:{Checkbox:Ys,Scrollbar:qn,Input:xo,Empty:Xi,Button:Kn},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:o,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:s,heightLarge:a,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:m,hoverColor:g}=e;return Object.assign(Object.assign({},AX),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:a,fontSizeSmall:s,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:m,filterDividerColor:"#0000",itemTextColor:m,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:o,iconColor:n,iconColorDisabled:t})}},MX=IX,OX=G([L("list",` + `)]),UX=xe({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Wt,{clsPrefix:e},{default:()=>v(um,null)}))}}),VX=xe({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),WX={position:z2,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},qX=xe({name:"LayoutSider",props:Object.assign(Object.assign({},Le.props),WX),setup(e){const t=Ve(F2),n=U(null),o=U(null),r=U(e.defaultCollapsed),i=rn(Ue(e,"collapsed"),r),a=I(()=>qt(i.value?e.collapsedWidth:e.width)),s=I(()=>e.collapseMode!=="transform"?{}:{minWidth:qt(e.width)}),l=I(()=>t?t.siderPlacement:"left");function c(S,y){if(e.nativeScrollbar){const{value:x}=n;x&&(y===void 0?x.scrollTo(S):x.scrollTo(S,y))}else{const{value:x}=o;x&&x.scrollTo(S,y)}}function u(){const{"onUpdate:collapsed":S,onUpdateCollapsed:y,onExpand:x,onCollapse:P}=e,{value:k}=i;y&&Re(y,!k),S&&Re(S,!k),r.value=!k,k?x&&Re(x):P&&Re(P)}let d=0,f=0;const h=S=>{var y;const x=S.target;d=x.scrollLeft,f=x.scrollTop,(y=e.onScroll)===null||y===void 0||y.call(e,S)};Qp(()=>{if(e.nativeScrollbar){const S=n.value;S&&(S.scrollTop=f,S.scrollLeft=d)}}),at(M2,{collapsedRef:i,collapseModeRef:Ue(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:g}=st(e),m=Le("Layout","-layout-sider",jX,k2,e,p);function b(S){var y,x;S.propertyName==="max-width"&&(i.value?(y=e.onAfterLeave)===null||y===void 0||y.call(e):(x=e.onAfterEnter)===null||x===void 0||x.call(e))}const w={scrollTo:c},C=I(()=>{const{common:{cubicBezierEaseInOut:S},self:y}=m.value,{siderToggleButtonColor:x,siderToggleButtonBorder:P,siderToggleBarColor:k,siderToggleBarColorHover:T}=y,R={"--n-bezier":S,"--n-toggle-button-color":x,"--n-toggle-button-border":P,"--n-toggle-bar-color":k,"--n-toggle-bar-color-hover":T};return e.inverted?(R["--n-color"]=y.siderColorInverted,R["--n-text-color"]=y.textColorInverted,R["--n-border-color"]=y.siderBorderColorInverted,R["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColorInverted,R.__invertScrollbar=y.__invertScrollbar):(R["--n-color"]=y.siderColor,R["--n-text-color"]=y.textColor,R["--n-border-color"]=y.siderBorderColor,R["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColor),R}),_=g?Pt("layout-sider",I(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:b,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender},w)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("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`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:qt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(Oo,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),o?o==="bar"?v(VX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(UX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),KX={extraFontSize:"12px",width:"440px"},GX={name:"Transfer",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Input:go,Empty:Ki,Button:Vn},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:o,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:m}=e;return Object.assign(Object.assign({},KX),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:m,titleFontWeight:o,iconColor:n,iconColorDisabled:t})}},XX=GX,YX=W([z("list",` --n-merged-border-color: var(--n-border-color); --n-merged-color: var(--n-color); --n-merged-color-hover: var(--n-color-hover); @@ -3220,30 +2889,30 @@ ${t} list-style-type: none; color: var(--n-text-color); background-color: var(--n-merged-color); - `,[Z("show-divider",[L("list-item",[G("&:not(:last-child)",[V("divider",` + `,[J("show-divider",[z("list-item",[W("&:not(:last-child)",[j("divider",` background-color: var(--n-merged-border-color); - `)])])]),Z("clickable",[L("list-item",` + `)])])]),J("clickable",[z("list-item",` cursor: pointer; - `)]),Z("bordered",` + `)]),J("bordered",` border: 1px solid var(--n-merged-border-color); border-radius: var(--n-border-radius); - `),Z("hoverable",[L("list-item",` + `),J("hoverable",[z("list-item",` border-radius: var(--n-border-radius); - `,[G("&:hover",` + `,[W("&:hover",` background-color: var(--n-merged-color-hover); - `,[V("divider",` + `,[j("divider",` background-color: transparent; - `)])])]),Z("bordered, hoverable",[L("list-item",` + `)])])]),J("bordered, hoverable",[z("list-item",` padding: 12px 20px; - `),V("header, footer",` + `),j("header, footer",` padding: 12px 20px; - `)]),V("header, footer",` + `)]),j("header, footer",` padding: 12px 0; box-sizing: border-box; transition: border-color .3s var(--n-bezier); - `,[G("&:not(:last-child)",` + `,[W("&:not(:last-child)",` border-bottom: 1px solid var(--n-merged-border-color); - `)]),L("list-item",` + `)]),z("list-item",` position: relative; padding: 12px 0; box-sizing: border-box; @@ -3253,15 +2922,15 @@ ${t} transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[V("prefix",` + `,[j("prefix",` margin-right: 20px; flex: 0; - `),V("suffix",` + `),j("suffix",` margin-left: 20px; flex: 0; - `),V("main",` + `),j("main",` flex: 1; - `),V("divider",` + `),j("divider",` height: 1px; position: absolute; bottom: 0; @@ -3270,33 +2939,58 @@ ${t} background-color: transparent; transition: background-color .3s var(--n-bezier); pointer-events: none; - `)])]),ll(L("list",` + `)])]),al(z("list",` --n-merged-color-hover: var(--n-color-hover-modal); --n-merged-color: var(--n-color-modal); --n-merged-border-color: var(--n-border-color-modal); - `)),Su(L("list",` + `)),wu(z("list",` --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); - `))]),zX=Object.assign(Object.assign({},Be.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),US="n-list",Im=be({name:"List",props:zX,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=lt(e),r=gn("List",o,t),i=Be("List","-list",OX,HG,e,t);at(US,{showDividerRef:ze(e,"showDivider"),mergedClsPrefixRef:t});const s=D(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:c,textColor:u,color:d,colorModal:f,colorPopover:h,borderColor:p,borderColorModal:m,borderColorPopover:g,borderRadius:b,colorHover:w,colorHoverModal:C,colorHoverPopover:S}}=i.value;return{"--n-font-size":c,"--n-bezier":l,"--n-text-color":u,"--n-color":d,"--n-border-radius":b,"--n-border-color":p,"--n-border-color-modal":m,"--n-border-color-popover":g,"--n-color-modal":f,"--n-color-popover":h,"--n-color-hover":w,"--n-color-hover-modal":C,"--n-color-hover-popover":S}}),a=n?Rt("list",void 0,s,e):void 0;return{mergedClsPrefix:t,rtlEnabled:r,cssVars:n?void 0:s,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),v("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?v("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?v("div",{class:`${n}-list__footer`},t.footer()):null)}}),Mm=be({name:"ListItem",slots:Object,setup(){const e=We(US,null);return e||hr("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return v("li",{class:`${t}-list-item`},e.prefix?v("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?v("div",{class:`${t}-list-item__main`},e):null,e.suffix?v("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&v("div",{class:`${t}-list-item__divider`}))}});function DX(){return{}}const LX={name:"Marquee",common:je,self:DX},FX=LX,vl="n-menu",Om="n-submenu",zm="n-menu-item-group",g1=[G("&::before","background-color: var(--n-item-color-hover);"),V("arrow",` + `))]),QX=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),D2="n-list",Am=xe({name:"List",props:QX,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("List",o,t),i=Le("List","-list",YX,YK,e,t);at(D2,{showDividerRef:Ue(e,"showDivider"),mergedClsPrefixRef:t});const a=I(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:c,textColor:u,color:d,colorModal:f,colorPopover:h,borderColor:p,borderColorModal:g,borderColorPopover:m,borderRadius:b,colorHover:w,colorHoverModal:C,colorHoverPopover:_}}=i.value;return{"--n-font-size":c,"--n-bezier":l,"--n-text-color":u,"--n-color":d,"--n-border-radius":b,"--n-border-color":p,"--n-border-color-modal":g,"--n-border-color-popover":m,"--n-color-modal":f,"--n-color-popover":h,"--n-color-hover":w,"--n-color-hover-modal":C,"--n-color-hover-popover":_}}),s=n?Pt("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:r,cssVars:n?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),v("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?v("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?v("div",{class:`${n}-list__footer`},t.footer()):null)}}),$m=xe({name:"ListItem",setup(){const e=Ve(D2,null);return e||hr("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return v("li",{class:`${t}-list-item`},e.prefix?v("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?v("div",{class:`${t}-list-item__main`},e):null,e.suffix?v("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&v("div",{class:`${t}-list-item__divider`}))}}),L2="n-loading-bar",B2="n-loading-bar-api",JX=z("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[dl({enterDuration:"0.3s",leaveDuration:"0.8s"}),z("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[J("starting",` + background: var(--n-color-loading); + `),J("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),J("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var Vl=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):r(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};function Wl(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ZX=xe({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=st(),{props:t,mergedClsPrefixRef:n}=Ve(L2),o=U(null),r=U(!1),i=U(!1),a=U(!1),s=U(!1);let l=!1;const c=U(!1),u=I(()=>{const{loadingBarStyle:S}=t;return S?S[c.value?"error":"loading"]:""});function d(){return Vl(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield Ht(),s.value=!1})}function f(){return Vl(this,arguments,void 0,function*(S=0,y=80,x="starting"){if(i.value=!0,yield d(),l)return;a.value=!0,yield Ht();const P=o.value;P&&(P.style.maxWidth=`${S}%`,P.style.transition="none",P.offsetWidth,P.className=Wl(x,n.value),P.style.transition="",P.style.maxWidth=`${y}%`)})}function h(){return Vl(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Ht()),l=!0;const S=o.value;S&&(S.className=Wl("finishing",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1)})}function p(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const S=o.value;S&&(S.className=Wl("error",n.value),S.offsetWidth,a.value=!1)});else{c.value=!0;const S=o.value;if(!S)return;S.className=Wl("error",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1}}function g(){r.value=!0}function m(){r.value=!1}function b(){return Vl(this,void 0,void 0,function*(){yield d()})}const w=Le("LoadingBar","-loading-bar",JX,oG,t,n),C=I(()=>{const{self:{height:S,colorError:y,colorLoading:x}}=w.value;return{"--n-height":S,"--n-color-loading":x,"--n-color-error":y}}),_=e?Pt("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:o,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:p,finish:h,handleEnter:g,handleAfterEnter:m,handleAfterLeave:b,mergedLoadingBarStyle:u,cssVars:e?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return v(fn,{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),dn(v("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},v("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Mn,this.loading||!this.loading&&this.entering]])}})}}),eY=Object.assign(Object.assign({},Le.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),tY=xe({name:"LoadingBarProvider",props:eY,setup(e){const t=Zr(),n=U(null),o={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=st(e);return at(B2,o),at(L2,{props:e,mergedClsPrefixRef:r}),Object.assign(o,{loadingBarRef:n})},render(){var e,t;return v(rt,null,v(Zc,{disabled:this.to===!1,to:this.to||"body"},v(ZX,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function nY(){const e=Ve(B2,null);return e===null&&hr("use-loading-bar","No outer founded."),e}const gl="n-menu",Im="n-submenu",Om="n-menu-item-group",ql=8;function Mm(e){const t=Ve(gl),{props:n,mergedCollapsedRef:o}=t,r=Ve(Im,null),i=Ve(Om,null),a=I(()=>n.mode==="horizontal"),s=I(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=I(()=>{var f;return Math.max((f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize,n.iconSize)}),c=I(()=>{var f;return!a.value&&e.root&&o.value&&(f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize}),u=I(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=n,{root:g,isGroup:m}=e,b=p===void 0?h:p;return g?o.value?f/2-l.value/2:b:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(m?h/2:h)+r.paddingLeftRef.value:0}),d=I(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=n,{value:g}=l,{root:m}=e;return a.value||!m||!o.value?ql:(p===void 0?h:p)+g+ql-(f+g)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:u,iconMarginRight:d,NMenu:t,NSubmenu:r}}const zm={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},N2=Object.assign(Object.assign({},zm),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),oY=xe({name:"MenuOptionGroup",props:N2,setup(e){at(Im,null);const t=Mm(e);at(Om,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:o}=Ve(gl);return function(){const{value:r}=n,i=t.paddingLeft.value,{nodeProps:a}=o,s=a==null?void 0:a(e.tmNode.rawNode);return v("div",{class:`${r}-menu-item-group`,role:"group"},v("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;`:""]}),Vt(e.title),e.extra?v(rt,null," ",Vt(e.extra)):null),v("div",null,e.tmNodes.map(l=>Fm(l,o))))}}}),H2=xe({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}=Ve(gl);return{menuProps:t,style:I(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:I(()=>{const{maxIconSize:n,activeIconSize:o,iconMarginRight:r}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${o}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:o,renderExtra:r,expandIcon:i}}=this,a=n?n(t.rawNode):Vt(this.icon);return v("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&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Vt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Vt(this.extra)):null),this.showArrow?v(Wt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(MN,null)}):null)}}),j2=Object.assign(Object.assign({},zm),{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}),Bh=xe({name:"Submenu",props:j2,setup(e){const t=Mm(e),{NMenu:n,NSubmenu:o}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=n,s=I(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||r.disabled?!0:f}),l=U(!1);at(Im,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),at(Om,null);function c(){const{onClick:f}=e;f&&f()}function u(){s.value||(i.value||n.toggleExpand(e.internalKey),c())}function d(f){l.value=f}return{menuProps:r,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:kt(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:n.activePathRef.value.includes(e.internalKey)}),collapsed:I(()=>r.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:I(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:o}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:u,activeIconSize:d,title:f,childActive:h,icon:p,handleClick:g,menuProps:{nodeProps:m},dropdownShow:b,iconMarginRight:w,tmNode:C,mergedClsPrefix:_,isEllipsisPlaceholder:S,extra:y}=this,x=m==null?void 0:m(C.rawNode);return v("div",Object.assign({},x,{class:[`${_}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),v(H2,{tmNode:C,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:w,maxIconSize:u,activeIconSize:d,title:f,extra:y,showArrow:!a,childActive:h,clsPrefix:_,icon:p,hover:b,onClick:g,isEllipsisPlaceholder:S}))},i=()=>v(Au,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:v("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Fm(l,this.menuProps)))}});return this.root?v(Em,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:n,renderLabel:o}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),U2=Object.assign(Object.assign({},zm),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),rY=xe({name:"MenuOption",props:U2,setup(e){const t=Mm(e),{NSubmenu:n,NMenu:o}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,s=n?n.mergedDisabledRef:{value:!1},l=I(()=>s.value||e.disabled);function c(d){const{onClick:f}=e;f&&f(d)}function u(d){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(d))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:r,dropdownEnabled:kt(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:kt(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:o,nodeProps:r}}=this,i=r==null?void 0:r(n.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(zu,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):Vt(this.title),trigger:()=>v(H2,{tmNode:n,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})}))}}),iY=xe({name:"MenuDivider",setup(){const e=Ve(gl),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:v("div",{class:`${t.value}-menu-divider`})}}),aY=Jr(N2),sY=Jr(U2),lY=Jr(j2);function Nh(e){return e.type==="divider"||e.type==="render"}function cY(e){return e.type==="divider"}function Fm(e,t){const{rawNode:n}=e,{show:o}=n;if(o===!1)return null;if(Nh(n))return cY(n)?v(iY,Object.assign({key:e.key},n.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},n),{title:n.title||n[r],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?v(oY,eo(l,aY,{tmNode:e,tmNodes:e.children,key:i})):v(Bh,eo(l,lY,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):v(rY,eo(l,sY,{key:i,tmNode:e}))}const h1=[W("&::before","background-color: var(--n-item-color-hover);"),j("arrow",` color: var(--n-arrow-color-hover); - `),V("icon",` + `),j("icon",` color: var(--n-item-icon-color-hover); - `),L("menu-item-content-header",` + `),z("menu-item-content-header",` color: var(--n-item-text-color-hover); - `,[G("a",` + `,[W("a",` color: var(--n-item-text-color-hover); - `),V("extra",` + `),j("extra",` color: var(--n-item-text-color-hover); - `)])],v1=[V("icon",` + `)])],p1=[j("icon",` color: var(--n-item-icon-color-hover-horizontal); - `),L("menu-item-content-header",` + `),z("menu-item-content-header",` color: var(--n-item-text-color-hover-horizontal); - `,[G("a",` + `,[W("a",` color: var(--n-item-text-color-hover-horizontal); - `),V("extra",` + `),j("extra",` color: var(--n-item-text-color-hover-horizontal); - `)])],BX=G([L("menu",` + `)])],uY=W([z("menu",` background-color: var(--n-color); color: var(--n-item-text-color); overflow: hidden; @@ -3304,41 +2998,41 @@ ${t} box-sizing: border-box; font-size: var(--n-font-size); padding-bottom: 6px; - `,[Z("horizontal",` + `,[J("horizontal",` max-width: 100%; width: 100%; display: flex; overflow: hidden; padding-bottom: 0; - `,[L("submenu","margin: 0;"),L("menu-item","margin: 0;"),L("menu-item-content",` + `,[z("submenu","margin: 0;"),z("menu-item","margin: 0;"),z("menu-item-content",` padding: 0 20px; border-bottom: 2px solid #0000; - `,[G("&::before","display: none;"),Z("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),L("menu-item-content",[Z("selected",[V("icon","color: var(--n-item-icon-color-active-horizontal);"),L("menu-item-content-header",` + `,[W("&::before","display: none;"),J("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),z("menu-item-content",[J("selected",[j("icon","color: var(--n-item-icon-color-active-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-horizontal); - `,[G("a","color: var(--n-item-text-color-active-horizontal);"),V("extra","color: var(--n-item-text-color-active-horizontal);")])]),Z("child-active",` + `,[W("a","color: var(--n-item-text-color-active-horizontal);"),j("extra","color: var(--n-item-text-color-active-horizontal);")])]),J("child-active",` border-bottom: 2px solid var(--n-border-color-horizontal); - `,[L("menu-item-content-header",` + `,[z("menu-item-content-header",` color: var(--n-item-text-color-child-active-horizontal); - `,[G("a",` + `,[W("a",` color: var(--n-item-text-color-child-active-horizontal); - `),V("extra",` + `),j("extra",` color: var(--n-item-text-color-child-active-horizontal); - `)]),V("icon",` + `)]),j("icon",` color: var(--n-item-icon-color-child-active-horizontal); - `)]),$t("disabled",[$t("selected, child-active",[G("&:focus-within",v1)]),Z("selected",[ui(null,[V("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),L("menu-item-content-header",` + `)]),Et("disabled",[Et("selected, child-active",[W("&:focus-within",p1)]),J("selected",[ui(null,[j("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-hover-horizontal); - `,[G("a","color: var(--n-item-text-color-active-hover-horizontal);"),V("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),Z("child-active",[ui(null,[V("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),L("menu-item-content-header",` + `,[W("a","color: var(--n-item-text-color-active-hover-horizontal);"),j("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),J("child-active",[ui(null,[j("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-child-active-hover-horizontal); - `,[G("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),V("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ui("border-bottom: 2px solid var(--n-border-color-horizontal);",v1)]),L("menu-item-content-header",[G("a","color: var(--n-item-text-color-horizontal);")])])]),$t("responsive",[L("menu-item-content-header",` + `,[W("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),j("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ui("border-bottom: 2px solid var(--n-border-color-horizontal);",p1)]),z("menu-item-content-header",[W("a","color: var(--n-item-text-color-horizontal);")])])]),Et("responsive",[z("menu-item-content-header",` overflow: hidden; text-overflow: ellipsis; - `)]),Z("collapsed",[L("menu-item-content",[Z("selected",[G("&::before",` + `)]),J("collapsed",[z("menu-item-content",[J("selected",[W("&::before",` background-color: var(--n-item-color-active-collapsed) !important; - `)]),L("menu-item-content-header","opacity: 0;"),V("arrow","opacity: 0;"),V("icon","color: var(--n-item-icon-color-collapsed);")])]),L("menu-item",` + `)]),z("menu-item-content-header","opacity: 0;"),j("arrow","opacity: 0;"),j("icon","color: var(--n-item-icon-color-collapsed);")])]),z("menu-item",` height: var(--n-item-height); margin-top: 6px; position: relative; - `),L("menu-item-content",` + `),z("menu-item-content",` box-sizing: border-box; line-height: 1.75; height: 100%; @@ -3353,7 +3047,7 @@ ${t} background-color .3s var(--n-bezier), padding-left .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[G("> *","z-index: 1;"),G("&::before",` + `,[W("> *","z-index: 1;"),W("&::before",` z-index: auto; content: ""; background-color: #0000; @@ -3365,26 +3059,26 @@ ${t} pointer-events: none; border-radius: var(--n-border-radius); transition: background-color .3s var(--n-bezier); - `),Z("disabled",` + `),J("disabled",` opacity: .45; cursor: not-allowed; - `),Z("collapsed",[V("arrow","transform: rotate(0);")]),Z("selected",[G("&::before","background-color: var(--n-item-color-active);"),V("arrow","color: var(--n-arrow-color-active);"),V("icon","color: var(--n-item-icon-color-active);"),L("menu-item-content-header",` + `),J("collapsed",[j("arrow","transform: rotate(0);")]),J("selected",[W("&::before","background-color: var(--n-item-color-active);"),j("arrow","color: var(--n-arrow-color-active);"),j("icon","color: var(--n-item-icon-color-active);"),z("menu-item-content-header",` color: var(--n-item-text-color-active); - `,[G("a","color: var(--n-item-text-color-active);"),V("extra","color: var(--n-item-text-color-active);")])]),Z("child-active",[L("menu-item-content-header",` + `,[W("a","color: var(--n-item-text-color-active);"),j("extra","color: var(--n-item-text-color-active);")])]),J("child-active",[z("menu-item-content-header",` color: var(--n-item-text-color-child-active); - `,[G("a",` + `,[W("a",` color: var(--n-item-text-color-child-active); - `),V("extra",` + `),j("extra",` color: var(--n-item-text-color-child-active); - `)]),V("arrow",` + `)]),j("arrow",` color: var(--n-arrow-color-child-active); - `),V("icon",` + `),j("icon",` color: var(--n-item-icon-color-child-active); - `)]),$t("disabled",[$t("selected, child-active",[G("&:focus-within",g1)]),Z("selected",[ui(null,[V("arrow","color: var(--n-arrow-color-active-hover);"),V("icon","color: var(--n-item-icon-color-active-hover);"),L("menu-item-content-header",` + `)]),Et("disabled",[Et("selected, child-active",[W("&:focus-within",h1)]),J("selected",[ui(null,[j("arrow","color: var(--n-arrow-color-active-hover);"),j("icon","color: var(--n-item-icon-color-active-hover);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-hover); - `,[G("a","color: var(--n-item-text-color-active-hover);"),V("extra","color: var(--n-item-text-color-active-hover);")])])]),Z("child-active",[ui(null,[V("arrow","color: var(--n-arrow-color-child-active-hover);"),V("icon","color: var(--n-item-icon-color-child-active-hover);"),L("menu-item-content-header",` + `,[W("a","color: var(--n-item-text-color-active-hover);"),j("extra","color: var(--n-item-text-color-active-hover);")])])]),J("child-active",[ui(null,[j("arrow","color: var(--n-arrow-color-child-active-hover);"),j("icon","color: var(--n-item-icon-color-child-active-hover);"),z("menu-item-content-header",` color: var(--n-item-text-color-child-active-hover); - `,[G("a","color: var(--n-item-text-color-child-active-hover);"),V("extra","color: var(--n-item-text-color-child-active-hover);")])])]),Z("selected",[ui(null,[G("&::before","background-color: var(--n-item-color-active-hover);")])]),ui(null,g1)]),V("icon",` + `,[W("a","color: var(--n-item-text-color-child-active-hover);"),j("extra","color: var(--n-item-text-color-child-active-hover);")])])]),J("selected",[ui(null,[W("&::before","background-color: var(--n-item-color-active-hover);")])]),ui(null,h1)]),j("icon",` grid-area: icon; color: var(--n-item-icon-color); transition: @@ -3395,7 +3089,7 @@ ${t} display: inline-flex; align-items: center; justify-content: center; - `),V("arrow",` + `),j("arrow",` grid-area: arrow; font-size: 16px; color: var(--n-arrow-color); @@ -3405,7 +3099,7 @@ ${t} color .3s var(--n-bezier), transform 0.2s var(--n-bezier), opacity 0.2s var(--n-bezier); - `),L("menu-item-content-header",` + `),z("menu-item-content-header",` grid-area: content; transition: color .3s var(--n-bezier), @@ -3413,32 +3107,32 @@ ${t} opacity: 1; white-space: nowrap; color: var(--n-item-text-color); - `,[G("a",` + `,[W("a",` outline: none; text-decoration: none; transition: color .3s var(--n-bezier); color: var(--n-item-text-color); - `,[G("&::before",` + `,[W("&::before",` content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `)]),V("extra",` + `)]),j("extra",` font-size: .93em; color: var(--n-group-text-color); transition: color .3s var(--n-bezier); - `)])]),L("submenu",` + `)])]),z("submenu",` cursor: pointer; position: relative; margin-top: 6px; - `,[L("menu-item-content",` + `,[z("menu-item-content",` height: var(--n-item-height); - `),L("submenu-children",` + `),z("submenu-children",` overflow: hidden; padding: 0; - `,[mm({duration:".2s"})])]),L("menu-item-group",[L("menu-item-group-title",` + `,[pm({duration:".2s"})])]),z("menu-item-group",[z("menu-item-group-title",` margin-top: 6px; color: var(--n-group-text-color); cursor: default; @@ -3449,39 +3143,319 @@ ${t} transition: padding-left .3s var(--n-bezier), color .3s var(--n-bezier); - `)])]),L("menu-tooltip",[G("a",` + `)])]),z("menu-tooltip",[W("a",` color: inherit; text-decoration: none; - `)]),L("menu-divider",` + `)]),z("menu-divider",` transition: background-color .3s var(--n-bezier); background-color: var(--n-divider-color); height: 1px; margin: 6px 18px; - `)]);function ui(e,t){return[Z("hover",e,t),G("&:hover",e,t)]}const qS=be({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}=We(vl);return{menuProps:t,style:D(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:D(()=>{const{maxIconSize:n,activeIconSize:o,iconMarginRight:r}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${o}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:o,renderExtra:r,expandIcon:i}}=this,s=n?n(t.rawNode):Kt(this.icon);return v("div",{onClick:a=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,a)},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},s&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Kt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Kt(this.extra)):null),this.showArrow?v(Gt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(zN,null)}):null)}}),Gl=8;function Dm(e){const t=We(vl),{props:n,mergedCollapsedRef:o}=t,r=We(Om,null),i=We(zm,null),s=D(()=>n.mode==="horizontal"),a=D(()=>s.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=D(()=>{var f;return Math.max((f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize,n.iconSize)}),c=D(()=>{var f;return!s.value&&e.root&&o.value&&(f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize}),u=D(()=>{if(s.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=n,{root:m,isGroup:g}=e,b=p===void 0?h:p;return m?o.value?f/2-l.value/2:b: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}),d=D(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=n,{value:m}=l,{root:g}=e;return s.value||!g||!o.value?Gl:(p===void 0?h:p)+m+Gl-(f+m)/2});return{dropdownPlacement:a,activeIconSize:c,maxIconSize:l,paddingLeft:u,iconMarginRight:d,NMenu:t,NSubmenu:r}}const Lm={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},NX=be({name:"MenuDivider",setup(){const e=We(vl),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:v("div",{class:`${t.value}-menu-divider`})}}),KS=Object.assign(Object.assign({},Lm),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),HX=Qr(KS),jX=be({name:"MenuOption",props:KS,setup(e){const t=Dm(e),{NSubmenu:n,NMenu:o}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:s}=o,a=n?n.mergedDisabledRef:{value:!1},l=D(()=>a.value||e.disabled);function c(d){const{onClick:f}=e;f&&f(d)}function u(d){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(d))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:r,dropdownEnabled:Ct(()=>e.root&&s.value&&r.mode!=="horizontal"&&!l.value),selected:Ct(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:o,nodeProps:r}}=this,i=r==null?void 0:r(n.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(Lu,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):Kt(this.title),trigger:()=>v(qS,{tmNode:n,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})}))}}),GS=Object.assign(Object.assign({},Lm),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),VX=Qr(GS),WX=be({name:"MenuOptionGroup",props:GS,setup(e){at(Om,null);const t=Dm(e);at(zm,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:o}=We(vl);return function(){const{value:r}=n,i=t.paddingLeft.value,{nodeProps:s}=o,a=s==null?void 0:s(e.tmNode.rawNode);return v("div",{class:`${r}-menu-item-group`,role:"group"},v("div",Object.assign({},a,{class:[`${r}-menu-item-group-title`,a==null?void 0:a.class],style:[(a==null?void 0:a.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Kt(e.title),e.extra?v(st,null," ",Kt(e.extra)):null),v("div",null,e.tmNodes.map(l=>Fm(l,o))))}}});function Fh(e){return e.type==="divider"||e.type==="render"}function UX(e){return e.type==="divider"}function Fm(e,t){const{rawNode:n}=e,{show:o}=n;if(o===!1)return null;if(Fh(n))return UX(n)?v(NX,Object.assign({key:e.key},n.props)):null;const{labelField:r}=t,{key:i,level:s,isGroup:a}=e,l=Object.assign(Object.assign({},n),{title:n.title||n[r],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:s,root:s===0,isGroup:a});return e.children?e.isGroup?v(WX,oo(l,VX,{tmNode:e,tmNodes:e.children,key:i})):v(Bh,oo(l,qX,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):v(jX,oo(l,HX,{key:i,tmNode:e}))}const YS=Object.assign(Object.assign({},Lm),{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}),qX=Qr(YS),Bh=be({name:"Submenu",props:YS,setup(e){const t=Dm(e),{NMenu:n,NSubmenu:o}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:s}=n,a=D(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||r.disabled?!0:f}),l=H(!1);at(Om,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:a}),at(zm,null);function c(){const{onClick:f}=e;f&&f()}function u(){a.value||(i.value||n.toggleExpand(e.internalKey),c())}function d(f){l.value=f}return{menuProps:r,mergedTheme:s,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:a,mergedValue:n.mergedValueRef,childActive:Ct(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:n.activePathRef.value.includes(e.internalKey)}),collapsed:D(()=>r.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:D(()=>!a.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:o}}=this,r=()=>{const{isHorizontal:s,paddingLeft:a,collapsed:l,mergedDisabled:c,maxIconSize:u,activeIconSize:d,title:f,childActive:h,icon:p,handleClick:m,menuProps:{nodeProps:g},dropdownShow:b,iconMarginRight:w,tmNode:C,mergedClsPrefix:S,isEllipsisPlaceholder:_,extra:x}=this,y=g==null?void 0:g(C.rawNode);return v("div",Object.assign({},y,{class:[`${S}-menu-item`,y==null?void 0:y.class],role:"menuitem"}),v(qS,{tmNode:C,paddingLeft:a,collapsed:l,disabled:c,iconMarginRight:w,maxIconSize:u,activeIconSize:d,title:f,extra:x,showArrow:!s,childActive:h,clsPrefix:S,icon:p,hover:b,onClick:m,isEllipsisPlaceholder:_}))},i=()=>v(Iu,null,{default:()=>{const{tmNodes:s,collapsed:a}=this;return a?null:v("div",{class:`${t}-submenu-children`,role:"menu"},s.map(l=>Fm(l,this.menuProps)))}});return this.root?v(Em,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:n,renderLabel:o}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),KX=Object.assign(Object.assign({},Be.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}),GX=be({name:"Menu",inheritAttrs:!1,props:KX,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Menu","-menu",BX,XG,e,t),r=We(jS,null),i=D(()=>{var F;const{collapsed:E}=e;if(E!==void 0)return E;if(r){const{collapseModeRef:A,collapsedRef:Y}=r;if(A.value==="width")return(F=Y.value)!==null&&F!==void 0?F:!1}return!1}),s=D(()=>{const{keyField:F,childrenField:E,disabledField:A}=e;return Pi(e.items||e.options,{getIgnored(Y){return Fh(Y)},getChildren(Y){return Y[E]},getDisabled(Y){return Y[A]},getKey(Y){var ne;return(ne=Y[F])!==null&&ne!==void 0?ne:Y.name}})}),a=D(()=>new Set(s.value.treeNodes.map(F=>F.key))),{watchProps:l}=e,c=H(null);l!=null&&l.includes("defaultValue")?Jt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=ze(e,"value"),d=ln(u,c),f=H([]),h=()=>{f.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Jt(h):h();const p=ku(e,["expandedNames","expandedKeys"]),m=ln(p,f),g=D(()=>s.value.treeNodes),b=D(()=>s.value.getPath(d.value).keyPath);at(vl,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:d,mergedExpandedKeysRef:m,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:D(()=>e.mode==="horizontal"),invertedRef:ze(e,"inverted"),doSelect:w,toggleExpand:S});function w(F,E){const{"onUpdate:value":A,onUpdateValue:Y,onSelect:ne}=e;Y&&$e(Y,F,E),A&&$e(A,F,E),ne&&$e(ne,F,E),c.value=F}function C(F){const{"onUpdate:expandedKeys":E,onUpdateExpandedKeys:A,onExpandedNamesChange:Y,onOpenNamesChange:ne}=e;E&&$e(E,F),A&&$e(A,F),Y&&$e(Y,F),ne&&$e(ne,F),f.value=F}function S(F){const E=Array.from(m.value),A=E.findIndex(Y=>Y===F);if(~A)E.splice(A,1);else{if(e.accordion&&a.value.has(F)){const Y=E.findIndex(ne=>a.value.has(ne));Y>-1&&E.splice(Y,1)}E.push(F)}C(E)}const _=F=>{const E=s.value.getPath(F??d.value,{includeSelf:!1}).keyPath;if(!E.length)return;const A=Array.from(m.value),Y=new Set([...A,...E]);e.accordion&&a.value.forEach(ne=>{Y.has(ne)&&!E.includes(ne)&&Y.delete(ne)}),C(Array.from(Y))},x=D(()=>{const{inverted:F}=e,{common:{cubicBezierEaseInOut:E},self:A}=o.value,{borderRadius:Y,borderColorHorizontal:ne,fontSize:fe,itemHeight:Q,dividerColor:Ce}=A,j={"--n-divider-color":Ce,"--n-bezier":E,"--n-font-size":fe,"--n-border-color-horizontal":ne,"--n-border-radius":Y,"--n-item-height":Q};return F?(j["--n-group-text-color"]=A.groupTextColorInverted,j["--n-color"]=A.colorInverted,j["--n-item-text-color"]=A.itemTextColorInverted,j["--n-item-text-color-hover"]=A.itemTextColorHoverInverted,j["--n-item-text-color-active"]=A.itemTextColorActiveInverted,j["--n-item-text-color-child-active"]=A.itemTextColorChildActiveInverted,j["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveInverted,j["--n-item-text-color-active-hover"]=A.itemTextColorActiveHoverInverted,j["--n-item-icon-color"]=A.itemIconColorInverted,j["--n-item-icon-color-hover"]=A.itemIconColorHoverInverted,j["--n-item-icon-color-active"]=A.itemIconColorActiveInverted,j["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHoverInverted,j["--n-item-icon-color-child-active"]=A.itemIconColorChildActiveInverted,j["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHoverInverted,j["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsedInverted,j["--n-item-text-color-horizontal"]=A.itemTextColorHorizontalInverted,j["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontalInverted,j["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontalInverted,j["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontalInverted,j["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontalInverted,j["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontalInverted,j["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontalInverted,j["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontalInverted,j["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontalInverted,j["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontalInverted,j["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontalInverted,j["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontalInverted,j["--n-arrow-color"]=A.arrowColorInverted,j["--n-arrow-color-hover"]=A.arrowColorHoverInverted,j["--n-arrow-color-active"]=A.arrowColorActiveInverted,j["--n-arrow-color-active-hover"]=A.arrowColorActiveHoverInverted,j["--n-arrow-color-child-active"]=A.arrowColorChildActiveInverted,j["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHoverInverted,j["--n-item-color-hover"]=A.itemColorHoverInverted,j["--n-item-color-active"]=A.itemColorActiveInverted,j["--n-item-color-active-hover"]=A.itemColorActiveHoverInverted,j["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsedInverted):(j["--n-group-text-color"]=A.groupTextColor,j["--n-color"]=A.color,j["--n-item-text-color"]=A.itemTextColor,j["--n-item-text-color-hover"]=A.itemTextColorHover,j["--n-item-text-color-active"]=A.itemTextColorActive,j["--n-item-text-color-child-active"]=A.itemTextColorChildActive,j["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveHover,j["--n-item-text-color-active-hover"]=A.itemTextColorActiveHover,j["--n-item-icon-color"]=A.itemIconColor,j["--n-item-icon-color-hover"]=A.itemIconColorHover,j["--n-item-icon-color-active"]=A.itemIconColorActive,j["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHover,j["--n-item-icon-color-child-active"]=A.itemIconColorChildActive,j["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHover,j["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsed,j["--n-item-text-color-horizontal"]=A.itemTextColorHorizontal,j["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontal,j["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontal,j["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontal,j["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontal,j["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontal,j["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontal,j["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontal,j["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontal,j["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontal,j["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontal,j["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontal,j["--n-arrow-color"]=A.arrowColor,j["--n-arrow-color-hover"]=A.arrowColorHover,j["--n-arrow-color-active"]=A.arrowColorActive,j["--n-arrow-color-active-hover"]=A.arrowColorActiveHover,j["--n-arrow-color-child-active"]=A.arrowColorChildActive,j["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHover,j["--n-item-color-hover"]=A.itemColorHover,j["--n-item-color-active"]=A.itemColorActive,j["--n-item-color-active-hover"]=A.itemColorActiveHover,j["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsed),j}),y=n?Rt("menu",D(()=>e.inverted?"a":"b"),x,e):void 0,T=Zr(),k=H(null),P=H(null);let I=!0;const R=()=>{var F;I?I=!1:(F=k.value)===null||F===void 0||F.sync({showAllItemsBeforeCalculate:!0})};function W(){return document.getElementById(T)}const O=H(-1);function M(F){O.value=e.options.length-F}function z(F){F||(O.value=-1)}const K=D(()=>{const F=O.value;return{children:F===-1?[]:e.options.slice(F)}}),J=D(()=>{const{childrenField:F,disabledField:E,keyField:A}=e;return Pi([K.value],{getIgnored(Y){return Fh(Y)},getChildren(Y){return Y[F]},getDisabled(Y){return Y[E]},getKey(Y){var ne;return(ne=Y[A])!==null&&ne!==void 0?ne:Y.name}})}),se=D(()=>Pi([{}]).treeNodes[0]);function le(){var F;if(O.value===-1)return v(Bh,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:se.value,domId:T,isEllipsisPlaceholder:!0});const E=J.value.treeNodes[0],A=b.value,Y=!!(!((F=E.children)===null||F===void 0)&&F.some(ne=>A.includes(ne.key)));return v(Bh,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:Y,tmNode:E,domId:T,rawNodes:E.rawNode.children||[],tmNodes:E.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:m,uncontrolledValue:c,mergedValue:d,activePath:b,tmNodes:g,mergedTheme:o,mergedCollapsed:i,cssVars:n?void 0:x,themeClass:y==null?void 0:y.themeClass,overflowRef:k,counterRef:P,updateCounter:()=>{},onResize:R,onUpdateOverflow:z,onUpdateCount:M,renderCounter:le,getCounter:W,onRender:y==null?void 0:y.onRender,showOption:_,deriveResponsiveState:R}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:o}=this;o==null||o();const r=()=>this.tmNodes.map(l=>Fm(l,this.$props)),s=t==="horizontal"&&this.responsive,a=()=>v("div",Ln(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,s&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),s?v(xh,{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 s?v(cr,{onResize:this.onResize},{default:a}):a()}}),YX=e=>1-Math.pow(1-e,5);function XX(e){const{from:t,to:n,duration:o,onUpdate:r,onFinish:i}=e,s=performance.now(),a=()=>{const l=performance.now(),c=Math.min(l-s,o),u=t+(n-t)*YX(c/o);if(c===o){i();return}r(u),requestAnimationFrame(a)};a()}const ZX={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},JX=be({name:"NumberAnimation",props:ZX,setup(e){const{localeRef:t}=Vi("name"),{duration:n}=e,o=H(e.from),r=D(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let i=!1;const s=f=>{o.value=f},a=()=>{var f;o.value=e.to,i=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,h=e.to)=>{i=!0,o.value=e.from,f!==h&&XX({from:f,to:h,duration:n,onUpdate:s,onFinish:a})},c=D(()=>{var f;const p=TN(o.value,e.precision).toFixed(e.precision).split("."),m=new Intl.NumberFormat(r.value),g=(f=m.formatToParts(.5).find(C=>C.type==="decimal"))===null||f===void 0?void 0:f.value,b=e.showSeparator?m.format(Number(p[0])):p[0],w=p[1];return{integer:b,decimal:w,decimalSeparator:g}});function u(){i||l()}return Wt(()=>{Jt(()=>{e.active&&l()})}),Object.assign({formattedValue:c},{play:u})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),QX={success:v(qi,null),error:v(Ui,null),warning:v(Ki,null),info:v(Vr,null)},eZ=be({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,i,s,a){const{gapDegree:l,viewBoxWidth:c,strokeWidth:u}=e,d=50,f=0,h=d,p=0,m=2*d,g=50+u/2,b=`M ${g},${g} m ${f},${h} - a ${d},${d} 0 1 1 ${p},${-m} - a ${d},${d} 0 1 1 ${-p},${m}`,w=Math.PI*2*d,C={stroke:a==="rail"?s:typeof e.fillColor=="object"?"url(#gradient)":s,strokeDasharray:`${r/100*(w-l)}px ${c*8}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:i?"center":void 0,transform:i?`rotate(${i}deg)`:void 0};return{pathString:b,pathStyle:C}}const o=()=>{const r=typeof e.fillColor=="object",i=r?e.fillColor.stops[0]:"",s=r?e.fillColor.stops[1]:"";return r&&v("defs",null,v("linearGradient",{id:"gradient",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},v("stop",{offset:"0%","stop-color":i}),v("stop",{offset:"100%","stop-color":s})))};return()=>{const{fillColor:r,railColor:i,strokeWidth:s,offsetDegree:a,status:l,percentage:c,showIndicator:u,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:m,pathStyle:g}=n(100,0,i,"rail"),{pathString:b,pathStyle:w}=n(c,a,r,"fill"),C=100+s;return v("div",{class:`${p}-progress-content`,role:"none"},v("div",{class:`${p}-progress-graph`,"aria-hidden":!0},v("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},v("svg",{viewBox:`0 0 ${C} ${C}`},o(),v("g",null,v("path",{class:`${p}-progress-graph-circle-rail`,d:m,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:g})),v("g",null,v("path",{class:[`${p}-progress-graph-circle-fill`,c===0&&`${p}-progress-graph-circle-fill--empty`],d:b,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:w}))))),u?v("div",null,t.default?v("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):l!=="default"?v("div",{class:`${p}-progress-icon`,"aria-hidden":!0},v(Gt,{clsPrefix:p},{default:()=>QX[l]})):v("div",{class:`${p}-progress-text`,style:{color:d},role:"none"},v("span",{class:`${p}-progress-text__percentage`},c),v("span",{class:`${p}-progress-text__unit`},f))):null)}}}),tZ={success:v(qi,null),error:v(Ui,null),warning:v(Ki,null),info:v(Vr,null)},nZ=be({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=D(()=>qt(e.height)),o=D(()=>{var s,a;return typeof e.fillColor=="object"?`linear-gradient(to right, ${(s=e.fillColor)===null||s===void 0?void 0:s.stops[0]} , ${(a=e.fillColor)===null||a===void 0?void 0:a.stops[1]})`:e.fillColor}),r=D(()=>e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):""),i=D(()=>e.fillBorderRadius!==void 0?qt(e.fillBorderRadius):e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:s,railColor:a,railStyle:l,percentage:c,unit:u,indicatorTextColor:d,status:f,showIndicator:h,processing:p,clsPrefix:m}=e;return v("div",{class:`${m}-progress-content`,role:"none"},v("div",{class:`${m}-progress-graph`,"aria-hidden":!0},v("div",{class:[`${m}-progress-graph-line`,{[`${m}-progress-graph-line--indicator-${s}`]:!0}]},v("div",{class:`${m}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},v("div",{class:[`${m}-progress-graph-line-fill`,p&&`${m}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:o.value,height:n.value,lineHeight:n.value,borderRadius:i.value}},s==="inside"?v("div",{class:`${m}-progress-graph-line-indicator`,style:{color:d}},t.default?t.default():`${c}${u}`):null)))),h&&s==="outside"?v("div",null,t.default?v("div",{class:`${m}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?v("div",{role:"none",class:`${m}-progress-icon ${m}-progress-icon--as-text`,style:{color:d}},c,u):v("div",{class:`${m}-progress-icon`,"aria-hidden":!0},v(Gt,{clsPrefix:m},{default:()=>tZ[f]}))):null)}}});function b1(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const oZ=be({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=D(()=>e.percentage.map((i,s)=>`${Math.PI*i/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*s)-e.circleGap*s)*2}, ${e.viewBoxWidth*8}`)),o=(r,i)=>{const s=e.fillColor[i],a=typeof s=="object"?s.stops[0]:"",l=typeof s=="object"?s.stops[1]:"";return typeof e.fillColor[i]=="object"&&v("linearGradient",{id:`gradient-${i}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},v("stop",{offset:"0%","stop-color":a}),v("stop",{offset:"100%","stop-color":l}))};return()=>{const{viewBoxWidth:r,strokeWidth:i,circleGap:s,showIndicator:a,fillColor:l,railColor:c,railStyle:u,percentage:d,clsPrefix:f}=e;return v("div",{class:`${f}-progress-content`,role:"none"},v("div",{class:`${f}-progress-graph`,"aria-hidden":!0},v("div",{class:`${f}-progress-graph-circle`},v("svg",{viewBox:`0 0 ${r} ${r}`},v("defs",null,d.map((h,p)=>o(h,p))),d.map((h,p)=>v("g",{key:p},v("path",{class:`${f}-progress-graph-circle-rail`,d:b1(r/2-i/2*(1+2*p)-s*p,i,r),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:c[p]},u[p]]}),v("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:b1(r/2-i/2*(1+2*p)-s*p,i,r),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[p],strokeDashoffset:0,stroke:typeof l[p]=="object"?`url(#gradient-${p})`:l[p]}})))))),a&&t.default?v("div",null,v("div",{class:`${f}-progress-text`},t.default())):null)}}}),rZ=G([L("progress",{display:"inline-block"},[L("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),Z("line",` - width: 100%; - display: block; - `,[L("progress-content",` + `)]);function ui(e,t){return[J("hover",e,t),W("&:hover",e,t)]}const dY=Object.assign(Object.assign({},Le.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}),fY=xe({name:"Menu",props:dY,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Menu","-menu",uY,uG,e,t),r=Ve(M2,null),i=I(()=>{var Z;const{collapsed:N}=e;if(N!==void 0)return N;if(r){const{collapseModeRef:O,collapsedRef:ee}=r;if(O.value==="width")return(Z=ee.value)!==null&&Z!==void 0?Z:!1}return!1}),a=I(()=>{const{keyField:Z,childrenField:N,disabledField:O}=e;return Pi(e.items||e.options,{getIgnored(ee){return Nh(ee)},getChildren(ee){return ee[N]},getDisabled(ee){return ee[O]},getKey(ee){var G;return(G=ee[Z])!==null&&G!==void 0?G:ee.name}})}),s=I(()=>new Set(a.value.treeNodes.map(Z=>Z.key))),{watchProps:l}=e,c=U(null);l!=null&&l.includes("defaultValue")?Yt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=Ue(e,"value"),d=rn(u,c),f=U([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Yt(h):h();const p=_u(e,["expandedNames","expandedKeys"]),g=rn(p,f),m=I(()=>a.value.treeNodes),b=I(()=>a.value.getPath(d.value).keyPath);at(gl,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:d,mergedExpandedKeysRef:g,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:I(()=>e.mode==="horizontal"),invertedRef:Ue(e,"inverted"),doSelect:w,toggleExpand:_});function w(Z,N){const{"onUpdate:value":O,onUpdateValue:ee,onSelect:G}=e;ee&&Re(ee,Z,N),O&&Re(O,Z,N),G&&Re(G,Z,N),c.value=Z}function C(Z){const{"onUpdate:expandedKeys":N,onUpdateExpandedKeys:O,onExpandedNamesChange:ee,onOpenNamesChange:G}=e;N&&Re(N,Z),O&&Re(O,Z),ee&&Re(ee,Z),G&&Re(G,Z),f.value=Z}function _(Z){const N=Array.from(g.value),O=N.findIndex(ee=>ee===Z);if(~O)N.splice(O,1);else{if(e.accordion&&s.value.has(Z)){const ee=N.findIndex(G=>s.value.has(G));ee>-1&&N.splice(ee,1)}N.push(Z)}C(N)}const S=Z=>{const N=a.value.getPath(Z??d.value,{includeSelf:!1}).keyPath;if(!N.length)return;const O=Array.from(g.value),ee=new Set([...O,...N]);e.accordion&&s.value.forEach(G=>{ee.has(G)&&!N.includes(G)&&ee.delete(G)}),C(Array.from(ee))},y=I(()=>{const{inverted:Z}=e,{common:{cubicBezierEaseInOut:N},self:O}=o.value,{borderRadius:ee,borderColorHorizontal:G,fontSize:ne,itemHeight:X,dividerColor:ce}=O,L={"--n-divider-color":ce,"--n-bezier":N,"--n-font-size":ne,"--n-border-color-horizontal":G,"--n-border-radius":ee,"--n-item-height":X};return Z?(L["--n-group-text-color"]=O.groupTextColorInverted,L["--n-color"]=O.colorInverted,L["--n-item-text-color"]=O.itemTextColorInverted,L["--n-item-text-color-hover"]=O.itemTextColorHoverInverted,L["--n-item-text-color-active"]=O.itemTextColorActiveInverted,L["--n-item-text-color-child-active"]=O.itemTextColorChildActiveInverted,L["--n-item-text-color-child-active-hover"]=O.itemTextColorChildActiveInverted,L["--n-item-text-color-active-hover"]=O.itemTextColorActiveHoverInverted,L["--n-item-icon-color"]=O.itemIconColorInverted,L["--n-item-icon-color-hover"]=O.itemIconColorHoverInverted,L["--n-item-icon-color-active"]=O.itemIconColorActiveInverted,L["--n-item-icon-color-active-hover"]=O.itemIconColorActiveHoverInverted,L["--n-item-icon-color-child-active"]=O.itemIconColorChildActiveInverted,L["--n-item-icon-color-child-active-hover"]=O.itemIconColorChildActiveHoverInverted,L["--n-item-icon-color-collapsed"]=O.itemIconColorCollapsedInverted,L["--n-item-text-color-horizontal"]=O.itemTextColorHorizontalInverted,L["--n-item-text-color-hover-horizontal"]=O.itemTextColorHoverHorizontalInverted,L["--n-item-text-color-active-horizontal"]=O.itemTextColorActiveHorizontalInverted,L["--n-item-text-color-child-active-horizontal"]=O.itemTextColorChildActiveHorizontalInverted,L["--n-item-text-color-child-active-hover-horizontal"]=O.itemTextColorChildActiveHoverHorizontalInverted,L["--n-item-text-color-active-hover-horizontal"]=O.itemTextColorActiveHoverHorizontalInverted,L["--n-item-icon-color-horizontal"]=O.itemIconColorHorizontalInverted,L["--n-item-icon-color-hover-horizontal"]=O.itemIconColorHoverHorizontalInverted,L["--n-item-icon-color-active-horizontal"]=O.itemIconColorActiveHorizontalInverted,L["--n-item-icon-color-active-hover-horizontal"]=O.itemIconColorActiveHoverHorizontalInverted,L["--n-item-icon-color-child-active-horizontal"]=O.itemIconColorChildActiveHorizontalInverted,L["--n-item-icon-color-child-active-hover-horizontal"]=O.itemIconColorChildActiveHoverHorizontalInverted,L["--n-arrow-color"]=O.arrowColorInverted,L["--n-arrow-color-hover"]=O.arrowColorHoverInverted,L["--n-arrow-color-active"]=O.arrowColorActiveInverted,L["--n-arrow-color-active-hover"]=O.arrowColorActiveHoverInverted,L["--n-arrow-color-child-active"]=O.arrowColorChildActiveInverted,L["--n-arrow-color-child-active-hover"]=O.arrowColorChildActiveHoverInverted,L["--n-item-color-hover"]=O.itemColorHoverInverted,L["--n-item-color-active"]=O.itemColorActiveInverted,L["--n-item-color-active-hover"]=O.itemColorActiveHoverInverted,L["--n-item-color-active-collapsed"]=O.itemColorActiveCollapsedInverted):(L["--n-group-text-color"]=O.groupTextColor,L["--n-color"]=O.color,L["--n-item-text-color"]=O.itemTextColor,L["--n-item-text-color-hover"]=O.itemTextColorHover,L["--n-item-text-color-active"]=O.itemTextColorActive,L["--n-item-text-color-child-active"]=O.itemTextColorChildActive,L["--n-item-text-color-child-active-hover"]=O.itemTextColorChildActiveHover,L["--n-item-text-color-active-hover"]=O.itemTextColorActiveHover,L["--n-item-icon-color"]=O.itemIconColor,L["--n-item-icon-color-hover"]=O.itemIconColorHover,L["--n-item-icon-color-active"]=O.itemIconColorActive,L["--n-item-icon-color-active-hover"]=O.itemIconColorActiveHover,L["--n-item-icon-color-child-active"]=O.itemIconColorChildActive,L["--n-item-icon-color-child-active-hover"]=O.itemIconColorChildActiveHover,L["--n-item-icon-color-collapsed"]=O.itemIconColorCollapsed,L["--n-item-text-color-horizontal"]=O.itemTextColorHorizontal,L["--n-item-text-color-hover-horizontal"]=O.itemTextColorHoverHorizontal,L["--n-item-text-color-active-horizontal"]=O.itemTextColorActiveHorizontal,L["--n-item-text-color-child-active-horizontal"]=O.itemTextColorChildActiveHorizontal,L["--n-item-text-color-child-active-hover-horizontal"]=O.itemTextColorChildActiveHoverHorizontal,L["--n-item-text-color-active-hover-horizontal"]=O.itemTextColorActiveHoverHorizontal,L["--n-item-icon-color-horizontal"]=O.itemIconColorHorizontal,L["--n-item-icon-color-hover-horizontal"]=O.itemIconColorHoverHorizontal,L["--n-item-icon-color-active-horizontal"]=O.itemIconColorActiveHorizontal,L["--n-item-icon-color-active-hover-horizontal"]=O.itemIconColorActiveHoverHorizontal,L["--n-item-icon-color-child-active-horizontal"]=O.itemIconColorChildActiveHorizontal,L["--n-item-icon-color-child-active-hover-horizontal"]=O.itemIconColorChildActiveHoverHorizontal,L["--n-arrow-color"]=O.arrowColor,L["--n-arrow-color-hover"]=O.arrowColorHover,L["--n-arrow-color-active"]=O.arrowColorActive,L["--n-arrow-color-active-hover"]=O.arrowColorActiveHover,L["--n-arrow-color-child-active"]=O.arrowColorChildActive,L["--n-arrow-color-child-active-hover"]=O.arrowColorChildActiveHover,L["--n-item-color-hover"]=O.itemColorHover,L["--n-item-color-active"]=O.itemColorActive,L["--n-item-color-active-hover"]=O.itemColorActiveHover,L["--n-item-color-active-collapsed"]=O.itemColorActiveCollapsed),L}),x=n?Pt("menu",I(()=>e.inverted?"a":"b"),y,e):void 0,P=Qr(),k=U(null),T=U(null);let R=!0;const E=()=>{var Z;R?R=!1:(Z=k.value)===null||Z===void 0||Z.sync({showAllItemsBeforeCalculate:!0})};function q(){return document.getElementById(P)}const D=U(-1);function B(Z){D.value=e.options.length-Z}function M(Z){Z||(D.value=-1)}const K=I(()=>{const Z=D.value;return{children:Z===-1?[]:e.options.slice(Z)}}),V=I(()=>{const{childrenField:Z,disabledField:N,keyField:O}=e;return Pi([K.value],{getIgnored(ee){return Nh(ee)},getChildren(ee){return ee[Z]},getDisabled(ee){return ee[N]},getKey(ee){var G;return(G=ee[O])!==null&&G!==void 0?G:ee.name}})}),ae=I(()=>Pi([{}]).treeNodes[0]);function pe(){var Z;if(D.value===-1)return v(Bh,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ae.value,domId:P,isEllipsisPlaceholder:!0});const N=V.value.treeNodes[0],O=b.value,ee=!!(!((Z=N.children)===null||Z===void 0)&&Z.some(G=>O.includes(G.key)));return v(Bh,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:ee,tmNode:N,domId:P,rawNodes:N.rawNode.children||[],tmNodes:N.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:d,activePath:b,tmNodes:m,mergedTheme:o,mergedCollapsed:i,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,overflowRef:k,counterRef:T,updateCounter:()=>{},onResize:E,onUpdateOverflow:M,onUpdateCount:B,renderCounter:pe,getCounter:q,onRender:x==null?void 0:x.onRender,showOption:S,deriveResponsiveState:E}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:o}=this;o==null||o();const r=()=>this.tmNodes.map(l=>Fm(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>v("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},a?v(wh,{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?v(ur,{onResize:this.onResize},{default:s}):s()}}),V2={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},W2="n-message-api",q2="n-message-provider",hY=W([z("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[pm({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),z("message",` + box-sizing: border-box; display: flex; align-items: center; - `,[L("progress-graph",{flex:1})]),L("progress-custom-content",{marginLeft:"14px"}),L("progress-icon",` + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[j("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),j("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>J(`${e}-type`,[W("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),W("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Kn()])]),j("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[W("&:hover",` + color: var(--n-close-icon-color-hover); + `),W("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),z("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[J("top",` + top: 12px; + left: 0; + right: 0; + `),J("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),J("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),J("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),J("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),J("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),pY={info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null),default:()=>null},mY=xe({name:"Message",props:Object.assign(Object.assign({},V2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=st(e),{props:o,mergedClsPrefixRef:r}=Ve(q2),i=pn("Message",n,r),a=Le("Message","-message",hY,OK,o,r),s=I(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:m,iconSize:b,fontSize:w,lineHeight:C,borderRadius:_,iconColorInfo:S,iconColorSuccess:y,iconColorWarning:x,iconColorError:P,iconColorLoading:k,closeIconSize:T,closeBorderRadius:R,[Te("textColor",c)]:E,[Te("boxShadow",c)]:q,[Te("color",c)]:D,[Te("closeColorHover",c)]:B,[Te("closeColorPressed",c)]:M,[Te("closeIconColor",c)]:K,[Te("closeIconColorPressed",c)]:V,[Te("closeIconColorHover",c)]:ae}}=a.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":h,"--n-font-size":w,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":T,"--n-close-border-radius":R,"--n-close-size":m,"--n-close-margin":g,"--n-text-color":E,"--n-color":D,"--n-box-shadow":q,"--n-icon-color-info":S,"--n-icon-color-success":y,"--n-icon-color-warning":x,"--n-icon-color-error":P,"--n-icon-color-loading":k,"--n-close-color-hover":B,"--n-close-color-pressed":M,"--n-close-icon-color":K,"--n-close-icon-color-pressed":V,"--n-close-icon-color-hover":ae,"--n-line-height":C,"--n-border-radius":_}}),l=t?Pt("message",I(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:o,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:o.placement}},render(){const{render:e,type:t,closable:n,content:o,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;s==null||s();let d;return v("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):v("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(d=gY(l,t,r))&&u?v("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},v(Wi,null,{default:()=>d})):null,v("div",{class:`${r}-message__content`},Vt(o)),n?v(qi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function gY(e,t,n){if(typeof e=="function")return e();{const o=t==="loading"?v(ti,{clsPrefix:n,strokeWidth:24,scale:.85}):pY[t]();return o?v(Wt,{clsPrefix:n,key:t},{default:()=>o}):null}}const vY=xe({name:"MessageEnvironment",props:Object.assign(Object.assign({},V2),{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 n=U(!0);jt(()=>{o()});function o(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function r(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&o()}function a(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function s(){const{onClose:u}=e;u&&u(),a()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:h}=e;u&&u(),d&&d(h),f&&f()}function c(){a()}return{show:n,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return v(Au,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?v(mY,{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]})}}),bY=Object.assign(Object.assign({},Le.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]}),yY=xe({name:"MessageProvider",props:bY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o=U({}),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};at(q2,{props:e,mergedClsPrefixRef:t}),at(W2,r);function i(l,c){const u=Qr(),d=to(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=o.value[u])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&n.value.length>=f&&n.value.shift(),n.value.push(d),d}function a(l){n.value.splice(n.value.findIndex(c=>c.key===l),1),delete o.value[l]}function s(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:n,handleAfterLeave:a},r)},render(){var e,t,n;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?v(Zc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>v(vY,Object.assign({ref:r=>{r&&(this.messageRefs[o.key]=r)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Ha(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function xY(){const e=Ve(W2,null);return e===null&&hr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const CY=xe({name:"ModalEnvironment",props:Object.assign(Object.assign({},v2),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function r(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:o,show:r}=this;return v(ni,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:n,onEsc:o,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),m1="n-modal-provider",K2="n-modal-api",wY="n-modal-reactive-list",_Y={to:[String,Object]},SY=xe({name:"ModalProvider",props:_Y,setup(){const e=Ac(64),t=Rc(),n=U([]),o={};function r(l={}){const c=Qr(),u=to(Object.assign(Object.assign({},l),{key:c,destroy:()=>{var d;(d=o[`n-modal-${c}`])===null||d===void 0||d.hide()}}));return n.value.push(u),u}function i(l){const{value:c}=n;c.splice(c.findIndex(u=>u.key===l),1)}function a(){Object.values(o).forEach(l=>{l==null||l.hide()})}const s={create:r,destroyAll:a};return at(K2,s),at(m1,{clickedRef:Ac(64),clickedPositionRef:Rc()}),at(wY,n),at(m1,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},s),{modalList:n,modalInstRefs:o,handleAfterLeave:i})},render(){var e,t;return v(rt,null,[this.modalList.map(n=>{var o;return v(CY,Ha(n,["destroy"],{to:(o=n.to)!==null&&o!==void 0?o:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function kY(){const e=Ve(K2,null);return e===null&&hr("use-modal","No outer founded."),e}const Bu="n-notification-provider",PY=xe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Ve(Bu),o=U(null);return Yt(()=>{var r,i;n.value>0?(r=o==null?void 0:o.value)===null||r===void 0||r.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:o,placement:r}=this;return v("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${r}`]},t?v(Oo,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),TY={info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null),default:()=>null},Dm={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},EY=Jr(Dm),RY=xe({name:"Notification",props:Dm,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:o}=Ve(Bu),{inlineThemeDisabled:r,mergedRtlRef:i}=st(),a=pn("Notification",i,t),s=I(()=>{const{type:c}=e,{self:{color:u,textColor:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:m,actionTextColor:b,borderRadius:w,headerFontWeight:C,boxShadow:_,lineHeight:S,fontSize:y,closeMargin:x,closeSize:P,width:k,padding:T,closeIconSize:R,closeBorderRadius:E,closeColorHover:q,closeColorPressed:D,titleFontSize:B,metaFontSize:M,descriptionFontSize:K,[Te("iconColor",c)]:V},common:{cubicBezierEaseOut:ae,cubicBezierEaseIn:pe,cubicBezierEaseInOut:Z}}=n.value,{left:N,right:O,top:ee,bottom:G}=co(T);return{"--n-color":u,"--n-font-size":y,"--n-text-color":d,"--n-description-text-color":m,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":C,"--n-bezier":Z,"--n-bezier-ease-out":ae,"--n-bezier-ease-in":pe,"--n-border-radius":w,"--n-box-shadow":_,"--n-close-border-radius":E,"--n-close-color-hover":q,"--n-close-color-pressed":D,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":S,"--n-icon-color":V,"--n-close-margin":x,"--n-close-size":P,"--n-close-icon-size":R,"--n-width":k,"--n-padding-left":N,"--n-padding-right":O,"--n-padding-top":ee,"--n-padding-bottom":G,"--n-title-font-size":B,"--n-meta-font-size":M,"--n-description-font-size":K}}),l=r?Pt("notification",I(()=>e.type[0]),s,o):void 0;return{mergedClsPrefix:t,showAvatar:I(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},v("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?v("div",{class:`${t}-notification__avatar`},this.avatar?Vt(this.avatar):this.type!=="default"?v(Wt,{clsPrefix:t},{default:()=>TY[this.type]()}):null):null,this.closable?v(qi,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,v("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?v("div",{class:`${t}-notification-main__header`},Vt(this.title)):null,this.description?v("div",{class:`${t}-notification-main__description`},Vt(this.description)):null,this.content?v("pre",{class:`${t}-notification-main__content`},Vt(this.content)):null,this.meta||this.action?v("div",{class:`${t}-notification-main-footer`},this.meta?v("div",{class:`${t}-notification-main-footer__meta`},Vt(this.meta)):null,this.action?v("div",{class:`${t}-notification-main-footer__action`},Vt(this.action)):null):null)))}}),AY=Object.assign(Object.assign({},Dm),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),$Y=xe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},AY),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ve(Bu),n=U(!0);let o=null;function r(){n.value=!1,o&&window.clearTimeout(o)}function i(p){t.value++,Ht(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:m}=e;g&&g(),m&&m()}function s(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:m,internalKey:b}=e;p&&p(),g(b),m&&m()}function u(){const{duration:p}=e;p&&(o=window.setTimeout(r,p))}function d(p){p.currentTarget===p.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return jt(()=>{e.duration&&(o=window.setTimeout(r,e.duration))}),{show:n,hide:r,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return v(fn,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?v(RY,Object.assign({},eo(this.$props,EY),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),IY=W([z("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[W(">",[z("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[W(">",[z("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[z("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),J("top, top-right, top-left",` + top: 12px; + `,[W("&.transitioning >",[z("scrollbar",[W(">",[z("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),J("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[W(">",[z("scrollbar",[W(">",[z("scrollbar-container",[z("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),z("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),J("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[z("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),J("top",[z("notification-wrapper",` + transform-origin: top center; + `)]),J("bottom",[z("notification-wrapper",` + transform-origin: bottom center; + `)]),J("top-right, bottom-right",[z("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),J("top-left, bottom-left",[z("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),J("top-right",` + right: 0; + `,[Kl("top-right")]),J("top-left",` + left: 0; + `,[Kl("top-left")]),J("bottom-right",` + right: 0; + `,[Kl("bottom-right")]),J("bottom-left",` + left: 0; + `,[Kl("bottom-left")]),J("scrollable",[J("top-right",` + top: 0; + `),J("top-left",` + top: 0; + `),J("bottom-right",` + bottom: 0; + `),J("bottom-left",` + bottom: 0; + `)]),z("notification-wrapper",` + margin-bottom: 12px; + `,[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),W("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),W("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),z("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[j("avatar",[z("icon",` + color: var(--n-icon-color); + `),z("base-icon",` + color: var(--n-icon-color); + `)]),J("show-avatar",[z("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),J("closable",[z("notification-main",[W("> *:first-child",` + padding-right: 20px; + `)]),j("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),j("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[z("icon","transition: color .3s var(--n-bezier);")]),z("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[z("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[j("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),j("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),j("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),j("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),j("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[W("&:first-child","margin: 0;")])])])])]);function Kl(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return z("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${n}, 0); + `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(${o}, 0); + `)])}const G2="n-notification-api",OY=Object.assign(Object.assign({},Le.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),MY=xe({name:"NotificationProvider",props:OY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o={},r=new Set;function i(h){const p=Qr(),g=()=>{r.add(p),o[p]&&o[p].hide()},m=to(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&n.value.length-r.size>=b){let w=!1,C=0;for(const _ of n.value){if(!r.has(_.key)){o[_.key]&&(_.destroy(),w=!0);break}C++}w||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function s(h){r.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=Le("Notification","-notification",IY,EK,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:d,destroyAll:f},u=U(0);at(G2,c),at(Bu,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function d(h){return i(h)}function f(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:o,handleAfterLeave:s},c)},render(){var e,t,n;const{placement:o}=this;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?v(Zc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v(PY,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(r=>v($Y,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Ha(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function zY(){const e=Ve(G2,null);return e===null&&hr("use-notification","No outer `n-notification-provider` found."),e}const FY=W([z("progress",{display:"inline-block"},[z("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),J("line",` + width: 100%; + display: block; + `,[z("progress-content",` + display: flex; + align-items: center; + `,[z("progress-graph",{flex:1})]),z("progress-custom-content",{marginLeft:"14px"}),z("progress-icon",` width: 30px; padding-left: 14px; height: var(--n-icon-size-line); line-height: var(--n-icon-size-line); font-size: var(--n-icon-size-line); - `,[Z("as-text",` + `,[J("as-text",` color: var(--n-text-color-line-outer); text-align: center; width: 40px; font-size: var(--n-font-size); padding-left: 4px; transition: color .3s var(--n-bezier); - `)])]),Z("circle, dashboard",{width:"120px"},[L("progress-custom-content",` + `)])]),J("circle, dashboard",{width:"120px"},[z("progress-custom-content",` position: absolute; left: 50%; top: 50%; @@ -3489,7 +3463,7 @@ ${t} display: flex; align-items: center; justify-content: center; - `),L("progress-text",` + `),z("progress-text",` position: absolute; left: 50%; top: 50%; @@ -3502,7 +3476,7 @@ ${t} font-weight: var(--n-font-weight-circle); transition: color .3s var(--n-bezier); white-space: nowrap; - `),L("progress-icon",` + `),z("progress-icon",` position: absolute; left: 50%; top: 50%; @@ -3511,10 +3485,10 @@ ${t} align-items: center; color: var(--n-icon-color); font-size: var(--n-icon-size-circle); - `)]),Z("multiple-circle",` + `)]),J("multiple-circle",` width: 200px; color: inherit; - `,[L("progress-text",` + `,[z("progress-text",` font-weight: var(--n-font-weight-circle); color: var(--n-text-color-circle); position: absolute; @@ -3525,24 +3499,24 @@ ${t} align-items: center; justify-content: center; transition: color .3s var(--n-bezier); - `)]),L("progress-content",{position:"relative"}),L("progress-graph",{position:"relative"},[L("progress-graph-circle",[G("svg",{verticalAlign:"bottom"}),L("progress-graph-circle-fill",` + `)]),z("progress-content",{position:"relative"}),z("progress-graph",{position:"relative"},[z("progress-graph-circle",[W("svg",{verticalAlign:"bottom"}),z("progress-graph-circle-fill",` stroke: var(--n-fill-color); transition: opacity .3s var(--n-bezier), stroke .3s var(--n-bezier), stroke-dasharray .3s var(--n-bezier); - `,[Z("empty",{opacity:0})]),L("progress-graph-circle-rail",` + `,[J("empty",{opacity:0})]),z("progress-graph-circle-rail",` transition: stroke .3s var(--n-bezier); overflow: hidden; stroke: var(--n-rail-color); - `)]),L("progress-graph-line",[Z("indicator-inside",[L("progress-graph-line-rail",` + `)]),z("progress-graph-line",[J("indicator-inside",[z("progress-graph-line-rail",` height: 16px; line-height: 16px; border-radius: 10px; - `,[L("progress-graph-line-fill",` + `,[z("progress-graph-line-fill",` height: inherit; border-radius: 10px; - `),L("progress-graph-line-indicator",` + `),z("progress-graph-line-indicator",` background: #0000; white-space: nowrap; text-align: right; @@ -3552,14 +3526,14 @@ ${t} font-size: 12px; color: var(--n-text-color-line-inner); transition: color .3s var(--n-bezier); - `)])]),Z("indicator-inside-label",` + `)])]),J("indicator-inside-label",` height: 16px; display: flex; align-items: center; - `,[L("progress-graph-line-rail",` + `,[z("progress-graph-line-rail",` flex: 1; transition: background-color .3s var(--n-bezier); - `),L("progress-graph-line-indicator",` + `),z("progress-graph-line-indicator",` background: var(--n-fill-color); font-size: 12px; transform: translateZ(0); @@ -3576,14 +3550,14 @@ ${t} right .2s var(--n-bezier), color .3s var(--n-bezier), background-color .3s var(--n-bezier); - `)]),L("progress-graph-line-rail",` + `)]),z("progress-graph-line-rail",` position: relative; overflow: hidden; height: var(--n-rail-height); border-radius: 5px; background-color: var(--n-rail-color); transition: background-color .3s var(--n-bezier); - `,[L("progress-graph-line-fill",` + `,[z("progress-graph-line-fill",` background: var(--n-fill-color); position: relative; border-radius: 5px; @@ -3593,11 +3567,11 @@ ${t} transition: background-color .3s var(--n-bezier), max-width .2s var(--n-bezier); - `,[Z("processing",[G("&::after",` + `,[J("processing",[W("&::after",` content: ""; background-image: var(--n-line-bg-processing); animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),G("@keyframes progress-processing-animation",` + `)])])])])])]),W("@keyframes progress-processing-animation",` 0% { position: absolute; left: 0; @@ -3622,42 +3596,44 @@ ${t} right: 0; opacity: 0; } - `)]),iZ=Object.assign(Object.assign({},Be.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),sZ=be({name:"Progress",props:iZ,setup(e){const t=D(()=>e.indicatorPlacement||e.indicatorPosition),n=D(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=lt(e),i=Be("Progress","-progress",rZ,aY,e,o),s=D(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:u,fontSizeCircle:d,railColor:f,railHeight:h,iconSizeCircle:p,iconSizeLine:m,textColorCircle:g,textColorLineInner:b,textColorLineOuter:w,lineBgProcessing:C,fontWeightCircle:S,[Re("iconColor",l)]:_,[Re("fillColor",l)]:x}}=i.value;return{"--n-bezier":c,"--n-fill-color":x,"--n-font-size":u,"--n-font-size-circle":d,"--n-font-weight-circle":S,"--n-icon-color":_,"--n-icon-size-circle":p,"--n-icon-size-line":m,"--n-line-bg-processing":C,"--n-rail-color":f,"--n-rail-height":h,"--n-text-color-circle":g,"--n-text-color-line-inner":b,"--n-text-color-line-outer":w}}),a=r?Rt("progress",D(()=>e.status[0]),s,e):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:t,gapDeg:n,cssVars:r?void 0:s,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:o,status:r,railColor:i,railStyle:s,color:a,percentage:l,viewBoxWidth:c,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:h,fillBorderRadius:p,height:m,processing:g,circleGap:b,mergedClsPrefix:w,gapDeg:C,gapOffsetDegree:S,themeClass:_,$slots:x,onRender:y}=this;return y==null||y(),v("div",{class:[_,`${w}-progress`,`${w}-progress--${e}`,`${w}-progress--${r}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?v(eZ,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:a,railStyle:s,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:c,strokeWidth:u,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:S,unit:f},x):e==="line"?v(nZ,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:a,railStyle:s,percentage:l,processing:g,indicatorPlacement:d,unit:f,fillBorderRadius:p,railBorderRadius:h,height:m},x):e==="multiple-circle"?v(oZ,{clsPrefix:w,strokeWidth:u,railColor:i,fillColor:a,railStyle:s,viewBoxWidth:c,percentage:l,showIndicator:o,circleGap:b},x):null)}}),aZ={name:"QrCode",common:je,self:e=>({borderRadius:e.borderRadius})},lZ=aZ;function cZ(e){return{borderRadius:e.borderRadius}}const uZ={name:"QrCode",common:xt,self:cZ},dZ=uZ;var zi;(function(e){class t{static encodeText(s,a){const l=e.QrSegment.makeSegments(s);return t.encodeSegments(l,a)}static encodeBinary(s,a){const l=e.QrSegment.makeBytes(s);return t.encodeSegments([l],a)}static encodeSegments(s,a,l=1,c=40,u=-1,d=!0){if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let f,h;for(f=l;;f++){const b=t.getNumDataCodewords(f,a)*8,w=r.getTotalBits(s,f);if(w<=b){h=w;break}if(f>=c)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&h<=t.getNumDataCodewords(f,b)*8&&(a=b);const p=[];for(const b of s){n(b.mode.modeBits,4,p),n(b.numChars,b.mode.numCharCountBits(f),p);for(const w of b.getData())p.push(w)}const m=t.getNumDataCodewords(f,a)*8;n(0,Math.min(4,m-p.length),p),n(0,(8-p.length%8)%8,p);for(let b=236;p.lengthg[w>>>3]|=b<<7-(w&7)),new t(f,a,g,u)}constructor(s,a,l,c){if(this.version=s,this.errorCorrectionLevel=a,this.modules=[],this.isFunction=[],st.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=s*4+17;const u=[];for(let f=0;f=0&&s=0&&a>>9)*1335;const c=(a<<10|l)^21522;for(let u=0;u<=5;u++)this.setFunctionModule(8,u,o(c,u));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let u=9;u<15;u++)this.setFunctionModule(14-u,8,o(c,u));for(let u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,o(c,u));for(let u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,o(c,u));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let s=this.version;for(let l=0;l<12;l++)s=s<<1^(s>>>11)*7973;const a=this.version<<12|s;for(let l=0;l<18;l++){const c=o(a,l),u=this.size-11+l%3,d=Math.floor(l/3);this.setFunctionModule(u,d,c),this.setFunctionModule(d,u,c)}}drawFinderPattern(s,a){for(let l=-4;l<=4;l++)for(let c=-4;c<=4;c++){const u=Math.max(Math.abs(c),Math.abs(l)),d=s+c,f=a+l;d>=0&&d=0&&f{(b!==h-u||C>=f)&&g.push(w[b])});return g}drawCodewords(s){if(s.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let l=this.size-1;l>=1;l-=2){l===6&&(l=5);for(let c=0;c>>3],7-(a&7)),a++)}}}applyMask(s){if(s<0||s>7)throw new RangeError("Mask value out of range");for(let a=0;a5&&s++):(this.finderPenaltyAddHistory(f,h),d||(s+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[u][p],f=1);s+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;u5&&s++):(this.finderPenaltyAddHistory(f,h),d||(s+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[p][u],f=1);s+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;ud+(f?1:0),a);const l=this.size*this.size,c=Math.ceil(Math.abs(a*20-l*10)/l)-1;return s+=c*t.PENALTY_N4,s}getAlignmentPatternPositions(){if(this.version===1)return[];{const s=Math.floor(this.version/7)+2,a=this.version===32?26:Math.ceil((this.version*4+4)/(s*2-2))*2,l=[6];for(let c=this.size-7;l.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*s+128)*s+64;if(s>=2){const l=Math.floor(s/7)+2;a-=(25*l-10)*l-55,s>=7&&(a-=36)}return a}static getNumDataCodewords(s,a){return Math.floor(t.getNumRawDataModules(s)/8)-t.ECC_CODEWORDS_PER_BLOCK[a.ordinal][s]*t.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][s]}static reedSolomonComputeDivisor(s){if(s<1||s>255)throw new RangeError("Degree out of range");const a=[];for(let c=0;c0);for(const c of s){const u=c^l.shift();l.push(0),a.forEach((d,f)=>l[f]^=t.reedSolomonMultiply(d,u))}return l}static reedSolomonMultiply(s,a){if(s>>>8||a>>>8)throw new RangeError("Byte out of range");let l=0;for(let c=7;c>=0;c--)l=l<<1^(l>>>7)*285,l^=(a>>>c&1)*s;return l}finderPenaltyCountPatterns(s){const a=s[1],l=a>0&&s[2]===a&&s[3]===a*3&&s[4]===a&&s[5]===a;return(l&&s[0]>=a*4&&s[6]>=a?1:0)+(l&&s[6]>=a*4&&s[0]>=a?1:0)}finderPenaltyTerminateAndCount(s,a,l){return s&&(this.finderPenaltyAddHistory(a,l),a=0),a+=this.size,this.finderPenaltyAddHistory(a,l),this.finderPenaltyCountPatterns(l)}finderPenaltyAddHistory(s,a){a[0]===0&&(s+=this.size),a.pop(),a.unshift(s)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,s,a){if(s<0||s>31||i>>>s)throw new RangeError("Value out of range");for(let l=s-1;l>=0;l--)a.push(i>>>l&1)}function o(i,s){return(i>>>s&1)!==0}class r{static makeBytes(s){const a=[];for(const l of s)n(l,8,a);return new r(r.Mode.BYTE,s.length,a)}static makeNumeric(s){if(!r.isNumeric(s))throw new RangeError("String contains non-numeric characters");const a=[];for(let l=0;l=1<qt(e.height)),o=I(()=>e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):""),r=I(()=>e.fillBorderRadius!==void 0?qt(e.fillBorderRadius):e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:s,percentage:l,unit:c,indicatorTextColor:u,status:d,showIndicator:f,fillColor:h,processing:p,clsPrefix:g}=e;return v("div",{class:`${g}-progress-content`,role:"none"},v("div",{class:`${g}-progress-graph`,"aria-hidden":!0},v("div",{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${i}`]:!0}]},v("div",{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:o.value},s]},v("div",{class:[`${g}-progress-graph-line-fill`,p&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:h,height:n.value,lineHeight:n.value,borderRadius:r.value}},i==="inside"?v("div",{class:`${g}-progress-graph-line-indicator`,style:{color:u}},t.default?t.default():`${l}${c}`):null)))),f&&i==="outside"?v("div",null,t.default?v("div",{class:`${g}-progress-custom-content`,style:{color:u},role:"none"},t.default()):d==="default"?v("div",{role:"none",class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:u}},l,c):v("div",{class:`${g}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:g},{default:()=>DY[d]}))):null)}}}),BY={success:v(Ui,null),error:v(ji,null),warning:v(Vi,null),info:v(Ur,null)},NY=xe({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(o,r,i){const{gapDegree:a,viewBoxWidth:s,strokeWidth:l}=e,c=50,u=0,d=c,f=0,h=2*c,p=50+l/2,g=`M ${p},${p} m ${u},${d} + a ${c},${c} 0 1 1 ${f},${-h} + a ${c},${c} 0 1 1 ${-f},${h}`,m=Math.PI*2*c,b={stroke:i,strokeDasharray:`${o/100*(m-a)}px ${s*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:r?"center":void 0,transform:r?`rotate(${r}deg)`:void 0};return{pathString:g,pathStyle:b}}return()=>{const{fillColor:o,railColor:r,strokeWidth:i,offsetDegree:a,status:s,percentage:l,showIndicator:c,indicatorTextColor:u,unit:d,gapOffsetDegree:f,clsPrefix:h}=e,{pathString:p,pathStyle:g}=n(100,0,r),{pathString:m,pathStyle:b}=n(l,a,o),w=100+i;return v("div",{class:`${h}-progress-content`,role:"none"},v("div",{class:`${h}-progress-graph`,"aria-hidden":!0},v("div",{class:`${h}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},v("svg",{viewBox:`0 0 ${w} ${w}`},v("g",null,v("path",{class:`${h}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g})),v("g",null,v("path",{class:[`${h}-progress-graph-circle-fill`,l===0&&`${h}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b}))))),c?v("div",null,t.default?v("div",{class:`${h}-progress-custom-content`,role:"none"},t.default()):s!=="default"?v("div",{class:`${h}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:h},{default:()=>BY[s]})):v("div",{class:`${h}-progress-text`,style:{color:u},role:"none"},v("span",{class:`${h}-progress-text__percentage`},l),v("span",{class:`${h}-progress-text__unit`},d))):null)}}});function g1(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const HY=xe({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=I(()=>e.percentage.map((r,i)=>`${Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:o,strokeWidth:r,circleGap:i,showIndicator:a,fillColor:s,railColor:l,railStyle:c,percentage:u,clsPrefix:d}=e;return v("div",{class:`${d}-progress-content`,role:"none"},v("div",{class:`${d}-progress-graph`,"aria-hidden":!0},v("div",{class:`${d}-progress-graph-circle`},v("svg",{viewBox:`0 0 ${o} ${o}`},u.map((f,h)=>v("g",{key:h},v("path",{class:`${d}-progress-graph-circle-rail`,d:g1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[h]},c[h]]}),v("path",{class:[`${d}-progress-graph-circle-fill`,f===0&&`${d}-progress-graph-circle-fill--empty`],d:g1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[h],strokeDashoffset:0,stroke:s[h]}})))))),a&&t.default?v("div",null,v("div",{class:`${d}-progress-text`},t.default())):null)}}}),jY=Object.assign(Object.assign({},Le.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),UY=xe({name:"Progress",props:jY,setup(e){const t=I(()=>e.indicatorPlacement||e.indicatorPosition),n=I(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=st(e),i=Le("Progress","-progress",FY,CG,e,o),a=I(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:u,fontSizeCircle:d,railColor:f,railHeight:h,iconSizeCircle:p,iconSizeLine:g,textColorCircle:m,textColorLineInner:b,textColorLineOuter:w,lineBgProcessing:C,fontWeightCircle:_,[Te("iconColor",l)]:S,[Te("fillColor",l)]:y}}=i.value;return{"--n-bezier":c,"--n-fill-color":y,"--n-font-size":u,"--n-font-size-circle":d,"--n-font-weight-circle":_,"--n-icon-color":S,"--n-icon-size-circle":p,"--n-icon-size-line":g,"--n-line-bg-processing":C,"--n-rail-color":f,"--n-rail-height":h,"--n-text-color-circle":m,"--n-text-color-line-inner":b,"--n-text-color-line-outer":w}}),s=r?Pt("progress",I(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:t,gapDeg:n,cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:o,status:r,railColor:i,railStyle:a,color:s,percentage:l,viewBoxWidth:c,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:h,fillBorderRadius:p,height:g,processing:m,circleGap:b,mergedClsPrefix:w,gapDeg:C,gapOffsetDegree:_,themeClass:S,$slots:y,onRender:x}=this;return x==null||x(),v("div",{class:[S,`${w}-progress`,`${w}-progress--${e}`,`${w}-progress--${r}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?v(NY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:c,strokeWidth:u,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:_,unit:f},y):e==="line"?v(LY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,percentage:l,processing:m,indicatorPlacement:d,unit:f,fillBorderRadius:p,railBorderRadius:h,height:g},y):e==="multiple-circle"?v(HY,{clsPrefix:w,strokeWidth:u,railColor:i,fillColor:s,railStyle:a,viewBoxWidth:c,percentage:l,showIndicator:o,circleGap:b},y):null)}}),VY={name:"QrCode",common:He,self:e=>({borderRadius:e.borderRadius})},WY=VY;function qY(e){return{borderRadius:e.borderRadius}}const KY={name:"QrCode",common:xt,self:qY},GY=KY,XY=W([z("qr-code",` background: #fff; border-radius: var(--n-border-radius); display: inline-flex; - `)]),hZ={L:va.QrCode.Ecc.LOW,M:va.QrCode.Ecc.MEDIUM,Q:va.QrCode.Ecc.QUARTILE,H:va.QrCode.Ecc.HIGH},pZ=Object.assign(Object.assign({},Be.props),{value:String,color:{type:String,default:"#000"},backgroundColor:{type:String,default:"#FFF"},iconSrc:String,iconSize:{type:Number,default:40},iconBackgroundColor:{type:String,default:"#FFF"},iconBorderRadius:{type:Number,default:4},size:{type:Number,default:100},padding:{type:[Number,String],default:12},errorCorrectionLevel:{type:String,default:"M"},type:{type:String,default:"canvas"}}),lf=2,XS=be({name:"QrCode",props:pZ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("QrCode","-qr-code",fZ,dZ,e,t),r=D(()=>({"--n-border-radius":o.value.self.borderRadius})),i=n?Rt("qr-code",void 0,r,e):void 0,s=H(),a=D(()=>{var f;const h=hZ[e.errorCorrectionLevel];return va.QrCode.encodeText((f=e.value)!==null&&f!==void 0?f:"-",h)});Wt(()=>{const f=H(0);let h=null;Jt(()=>{e.type!=="svg"&&(f.value,l(a.value,e.size,e.color,e.backgroundColor,h?{icon:h,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null))}),Jt(()=>{if(e.type==="svg")return;const{iconSrc:p}=e;if(p){let m=!1;const g=new Image;return g.src=p,g.onload=()=>{m||(h=g,f.value++)},()=>{m=!0}}})});function l(f,h,p,m,g){const b=s.value;if(!b)return;const w=h*lf,C=f.size,S=w/C;b.width=w,b.height=w;const _=b.getContext("2d");if(_){_.clearRect(0,0,b.width,b.height);for(let x=0;x=1?P:P*W,M=W<=1?P:P/W,z=I+(P-O)/2,K=R+(P-M)/2;_.drawImage(x,z,K,O,M)}}}function c(f,h=0){const p=[];return f.forEach((m,g)=>{let b=null;m.forEach((w,C)=>{if(!w&&b!==null){p.push(`M${b+h} ${g+h}h${C-b}v1H${b+h}z`),b=null;return}if(C===m.length-1){if(!w)return;b===null?p.push(`M${C+h},${g+h} h1v1H${C+h}z`):p.push(`M${b+h},${g+h} h${C+1-b}v1H${b+h}z`);return}w&&b===null&&(b=C)})}),p.join("")}function u(f,h,p){const m=f.getModules(),g=m.length,b=m;let w="";const C=``,S=``;let _="";if(p){const{iconSrc:x,iconSize:y}=p,k=Math.floor(h*.1),P=g/h,I=(y||k)*P,R=(y||k)*P,W=m.length/2-R/2,O=m.length/2-I/2;_+=``}return w+=C,w+=S,w+=_,{innerHtml:w,numCells:g}}const d=D(()=>u(a.value,e.size,e.iconSrc?{iconSrc:e.iconSrc,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null));return{canvasRef:s,mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,svgInfo:d}},render(){const{mergedClsPrefix:e,backgroundColor:t,padding:n,cssVars:o,themeClass:r,size:i,type:s}=this;return v("div",{class:[`${e}-qr-code`,r],style:Object.assign({padding:typeof n=="number"?`${n}px`:n,backgroundColor:t,width:`${i}px`,height:`${i}px`},o)},s==="canvas"?v("canvas",{ref:"canvasRef",style:{width:`${i}px`,height:`${i}px`}}):v("svg",{height:i,width:i,viewBox:`0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`,role:"img",innerHTML:this.svgInfo.innerHtml}))}});function mZ(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),v("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function gZ(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),v("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),v("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),v("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),v("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),v("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function vZ(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),v("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),v("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),v("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),v("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),v("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function bZ(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),v("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),v("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const yZ=L("result",` + `)]);var Mi;(function(e){class t{static encodeText(a,s){const l=e.QrSegment.makeSegments(a);return t.encodeSegments(l,s)}static encodeBinary(a,s){const l=e.QrSegment.makeBytes(a);return t.encodeSegments([l],s)}static encodeSegments(a,s,l=1,c=40,u=-1,d=!0){if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let f,h;for(f=l;;f++){const b=t.getNumDataCodewords(f,s)*8,w=r.getTotalBits(a,f);if(w<=b){h=w;break}if(f>=c)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&h<=t.getNumDataCodewords(f,b)*8&&(s=b);const p=[];for(const b of a){n(b.mode.modeBits,4,p),n(b.numChars,b.mode.numCharCountBits(f),p);for(const w of b.getData())p.push(w)}const g=t.getNumDataCodewords(f,s)*8;n(0,Math.min(4,g-p.length),p),n(0,(8-p.length%8)%8,p);for(let b=236;p.lengthm[w>>>3]|=b<<7-(w&7)),new t(f,s,m,u)}constructor(a,s,l,c){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const u=[];for(let f=0;f=0&&a=0&&s>>9)*1335;const c=(s<<10|l)^21522;for(let u=0;u<=5;u++)this.setFunctionModule(8,u,o(c,u));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let u=9;u<15;u++)this.setFunctionModule(14-u,8,o(c,u));for(let u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,o(c,u));for(let u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,o(c,u));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let l=0;l<12;l++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;for(let l=0;l<18;l++){const c=o(s,l),u=this.size-11+l%3,d=Math.floor(l/3);this.setFunctionModule(u,d,c),this.setFunctionModule(d,u,c)}}drawFinderPattern(a,s){for(let l=-4;l<=4;l++)for(let c=-4;c<=4;c++){const u=Math.max(Math.abs(c),Math.abs(l)),d=a+c,f=s+l;d>=0&&d=0&&f{(b!==h-u||C>=f)&&m.push(w[b])});return m}drawCodewords(a){if(a.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let l=this.size-1;l>=1;l-=2){l===6&&(l=5);for(let c=0;c>>3],7-(s&7)),s++)}}}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[u][p],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;u5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[p][u],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;ud+(f?1:0),s);const l=this.size*this.size,c=Math.ceil(Math.abs(s*20-l*10)/l)-1;return a+=c*t.PENALTY_N4,a}getAlignmentPatternPositions(){if(this.version===1)return[];{const a=Math.floor(this.version/7)+2,s=this.version===32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,l=[6];for(let c=this.size-7;l.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const l=Math.floor(a/7)+2;s-=(25*l-10)*l-55,a>=7&&(s-=36)}return s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of a){const u=c^l.shift();l.push(0),s.forEach((d,f)=>l[f]^=t.reedSolomonMultiply(d,u))}return l}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let l=0;for(let c=7;c>=0;c--)l=l<<1^(l>>>7)*285,l^=(s>>>c&1)*a;return l}finderPenaltyCountPatterns(a){const s=a[1],l=s>0&&a[2]===s&&a[3]===s*3&&a[4]===s&&a[5]===s;return(l&&a[0]>=s*4&&a[6]>=s?1:0)+(l&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,l){return a&&(this.finderPenaltyAddHistory(s,l),s=0),s+=this.size,this.finderPenaltyAddHistory(s,l),this.finderPenaltyCountPatterns(l)}finderPenaltyAddHistory(a,s){s[0]===0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let l=a-1;l>=0;l--)s.push(i>>>l&1)}function o(i,a){return(i>>>a&1)!==0}class r{static makeBytes(a){const s=[];for(const l of a)n(l,8,s);return new r(r.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!r.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let l=0;l=1<({"--n-border-radius":o.value.self.borderRadius})),i=n?Pt("qr-code",void 0,r,e):void 0,a=U(),s=I(()=>{var f;const h=YY[e.errorCorrectionLevel];return ps.QrCode.encodeText((f=e.value)!==null&&f!==void 0?f:"-",h)});jt(()=>{const f=U(0);let h=null;Yt(()=>{e.type!=="svg"&&(f.value,l(s.value,e.size,e.color,e.backgroundColor,h?{icon:h,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null))}),Yt(()=>{if(e.type==="svg")return;const{iconSrc:p}=e;if(p){let g=!1;const m=new Image;return m.src=p,m.onload=()=>{g||(h=m,f.value++)},()=>{g=!0}}})});function l(f,h,p,g,m){const b=a.value;if(!b)return;const w=h*lf,C=f.size,_=w/C;b.width=w,b.height=w;const S=b.getContext("2d");if(S){S.clearRect(0,0,b.width,b.height);for(let y=0;y=1?T:T*q,B=q<=1?T:T/q,M=R+(T-D)/2,K=E+(T-B)/2;S.drawImage(y,M,K,D,B)}}}function c(f,h=0){const p=[];return f.forEach((g,m)=>{let b=null;g.forEach((w,C)=>{if(!w&&b!==null){p.push(`M${b+h} ${m+h}h${C-b}v1H${b+h}z`),b=null;return}if(C===g.length-1){if(!w)return;b===null?p.push(`M${C+h},${m+h} h1v1H${C+h}z`):p.push(`M${b+h},${m+h} h${C+1-b}v1H${b+h}z`);return}w&&b===null&&(b=C)})}),p.join("")}function u(f,h,p){const g=f.getModules(),m=g.length,b=g;let w="";const C=``,_=``;let S="";if(p){const{iconSrc:y,iconSize:x}=p,k=Math.floor(h*.1),T=m/h,R=(x||k)*T,E=(x||k)*T,q=g.length/2-E/2,D=g.length/2-R/2;S+=``}return w+=C,w+=_,w+=S,{innerHtml:w,numCells:m}}const d=I(()=>u(s.value,e.size,e.iconSrc?{iconSrc:e.iconSrc,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null));return{canvasRef:a,mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,svgInfo:d}},render(){const{mergedClsPrefix:e,backgroundColor:t,padding:n,cssVars:o,themeClass:r,size:i,type:a}=this;return v("div",{class:[`${e}-qr-code`,r],style:Object.assign({padding:typeof n=="number"?`${n}px`:n,backgroundColor:t,width:`${i}px`,height:`${i}px`},o)},a==="canvas"?v("canvas",{ref:"canvasRef",style:{width:`${i}px`,height:`${i}px`}}):v("svg",{height:i,width:i,viewBox:`0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`,role:"img",innerHTML:this.svgInfo.innerHtml}))}}),JY=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),v("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),v("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),v("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),v("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),v("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),ZY=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),v("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),v("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),eQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),v("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),v("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),v("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),v("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),v("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),tQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),v("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),nQ=z("result",` color: var(--n-text-color); line-height: var(--n-line-height); font-size: var(--n-font-size); transition: color .3s var(--n-bezier); -`,[L("result-icon",` +`,[z("result-icon",` display: flex; justify-content: center; transition: color .3s var(--n-bezier); - `,[V("status-image",` + `,[j("status-image",` font-size: var(--n-icon-size); width: 1em; height: 1em; - `),L("base-icon",` + `),z("base-icon",` color: var(--n-icon-color); font-size: var(--n-icon-size); - `)]),L("result-content",{marginTop:"24px"}),L("result-footer",` + `)]),z("result-content",{marginTop:"24px"}),z("result-footer",` margin-top: 24px; text-align: center; - `),L("result-header",[V("title",` + `),z("result-header",[j("title",` margin-top: 16px; font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); text-align: center; color: var(--n-title-text-color); font-size: var(--n-title-font-size); - `),V("description",` + `),j("description",` margin-top: 4px; text-align: center; font-size: var(--n-font-size); - `)])]),xZ={403:mZ,404:gZ,418:vZ,500:bZ,info:()=>v(Vr,null),success:()=>v(qi,null),warning:()=>v(Ki,null),error:()=>v(Ui,null)},CZ=Object.assign(Object.assign({},Be.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),wZ=be({name:"Result",props:CZ,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Result","-result",yZ,hY,e,t),r=D(()=>{const{size:s,status:a}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:d,titleFontWeight:f,[Re("iconColor",a)]:h,[Re("fontSize",s)]:p,[Re("titleFontSize",s)]:m,[Re("iconSize",s)]:g}}=o.value;return{"--n-bezier":l,"--n-font-size":p,"--n-icon-size":g,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":m,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":h||""}}),i=n?Rt("result",D(()=>{const{size:s,status:a}=e;let l="";return s&&(l+=s[0]),a&&(l+=a[0]),l}),r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:o,onRender:r}=this;return r==null||r(),v("div",{class:[`${o}-result`,this.themeClass],style:this.cssVars},v("div",{class:`${o}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||v(Gt,{clsPrefix:o},{default:()=>xZ[t]()})),v("div",{class:`${o}-result-header`},this.title?v("div",{class:`${o}-result-header__title`},this.title):null,this.description?v("div",{class:`${o}-result-header__description`},this.description):null),n.default&&v("div",{class:`${o}-result-content`},n),n.footer&&v("div",{class:`${o}-result-footer`},n.footer()))}}),_Z=Object.assign(Object.assign({},Be.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),SZ=be({name:"Scrollbar",props:_Z,setup(){const e=H(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return v(Mo,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),kZ=SZ,PZ={name:"Skeleton",common:je,self(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}};function TZ(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}const RZ={name:"Skeleton",common:xt,self:TZ},EZ=G([L("skeleton",` + `)])]),oQ={403:()=>tQ,404:()=>JY,418:()=>eQ,500:()=>ZY,info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null)},rQ=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),iQ=xe({name:"Result",props:rQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Result","-result",nQ,TG,e,t),r=I(()=>{const{size:a,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:d,titleFontWeight:f,[Te("iconColor",s)]:h,[Te("fontSize",a)]:p,[Te("titleFontSize",a)]:g,[Te("iconSize",a)]:m}}=o.value;return{"--n-bezier":l,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":h||""}}),i=n?Pt("result",I(()=>{const{size:a,status:s}=e;let l="";return a&&(l+=a[0]),s&&(l+=s[0]),l}),r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:o,onRender:r}=this;return r==null||r(),v("div",{class:[`${o}-result`,this.themeClass],style:this.cssVars},v("div",{class:`${o}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||v(Wt,{clsPrefix:o},{default:()=>oQ[t]()})),v("div",{class:`${o}-result-header`},this.title?v("div",{class:`${o}-result-header__title`},this.title):null,this.description?v("div",{class:`${o}-result-header__description`},this.description):null),n.default&&v("div",{class:`${o}-result-content`},n),n.footer&&v("div",{class:`${o}-result-footer`},n.footer()))}}),aQ=Object.assign(Object.assign({},Le.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number}),sQ=xe({name:"Scrollbar",props:aQ,setup(){const e=U(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return v(Oo,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),lQ=sQ,cQ={name:"Skeleton",common:He,self(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}};function uQ(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}const dQ={name:"Skeleton",common:xt,self:uQ},fQ=W([z("skeleton",` height: 1em; width: 100%; transition: @@ -3666,7 +3642,7 @@ ${t} background-color .3s var(--n-bezier); animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); background-color: var(--n-color-start); - `),G("@keyframes skeleton-loading",` + `),W("@keyframes skeleton-loading",` 0% { background: var(--n-color-start); } @@ -3679,50 +3655,50 @@ ${t} 100% { background: var(--n-color-start); } - `)]),$Z=Object.assign(Object.assign({},Be.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),bl=be({name:"Skeleton",inheritAttrs:!1,props:$Z,setup(e){$8();const{mergedClsPrefixRef:t}=lt(e),n=Be("Skeleton","-skeleton",EZ,RZ,e,t);return{mergedClsPrefix:t,style:D(()=>{var o,r;const i=n.value,{common:{cubicBezierEaseInOut:s}}=i,a=i.self,{color:l,colorEnd:c,borderRadius:u}=a;let d;const{circle:f,sharp:h,round:p,width:m,height:g,size:b,text:w,animated:C}=e;b!==void 0&&(d=a[Re("height",b)]);const S=f?(o=m??g)!==null&&o!==void 0?o:d:m,_=(r=f?m??g:g)!==null&&r!==void 0?r:d;return{display:w?"inline-block":"",verticalAlign:w?"-0.125em":"",borderRadius:f?"50%":p?"4096px":h?"":u,width:typeof S=="number"?an(S):S,height:typeof _=="number"?an(_):_,animation:C?"":"none","--n-bezier":s,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:o}=this,r=v("div",Ln({class:`${n}-skeleton`,style:t},o));return e>1?v(st,null,Cw(e,null).map(i=>[r,` -`])):r}}),AZ=G([G("@keyframes spin-rotate",` + `)]),hQ=Object.assign(Object.assign({},Le.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),vl=xe({name:"Skeleton",inheritAttrs:!1,props:hQ,setup(e){R8();const{mergedClsPrefixRef:t}=st(e),n=Le("Skeleton","-skeleton",fQ,dQ,e,t);return{mergedClsPrefix:t,style:I(()=>{var o,r;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,s=i.self,{color:l,colorEnd:c,borderRadius:u}=s;let d;const{circle:f,sharp:h,round:p,width:g,height:m,size:b,text:w,animated:C}=e;b!==void 0&&(d=s[Te("height",b)]);const _=f?(o=g??m)!==null&&o!==void 0?o:d:g,S=(r=f?g??m:m)!==null&&r!==void 0?r:d;return{display:w?"inline-block":"",verticalAlign:w?"-0.125em":"",borderRadius:f?"50%":p?"4096px":h?"":u,width:typeof _=="number"?zn(_):_,height:typeof S=="number"?zn(S):S,animation:C?"":"none","--n-bezier":a,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:o}=this,r=v("div",Ln({class:`${n}-skeleton`,style:t},o));return e>1?v(rt,null,dw(e,null).map(i=>[r,` +`])):r}}),pQ=W([W("@keyframes spin-rotate",` from { transform: rotate(0); } to { transform: rotate(360deg); } - `),L("spin-container",` + `),z("spin-container",` position: relative; - `,[L("spin-body",` + `,[z("spin-body",` position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); - `,[fl()])]),L("spin-body",` + `,[dl()])]),z("spin-body",` display: inline-flex; align-items: center; justify-content: center; flex-direction: column; - `),L("spin",` + `),z("spin",` display: inline-flex; height: var(--n-size); width: var(--n-size); font-size: var(--n-size); color: var(--n-color); - `,[Z("rotate",` + `,[J("rotate",` animation: spin-rotate 2s linear infinite; - `)]),L("spin-description",` + `)]),z("spin-description",` display: inline-block; font-size: var(--n-font-size); color: var(--n-text-color); transition: color .3s var(--n-bezier); margin-top: 8px; - `),L("spin-content",` + `),z("spin-content",` opacity: 1; transition: opacity .3s var(--n-bezier); pointer-events: all; - `,[Z("spinning",` + `,[J("spinning",` user-select: none; -webkit-user-select: none; pointer-events: none; opacity: var(--n-opacity-spinning); - `)])]),IZ={small:20,medium:18,large:16},MZ=Object.assign(Object.assign({},Be.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),OZ=be({name:"Spin",props:MZ,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Spin","-spin",AZ,xY,e,t),r=D(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=o.value,{opacitySpinning:d,color:f,textColor:h}=u,p=typeof l=="number"?an(l):u[Re("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":d,"--n-size":p,"--n-color":f,"--n-text-color":h}}),i=n?Rt("spin",D(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),r,e):void 0,s=ku(e,["spinning","show"]),a=H(!1);return Jt(l=>{let c;if(s.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{a.value=!0},u),l(()=>{clearTimeout(c)});return}}a.value=s.value}),{mergedClsPrefix:t,active:a,mergedStrokeWidth:D(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return IZ[typeof c=="number"?"medium":c]}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:o,description:r}=this,i=n.icon&&this.rotate,s=(r||n.description)&&v("div",{class:`${o}-spin-description`},r||((e=n.description)===null||e===void 0?void 0:e.call(n))),a=n.icon?v("div",{class:[`${o}-spin-body`,this.themeClass]},v("div",{class:[`${o}-spin`,i&&`${o}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),s):v("div",{class:[`${o}-spin-body`,this.themeClass]},v(ti,{clsPrefix:o,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),s);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?v("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},v("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),v(pn,{name:"fade-in-transition"},{default:()=>this.active?a:null})):a}}),zZ={name:"Split",common:je},DZ=zZ,LZ=L("switch",` + `)])]),mQ={small:20,medium:18,large:16},gQ=Object.assign(Object.assign({},Le.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),vQ=xe({name:"Spin",props:gQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Spin","-spin",pQ,MG,e,t),r=I(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=o.value,{opacitySpinning:d,color:f,textColor:h}=u,p=typeof l=="number"?zn(l):u[Te("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":d,"--n-size":p,"--n-color":f,"--n-text-color":h}}),i=n?Pt("spin",I(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),r,e):void 0,a=_u(e,["spinning","show"]),s=U(!1);return Yt(l=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{s.value=!0},u),l(()=>{clearTimeout(c)});return}}s.value=a.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:I(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return mQ[typeof c=="number"?"medium":c]}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:o,description:r}=this,i=n.icon&&this.rotate,a=(r||n.description)&&v("div",{class:`${o}-spin-description`},r||((e=n.description)===null||e===void 0?void 0:e.call(n))),s=n.icon?v("div",{class:[`${o}-spin-body`,this.themeClass]},v("div",{class:[`${o}-spin`,i&&`${o}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):v("div",{class:[`${o}-spin-body`,this.themeClass]},v(ti,{clsPrefix:o,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?v("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},v("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),v(fn,{name:"fade-in-transition"},{default:()=>this.active?s:null})):s}}),bQ={name:"Split",common:He},yQ=bQ,xQ=z("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; @@ -3732,20 +3708,20 @@ ${t} outline: none; justify-content: center; align-items: center; -`,[V("children-placeholder",` +`,[j("children-placeholder",` height: var(--n-rail-height); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; visibility: hidden; - `),V("rail-placeholder",` + `),j("rail-placeholder",` display: flex; flex-wrap: none; - `),V("button-placeholder",` + `),j("button-placeholder",` width: calc(1.75 * var(--n-rail-height)); height: var(--n-rail-height); - `),L("base-loading",` + `),z("base-loading",` position: absolute; top: 50%; left: 50%; @@ -3753,7 +3729,7 @@ ${t} font-size: calc(var(--n-button-width) - 4px); color: var(--n-loading-color); transition: color .3s var(--n-bezier); - `,[Xn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),V("checked, unchecked",` + `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),j("checked, unchecked",` transition: color .3s var(--n-bezier); color: var(--n-text-color); box-sizing: border-box; @@ -3764,16 +3740,16 @@ ${t} display: flex; align-items: center; line-height: 1; - `),V("checked",` + `),j("checked",` right: 0; padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),V("unchecked",` + `),j("unchecked",` left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),G("&:focus",[V("rail",` + `),W("&:focus",[j("rail",` box-shadow: var(--n-box-shadow-focus); - `)]),Z("round",[V("rail","border-radius: calc(var(--n-rail-height) / 2);",[V("button","border-radius: calc(var(--n-button-height) / 2);")])]),$t("disabled",[$t("icon",[Z("rubber-band",[Z("pressed",[V("rail",[V("button","max-width: var(--n-button-width-pressed);")])]),V("rail",[G("&:active",[V("button","max-width: var(--n-button-width-pressed);")])]),Z("active",[Z("pressed",[V("rail",[V("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),V("rail",[G("&:active",[V("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),Z("active",[V("rail",[V("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),V("rail",` + `)]),J("round",[j("rail","border-radius: calc(var(--n-rail-height) / 2);",[j("button","border-radius: calc(var(--n-button-height) / 2);")])]),Et("disabled",[Et("icon",[J("rubber-band",[J("pressed",[j("rail",[j("button","max-width: var(--n-button-width-pressed);")])]),j("rail",[W("&:active",[j("button","max-width: var(--n-button-width-pressed);")])]),J("active",[J("pressed",[j("rail",[j("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),j("rail",[W("&:active",[j("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),J("active",[j("rail",[j("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),j("rail",` overflow: hidden; height: var(--n-rail-height); min-width: var(--n-rail-width); @@ -3785,7 +3761,7 @@ ${t} background .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-rail-color); - `,[V("button-icon",` + `,[j("button-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); font-size: calc(var(--n-button-height) - 4px); @@ -3798,7 +3774,7 @@ ${t} justify-content: center; align-items: center; line-height: 1; - `,[Xn()]),V("button",` + `,[Kn()]),j("button",` align-items: center; top: var(--n-offset); left: var(--n-offset); @@ -3818,25 +3794,25 @@ ${t} opacity .3s var(--n-bezier), max-width .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `)]),Z("active",[V("rail","background-color: var(--n-rail-color-active);")]),Z("loading",[V("rail",` + `)]),J("active",[j("rail","background-color: var(--n-rail-color-active);")]),J("loading",[j("rail",` cursor: wait; - `)]),Z("disabled",[V("rail",` + `)]),J("disabled",[j("rail",` cursor: not-allowed; opacity: .5; - `)])]),FZ=Object.assign(Object.assign({},Be.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 ha;const BZ=be({name:"Switch",props:FZ,slots:Object,setup(e){ha===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ha=CSS.supports("width","max(1px)"):ha=!1:ha=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=lt(e),o=Be("Switch","-switch",LZ,OY,e,t),r=pr(e),{mergedSizeRef:i,mergedDisabledRef:s}=r,a=H(e.defaultValue),l=ze(e,"value"),c=ln(l,a),u=D(()=>c.value===e.checkedValue),d=H(!1),f=H(!1),h=D(()=>{const{railStyle:T}=e;if(T)return T({focused:f.value,checked:u.value})});function p(T){const{"onUpdate:value":k,onChange:P,onUpdateValue:I}=e,{nTriggerFormInput:R,nTriggerFormChange:W}=r;k&&$e(k,T),I&&$e(I,T),P&&$e(P,T),a.value=T,R(),W()}function m(){const{nTriggerFormFocus:T}=r;T()}function g(){const{nTriggerFormBlur:T}=r;T()}function b(){e.loading||s.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function w(){f.value=!0,m()}function C(){f.value=!1,g(),d.value=!1}function S(T){e.loading||s.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),d.value=!1)}function _(T){e.loading||s.value||T.key===" "&&(T.preventDefault(),d.value=!0)}const x=D(()=>{const{value:T}=i,{self:{opacityDisabled:k,railColor:P,railColorActive:I,buttonBoxShadow:R,buttonColor:W,boxShadowFocus:O,loadingColor:M,textColor:z,iconColor:K,[Re("buttonHeight",T)]:J,[Re("buttonWidth",T)]:se,[Re("buttonWidthPressed",T)]:le,[Re("railHeight",T)]:F,[Re("railWidth",T)]:E,[Re("railBorderRadius",T)]:A,[Re("buttonBorderRadius",T)]:Y},common:{cubicBezierEaseInOut:ne}}=o.value;let fe,Q,Ce;return ha?(fe=`calc((${F} - ${J}) / 2)`,Q=`max(${F}, ${J})`,Ce=`max(${E}, calc(${E} + ${J} - ${F}))`):(fe=an((Cn(F)-Cn(J))/2),Q=an(Math.max(Cn(F),Cn(J))),Ce=Cn(F)>Cn(J)?E:an(Cn(E)+Cn(J)-Cn(F))),{"--n-bezier":ne,"--n-button-border-radius":Y,"--n-button-box-shadow":R,"--n-button-color":W,"--n-button-width":se,"--n-button-width-pressed":le,"--n-button-height":J,"--n-height":Q,"--n-offset":fe,"--n-opacity-disabled":k,"--n-rail-border-radius":A,"--n-rail-color":P,"--n-rail-color-active":I,"--n-rail-height":F,"--n-rail-width":E,"--n-width":Ce,"--n-box-shadow-focus":O,"--n-loading-color":M,"--n-text-color":z,"--n-icon-color":K}}),y=n?Rt("switch",D(()=>i.value[0]),x,e):void 0;return{handleClick:b,handleBlur:C,handleFocus:w,handleKeyup:S,handleKeydown:_,mergedRailStyle:h,pressed:d,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:s,cssVars:n?void 0:x,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:o,onRender:r,$slots:i}=this;r==null||r();const{checked:s,unchecked:a,icon:l,"checked-icon":c,"unchecked-icon":u}=i,d=!(xs(l)&&xs(c)&&xs(u));return v("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},v("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},Mt(s,f=>Mt(a,h=>f||h?v("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),f),v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),h)):null)),v("div",{class:`${e}-switch__button`},Mt(l,f=>Mt(c,h=>Mt(u,p=>v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(h||f)?v("div",{class:`${e}-switch__button-icon`,key:h?"checked-icon":"icon"},h||f):!this.checked&&(p||f)?v("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||f):null})))),Mt(s,f=>f&&v("div",{key:"checked",class:`${e}-switch__checked`},f)),Mt(a,f=>f&&v("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}});function NZ(){const e=We(go,null);return D(()=>{if(e===null)return xt;const{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:n}}=e,o=(t==null?void 0:t.common)||xt;return n!=null&&n.common?Object.assign({},o,n.common):o})}const HZ=()=>({}),jZ={name:"Equation",common:je,self:HZ},VZ=jZ,WZ={name:"FloatButtonGroup",common:je,self(e){const{popoverColor:t,dividerColor:n,borderRadius:o}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},UZ=WZ,ZS={name:"dark",common:je,Alert:hj,Anchor:Sj,AutoComplete:Nj,Avatar:f2,AvatarGroup:Uj,BackTop:Kj,Badge:nV,Breadcrumb:aV,Button:Kn,ButtonGroup:wG,Calendar:_V,Card:x2,Carousel:MV,Cascader:oW,Checkbox:Ys,Code:P2,Collapse:hW,CollapseTransition:gW,ColorPicker:yW,DataTable:QW,DatePicker:pq,Descriptions:bq,Dialog:pS,Divider:zK,Drawer:HK,Dropdown:Sm,DynamicInput:aG,DynamicTags:mG,Element:vG,Empty:Xi,Ellipsis:B2,Equation:VZ,Flex:xG,Form:PG,GradientText:RG,Icon:AU,IconWrapper:mX,Image:gX,Input:xo,InputNumber:$G,LegacyTransfer:MX,Layout:zG,List:VG,LoadingBar:jq,Log:UG,Menu:JG,Mention:KG,Message:tK,Modal:Eq,Notification:vK,PageHeader:tY,Pagination:z2,Popconfirm:iY,Popover:Zi,Popselect:R2,Progress:LS,QrCode:lZ,Radio:j2,Rate:uY,Result:mY,Row:BG,Scrollbar:qn,Select:I2,Skeleton:PZ,Slider:bY,Space:IS,Spin:wY,Statistic:kY,Steps:EY,Switch:AY,Table:FY,Tabs:jY,Tag:n2,Thing:UY,TimePicker:cS,Timeline:GY,Tooltip:Du,Transfer:ZY,Tree:HS,TreeSelect:tX,Typography:iX,Upload:lX,Watermark:uX,Split:DZ,FloatButton:fX,FloatButtonGroup:UZ,Marquee:FX},qZ={"aria-hidden":"true",width:"1em",height:"1em"},KZ=["xlink:href","fill"],GZ=be({__name:"SvgIcon",props:{icon:{type:String,required:!0},prefix:{type:String,default:"icon-custom"},color:{type:String,default:"currentColor"}},setup(e){const t=e,n=D(()=>`#${t.prefix}-${t.icon}`);return(o,r)=>(ge(),Oe("svg",qZ,[q("use",{"xlink:href":n.value,fill:e.color},null,8,KZ)]))}}),ol=(e,t={size:12})=>()=>v(vr,t,()=>v(O6,{icon:e})),JS=(e,t={size:12})=>()=>v(vr,t,()=>v(GZ,{icon:e}));function YZ(){var n,o;const e={default:XZ,blue:ZZ,black:JZ,darkblue:QZ},t=((o=(n=window.settings)==null?void 0:n.theme)==null?void 0:o.color)||"default";return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e.default}const XZ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#316C72FF",primaryColorHover:"#316C72E3",primaryColorPressed:"#2B4C59FF",primaryColorSuppl:"#316C72E3",infoColor:"#316C72FF",infoColorHover:"#316C72E3",infoColorPressed:"#2B4C59FF",infoColorSuppl:"#316C72E3",successColor:"#18A058FF",successColorHover:"#36AD6AFF",successColorPressed:"#0C7A43FF",successColorSuppl:"#36AD6AFF",warningColor:"#F0A020FF",warningColorHover:"#FCB040FF",warningColorPressed:"#C97C10FF",warningColorSuppl:"#FCB040FF",errorColor:"#D03050FF",errorColorHover:"#DE576DFF",errorColorPressed:"#AB1F3FFF",errorColorSuppl:"#DE576DFF"}}},ZZ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#0665d0",primaryColorHover:"#2a84de",primaryColorPressed:"#004085",primaryColorSuppl:"#0056b3",infoColor:"#0665d0",infoColorHover:"#2a84de",infoColorPressed:"#0c5460",infoColorSuppl:"#004085",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},JZ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#343a40",primaryColorHover:"#23272b",primaryColorPressed:"#1d2124",primaryColorSuppl:"#23272b",infoColor:"#343a40",infoColorHover:"#23272b",infoColorPressed:"#1d2124",infoColorSuppl:"#23272b",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},QZ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#004175",primaryColorHover:"#002c4c",primaryColorPressed:"#001f35",primaryColorSuppl:"#002c4c",infoColor:"#004175",infoColorHover:"#002c4c",infoColorPressed:"#001f35",infoColorSuppl:"#002c4c",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},{header:eJ,tags:bNe,naiveThemeOverrides:Nh}=YZ();function ju(e){return Gh()?(gy(e),!0):!1}function To(e){return typeof e=="function"?e():_e(e)}const QS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tJ=e=>e!=null,nJ=Object.prototype.toString,oJ=e=>nJ.call(e)==="[object Object]",ek=()=>{};function rJ(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const tk=e=>e();function iJ(e=tk){const t=H(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:po(t),pause:n,resume:o,eventFilter:r}}function sJ(e){return e||io()}function aJ(...e){if(e.length!==1)return ze(...e);const t=e[0];return typeof t=="function"?po(Z3(()=>({get:t,set:ek}))):H(t)}function lJ(e,t,n={}){const{eventFilter:o=tk,...r}=n;return dt(e,rJ(o,t),r)}function cJ(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:i,pause:s,resume:a,isActive:l}=iJ(o);return{stop:lJ(e,t,{...r,eventFilter:i}),pause:s,resume:a,isActive:l}}function nk(e,t=!0,n){sJ()?Wt(e,n):t?e():Vt(e)}function uJ(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=dn(e),i=H(e);function s(a){if(arguments.length)return i.value=a,i.value;{const l=To(n);return i.value=i.value===l?To(o):l,i.value}}return r?s:[i,s]}function Ms(e){var t;const n=To(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Wr=QS?window:void 0,dJ=QS?window.document:void 0;function Bc(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Wr):[t,n,o,r]=e,!t)return ek;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),l=dt(()=>[Ms(t),To(r)],([u,d])=>{if(s(),!u)return;const f=oJ(d)?{...d}:d;i.push(...n.flatMap(h=>o.map(p=>a(u,h,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return ju(c),c}function fJ(){const e=H(!1),t=io();return t&&Wt(()=>{e.value=!0},t),e}function Bm(e){const t=fJ();return D(()=>(t.value,!!e()))}function hJ(e,t,n={}){const{window:o=Wr,...r}=n;let i;const s=Bm(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=D(()=>{const f=To(e),h=(Array.isArray(f)?f:[f]).map(Ms).filter(tJ);return new Set(h)}),c=dt(()=>l.value,f=>{a(),s.value&&f.size&&(i=new MutationObserver(t),f.forEach(h=>i.observe(h,r)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{a(),c()};return ju(d),{isSupported:s,stop:d,takeRecords:u}}function pJ(e,t={}){const{window:n=Wr}=t,o=Bm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=H(!1),s=c=>{i.value=c.matches},a=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s))},l=Jt(()=>{o.value&&(a(),r=n.matchMedia(To(e)),"addEventListener"in r?r.addEventListener("change",s):r.addListener(s),i.value=r.matches)});return ju(()=>{l(),a(),r=void 0}),i}const Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl="__vueuse_ssr_handlers__",mJ=gJ();function gJ(){return Xl in Yl||(Yl[Xl]=Yl[Xl]||{}),Yl[Xl]}function ok(e,t){return mJ[e]||t}function vJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const bJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},y1="vueuse-storage";function yJ(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=Wr,eventFilter:f,onError:h=P=>{console.error(P)},initOnMounted:p}=o,m=(u?Os:H)(typeof t=="function"?t():t);if(!n)try{n=ok("getDefaultStorage",()=>{var P;return(P=Wr)==null?void 0:P.localStorage})()}catch(P){h(P)}if(!n)return m;const g=To(t),b=vJ(g),w=(r=o.serializer)!=null?r:bJ[b],{pause:C,resume:S}=cJ(m,()=>x(m.value),{flush:i,deep:s,eventFilter:f});d&&a&&nk(()=>{Bc(d,"storage",T),Bc(d,y1,k),p&&T()}),p||T();function _(P,I){d&&d.dispatchEvent(new CustomEvent(y1,{detail:{key:e,oldValue:P,newValue:I,storageArea:n}}))}function x(P){try{const I=n.getItem(e);if(P==null)_(I,null),n.removeItem(e);else{const R=w.write(P);I!==R&&(n.setItem(e,R),_(I,R))}}catch(I){h(I)}}function y(P){const I=P?P.newValue:n.getItem(e);if(I==null)return l&&g!=null&&n.setItem(e,w.write(g)),g;if(!P&&c){const R=w.read(I);return typeof c=="function"?c(R,g):b==="object"&&!Array.isArray(R)?{...g,...R}:R}else return typeof I!="string"?I:w.read(I)}function T(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){m.value=g;return}if(!(P&&P.key!==e)){C();try{(P==null?void 0:P.newValue)!==w.write(m.value)&&(m.value=y(P))}catch(I){h(I)}finally{P?Vt(S):S()}}}}function k(P){T(P.detail)}return m}function rk(e){return pJ("(prefers-color-scheme: dark)",e)}function xJ(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Wr,storage:i,storageKey:s="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=rk({window:r}),h=D(()=>f.value?"dark":"light"),p=l||(s==null?aJ(o):yJ(s,o,i,{window:r,listenToStorageChanges:a})),m=D(()=>p.value==="auto"?h.value:p.value),g=ok("updateHTMLAttrs",(S,_,x)=>{const y=typeof S=="string"?r==null?void 0:r.document.querySelector(S):Ms(S);if(!y)return;let T;if(u){T=r.document.createElement("style");const k="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";T.appendChild(document.createTextNode(k)),r.document.head.appendChild(T)}if(_==="class"){const k=x.split(/\s/g);Object.values(d).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{k.includes(P)?y.classList.add(P):y.classList.remove(P)})}else y.setAttribute(_,x);u&&(r.getComputedStyle(T).opacity,document.head.removeChild(T))});function b(S){var _;g(t,n,(_=d[S])!=null?_:S)}function w(S){e.onChanged?e.onChanged(S,b):b(S)}dt(m,w,{flush:"post",immediate:!0}),nk(()=>w(m.value));const C=D({get(){return c?p.value:m.value},set(S){p.value=S}});try{return Object.assign(C,{store:p,system:h,state:m})}catch{return C}}function CJ(e,t,n={}){const{window:o=Wr,initialValue:r="",observe:i=!1}=n,s=H(r),a=D(()=>{var c;return Ms(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const u=To(e),d=To(a);if(d&&o){const f=(c=o.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();s.value=f||r}}return i&&hJ(a,l,{attributeFilter:["style","class"],window:o}),dt([a,()=>To(e)],l,{immediate:!0}),dt(s,c=>{var u;(u=a.value)!=null&&u.style&&a.value.style.setProperty(To(e),c)}),s}function ik(e={}){const{valueDark:t="dark",valueLight:n="",window:o=Wr}=e,r=xJ({...e,onChanged:(a,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",l,a):l(a)},modes:{dark:t,light:n}}),i=D(()=>r.system?r.system.value:rk({window:o}).value?"dark":"light");return D({get(){return r.value==="dark"},set(a){const l=a?"dark":"light";i.value===l?r.value="auto":r.value=l}})}const x1=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function wJ(e,t={}){const{document:n=dJ,autoExit:o=!1}=t,r=D(()=>{var b;return(b=Ms(e))!=null?b:n==null?void 0:n.querySelector("html")}),i=H(!1),s=D(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),a=D(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),l=D(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||r.value&&b in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),u=Bm(()=>r.value&&n&&s.value!==void 0&&a.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const b=r.value;if((b==null?void 0:b[l.value])!=null)return!!b[l.value]}}return!1};async function h(){if(!(!u.value||!i.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const b=r.value;(b==null?void 0:b[a.value])!=null&&await b[a.value]()}i.value=!1}}async function p(){if(!u.value||i.value)return;f()&&await h();const b=r.value;s.value&&(b==null?void 0:b[s.value])!=null&&(await b[s.value](),i.value=!0)}async function m(){await(i.value?h():p())}const g=()=>{const b=f();(!b||b&&d())&&(i.value=b)};return Bc(n,x1,g,!1),Bc(()=>Ms(r),x1,g,!1),o&&ju(h),{isSupported:u,isFullscreen:i,enter:p,exit:h,toggle:m}}const An=lu("app",{state(){var e,t,n,o,r,i,s;return{collapsed:window.innerWidth<768,isDark:ik(),title:(e=window.settings)==null?void 0:e.title,assets_path:(t=window.settings)==null?void 0:t.assets_path,theme:(n=window.settings)==null?void 0:n.theme,version:(o=window.settings)==null?void 0:o.version,background_url:(r=window.settings)==null?void 0:r.background_url,description:(i=window.settings)==null?void 0:i.description,logo:(s=window.settings)==null?void 0:s.logo,lang:yu().value||"zh-CN",appConfig:{}}},actions:{async getConfig(){const{data:e}=await zJ();e&&(this.appConfig=e)},switchCollapsed(){this.collapsed=!this.collapsed},setCollapsed(e){this.collapsed=e},setDark(e){this.isDark=e},toggleDark(){this.isDark=!this.isDark},async switchLang(e){GC(e),location.reload()}}});function _J(e){let t=null;class n{removeMessage(r=t,i=2e3){setTimeout(()=>{r&&(r.destroy(),r=null)},i)}showMessage(r,i,s={}){if(t&&t.type==="loading")t.type=r,t.content=i,r!=="loading"&&this.removeMessage(t,s.duration);else{const a=e[r](i,s);r==="loading"&&(t=a)}}loading(r){this.showMessage("loading",r,{duration:0})}success(r,i={}){this.showMessage("success",r,i)}error(r,i={}){this.showMessage("error",r,i)}info(r,i={}){this.showMessage("info",r,i)}warning(r,i={}){this.showMessage("warning",r,i)}}return new n}function SJ(e){return e.confirm=function(t={}){const n=!XC(t.title);return new Promise(o=>{e[t.type||"warning"]({showIcon:n,positiveText:vn.global.t("确定"),negativeText:vn.global.t("取消"),onPositiveClick:()=>{t.confirm&&t.confirm(),o(!0)},onNegativeClick:()=>{t.cancel&&t.cancel(),o(!1)},onMaskClick:()=>{t.cancel&&t.cancel(),o(!1)},...t})})},e}function kJ(){const e=An(),t=D(()=>({theme:e.isDark?ZS:void 0,themeOverrides:Nh})),{message:n,dialog:o,notification:r,loadingBar:i}=AK(["message","dialog","notification","loadingBar"],{configProviderProps:t});window.$loadingBar=i,window.$notification=r,window.$message=_J(n),window.$dialog=SJ(o)}const PJ="access_token",TJ=6*60*60;function cf(e){al.set(PJ,e,TJ)}function RJ(e){if(e.method==="get"&&(e.params={...e.params,t:new Date().getTime()}),pE(e))return e;const t=mC();return t.value?(e.headers.Authorization=e.headers.Authorization||t.value,e):(_p(),Promise.reject({code:"-1",message:"未登录"}))}function EJ(e){return Promise.reject(e)}function $J(e){return Promise.resolve((e==null?void 0:e.data)||{code:-1,message:"未知错误"})}function AJ(e){var i;const t=((i=e.response)==null?void 0:i.data)||{code:-1,message:"未知错误"};let n=t.message;const{code:o,errors:r}=t;switch(o){case 401:n=n||"登录已过期";break;case 403:n=n||"没有权限";break;case 404:n=n||"资源或接口不存在";break;default:n=n||"未知异常"}return window.$message.error(n),Promise.resolve({code:o,message:n,errors:r})}function IJ(e={}){const t={headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Language":yu().value||"zh-CN"},timeout:12e3},n=fE.create({...t,...e});return n.interceptors.request.use(RJ,EJ),n.interceptors.response.use($J,AJ),n}const kt=IJ({baseURL:MJ()});function MJ(){let e=OJ(window.routerBase||"/")+"api/v1";return/^https?:\/\//.test(e)||(e=window.location.origin+e),e}function OJ(e){return e.endsWith("/")?e:"/"+e}function zJ(){return kt.get("/user/comm/config")}function DJ(){return kt.get("/user/info")}function LJ(){return kt.get("/user/getStat")}function FJ(){return kt.get("/user/getSubscribe")}function BJ(){return kt.get("/user/notice/fetch")}function NJ(){return kt.get("/user/plan/fetch")}function sk(){return kt.get("/user/server/fetch")}function Nm(){return kt.get("/user/order/fetch")}function HJ(e){return kt.get("/user/order/detail?trade_no="+e)}function Vu(e){return kt.post("/user/order/cancel",{trade_no:e})}function jJ(e){return kt.get("/user/order/check?trade_no="+e)}function VJ(){return kt.get("/user/invite/fetch")}function WJ(e=1,t=10){return kt.get(`/user/invite/details?current=${e}&page_size=${t}`)}function UJ(){return kt.get("/user/invite/save")}function qJ(e){return kt.post("/user/transfer",{transfer_amount:e})}function KJ(e){return kt.post("/user/ticket/withdraw",e)}function C1(e){return kt.post("/user/update",e)}function GJ(e,t){return kt.post("/user/changePassword",{old_password:e,new_password:t})}function YJ(){return kt.get("/user/resetSecurity")}function XJ(){return kt.get("/user/stat/getTrafficLog")}function ZJ(){return kt.get("/user/order/getPaymentMethod")}function ak(e,t,n){return kt.post("/user/order/save",{plan_id:e,period:t,coupon_code:n})}function JJ(e,t){return kt.post("/user/order/checkout",{trade_no:e,method:t})}function QJ(e){return kt.get("/user/plan/fetch?id="+e)}function eQ(e,t,n){return kt.post("/user/coupon/check",{code:e,plan_id:t,period:n})}function tQ(){return kt.get("/user/ticket/fetch")}function nQ(e,t,n){return kt.post("/user/ticket/save",{subject:e,level:t,message:n})}function oQ(e){return kt.post("/user/ticket/close",{id:e})}function rQ(e){return kt.get("/user/ticket/fetch?id="+e)}function iQ(e,t){return kt.post("/user/ticket/reply",{id:e,message:t})}function sQ(e="",t="zh-CN"){return kt.get(`/user/knowledge/fetch?keyword=${e}&language=${t}`)}function aQ(e,t="zh-CN"){return kt.get(`/user/knowledge/fetch?id=${e}&language=${t}`)}function lQ(){return kt.get("user/telegram/getBotInfo")}const es=lu("user",{state:()=>({userInfo:{}}),getters:{userUUID(){var e;return(e=this.userInfo)==null?void 0:e.uuid},email(){var e;return(e=this.userInfo)==null?void 0:e.email},avatar(){return this.userInfo.avatar_url??""},role(){return[]},remind_expire(){return this.userInfo.remind_expire},remind_traffic(){return this.userInfo.remind_traffic},balance(){return this.userInfo.balance},plan_id(){return this.userInfo.plan_id},expired_at(){return this.userInfo.expired_at},plan(){return this.userInfo.plan},subscribe(){return this.userInfo.subscribe}},actions:{async getUserInfo(){try{const e=await DJ(),{data:t}=e;return t?(this.userInfo=t,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async getUserSubscribe(){try{const e=await FJ(),{data:t}=e;return t?(this.userInfo.subscribe=t,this.userInfo.plan=t.plan,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async logout(){gC(),this.userInfo={},_p()},setUserInfo(e){this.userInfo={...this.userInfo,...e}}}});function cQ(e,t){var o,r;if(!((o=e.meta)!=null&&o.requireAuth))return!0;const n=((r=e.meta)==null?void 0:r.role)||[];return!t.length||!n.length?!1:t.some(i=>n.includes(i))}function lk(e,t){const n=[];return e.forEach(o=>{if(cQ(o,t)){const r={...o,children:[]};o.children&&o.children.length?r.children=lk(o.children,t):Reflect.deleteProperty(r,"children"),n.push(r)}}),n}const ck=lu("permission",{state(){return{accessRoutes:[]}},getters:{routes(){return zx.concat(JSON.parse(JSON.stringify(this.accessRoutes)))},menus(){return this.routes.filter(e=>{var t;return e.name&&!((t=e.meta)!=null&&t.isHidden)})}},actions:{generateRoutes(e){const t=lk(Dx,e);return this.accessRoutes=t,t}}}),uQ=_c.get("activeTag"),dQ=_c.get("tags"),fQ=["/404","/login"],hQ=lu({id:"tag",state:()=>{const e=H(dQ.value),t=H(uQ.value),n=H(!1);return{tags:e,activeTag:t,reloading:n}},getters:{activeIndex:e=>()=>e.tags.findIndex(t=>t.path===e.activeTag)},actions:{setActiveTag(e){this.activeTag=e,_c.set("activeTag",e)},setTags(e){this.tags=e,_c.set("tags",e)},addTag(e={}){if(fQ.includes(e.path))return;let t=this.tags.find(n=>n.path===e.path);t?t=e:this.setTags([...this.tags,e]),this.setActiveTag(e.path)},async reloadTag(e,t){let n=this.tags.find(o=>o.path===e);n?t&&(n.keepAlive=!1):(n={path:e,keepAlive:!1},this.tags.push(n)),window.$loadingBar.start(),this.reloading=!0,await Vt(),this.reloading=!1,n.keepAlive=t,setTimeout(()=>{document.documentElement.scrollTo({left:0,top:0}),window.$loadingBar.finish()},100)},removeTag(e){this.setTags(this.tags.filter(t=>t.path!==e)),e===this.activeTag&&Xt.push(this.tags[this.tags.length-1].path)},removeOther(e){e||(e=this.activeTag),e||this.setTags(this.tags.filter(t=>t.path===e)),e!==this.activeTag&&Xt.push(this.tags[this.tags.length-1].path)},removeLeft(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r>=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Xt.push(n[n.length-1].path)},removeRight(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r<=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Xt.push(n[n.length-1].path)},resetTags(){this.setTags([]),this.setActiveTag("")}}});function pQ(e){e.use(E5())}const mQ=["/login","/register","/forgetpassword"];function gQ(e){const t=es(),n=ck();e.beforeEach(async(o,r,i)=>{var a;mC().value?o.path==="/login"?i({path:((a=o.query.redirect)==null?void 0:a.toString())??"/dashboard"}):t.userUUID?i():(await Promise.all([An().getConfig(),t.getUserInfo().catch(c=>{gC(),_p(),window.$message.error(c.message||"获取用户信息失败!")})]),n.generateRoutes(t.role).forEach(c=>{c.name&&!e.hasRoute(c.name)&&e.addRoute(c)}),e.addRoute(k5),i({...o,replace:!0})):mQ.includes(o.path)?i():i({path:"/login"})})}function vQ(e){P5(e),gQ(e),T5(e)}const Xt=GT({history:wT("/"),routes:zx,scrollBehavior:()=>({left:0,top:0})});function bQ(e){e.use(Xt),vQ(Xt)}const yQ=be({__name:"AppProvider",setup(e){const t=An(),n={"zh-CN":[NI,o0],"en-US":[Gw,Yw],"fa-IR":[II,vD],"ko-KR":[DI,CD],"vi-VN":[FI,_D],"zh-TW":[jI,o0],"ja-JP":[OI,yD]};function o(){const r=Nh.common;for(const i in r)CJ(`--${SN(i)}`,document.documentElement).value=r[i]||"",i==="primaryColor"&&window.localStorage.setItem("__THEME_COLOR__",r[i]||"")}return o(),(r,i)=>{const s=T2;return ge(),Ke(s,{"wh-full":"",locale:n[_e(t).lang][0],"date-locale":n[_e(t).lang][1],theme:_e(t).isDark?_e(ZS):void 0,"theme-overrides":_e(Nh)},{default:pe(()=>[eu(r.$slots,"default")]),_:3},8,["locale","date-locale","theme","theme-overrides"])}}}),xQ=be({__name:"App",setup(e){const t=es();return Jt(()=>{const{balance:o,plan:r,expired_at:i,subscribe:s,email:a}=t;if(window.$crisp&&a){const l=[["Balance",(o/100).toString()],...r!=null&&r.name?[["Plan",r.name]]:[],["ExpireTime",Uo(i)],["UsedTraffic",Ra(((s==null?void 0:s.u)||0)+((s==null?void 0:s.d)||0))],["AllTraffic",Ra(s==null?void 0:s.transfer_enable)]];window.$crisp.push(["set","user:email",a]),window.$crisp.push(["set","session:data",[l]])}}),(o,r)=>{const i=Jc("router-view");return ge(),Ke(yQ,null,{default:pe(()=>[ie(i,null,{default:pe(({Component:s})=>[(ge(),Ke(Qc(s)))]),_:1})]),_:1})}}}),Wu=wx(xQ);pQ(Wu);kJ();bQ(Wu);TA(Wu);Wu.mount("#app");const CQ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},wQ=q("path",{fill:"currentColor",d:"M6.225 4.811a1 1 0 0 0-1.414 1.414L10.586 12L4.81 17.775a1 1 0 1 0 1.414 1.414L12 13.414l5.775 5.775a1 1 0 0 0 1.414-1.414L13.414 12l5.775-5.775a1 1 0 0 0-1.414-1.414L12 10.586z"},null,-1),_Q=[wQ];function SQ(e,t){return ge(),Oe("svg",CQ,[..._Q])}const uk={name:"gg-close",render:SQ},kQ={"h-60":"","f-c-c":""},PQ=["src"],TQ=be({__name:"SideLogo",setup(e){const t=An();return(n,o)=>{const r=uk,i=Lt;return ge(),Oe("div",kQ,[_e(t).logo?(ge(),Oe("img",{key:0,src:_e(t).logo,height:"30"},null,8,PQ)):gt("",!0),hn(q("h2",{"ml-10":"","max-w-140":"","flex-shrink-0":"","text-16":"","font-bold":"","color-primary":""},ue(_e(t).title),513),[[Nn,!_e(t).collapsed]]),ie(i,{onClick:[o[0]||(o[0]=BP(()=>{},["stop"])),_e(t).switchCollapsed],class:"absolute right-15 h-auto p-0 md:hidden",tertiary:"",size:"medium"},{icon:pe(()=>[ie(r,{class:"cursor-pointer opacity-85"})]),_:1},8,["onClick"])])}}}),RQ=be({__name:"SideMenu",setup(e){const t=An(),n=p=>vn.global.t(p);function o(){window.innerWidth<=950&&(t.collapsed=!0)}const r=Ox(),i=Ds(),s=ck(),a=D(()=>{var p;return((p=i.meta)==null?void 0:p.activeMenu)||i.name}),l=D(()=>s.menus.reduce((g,b)=>{var C,S,_,x;const w=d(b);if((S=(C=w.meta)==null?void 0:C.group)!=null&&S.key){const y=w.meta.group.key,T=g.findIndex(k=>k.key===y);if(T!==-1)(_=g[T].children)==null||_.push(w),g[T].children=(x=g[T].children)==null?void 0:x.sort((k,P)=>k.order-P.order);else{const k={type:"group",label:n(w.meta.group.label||""),key:y,children:[w]};g.push(k)}}else g.push(w);return g.sort((y,T)=>y.order-T.order)},[]).sort((g,b)=>g.type==="group"&&b.type!=="group"?1:g.type!=="group"&&b.type==="group"?-1:g.order-b.order));function c(p,m){return tb(m)?m:"/"+[p,m].filter(g=>!!g&&g!=="/").map(g=>g.replace(/(^\/)|(\/$)/g,"")).join("/")}function u(p,m){var b;const g=((b=p.children)==null?void 0:b.filter(w=>{var C;return w.name&&!((C=w.meta)!=null&&C.isHidden)}))||[];return g.length===1?d(g[0],m):g.length>1?{children:g.map(w=>d(w,m)).sort((w,C)=>w.order-C.order)}:null}function d(p,m=""){const{title:g,order:b}=p.meta||{title:"",order:0},{name:w,path:C}=p,S=g||w||"",_=w||"",x=f(p.meta),y=b||0,T=p.meta;let k={label:n(S),key:_,path:c(m,C),icon:x!==null?x:void 0,meta:T,order:y};const P=u(p,k.path);return P&&(k={...k,...P}),k}function f(p){return p!=null&&p.customIcon?JS(p.customIcon,{size:18}):p!=null&&p.icon?ol(p.icon,{size:18}):null}function h(p,m){tb(m.path)?window.open(m.path):r.push(m.path)}return(p,m)=>{const g=GX;return ge(),Ke(g,{ref:"menu",class:"side-menu",accordion:"","root-indent":18,indent:0,"collapsed-icon-size":22,"collapsed-width":60,options:l.value,value:a.value,"onUpdate:value":h,onClick:m[0]||(m[0]=b=>o())},null,8,["options","value"])}}}),w1=be({__name:"index",setup(e){return(t,n)=>(ge(),Oe(st,null,[ie(TQ),ie(RQ)],64))}}),EQ=be({__name:"AppMain",setup(e){const t=hQ();return(n,o)=>{const r=Jc("router-view");return ge(),Ke(r,null,{default:pe(({Component:i,route:s})=>[_e(t).reloading?gt("",!0):(ge(),Ke(Qc(i),{key:s.fullPath}))]),_:1})}}}),$Q=be({__name:"BreadCrumb",setup(e){const t=Ds();function n(o){return o!=null&&o.customIcon?JS(o.customIcon,{size:18}):o!=null&&o.icon?ol(o.icon,{size:18}):null}return(o,r)=>{const i=hV,s=uV;return ge(),Ke(s,null,{default:pe(()=>[(ge(!0),Oe(st,null,Wn(_e(t).matched.filter(a=>{var l;return!!((l=a.meta)!=null&&l.title)}),a=>(ge(),Ke(i,{key:a.path},{default:pe(()=>[(ge(),Ke(Qc(n(a.meta)))),it(" "+ue(o.$t(a.meta.title)),1)]),_:2},1024))),128))]),_:1})}}}),AQ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},IQ=q("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M3 21h18v-2H3m0-7l4 4V8m4 9h10v-2H11z"},null,-1),MQ=[IQ];function OQ(e,t){return ge(),Oe("svg",AQ,[...MQ])}const zQ={name:"mdi-format-indent-decrease",render:OQ},DQ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},LQ=q("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M11 17h10v-2H11M3 8v8l4-4m-4 9h18v-2H3z"},null,-1),FQ=[LQ];function BQ(e,t){return ge(),Oe("svg",DQ,[...FQ])}const NQ={name:"mdi-format-indent-increase",render:BQ},HQ=be({__name:"MenuCollapse",setup(e){const t=An();return(n,o)=>{const r=NQ,i=zQ,s=vr;return ge(),Ke(s,{size:"20","cursor-pointer":"",onClick:_e(t).switchCollapsed},{default:pe(()=>[_e(t).collapsed?(ge(),Ke(r,{key:0})):(ge(),Ke(i,{key:1}))]),_:1},8,["onClick"])}}}),jQ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},VQ=q("path",{fill:"currentColor",d:"m290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6l43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6L423.7 654c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),WQ=[VQ];function UQ(e,t){return ge(),Oe("svg",jQ,[...WQ])}const qQ={name:"ant-design-fullscreen-outlined",render:UQ},KQ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},GQ=q("path",{fill:"currentColor",d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8m221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6L877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9M744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),YQ=[GQ];function XQ(e,t){return ge(),Oe("svg",KQ,[...YQ])}const ZQ={name:"ant-design-fullscreen-exit-outlined",render:XQ},JQ=be({__name:"FullScreen",setup(e){const{isFullscreen:t,toggle:n}=wJ();return(o,r)=>{const i=ZQ,s=qQ,a=vr;return ge(),Ke(a,{mr20:"",size:"18",style:{cursor:"pointer"},onClick:_e(n)},{default:pe(()=>[_e(t)?(ge(),Ke(i,{key:0})):(ge(),Ke(s,{key:1}))]),_:1},8,["onClick"])}}}),QQ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},eee=q("path",{fill:"currentColor",d:"M15.88 9.29L12 13.17L8.12 9.29a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0"},null,-1),tee=[eee];function nee(e,t){return ge(),Oe("svg",QQ,[...tee])}const oee={name:"ic-round-expand-more",render:nee},ree={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},iee=q("path",{fill:"none",d:"M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0M20.5 12.5A4.5 4.5 0 1 1 16 8a4.5 4.5 0 0 1 4.5 4.5"},null,-1),see=q("path",{fill:"currentColor",d:"M26.749 24.93A13.99 13.99 0 1 0 2 16a13.9 13.9 0 0 0 3.251 8.93l-.02.017c.07.084.15.156.222.239c.09.103.187.2.28.3q.418.457.87.87q.14.124.28.242q.48.415.99.782c.044.03.084.069.128.1v-.012a13.9 13.9 0 0 0 16 0v.012c.044-.031.083-.07.128-.1q.51-.368.99-.782q.14-.119.28-.242q.451-.413.87-.87c.093-.1.189-.197.28-.3c.071-.083.152-.155.222-.24ZM16 8a4.5 4.5 0 1 1-4.5 4.5A4.5 4.5 0 0 1 16 8M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0"},null,-1),aee=[iee,see];function lee(e,t){return ge(),Oe("svg",ree,[...aee])}const cee={name:"carbon-user-avatar-filled",render:lee},uee={class:"hidden md:block"},dee=be({__name:"UserAvatar",setup(e){const t=es(),n=i=>vn.global.t(i),o=[{label:n("个人中心"),key:"profile",icon:ol("mdi-account-outline",{size:14})},{label:n("登出"),key:"logout",icon:ol("mdi:exit-to-app",{size:14})}];function r(i){i==="logout"&&window.$dialog.confirm({title:n("提示"),type:"info",content:n("确认退出?"),confirm(){t.logout(),window.$message.success(n("已退出登录"))}}),i==="profile"&&Xt.push("/profile")}return(i,s)=>{const a=cee,l=oee,c=Lt,u=Em;return ge(),Ke(u,{options:o,onSelect:r},{default:pe(()=>[ie(c,{text:"",flex:"","cursor-pointer":"","items-center":""},{default:pe(()=>[ie(a,{class:"mr-0 h-20 w-20 rounded-full md:mr10 md:h-30 md:w-30"}),ie(l,{class:"h-20 w-20 md:hidden"}),q("span",uee,ue(_e(t).email),1)]),_:1})]),_:1})}}}),fee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},hee=q("path",{fill:"currentColor",d:"M11.4 18.4H.9a.9.9 0 0 1-.9-.9V7.3a.9.9 0 0 1 .9-.9h10.5zm-4.525-2.72c.058.187.229.32.431.32h.854a.45.45 0 0 0 .425-.597l.001.003l-2.15-6.34a.45.45 0 0 0-.426-.306H4.791a.45.45 0 0 0-.425.302l-.001.003l-2.154 6.34a.45.45 0 0 0 .426.596h.856a.45.45 0 0 0 .431-.323l.001-.003l.342-1.193h2.258l.351 1.195zM5.41 10.414s.16.79.294 1.245l.406 1.408H4.68l.415-1.408c.131-.455.294-1.245.294-1.245zM23.1 18.4H12.6v-12h10.5a.9.9 0 0 1 .9.9v10.2a.9.9 0 0 1-.9.9m-1.35-8.55h-2.4v-.601a.45.45 0 0 0-.45-.45h-.601a.45.45 0 0 0-.45.45v.601h-2.4a.45.45 0 0 0-.45.45v.602c0 .248.201.45.45.45h4.281a5.9 5.9 0 0 1-1.126 1.621l.001-.001a7 7 0 0 1-.637-.764l-.014-.021a.45.45 0 0 0-.602-.129l.002-.001l-.273.16l-.24.146a.45.45 0 0 0-.139.642l-.001-.001c.253.359.511.674.791.969l-.004-.004c-.28.216-.599.438-.929.645l-.05.029a.45.45 0 0 0-.159.61l-.001-.002l.298.52a.45.45 0 0 0 .628.159l-.002.001c.507-.312.94-.619 1.353-.95l-.026.02c.387.313.82.62 1.272.901l.055.032a.45.45 0 0 0 .626-.158l.001-.002l.298-.52a.45.45 0 0 0-.153-.605l-.002-.001a12 12 0 0 1-1.004-.696l.027.02a6.7 6.7 0 0 0 1.586-2.572l.014-.047h.43a.45.45 0 0 0 .45-.45v-.602a.45.45 0 0 0-.45-.447h-.001z"},null,-1),pee=[hee];function mee(e,t){return ge(),Oe("svg",fee,[...pee])}const gee={name:"fontisto-language",render:mee},vee=be({__name:"SwitchLang",setup(e){const t=An();return(n,o)=>{const r=gee,i=Lt,s=wm;return ge(),Ke(s,{value:_e(t).lang,"onUpdate:value":o[0]||(o[0]=a=>_e(t).lang=a),options:Object.entries(_e(ih)).map(([a,l])=>({label:l,value:a})),trigger:"click","on-update:value":_e(t).switchLang},{default:pe(()=>[ie(i,{text:"","icon-placement":"left",class:"mr-20"},{icon:pe(()=>[ie(r)]),_:1})]),_:1},8,["value","options","on-update:value"])}}}),bee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},yee=q("path",{fill:"currentColor",d:"m3.55 19.09l1.41 1.41l1.8-1.79l-1.42-1.42M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6c0-3.32-2.69-6-6-6m8 7h3v-2h-3m-2.76 7.71l1.8 1.79l1.41-1.41l-1.79-1.8M20.45 5l-1.41-1.4l-1.8 1.79l1.42 1.42M13 1h-2v3h2M6.76 5.39L4.96 3.6L3.55 5l1.79 1.81zM1 13h3v-2H1m12 9h-2v3h2"},null,-1),xee=[yee];function Cee(e,t){return ge(),Oe("svg",bee,[...xee])}const wee={name:"mdi-white-balance-sunny",render:Cee},_ee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},See=q("path",{fill:"currentColor",d:"M2 12a10 10 0 0 0 13 9.54a10 10 0 0 1 0-19.08A10 10 0 0 0 2 12"},null,-1),kee=[See];function Pee(e,t){return ge(),Oe("svg",_ee,[...kee])}const Tee={name:"mdi-moon-waning-crescent",render:Pee},Ree=be({__name:"ThemeMode",setup(e){const t=An(),n=ik(),o=()=>{t.toggleDark(),uJ(n)()};return(r,i)=>{const s=Tee,a=wee,l=vr;return ge(),Ke(l,{"mr-20":"","cursor-pointer":"",size:"18",onClick:o},{default:pe(()=>[_e(n)?(ge(),Ke(s,{key:0})):(ge(),Ke(a,{key:1}))]),_:1})}}}),Eee={flex:"","items-center":""},$ee={"ml-auto":"",flex:"","items-center":""},Aee=be({__name:"index",setup(e){return(t,n)=>(ge(),Oe(st,null,[q("div",Eee,[ie(HQ),ie($Q)]),q("div",$ee,[ie(Ree),ie(vee),ie(JQ),ie(dee)])],64))}}),Iee={"flex-col":"","flex-1":"","overflow-hidden":""},Mee={"flex-1":"","overflow-hidden":"","bg-hex-f5f6fb":"","dark:bg-hex-101014":""},Oee=be({__name:"index",setup(e){const t=An();function n(s){t.collapsed=s}const o=D({get:()=>r.value&&!t.collapsed,set:s=>t.collapsed=!s}),r=H(!1),i=()=>{document.body.clientWidth<=950?(r.value=!0,t.collapsed=!0):(t.collapsed=!1,r.value=!1)};return Wt(()=>{window.addEventListener("resize",i),i()}),(s,a)=>{const l=$X,c=$S,u=kX;return ge(),Ke(u,{"has-sider":"","wh-full":""},{default:pe(()=>[hn(ie(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:_e(t).collapsed,"on-update:collapsed":n},{default:pe(()=>[ie(w1)]),_:1},8,["collapsed"]),[[Nn,!o.value]]),ie(c,{show:o.value,"onUpdate:show":a[0]||(a[0]=d=>o.value=d),width:220,placement:"left"},{default:pe(()=>[ie(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:_e(t).collapsed,"on-update:collapsed":n},{default:pe(()=>[ie(w1)]),_:1},8,["collapsed"])]),_:1},8,["show"]),q("article",Iee,[q("header",{class:"flex items-center bg-white px-15",dark:"bg-dark border-0",style:Li(`height: ${_e(eJ).height}px`)},[ie(Aee)],4),q("section",Mee,[ie(EQ)])])]),_:1})}}}),br=Object.freeze(Object.defineProperty({__proto__:null,default:Oee},Symbol.toStringTag,{value:"Module"})),Uu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},zee={},Dee={"f-c-c":"","flex-col":"","text-14":"",color:"#6a6a6a"},Lee=q("p",null,[it(" Copyright © 2022-present "),q("a",{href:"https://github.com/zclzone",target:"__blank",hover:"decoration-underline color-primary"}," Ronnie Zhang ")],-1),Fee=q("p",null,null,-1),Bee=[Lee,Fee];function Nee(e,t){return ge(),Oe("footer",Dee,Bee)}const Hee=Uu(zee,[["render",Nee]]),jee={class:"cus-scroll-y wh-full flex-col bg-[#f5f6fb] p-5 dark:bg-hex-121212 md:p-15"},wo=be({__name:"AppPage",props:{showFooter:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=Hee,r=eV;return ge(),Ke(pn,{name:"fade-slide",mode:"out-in",appear:""},{default:pe(()=>[q("section",jee,[eu(t.$slots,"default"),e.showFooter?(ge(),Ke(o,{key:0,"mt-15":""})):gt("",!0),ie(r,{bottom:20,class:"z-99999"})])]),_:3})}}}),Vee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Wee=q("path",{fill:"currentColor",d:"M20 2H4c-.53 0-1.04.21-1.41.59C2.21 2.96 2 3.47 2 4v12c0 .53.21 1.04.59 1.41c.37.38.88.59 1.41.59h4l4 4l4-4h4c.53 0 1.04-.21 1.41-.59S22 16.53 22 16V4c0-.53-.21-1.04-.59-1.41C21.04 2.21 20.53 2 20 2M4 16V4h16v12h-4.83L12 19.17L8.83 16m1.22-9.96c.54-.36 1.25-.54 2.14-.54c.94 0 1.69.21 2.23.62q.81.63.81 1.68c0 .44-.15.83-.44 1.2c-.29.36-.67.64-1.13.85c-.26.15-.43.3-.52.47c-.09.18-.14.4-.14.68h-2c0-.5.1-.84.29-1.08c.21-.24.55-.52 1.07-.84c.26-.14.47-.32.64-.54c.14-.21.22-.46.22-.74c0-.3-.09-.52-.27-.69c-.18-.18-.45-.26-.76-.26c-.27 0-.49.07-.69.21c-.16.14-.26.35-.26.63H9.27c-.05-.69.23-1.29.78-1.65M11 14v-2h2v2Z"},null,-1),Uee=[Wee];function qee(e,t){return ge(),Oe("svg",Vee,[...Uee])}const Kee={name:"mdi-tooltip-question-outline",render:qee},Gee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Yee=q("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7z"},null,-1),Xee=[Yee];function Zee(e,t){return ge(),Oe("svg",Gee,[...Xee])}const Jee={name:"mdi-clock-outline",render:Zee},Qee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ete=q("path",{fill:"currentColor",d:"M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27zm0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93z"},null,-1),tte=[ete];function nte(e,t){return ge(),Oe("svg",Qee,[...tte])}const ote={name:"mdi-rss",render:nte},rte={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ite=q("path",{fill:"currentColor",d:"M12 21.5c-1.35-.85-3.8-1.5-5.5-1.5c-1.65 0-3.35.3-4.75 1.05c-.1.05-.15.05-.25.05c-.25 0-.5-.25-.5-.5V6c.6-.45 1.25-.75 2-1c1.11-.35 2.33-.5 3.5-.5c1.95 0 4.05.4 5.5 1.5c1.45-1.1 3.55-1.5 5.5-1.5c1.17 0 2.39.15 3.5.5c.75.25 1.4.55 2 1v14.6c0 .25-.25.5-.5.5c-.1 0-.15 0-.25-.05c-1.4-.75-3.1-1.05-4.75-1.05c-1.7 0-4.15.65-5.5 1.5M12 8v11.5c1.35-.85 3.8-1.5 5.5-1.5c1.2 0 2.4.15 3.5.5V7c-1.1-.35-2.3-.5-3.5-.5c-1.7 0-4.15.65-5.5 1.5m1 3.5c1.11-.68 2.6-1 4.5-1c.91 0 1.76.09 2.5.28V9.23c-.87-.15-1.71-.23-2.5-.23q-2.655 0-4.5.84zm4.5.17c-1.71 0-3.21.26-4.5.79v1.69c1.11-.65 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24v-1.5c-.87-.16-1.71-.23-2.5-.23m2.5 2.9c-.87-.16-1.71-.24-2.5-.24c-1.83 0-3.33.27-4.5.8v1.69c1.11-.66 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24z"},null,-1),ste=[ite];function ate(e,t){return ge(),Oe("svg",rte,[...ste])}const lte={name:"mdi-book-open-variant",render:ate},cte={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ute=q("g",{fill:"none"},[q("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),q("path",{fill:"currentColor",d:"M10.5 20a1.5 1.5 0 0 0 3 0v-6.5H20a1.5 1.5 0 0 0 0-3h-6.5V4a1.5 1.5 0 0 0-3 0v6.5H4a1.5 1.5 0 0 0 0 3h6.5z"})],-1),dte=[ute];function fte(e,t){return ge(),Oe("svg",cte,[...dte])}const hte={name:"mingcute-add-fill",render:fte},pte={class:"inline-block",viewBox:"0 0 1200 1200",width:"1em",height:"1em"},mte=q("path",{fill:"currentColor",d:"M0 0v545.312h545.312V0zm654.688 0v545.312H1200V0zM108.594 108.594h328.125v328.125H108.594zm654.687 0h328.125v328.125H763.281zM217.969 219.531v108.594h110.156V219.531zm653.906 0v108.594h108.594V219.531zM0 654.688V1200h545.312V654.688zm654.688 0V1200h108.595V873.438h108.594v108.595H1200V654.688h-108.594v108.595H980.469V654.688zM108.594 763.281h328.125v328.125H108.594zm109.375 108.594v110.156h110.156V871.875zm653.906 219.531V1200h108.594v-108.594zm219.531 0V1200H1200v-108.594z"},null,-1),gte=[mte];function vte(e,t){return ge(),Oe("svg",pte,[...gte])}const bte={name:"el-qrcode",render:vte},yte={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},xte=q("path",{fill:"currentColor",d:"M5.503 4.627L5.5 6.75v10.504a3.25 3.25 0 0 0 3.25 3.25h8.616a2.25 2.25 0 0 1-2.122 1.5H8.75A4.75 4.75 0 0 1 4 17.254V6.75c0-.98.627-1.815 1.503-2.123M17.75 2A2.25 2.25 0 0 1 20 4.25v13a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-13A2.25 2.25 0 0 1 8.75 2z"},null,-1),Cte=[xte];function wte(e,t){return ge(),Oe("svg",yte,[...Cte])}const _te={name:"fluent-copy24-filled",render:wte},Ste="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAON0lEQVR4nOydX2xT5f/Hn7M11A1lAqNmTQ1CS9QiZqbTSMwqetF6IwiJBRPwhkBi5EKyGLNyxcUk7sLtxkXjBRrNUHGikZiVSIKtMYGxaIo0TlcHsesCbVbJBqNs7X7xd/Y9bF3HnvY8/87zfF4XJmDPed7n87z5PKfnc55PbbOzswhYxIULF5555hneKixMDW8BgvLVV1/xlmBtNMhYiykWi+vXr//nn394C7EwkLHK8Msvv6RSKd4qrA0YqwxffvklbwmWB5bCUmZmZlwu17Vr1yAyZoCMVUo0Gr127RpvFZYHjFVKb28vbwkyAEvhAu7cudPU1DQ+Po4QgsiYATLWAs6cOaO7CjAJGGsB8FyUFLAU3uX27dsOh2NiYkL/I0TGDJCx7vLDDz8YrgJMAsa6C6yDBIGlcI7JyUmHwzE1NWX8DUTGDJCx5vj+++/nuwowCRhrjhMnTvCWIBWwFP5HLpdramrK5/Pz/xIiYwbIWP/x3XfflbgKMAkY6z+++OIL3hJkA4yFstns2bNnqzs2EomQliMJYCx08uTJmZmZ6o599913ScuRBDCWqeei0Wg0FosRlSMJqn8rTKfTLperbBBwIqNpWjAY7O/vp6POwqiesU6ePGnyn1YkErl48SI5RZKgurGI7Js4duwYCS1SofRSeOXKlY0bNy4VAcylUP/v77//7vV6KWi0KkpnLPProM7s7CwkrRKUzlhPPfXUb7/9ttT/xc9YCKHa2tqhoSG3201UoIVRN2P9+eef93BVpRQKhc7OTlJnkwB1jUX8dYZPP/0UNuYbqGss4u+L5vP5999/n+w5rYui91iXLl168skn7/2Ziu6xdOrr669evdrY2GhaoOVRNGNRep3h1q1bXV1dNM5sORTNWJs2bRoeHr73Z6rIWAihhoaGK1euPPjgg+YEWh4VM9aFCxeWdVXV3Lhxo6enh9LJLYSKxqK9zau7u/vmzZtUhxAf5YxVLBZp91XLZDIff/wx1SHER7l7rJ9//rm1tRXnk9XdY+k4nc6RkZEVK1ZULlASlMtYbNpAptPpTz75hMFAwqJWxjLaQOJ82EzGQgi53e4//vjDZrNVqFES1MpYLNtAJpNJlZvkqmUsxm0gjx07ViwWWY4oDgoZ686dO6dOnWI54uXLl7/99luWI4qDQsbi0gZS2f1hChmLS/urwcFBNTe1qvKtsKQNJA4mvxUa+P3+n376CX9cOVAlY3FsA6nmplZVjMW3DWRHRwfH0bmgxFK4uA0kDqSWQp2BgYGWlpaKBFgaJTKWCG0gVdsfpoSxRGgDeerUqUQiwVsFO+Q3Vi6XO3PmDG8Vym1qld9Y4rSBPHHiRDKZ5K2CEfIbS5w2kEptapX8W2E2m21qaqquYR/Zb4U6drt9eHjY5XJVocdaSJ6xzLSBpIE6m1olz1gvvPDCuXPnqjuWRsZSZ1OrzBkrnU4LWKRTZFOrzMYi1f6KOB988MG///7LWwVdZDaWsG8Gq7CpVdp7rHu3gcSB0j2Wzrp160ZGRlauXFnd4eIjbcYSdh3UkX5Tq7QZ695tIHGgmrGk39QqZ8Yi2waSEnJvapXTWCK8zoBDZ2enUM9vCSKnsazys+ESb2qV8B4Lpw0kDrTvsXQ2b94cj8dramT7Fy7b9Qj1OgMOsm5qlTBj4bSBxIFNxkII+Xw++X7mSZ6MVSwWv/nmm5aWFnptICkxODi4adOmI0eOXLp0ibcWcsxan+np6c8//3zz5s3sI0N2RISQ1+s9evTo0NAQ/bDRxdrGyufzH330EaVfsMERQGNcnebm5s7OzpGREfpRpIJVjTU5OdnV1eV0OulNLY4MeqPraJq2devW7u7u0dFR+kElifWMlcvlOjo61q1bR3tSccTQ1mCgadq2bdt6enoymQz9GBPASsbKZDLhcLihoYHNXOJIYqNkPjabLRgMHj9+PJfL0Q959VjDWKlU6vDhw/X19SynEEcYSz0l2O327du39/b2TkxM0J+BihHdWMlk8uDBg3a7nf3M4chjr2oxdXV1u3fv7uvrm5qaoj8huIhrrEQisXfv3traWl4ThiOSl7ayrFq1at++fadPn87n8/TnZ7nI8BZQhoGBgV27dhF5qG0GHKl8FS7F2rVr9+/ff/bs2enpafrTtURkeA1clmg0GgwGec/LHDiCeWtchoceeujQoUOxWKxQKNCfvYWRYTzeUvT39/v9ft4TsQAc2bw14uJyudra2s6fP09/Jv8XGWYjlaVQKPT19fl8Pt6RLwOOft4aK8bj8YTD4Xg8TntmuRmLUoGPIDhXwVtj9dAuSnIwFtUCH0FwroW3RgJQKkoyNRaDAh9BcK6It0ZiEC9KMjIWswIfQXCui7dG8pAqSlI3FuMCH0GwwicvJouSFI3FpcBHEKzwKUB1RUkqxuJY4CMIVvhUoqKiJGFjcS/wEQTnenlr5ANOUZKYsQQp8BEEjLUs9yhKEjCWUAU+goCx8FlclDRlLAELfAQBY1WBUZSUcMMqIALybFgFhAKMBVABjAVQAYwFUAGMBVABjAVQAYwFUAGMBVABjAVQAYwFUAGMBdDh/PnzbW1tKvyYbKWoXIRubW3t7+8384LCXPgKhUIsFjt06JDD4eB9UaKgprGCwWA0GjVjqQXGMpienv7xxx/379+/du1a3tfIGaWMpWnarl27BgYGzFuqvLEM8vn86dOn9+3bt2rVKt5XzQdFjFVbW7t3797Lly+TstRcZJb9xNTU1Ndffx0Kherq6ngHgSlY4bMydrv9wIEDw8PDJIy0KDL4H52YmOjt7d2+fbvVt99gghU+a1JfX//WW2+lUikTzlkuMlUcMz4+fvz48UAgYLPZeIeIIljhsxoNDQ3hcJhB62VT77xnMpmenp5t27bJtDnHACt81qGxsbGjo2N8fNzMjONDZvvX6Ohod3f31q1bZXIYVvisgNPp7OrqmpycJDLXmBDesPr333+/9957zc3NvINJAKzwiY3b7f7www9v375NdpaxIkPpvENDQ0ePHvV6vbxjWz1Y4RMVr9f72WefydzcNh6Pt7e3ezwe3qGuGKzwiYfP5+vr62PfzbY0MsxGslxREueieGtcgPkCH0FYt4q0UFES53J4a5yDVIGPIDyb2wpelMS5Cr4KiRf4CMK/z7uwRUkc8by0USrwEYS/sQxEK0riaGavimqBjyACGctAkKIkjlSWehgU+AgiorEM+BYlcRSyUcKswEcQoY1lwKUoiSOMtgbGBT6CWMNYBiyLkjh66I3OpcBHEIsZy4BBURJHBo1xORb4CGJVYxnQK0rijE52RO4FPoJY3lgGxIuSOIOSGkuQAh9BJOxB2tLSMjg4aP48OJEhcqvn8Xj++usv8+cRCgl3QofDYd4SKuPVV1/lLYE8EmasYrG4ZcuWRCJh8jzMMlY8Ht+yZYv58wiFhBmrpqamvb2dtwpcHn/8cflcJaexEEJ79uwR/xdcdXbv3s1bAhXkNJbNZnv77bd5q8Biz549vCVQQcJ7LJ18Pr9x48Z0Ol31GRjcYzU3N//6669mziAscmYs/fUS8ZPWa6+9xlsCLaTNWAihmzdvPvLII9lstrrDaWcsTdOSyeSGDRuqPoPISJuxEEIrV648fPgwbxVL8uyzz8rqKsmNhRB64403hP2d81AoxFsCRSQ31urVq998803eKsqgaZrcxpL5Hksnm82uX7/+1q1blR5I9R7r+eefP3fuXHXHWgLJM5b+EubBgwd5qyhF1ueiBvJnLIRQKpXyeDz5fL6io+hlLJvNNjY21tjYWMWxVkH+jKX/UPHrr7/OW8VdXnzxRbldpYqxEELvvPNObW0tbxVzSPxc1EAVY7ndbkGm026379ixg7cK6qhiLIRQe3u7CA0HA4HA6tWreaugjkLG8nq9O3fu5K1C2tcZSlDiW6HBxYsXn376acwP0/hWWFdXd/369fvvv7+io6yIQhlL32cRDAY5Cnj55ZdVcJVyxkIIHTlyhOPocpdx5qPWUqjj9/tjsdiyHyO+FD7wwAPXr1+/77778A+xLsplLI5Ja8eOHYq4SlFjBYNBn8/Hflzp64PzUdFYXDa1rlmzJhAIMB6UI4oa65VXXmH84wY7d+5csWIFyxH5oqix2G9qFaSgxAwVvxXqzMzMPPbYY8lkcqkPEPxW6HA4RkdH5f4VvhIUzViMN7WGQiGlXKV0xlp2UyvBjBWNRltbWysXaGHUzVjMNrW6XK7nnnuO9iiiobSxEEIHDhyg/TJnKBSqqVEuzspdcAkMNrUq9VzUQOl7LJ1cLrdhw4YbN26U/D2Reywp20DioHrGor2pVco2kDhAxkJLbWolkrGkbAOJA2QsRG9Tq6xtIHEAY83R1tZG/MfG1Lxt1wFjzUFjU6si+ybKAvdYd0kmk48++mihUND/aPIeS+I2kDhAxroL2U2tqr3OUAJkrAUkEoknnnhCj4mZjCV3G0gcIGMtgNSmVrnbQOIAxiqFyAuA6mzzWgpYCsvw0ksvRSKRqpdCTdNSqZTT6aSjzhpAxiqDyf1hfr9fcVeBscrT+v9UfbjKz0UNYCksTyQSwenysHgpVKENJA5gLFMsNlYgEIhEIpzkCAQshYRR/LmoAWQsU5RkLLvdPjY2pkLDvmWBjEUSRdpA4gDGIonKrzOUAEuhKeYvheq0gcQBMhYx1GkDiQMYixhQH5wPLIWmMJZCpdpA4gAZiwxKtYHEAYxFBqgPlgBLoSn0pXDNmjVjY2NKNexbFshYBFCtDSQOYCwCQH1wMbAUmkLTNAXbQOIAGcssCraBxAGMZRZ4LloWWApN8fDDD1+9elXBhn3LAhExhZptIHGAoJgCnosuxf8FAAD//3s5fchYZyekAAAAAElFTkSuQmCC",dk="data:image/png;base64,UklGRiYGAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSJ4CAAABkAVJsmlb8847eLZt27Zt27Zt27ZtG9e2bdv39tNZe++17vNPREwA/dOZo6hWhOxFssnRaNra4w+M3CJNqvLX1D7cxeDukVWTazDpXKDXrxFvXaOg9x1TDg99iOzM17Ak6Ddgc2dA0hCeZoL1k2zImMbPGvABrORlP7jBHi40l8ARzquVy/MEXOFhLqWKGYAzfCqiTGV7cAfbCko09IUA8KonX8cICIGwdnINToQgiO8vz9QMCIP0iXKsgNx8AEuk7YZg2C5BfQ7C4ZSKJdcDZAK4UyR7iSq1a1Uuri3+EZkCgt0jk1JTE8OdfJFJ8PoTsW7ZP5APx45dffiYRFTTlQfjkkQb+RhJRKXNlXuej4iW8TGaiKjAa6Wu6oiIVnBE2W8qc4h+yBVlOa7EehKBaLN8s0kQWiBT8ggShsak6ktL1xfdjQSiXhEIfLFzUrdm9es37zlt37sw+DQjoahCu0LEXLxDCRJM6f84fDIDYybV/XTx0o4xkab6sL0fQwRY+aOA19v6V8rK9sPCrRccPHhoT2meah08ePDArKYFiP+ClSqUlEXc0h5J8fGDuWozdpTE0YNys5WKAjCSLfeg0aMkjm3DVAsybmCjdYCxmm0tZKzFUtQg0E+iv98gCfm90YPY+/v6+0kMNCjKQup8eaXmJKm1e5DUnHml5lPTL7y21f4PrZVq9WF/Ky0n6qbb7AFsVWorAPttTdWKqRpusAYAx+1FlSq63REArDc0VClRZ5VZOgC3/W11xKGu7X43AOlmq+rIVGOJYSoAr6OdchC3OTod9QKQarikhqTi8z8kA/A70yM3cZ67xxk/AMkf5hdnUhkBCLrULx8Jma/fpSAARioWuhR+c0ghErjQkJvhl4hZXYCEL6Bm+5cSVlA4IGIDAAAwGQCdASpQAFAAPkEaikOioaEa2ed8KAQEtgBbJur/YPxm64bFPaPyH5r3ezvr+QGYz+G/on+Z/p35Z9rD8o+wB+lvmZ+p3+Af3D+5ewD9b/2v94D0Af9X1AP8H/uvVU/zfsMfsV7AH7O+mR7Gn7ifuB7V2Yn/RLToBFaF49vT657i4FNhTFMPtqGBnLHb4B0mdEFIcp89CJvbbCPD4/QeZhwQQzZ8BxgBYJstiZqMBJD6z585YDHszJsSre6r3yMDyPrDGOzaYTcIIILf8uoSangA/uHNmzlTvvlp4WxismwIwhrpTbKk5HA99Zt/tjf//B1f/wjF//4Oz7Ro8qdwrGruK80gZGdfcjEjVmeAY3UNq/bKHbPJeZyPGePUJYsf1pTxUT+M/1yY9sp5QEaUI/nWbM+hrV4Wv2GCz8YHB1EU6uczvWjFJmo/ILHBjfR2dpCGtC7aaJrcU2802eJTgxsCLzPMTBp+iLQAcf1z34AZndAHu/MsTUnzhvX5iBLRl0rcsyt8px9H3DpVdPqz9F30dKwOAKELHB71muyZVCqSi6Ijvf/Z3WEYi+Jy9gg4gwMX75I/kfFsZTr7B6AUO5g/bTvaEq7oh9QTCrGVLPJY2tIyTiFf6+rnBPHuJQFG2ntz1V2ZE3kFqOf1JYkNtmTx5bM42JZLzDv8lK+cZlqBMuGj5tTqsUlkszMA9vYVj/+YQXiow3o8IGtvSD8Z9yp7r5vAB/RBYfyMXHGCD2/Vj9Krhqkp9w11usppHaLv4fZw8b3KwrMeg4xklboK6/9Fk8fH9jbQr2Gh3gBR1O00KEtl0DoRpGMbFooOH7dbaaubWVWnZJSKjwKIyP/s2PwjLOOynzDVSVfh9QzyYBAtiUl2qfMRoRAekN+1zwxjUnBZz1zVVnum4pxFz4O/ytYWZA4AKd06/BG2+/aqSmflFZELL5IvsKadrnEUwQiAtJkrfXIu0S5ATyAZ8U7ztY9txpPVO65FVvH6NJPkeoxN4DJMkkeJyGkxeZyTOKOXTYLyG410M+lef83/R1x+Fufa2JlrS4UJj9uQp/8XdI+6n2yYec5INem5wZ3l+51bAhgdYqwdZhQ4nrP/8zviDM+SQAmVegbwNZIXMtlySH9p0fzgvNUc4nPYjSzoYgAAAA==",kte="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEX///////7+//79//+ZfOn//v+UfumXe+f9/f9crPCZe+n7/P5Lu/Fmo+/8/v6cd+b5+f339/1ooO32+v16lOuYfeqgduqZeedQuPFVs/Bfqe92q+1xme10l+1+j+yOg+qdd+n6/v7x9/318PxStfJJvO9Qte93l+uQf+nq9PzX0PRiqu5vnO2Bje2IiOv8+v719f3y9P3y7ftPtvJNt/BVsu9Lue6Hiu2RgOubfeqbeeqXgOideuigd+f69/7w+v3z+f3n6/vf8Prp4vnH6fjp3/jA5/fXyfRZr/JHvvFXr/FrwO9Rve/Due9fsu9lpu9fvu5Yse61o+xum+uLheqJkemgdOmnkuiUe+j3/P71/P75+/7u8/318vvj7/rc6/jb1/VXsvLHwPFzye5ipu2Mhu2ymux7kOyEjOmeg+emieagfuXo9/zk9fvn8Pvt6frw6PrY7/nV7Pnr5vnJ5Pfm3PfE1/a72PTO0fSz0/NKvfJeru+Twu5roO66su1osO3Eru2Nq+1qq+yMpetyoOuCm+utneqajOipjeehiOeihOeLhualfebx8Pvp7vrN7Pni5fnV5/fQ5vfg3vfV4/bD4Pa54vXPy/OCz/KnyfK0xvLTw/K+x/GzvvGHyfCpwfB6xu+guu/Kue+Mte97ku9pue7ItO68qe5ztO2ur+1Yu+yXsuxuseuKmOuqpOqWouqtk+mWk+iKjObs9/3n5fm55fa+3vbX3Pbk1/a02/Xg1PWv3/Oc3POt1/PWwPOS1vKj1PKd0fKtyvLPw/GcyPCKw/B7ve9Cve+Hue9pxO6Cwu5zwe6Dt+62sO6Zr+6ese1/r+2Eoe2Truyfq+yapuyCpuy6n+uOnuuZm+uYleuwlepypumhkeiSi+iRhefQ1/XR3PTay/SWy/O60PKZz/KPyvLIxvCVuu9bt++Lve13ue2zt+2msO2Ro+2ms+ysqux6luzDp+t5oOqmmuqNhuqxoumkn+m1nemviufl+fqo2/S6v/Cuue2yuOxBqZCiAAAHmUlEQVRo3u2ZZ1ATQRSAd+9ISALpxJgASYBAAoGIIEW6ShdRpAjYBQTF3nvvYu+9995777333nvvbcbNJSjqDBIu+0u/yeQ2JHnfvvf2lpsLsAG4QYr/4IYkAW6aNcPrQNEz1x3Kis4AWGm+I+FAXMKOZgAf5Igs17i4uC5xWW0gwITT+BquXbrEoYfroUgewILTlsW2trauroaHbY1oLO1HjrJIkjBxYoK/ra0/BgsJWeMXVyhbtkKNz+GZ46v6+6NRpMUlILKGwVE10glCRuuZboZxa0tbKlet4FvW7UgbBoQkAzSf7qb29Z3pbtk1Fj5dplarj7SG0HTaI4vabVeGJS2MbX5qtaxofZrPlKllD6MJyzlgm3kymWxeJFnkT63n+TWUHWluOUnmPRQwcROrSGoQjkv0S0ra6WSpPMC4xIYNG94W/3be7Eryi59nsf3F+TA7Nv5xZfhbA9z3x8fG3raxUCbru7LZXddDgvh11qhgsbE921ho+T5is9n7wiEC/IK4G7sre69lutJOx2b3bAf/lIDRPbuyl1a2yFXTXpRIN7FJQqKVxSjcazK7yeXybZZofb2Fcrmu3c9FlZHBKpSA0X3k8qPOgD4ddTr5QWdIUmGbj98xceLW6GYkMqBHxMFsXZ/R9B21u2XrsjsTVD8ytxzy93f1t03IWpdhmkF29exJBKRdLXtudfv6VD/C7/q5VfB1c/NVuz3cmQmh8V2uBeo1jlud+4g62XnbusbGJx7edXd/YlLDxE3U/DO6GaZA10FMQpLOhKEj9ZfK2Y/bRRC8NZ2XstkLK0OqXlyuqCNNB4yYw+VeGWUYEbuzq9uPIiCDALzOOl31zkiMzPbdRXt5NCUt7Lmik+5GnUg0iSBIBlpVa46KuA+oGkbM6S46GEFTMrZfd9GD2tR+eM6zXwdIFY7kzUj27E31m5wkEtm3oCnpkOyZvJsqTItTjpqbJonTDEfH3uWNi1jUvd9YQI/dyZ6eHahR+Wdz7aYaJUB83G7uceP/F5Rqvw40N65ZDp6vxxqHT728ztYBFBtSvRTTWNTyGn7O02EypCURL0GSesZxp9UBAYuGoQFrzMWAnNQNxl3ZubeDwwweSrDUUCHOuQNqpt7LlTlD399v4NFjYEqO8piAcgDBEgeHWTa0UqnTF3XYGRrjrb2qZWqZwcHMwEDtm5bwR0EdlohpSYafcnQ8LTZJQNSAYGsOh2PFCX7XFpggZ6BPeNOSVDqlcTwuAIXUndJ4SH5+0/Mx3uAH0zSavuUBLUl/jeZEbVAIhGGtoqJahRWd+GQ7+hI7uxPFXvUgiV3fOnQluSiTv0gu0JQsU+SeKV4yLdfuGb1yDV+mUJwVg2IgvubOXUFPUueCQrHCu9iN5zmahpDeEr7gpSh+noIzXl4rhtGRlF+U57WsU7Gri9cp1Svvm7D0DsGTvIDUTiwGo7ie8Cak5uV9KfXFPby/Wh8wlQeRpNhcpq4OWD2htJIxq/T6F8K/XrpB4SJ9wKWRsFR9ES4fOnTVyJJ8de2qgJRFAkiWQuIxNGVoNaIkEkajnJxrDUAp8H6fknKpEigRLS+9TVkuKIWkwXWl8hgLlAhWD+Xba2PMd7COKQOve5gzo2rm92TY1cDAgS1BCWk5UKt9421+tYIDtQOEJT5tl2sDB1YxW9KIydT2MLUEAlDOpe1vxnJ1yxVtipbJjIHmtmQBk8lsZIzmUsWjWs1aAz0A/CXVWjWreVRxMZogmlN6NbO3rQFMCXMCyxi/SbB1OpM5oMg1CQTCd+np6RUHF5omMCWcBSwzJXVrSSTMxii+dXq6tbVVRYlEEtyI8VNC7Am2tkJYI5rUqjl7AfpAYzPPFOgzGMXgSK2tJFYca4MFvWoSw4KF73sMNhnQgcORSjkVKwatNHfDbzVEKg0JCUHf5+cPvrxgT0xTDidoyOxhpjxnD+FU5Kyc0qtx0yZ8qTQoKCgESQa5mClpiyR8fn7Txr2mbGwZRkA4n68KUfFXzt8cFbV59kopPyjIKgYwwnzax/T6MKhJiJSvUpkvaUrFbxWG+gARwOcyP0RVRsUPLcjn81VIqDqP3jMABcg0/8Og/EE+ZvZEGOUj4KEj9YJ6rnKZH1pGFVqmTCg/DT2FnvcpXNIkOjLQQt8sBLRp9aoARUeElklLK5jvQsktTrmNrz4WpKWlhRZ87BVlQxBIggOWT/tb27ffau/CMpURG7AwPE6HUQLx5QE/rdu6NTocp4R0isxyPXAgIWsEga9UZHQNf1uEa9UR+IpVuSr6eWNxgm9Z6lcNPPB2+smS7o2InI4OmwAm1uyPj98XDqD74aT4fWKAh/o9DTehAQnX62IXugM8oLvAC1tQvekjRze28TCqD/cklQC6nWdfD+Chnr3oSn3KdkV0sg7AQ8Qcz+Q7EEBwJzl5lg3AxFSNZokzAM6nHTUdAC5G9rfrfxOAGy9f9h0OcFH7uSL3aZj3mdy503gEwAW695h6o1OeYtlIiE0CBS/0+osX9fonNgQ+CRhzLUefoly1FiAJNmx6aAOVykYsAqcEtL0qYQ6oC5EDJ3usBrcHuBHW3M4A2KkrBNiBEAL8QPAP8x0ZyfbHp+5ubwAAAABJRU5ErkJggg==",Pte="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEX////9/f38+/v5+fj6+vr09fT29vb49/f8/Pz3+Pju7u7y8vIHWenx8fDt7ewJZOvw8PAVfvH08/MUe/EGYOkPcO4HXekmsfwWgfILZ+wJbu4kpfsQc+7m5uYJae0hmvcJWuspuP4ekvYbkPQLa+zq6ukjxf8nwv8hl/fr6+smyP8kvf8LXukotf4oz/8HZusJYerh4eAjofkMa+8Mcu4Zh/URde8ag/Po6OgUePHd3d0s1v8djvYObu4HV+fW1tcq0/4nqfwknfgelvYfivQWw/8mrv4hqPsDgO0mq/0Nee8iyv8drPsnp/sNr/ohovoBnvUClPIjwP8jrf0Fh+nj5OM94P8z2P8jzf843f4Uyf4GqPkcifUOgfAEiO8MYusG2f0Dg/AOfe8v0f4C0/0Muvwgn/kXhPQCjvARdvAD3/4Ds/IWr/gCeesD1vcUh/Dk6e6gwOza2toA2f0Tv/0Fo/gBmfMYjPIGjunx+PvW4OoDgePS09MJ5f8W0P9C4f7x8/SHr+sgeOrg5ughZ+LP0NAx2/8i0/8Mzv8E0fcfnffr8/Y2pfXV5fTp7vCTuOs0gOkLZuZ0oeU4eeNK5v8T1//l9fsQtfvZ7/hPv/MumvLP4vDD3O+pzu/K3e7d4+zH1ehUiOLO1twj2P4ou/y53vdMsPV+wvMQsfOV2fK20O9truy71+p8r+o/m+lmlOIg4/9FyfmE3/VuyvXh6/TF6PRZzvMxsvGTw+8tjuwFcOoVcOlNkOhEgeYxcuOAqd/FztEywfkEufnK7fih3PSVzfIMu/Lb5/C35O+Fuu4jcegVYeTHx8kw5P142fe91fGr1/APnvACqu9Moe6sxuofgul70uilvti6y9Y76f8P3v4Gxfhauvfm8PZq4vaP4vVBuPWAzPFxvPFAqu5moexfreq1xuDZ3d+Uu9ubtMhC5v8MyP5P2vtW4vkem/ir5vWe5PWr3vU1zvM7ku9s0uhboeas0t04id2xwtNI1/OUz+Bsrd96odS6wcVzvuN1vNeI7X81AAAQf0lEQVRo3uzXfUzMcRwHcNzd7552t5/zBxvNaB1p2mo7TtfmyMOMPJRKedhZp4idJk9nyNaUW/FXcSGsRwlTuS7/6QFnUwtj8tCDh6EHkZiYh/f3+z1dHqbu5D9vf/in/V69P5/vt9/dsP/5nwEz/Mf8G2DYj/+GmmLAz2HUkBH9BMkIFsnQDq6PoA8XCqQCRMgYZ8UhqoECQrPVVlCLFNis6Rwg6jBoKGrAMNcUl2dXTcjP9/OrqiotL7Y94sRSIRiWoRiVuaC8ZfTUqRMm+Pn5hU0KU6vVpeWORxwHhhKeKzDYtIQ15XYQMAgyaZJ6klo9ZUp3vU0h4gRCCVP+7nJIzLUt4aNHQ6FI2Hdk4cLS14dUKCNhP/dXTQ632heFE+UXZEVs2UWm0HhcBEZRaHj4vHn9EAQGlBX+/vVWucjjLqwGM2YtAPJTExDE8I+tv9ineIQgEvOV0PmzZi1gCBQgMICwIrH62OZDcg6KZ1XYHXyTMTYUSPgCF8JWAoMi+t43vGv7Hm3EWrhkbCibF0Py/cLCnAg1kI4ahUgsYIon19BcFDiWIlBolan5SJjahej0uqiyRCjkVqK9B9MqyABC5wUEyW690tBQ3Fo6Rf29iE4XFdXrkPUt3/1pmR/HBQYyhKy+pfV4itbHxzfxWHGp2oWkptZfVABxvwq96gUZcYFLnFXmLShsSNH6KpUymYz3dVRQREeKREd3OHgV2YoHTSTSoldAoNDVPzzrpfWV8QqVSqRS8LYKen5hpEZHR5cdYlXcVMg7yvrkVVzcEraV8MKzXj5KXi7ixGIxx4nkUPTOIpGRncdkck5AEHdXIsmZ/CpudiDdSmhGjpeWGuS9KJWKOXlXqZ4Z0cmRyV1K3rl6t9ceMn72bChkLUUniYEH4T0lIe9gLr0slhooEplclsiTU+z+uKy3Q8aPBxMHpvA49gFDwF6FVKnpAMKM5KZjMhWZF+LeSgqOhkyGQssURfjAELPHMEW8rxlLZ0Zyp0Op4DyY14hK78kIYeIysHVehSJ4ikup6UhlRmZm5msfnpwvd5uYS7xDnMjsZ7u8lAoVfaOzkLVw6U1OAylLlKncWgoMKIdve0+c6FQqI7RKBU6vVNAXHLB9r6MjwbS1AWm6ppRzbiL4XQ++BcKYo2ci2PntH5FIYUuuq6trbGxra2vstOG3ELjZBHu/5O1NEOT2qQDcRNx2Bc/LeB7/K3hEebDzAkKcxkyHVqaSCt1sMiJnjjcUJCTk2fOggJRdNseb2tpiktoGx4ldKVptSlPCHhpIXdgaJ5C4hYwQVq4KJiFMyfuPd3squvV6vNRXxMTMnRtW1ZJd3ppzFghLQkKzly/uoztVhksE0uub58wJDqZt7N0Wi9FozMpKS/P3XxgT0z5369Z11dWj7fb2pARnygJ8eHaRBl9EwJ3bPAfZEQxoo4UgSTDS9KiCLkRZd2Tx4k2Lqx9YTAaDIenu8whfBTvkg96IdF9JvGYVFNTxvmqxmJKSDAaC6Mm8gKyjyOKVSPUDo8nYkxvkpZRTZLCXRChOfxo/XaNZBWhV8FWLyQQjKy9PFxu792dk29JtGx9YKi7PDPCRiQTC4cggatBpPXo3Zjqi0WiAwHAiev3eAxTZyhAY25Yit7I/70cVFdkKMpBBj5bY2nyUIvHxGs0OiiTdvw9ER5CYX5Dty0I+fUAVnv6VxCMGMjAsc1en5ebIMTTx0zcTxJBw/0JeXpRO1w9xGduXLdt5/kVuhBJ/4Ab6MOn8WmVtTk0y3hxJQqWrOD8ESU2NitLtZfNyIcxYtn79jk+ncO05bIXmT99HJMKapiyDgSIsQGAQBEnbazzQ3u5C2LAosmb5+RzcSOkfv3yxT7/mro68LAOajOrLaZMJRl1vRc9dBJc/u7Rqa3U1EGcRQgBZs/xSZaLij1++2Lk63Byly8PlsjiRGchNU3dvz8f39y7v3717JpKbe+/9xy/Z9k20CBsWDGTtnXPXVBw7YmB+u3MY+HigS8vKMhpP0+dPm7Zhw7hLX19+vrF/98wtW4KCAmiCtmyZefnDVztBmEEEZPXmkoP4SAOF5vfGt17NNabNKozjSunAt6Ut0FZa24LSGqs1LbbY2gjEMUWJZlFG4ochEZcRsi1QPshkC4HSxQUGpW2iDhgXo9uEAVGJjruXIAGMqIOwxJnoNnGLiVGXOeMt/p9zerUx0S/+tyVLOO/7e//n8pznebZPkHpyyL6a+yEdpAoRo6TRXVCp17uY9PrKAnfJ+a/2fQ4jMQYgVVWXuyTMC7eSvB4vfULF03Mvthzds+ejGgI4VNDKVTDcuFPMLEnFpSLIZK5K98/vfrBv3+fPxxiPPgpIJiixmzrRCPOBDJfU0rJnzxf1Dh0A2qKiIuPvHx9pLHDJhAyJmAuZqmCq/PX0y4xCEIbgkMzLSxJxhPJ3Iy+8RVUHCqinW44ePfrFQZVDVVRkhwzDHx926ynxitzylEIK7Rf373/5NCifPwkGCFBNTU1mTfYYKhYRp8QxSKk/vH831ZvgtLQA8tl0ERhGu0Fjnf+lBIEJSbUoNTXSxhEr+k4+vn8/IMA8uQuAAwcOgJGN315/tyQtkcKNpH/4JpWbxMG9dPS7n0ZX7HajQaORy+WrCwSR8BNASk8ViRWfPlQBCsOcvn7jAKkcwq6s6xlRiEGJnzBer799J4mBQHnz5/Mhg1GjsYKhVA+z20Icl9yJxN0Xyx4HBJTT+y5dvQoKh2Df15XPLkUTzngjP7yPehN9AMLc+fA7Z9wlE1bGqLYp83ybblx8YchNHNJ/qawMGGbmtz8+3rwxzSA4Wdj5M35Kz+OtsDr3OLoAJAI9/E4/TtyVGY0cDItSLS2eKClwCQhLMSetpzp23gYIYR6/grO6NTftgHR85/cM8GoVijJS30DxDHHS8TOVOHdDIbJhYxDflhtxHNlIdE36Lu3duRNWSJd+OXK4sWC9hygqrpmx7oiVOCP3kAh0z1Pvf6pHAWpqD9rkNqXaYpFKmRUTRdiokeXcDlC4lz/fA0Pv8ni1Wi0RsC21sEL3ZBwk9Ud05CJ67et2HApBZl732ZRKtToPEKwKv13TuZFb+sfv4hQszLHNwyUUDyaD01qS3Uh//ArKXqIQxPe30W3guuf24wOoeCgTHRwmBmxI89TYYEgUMM3pxEibHL0DkDDlm/dKGispjx3oMRiNeD/JMNsQl+2R+w+/4gTqbNy7qDcJGWKxRCJ4VtU0VcV5UotldYFlVpgBpADixd7S0u87OjqoOj52BUEHj2RJMtoChqhW1li1GoP8iLffG9bxAZS5WUjbs2AFJjBXeRabzTq/VaCX0e5HKdc/np9fWprLvcAIiwd4pC9k1YRlDfgFKryjENEi+ibQraRTDWaBytw0sUThWWUMtdImt1qHkdwLrIBYul7fRPkryorvO3qvHG6sNOOzUHq3Tiix661M8qBMwaY3UlW9fWtMJ1xUVeGDEQQHh6URiMZgnKBlkWSJJ0dzagubgMkvhZgRqlrxRJonYKuulpOqlcPtAnZKFNJ5gXqMj0AVj7x7xsTCbSqqQrGw7gPEYoERQGaCoMiEhrGNnBxnIWGg3k0yQt+MJ0RrPqUFstkQjOYGsSgxyEsXKgBgkIqTWBJcOoihoEgagsXwoayWazTYlzML2Krtbd5ySpVqkVwC8xs3QsETT3TNq9VqJWSzKUPN8ZCULy9UVDyG9hxUdrLZRDU5QjpOg1gYmGOThdkCxOFdePXVBa+jLptRnKCMny9xV5p4awVndHI+T81ksahDzbJESBkQD1HLqQxOqOeDSwPPpElk6z4lLbuBToDK4Q1OzGgduvvLaximduoKnXX2Vawo7pqX0tkFRP13SOcFdDMBKYOOYU0ieTOsKBoWVpVyBilSqXR1RissgfJANrlxLhxhNw0/pHjT2qqUC3FibjABIr4ICBC3kc668DPe30intW+esMgDNFsUlKxKq5VwDl15OW7a65gsimmornm4aStmwo7Mk2J3xSB41+ITEADQzpPN/KJNZ8XQtgzz0JxSrrHbYUSDqYYrWh6ilM/+wiYrnJyk35wyOQeAlGOKg6YESOrrx8IQdJ62nzULbAunh62YtkJWgmiUiC9qzJ0mTLmxySYLFwfbJ2jDtVmkzAShVj0yIStuulJeOclM7CRGxyWkzfw5FqYyZPr1kMFu1CgpkLGtZqDJc4SuUoR3CQwCpYjWfbTghIGd+SFzwolPaT11H9PevXu35+aOexqokyIiIbgI5nb/isEQsFHQpzBms1phxYtsjIwIEgoPmN9O/wodEYs6j1Q80SBLiF3pIjRnibGdGLmlvaMjk9RLgQBZWhubm7Frqm2YCwR9Cz8204du/L756rd6mSKDtQy/HJnw4QMA4W5WPWYBX5oSg6R2XtwOABFy0ecoze/9ZvlEf1dXV9+aZ2zWq9NqjRq5DXdkMZsxRKfpQ9DGbNB/or+vr6//RNvsipUiVjW80CkpHm42K/hRiGaosLI9xkAXIr9px9S1a9emNjay6+7XqbR2jbyaFoVBlGCQKKHz9kDeGY0B0Z3nNpDF4vOY2WylxyDpos5TuQmMBx/cXVhYW5tTVYMaRacqsmsCcnwjD8qBA4cO7dq1i+WlSIIcDi2sGjUGRqm2kJmJQbMirsPK86htXefCCMbIf3D37t2FtTk5yGwfqGMQPl8UNAJE4BD6BDh1IDE3UrrJKHATGjIxI/GJBLb4tk+PAcEZ6HXsAKPQSZDyB+4niAHzhSAOyPSug5xR9WxVGAJKEZIHg4FTbD4PMeK73rysFrUu9tJUkQ8OYYzMbOSEBMHKy202tSVw6CBEkHpWJ2Rn1xFFBQpSZ547+9pwu0bbifFJvajzLLKDCGMHJotDsnW6MASLMv/7wvhB0jP1z9RX0c8zuRVUMlQCMIpvYdAsk/DQlJgMI4J0Lvbm35EPEYMg/B1YWLwCkMB8cOvwkfNjhKmHnDlEoeKVVoUVMzBjXWkbNAmsLwUG9LeGSuvIuXzqcYGBBeFG8KG0rlprIBTc+tbtdjd+e2ZsvKm+sN5JI6owIhsQjAEGkMCcp4GlO9xHohOipGV1LV9ramoiSHS2UAFji64M+4cq9UiRSZVDZ69P1dc6a8kKUSiRBwSrMh8cMrOaTJRUNeKvnCLu7F8e3+EsZAwnN+LQeWfHRppNZrPZROkrZDYNri2fm3JWVRGEBsEucoCe4Eg7hmQkMTgF4pSs7j7P6LmpHc4c2jqZGz2zl/0jzS4Tb6dKWrOy8FsikSi6l9bOjs72bGDVYFbn9c5d9gy4ZDKFohU3BTGSK9OoF1S23Uv9JzzLy21tfs/IUHODWSYDQSHJopjJhfySGrfdgwMjHn8b5F8/0+wym1Eh0yhRMoMU7cGjsEVSmyEI3QIkY++XSAiwjbW4UyFW/m6jz5EgL2ejumUCxD+E8ilO4IxkLyhs6XG8N4OLAGSBAOwCZKMgkFDRhwdSR7pVzAlAJPpI9oIX3ML/TYkEQLhJDwAfETeQOcLUkTCOIzAuyUeymZTwlECgiSIOksQregzkIqv/4j80xD/OUfQUFCNgTKLww5SIooSkbleymX8Q/1lsWPLAf4Ug0Zh/9SSn/ncElPihyR6SvyjpFwb+//oLYHj/LyqNdWsAAAAASUVORK5CYII=",Tte="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFwAXAMBIgACEQEDEQH/xAAbAAACAgMBAAAAAAAAAAAAAAAABgQFAgMHAf/EAEAQAAEDAwIDBAUJBAsAAAAAAAEAAgMEBRESIQYxURNBYXEigZGhwQcUFSMkkrHC0TI1UvAWQkNiY3J0orKz4f/EABkBAAMBAQEAAAAAAAAAAAAAAAACBAMBBf/EACQRAAICAQIFBQAAAAAAAAAAAAABAhEDEjETITJBUQQUIiMz/9oADAMBAAIRAxEAPwDuKEIQAKPHXUctVJSR1cD6mLHaQtkBezIyMt5jYqQuAfKXTPj45rJImuMk0jCzTnVq0tG3q0rqVgd/QuY8HniqkhY2turuyxnsJgJXNHi87jyyUydtcnHP0jL91g/Kn4UjJ5ooakJZZd7hSnM2iqjHMEBr/URt6setSqbi/h+cY+laaJ42dHO8RuaehDsJXBrcaOSMti8QodPdbdUuDaavpZnHkI5muJ9hUxKOCEIQAIQhAAkS822E8WVNdLpdoa1zHfwEsAd/ta37xT2UlXU9pPWu73zaDnpqDT7gVpj6rM8rajS7mAlw+GAbOly946NGPjgepWGsDRnm7l7MqipnOkuUs2fQDQxu3QnPwU+onDaiJo/s2F59mB/PiqE01aI5RcXTN1PIJJaiM7gP29g/Vcy+USkNHeY5Ym7VTMkDveDg+4tXQbUXmaR7xjtJHOH+UgYUHiC1S3O70HYQ9o+HtHAZGxIbvulk/jaNMUfsSYqcD8Jurr/QOrgfqnCqdGP6rWEEZPUu0jHn0XdUr8D2qS3w1ktc0MrppcOYDnRE3IYM9+fSd5uI7k0KW7LZVfx2BCEIOAhCEACQ65xllcRqx28kp08yGh5/HSnKouNDTP0VNZTwv56ZJWtPsJXPpL5aKZ9LV1dRE5gB1BkrS5pc7ngHfHRMr0uheWuOrYvG2csL2Ubi9sEun03Z15jaSQfPO3LcjZaJbTUR656naJoc+TS7LnAD9kePTyVtbrrZ5aRj6K4URgI9HRK0AeruWVbXUUtO+NtdS4cMHEzf1WGuSN+HGTK6UTNuPZyRRsMQDD2ZOnIaDgZ6BwHq8cDGC40lFd/tNRHFJ2ZLBIcBwzvvy7lFdc4hWfaK2l0mQ+mZAMkjJPPHIAexVf0hb5uI6jtqmkfFoY0apGlp5k/iqsVOFEmZaMtjZaby2634imb9njp3gyA+i92pnLrj4pjStaLla2Vxd8/o2hsJA+uaAMkePgmhrg5oc0gg7gjvSSSTpD423G2eoQhKOC1VM8dLTy1E7tMUTC97ugAyVtSn8ode6ntUdIzI+cP+sdjYMbgnfxOkeWUsnpTZ1K3RTWCrkuD7lVzjEktXqI56fq2YHqGB6la6W9B7FQ8HkOo6xzSCDVHcH/DYr9eRNty5lVIx0MPNjfYsTHHjJjZ90LYsJTiN58Cks6VNJUht/qKfYRSsbob3BzQDt4kE/dVxgdEtVYdG19fG0l9PVB3ojJIDGZA826h61cm7W8HHzuP3p2r2AmFocMEDCsuF6smKW3SHMlMRo8Yzy9nLy09UuS323xjaVzz0ZG4/BRrfdKgXSG40tHWvjDtLhHSyODmHZwyG+GfMBbencoz25CTScTpSF4F6vTJgXhXqCgBNd+9ruetWP+qMLNYP/e93b3irHvhjPxWa8fN+jKo9KBRbjKIqV3V2wW+WWOFmuV7WN6kpcuNf87m9DIjbs0H8VmOkWdoayakn1tDmumO3kAPgpLqamGQ2Fod1I2UTh1wdRPHf2r/xKnuJaSzSXuJyOi69wCOnjG5hYD3eir7hhwdb5C3l28g96U7jcexYYm7Snng50j9UxcDHNhaes8v/ADKq9H1syzdIwoQheiTghCEAUlbw82orJ6qKuqKd85a57WNYWlwaG53GeQHf3KDNwtXPyGXtzR40/wCjgmlCzeKEnbQynJdxGm4Hr3nUbrDIer4HD85Wh3BN1b+xPRu83ub+UroCEvt8fgbiz8iRRcK3imiAE1G14c47SOI3JP8ACpEvDl6mbg3CljH9xjv/ABN6Fz22LwHFkIv9Bq487nTg/wCncfzpn4etbrPa2Uck7Z3Ne9xe1mgHU4nlk9eqs0J44oQdxQrm5bghCFoKf//Z",Rte="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEVGpf9Do/8AZ+VIp/83m/1Lqf8AZeQmkfkymPs7nf4Cg/L1+f48n/80mvwtlfrx9/4cjPcZivX3+v4BaeQBgPEAbeg+oP/v9v4BauYBfvDn8f3u9f1Bov8/of8AZeMqlPr4+/4Oh/Qjj/ggjvcAXsoAcOnt8/0BcusIhfM4nf7l8PwSh/QAe+4AduwAee3k7/zz+P/6/P4BYMwBfO/i7vwvlvsAdevp8f3h7Prk7vsAYtLp8/0Wivb9/v7g7P0BZ+Dd6/zc6vwAYM77/f6Ns9yUuOAAZNXr9P7a6PmcvuIBaOKXu+CPtt+RtNva6fzS4vYAZdnV5fjA1++20OvY5/re6vzX5vjI3fS50u0AZdzU4/euyuixy+elxOWXudzL3vK91e2dvN+Ut9sAYdCzzemoxube6vnG2/HF2e+qyOmgweTW5vrK3/XC2fGsyOeMstvs8vvS5PnP4fXM4PXO3/PH3PPE2/O20e6zzuywzOoAcObC2O+jw+agwOGbu91AfdGmxugHYa3z9/zQ4/fN4faiweMAbuKaveEAZt4CX63Y6Py50+/B1usBdun////o8Png6ve91vG71PC80+qty+oAeOoAc+fY5PTS4fPJ2+8Bf+260ekAbeWsx+QAad4AbNjf7P3i7Pjd6PbA1/MAe+yyzesAduYwlPcZiPErkvYmj/WoxeOkwuJDn/wijPMNhPAXhO4AfOm3z+iFrNkAadIvdNBWqP1ztfwuiOoAcd44edElbs/W5PakyfVdo/IrjvF+sO1QmOtTkOC32f1OpP2Cu/q51veu0PeKuvI4kfCbwO6Su+4hie4KgOwGdeITZ80caLKgzP7C3v1erP3L4/xyrvNHmPGvzu5yqOw8kesQf+kggehGjuaBrOIeeeFnmdpXjdcCaNYQZK+TxfzB2vc6l/Vnp/GkxvBjouxbmumIsuhknOQ4g+Iuf+J6pNdzoNIcas5omMwmbbSax/hGnPVTn/MRd+d1pOF9qOBDht4NZc0yfNgYc9hfkcg4d7owc7j13NKGAAAKFElEQVRo3uzUP2gTURzA8RMjJlzj6RsM5BRPhQPjkGQIyXFGBIdzURDESRzEQVDw/LOJQw6XiFwEBwUR/DPkjyQGhMSliZI/rRohSRvBNbXipNjW0T+/e7kber73ajNkEL+06aP58fvwrn+4TRNoMsjGCTQhhIMPy1rHgRsdOPcBPvGQ68D9b31tmED/ELJjAnE7JxC3fa2mnMP4U9zUFEzAy5TrAOHDxrkNo4P9HvEAUzsIbzkbAWHm6wUaFd9aQ5VGosoY4nzsmodMc76yjz20oYFQjzGzBuKpItM0+xxT2bdgIKlfZCD7WPn8C2YS6vkYQ565gxJChyoe6gTnYbbYsBBTqPrpM8WGhCQkVr3UCTbiXzkGCCg3m1TFXxWRJCFjYVzEWxMBsepRjWIfWQiaWaQjflbZajQ5Sq56ySPeloEQGOjGCkyQYyLe7LJ9kcPJfpE8UpxHOD7xPUtFvKyybRMTEN+KkSZiLYPHhqEPsrQ1HNNYvGQCMep8MxaL+X3FZrMyV6k0i0WPF74BF+ERDxnGbH485HsYiFFRaXmu1WvM33wYDgaD4YPH5vszC9VKKwDACJnOxmhIjFH+k5C0CUhQUdRKghB+QUIozttFjI+LWcoebgu9bKEVdQic5IRG8fhJOcjxlTxlEROpLyejQDi5CAw4REQQHtXGQfL1djJKINyCELGMgD4o7KIgu+jlX99Irn0LEMAARHxbz5MXcQyj8D7xtwRGZqjIZmr5Uk12EVQBIx9fF8ibGEihNOAlN0EGgAgExOPvx0A6sy6BQYAh366VxkCmo/TnJKwiMJIZlApkZA+1Ur0dRSQBWg2AAMn6bKdA3MRCXl+SkGPAfVyCQwgRARuarE93SmRkL7Xc+4RzCySeO3VVIF5CPvfgWhyuAenteom4iY5szdV0+zmhzNfucOmo+IcgBjLPl4ZLXxRR1jRVv/JhGxnZSq08MOx/gOh0KpVKd+/zf/wghKfDdCo1vB6QVVXPHHmV20vaREdK5VneTvyRtpTnEZtwDOgrfuebCsVDjz7ltq4PyZWnkY0EHMRFyLKDxMGIh5SX5W1EZButXKeN7N8n/vownU4v3YqsEiBNPNWFd7pPtXg8GAxl3pRzpFUM5MUFAKyEiP78V/fnddEWbEDTZFUOnvnZ/XVRAQIQZaazTqT84YRhCTjx3q27LkKWVav41TtXg6PCypMXZOQApdyzV4rghP/kRMgW4BMD1kNSNdW6BRRWLn94tp+wi9tP691n3RZwWNDsxyQ7Ai5kpyROvnpGWsXtJgfIS9FFiJiAr2dPgeQmwmEl8fjTu/2EZb8pJ3uYJsIADDu7uJgY4+RijLE41JC7mJB20glT6A8pxmpCTgyotaD8NHFA4oC59DBcr1w00uPayaQ2cShJUWBQgcBosVQmI/g3OKiDDr7f992f7d3AE0rb5Xnu/e564DhK9OX8gP+ljfWJI4eaCyfO55/03fvx43LvM8EunKGc5TlpacOaAg+DRDwo1RcnzAKw7gT/5Na9ePXqrZscEo4CgZPW6iW3JSc9KG2/njhmjmDgPoDz53BS5HfhmEATHR2cUNsuubg8I2pl0DnC9V6zBCuAuYgwXVHdIgc9UN+HmkZYBccGu4AGIrH3qovLK3JYXeao3n5e3RPUTl5zgUDkwsVl9fA+IuW9DBJGAdin5NzAcfB3BCKRABKB4IXqXnlfka1k0jqm1gKPAMAOYgdBQlhZco0cdkctv00CFByHxJ/BH8/ziLAAJpj+zmBn51Q4ul5WW2Xekd2k85QAj4ZVmHNOQIIwNTUQ3a3vI6LX3yTNDQB65rdOiWyIBFmDBqbC4fBAfGRbP9oaOeqOvj2ftBNWo8OxIUhhE5AgjYH4fKXcKmuK+J+vvnuFd1WuTJ6yn1ZWMCawDdBTTD/ldvxOo6x6R1ji5ZuQEPvpP+qXG1HehD2qSESApYfZkkMfCt0G9xOfZZeI38HqIpfJZKRPfr8uLmt5nucMcPGCEAwKFyhEHo1GB0KAuOPETpicHEpsFXV/M87Iu4+ZDJ9JbdV1v17ck/IcEAhBAXoK7IDZnXIwBAZjiSW3yGmL1Y+ZfD5fa2wWZV0vbkmSACy9KY8D2C8CyFOGnBADd66tb+qnm7EjzxfRkNZ3ni6gIhffSpqmWXrTDjXk91Op1GSKuWPUDe4SbqTXdmTdM9L2UstL0trfFy+eLiCyuaZFTb9lh97DDv2NeULX9e9iW0ukzWBjF42uP2iQiPhrV6tGq9WqqU+BoWGqTxj2a8wN4J8mPAJj38S2ZsyIrxLD+XxgDVEu7owoDv/w8NDwYCJB9JDbdly5ZX9I6RltZGWvSPtyVdOUFaPhy36fzgHoCQkCuXZA3Ol0ugtQOVOPmHR3r2R9LREfI/tZUZQcIgtZ0eeTs9/6c7h8pocc9Pf3Q0/tV64we08Ps48SarXRQq1Q6Ps6DsH/GBFxnESUr6yBr41ZGjD1adBF/QBy2LsBkRcKhbGZsRmD3r7fXpF28cFKTskpXxbGxXby9fHKbGKW+W096CEYesgJvTO9121uXvqwmW1vjvyjjIx5EwXjOPwp+g007gwdHI2YWDXpeMkBF6AmvQ52adKEVHQpLm42jQSkH0AnPZOLLk3Hu4H1kosFx7NXz6lVr0N/7ytCQBz6DCR/As/z8ueQcquR/bQvnxVvfNJ9f6C/DOlvNvZ6mMoMkQh+5O1r++LLxezFG191+JtU3wpOf0L1n73Dl8v1Os9fheDLxUdlJ5KiKNrdsq3r+un971TqEOPktAl9CwGD+E8A0YNKpVIGPE/812dR+MKjkorgR6b/P+lkRT/+fH/BOGu2jEDPcdQe6GGHPx9DtfGs3O6L3H1zdL1JuPl5/+vpyuhTP+f5ff01qFar+XwDFHYRxb9mMjaSRCRnTxBpUQyj7/tB4D+DHn6qZ2MpiCttJ5LcoFlTebFEBP4+LWzP34W+B7+v9/zFeFh1pSnJMNuIaU3TmbVbRgUNDo1Op9Pt8r0eAsF2BJaViD675fw8G6IoqQ9H+yKKZuVkhhk7LGcY6HAcjXTRwB8QRbGhqoIgSKBUIu6ALO3gbglIgvhgmfsipnVMKow9cp3XyUDkQAeQTg8ZgAwgmQgSQQAqkFa7kQMPU8PCSCWRSOA6rrnOfDnIFllBFX1UQEtezQviwwaDwXz+z3Hd2nBqmQdhENlWjqzjtJxhNiRoa23bi/F4PASj0agWYQSGAE8sFra93rwm5+IjQSWXluVMxs98HIZ5724OkRgIYSgMdyp6gRhUD4LJDAIRFRu9l8mx+8os7LAMSMR+/r0fEZpGUCF2zTlGlErqsv69pHREXUcCCbuZolRSkHrdHzRHgVHOJkMk9IhEmNm9pE5xKTeqauZC4QaRAQFS4H/W6I1VXjCIEIVpZOyAVDwnFZ3CGKENXu8NHhT5bLAn8t3gB5tRcTnQFMqEAAAAAElFTkSuQmCC";var Bt={};const Ete="Á",$te="á",Ate="Ă",Ite="ă",Mte="∾",Ote="∿",zte="∾̳",Dte="Â",Lte="â",Fte="´",Bte="А",Nte="а",Hte="Æ",jte="æ",Vte="⁡",Wte="𝔄",Ute="𝔞",qte="À",Kte="à",Gte="ℵ",Yte="ℵ",Xte="Α",Zte="α",Jte="Ā",Qte="ā",ene="⨿",tne="&",nne="&",one="⩕",rne="⩓",ine="∧",sne="⩜",ane="⩘",lne="⩚",cne="∠",une="⦤",dne="∠",fne="⦨",hne="⦩",pne="⦪",mne="⦫",gne="⦬",vne="⦭",bne="⦮",yne="⦯",xne="∡",Cne="∟",wne="⊾",_ne="⦝",Sne="∢",kne="Å",Pne="⍼",Tne="Ą",Rne="ą",Ene="𝔸",$ne="𝕒",Ane="⩯",Ine="≈",Mne="⩰",One="≊",zne="≋",Dne="'",Lne="⁡",Fne="≈",Bne="≊",Nne="Å",Hne="å",jne="𝒜",Vne="𝒶",Wne="≔",Une="*",qne="≈",Kne="≍",Gne="Ã",Yne="ã",Xne="Ä",Zne="ä",Jne="∳",Qne="⨑",eoe="≌",toe="϶",noe="‵",ooe="∽",roe="⋍",ioe="∖",soe="⫧",aoe="⊽",loe="⌅",coe="⌆",uoe="⌅",doe="⎵",foe="⎶",hoe="≌",poe="Б",moe="б",goe="„",voe="∵",boe="∵",yoe="∵",xoe="⦰",Coe="϶",woe="ℬ",_oe="ℬ",Soe="Β",koe="β",Poe="ℶ",Toe="≬",Roe="𝔅",Eoe="𝔟",$oe="⋂",Aoe="◯",Ioe="⋃",Moe="⨀",Ooe="⨁",zoe="⨂",Doe="⨆",Loe="★",Foe="▽",Boe="△",Noe="⨄",Hoe="⋁",joe="⋀",Voe="⤍",Woe="⧫",Uoe="▪",qoe="▴",Koe="▾",Goe="◂",Yoe="▸",Xoe="␣",Zoe="▒",Joe="░",Qoe="▓",ere="█",tre="=⃥",nre="≡⃥",ore="⫭",rre="⌐",ire="𝔹",sre="𝕓",are="⊥",lre="⊥",cre="⋈",ure="⧉",dre="┐",fre="╕",hre="╖",pre="╗",mre="┌",gre="╒",vre="╓",bre="╔",yre="─",xre="═",Cre="┬",wre="╤",_re="╥",Sre="╦",kre="┴",Pre="╧",Tre="╨",Rre="╩",Ere="⊟",$re="⊞",Are="⊠",Ire="┘",Mre="╛",Ore="╜",zre="╝",Dre="└",Lre="╘",Fre="╙",Bre="╚",Nre="│",Hre="║",jre="┼",Vre="╪",Wre="╫",Ure="╬",qre="┤",Kre="╡",Gre="╢",Yre="╣",Xre="├",Zre="╞",Jre="╟",Qre="╠",eie="‵",tie="˘",nie="˘",oie="¦",rie="𝒷",iie="ℬ",sie="⁏",aie="∽",lie="⋍",cie="⧅",uie="\\",die="⟈",fie="•",hie="•",pie="≎",mie="⪮",gie="≏",vie="≎",bie="≏",yie="Ć",xie="ć",Cie="⩄",wie="⩉",_ie="⩋",Sie="∩",kie="⋒",Pie="⩇",Tie="⩀",Rie="ⅅ",Eie="∩︀",$ie="⁁",Aie="ˇ",Iie="ℭ",Mie="⩍",Oie="Č",zie="č",Die="Ç",Lie="ç",Fie="Ĉ",Bie="ĉ",Nie="∰",Hie="⩌",jie="⩐",Vie="Ċ",Wie="ċ",Uie="¸",qie="¸",Kie="⦲",Gie="¢",Yie="·",Xie="·",Zie="𝔠",Jie="ℭ",Qie="Ч",ese="ч",tse="✓",nse="✓",ose="Χ",rse="χ",ise="ˆ",sse="≗",ase="↺",lse="↻",cse="⊛",use="⊚",dse="⊝",fse="⊙",hse="®",pse="Ⓢ",mse="⊖",gse="⊕",vse="⊗",bse="○",yse="⧃",xse="≗",Cse="⨐",wse="⫯",_se="⧂",Sse="∲",kse="”",Pse="’",Tse="♣",Rse="♣",Ese=":",$se="∷",Ase="⩴",Ise="≔",Mse="≔",Ose=",",zse="@",Dse="∁",Lse="∘",Fse="∁",Bse="ℂ",Nse="≅",Hse="⩭",jse="≡",Vse="∮",Wse="∯",Use="∮",qse="𝕔",Kse="ℂ",Gse="∐",Yse="∐",Xse="©",Zse="©",Jse="℗",Qse="∳",eae="↵",tae="✗",nae="⨯",oae="𝒞",rae="𝒸",iae="⫏",sae="⫑",aae="⫐",lae="⫒",cae="⋯",uae="⤸",dae="⤵",fae="⋞",hae="⋟",pae="↶",mae="⤽",gae="⩈",vae="⩆",bae="≍",yae="∪",xae="⋓",Cae="⩊",wae="⊍",_ae="⩅",Sae="∪︀",kae="↷",Pae="⤼",Tae="⋞",Rae="⋟",Eae="⋎",$ae="⋏",Aae="¤",Iae="↶",Mae="↷",Oae="⋎",zae="⋏",Dae="∲",Lae="∱",Fae="⌭",Bae="†",Nae="‡",Hae="ℸ",jae="↓",Vae="↡",Wae="⇓",Uae="‐",qae="⫤",Kae="⊣",Gae="⤏",Yae="˝",Xae="Ď",Zae="ď",Jae="Д",Qae="д",ele="‡",tle="⇊",nle="ⅅ",ole="ⅆ",rle="⤑",ile="⩷",sle="°",ale="∇",lle="Δ",cle="δ",ule="⦱",dle="⥿",fle="𝔇",hle="𝔡",ple="⥥",mle="⇃",gle="⇂",vle="´",ble="˙",yle="˝",xle="`",Cle="˜",wle="⋄",_le="⋄",Sle="⋄",kle="♦",Ple="♦",Tle="¨",Rle="ⅆ",Ele="ϝ",$le="⋲",Ale="÷",Ile="÷",Mle="⋇",Ole="⋇",zle="Ђ",Dle="ђ",Lle="⌞",Fle="⌍",Ble="$",Nle="𝔻",Hle="𝕕",jle="¨",Vle="˙",Wle="⃜",Ule="≐",qle="≑",Kle="≐",Gle="∸",Yle="∔",Xle="⊡",Zle="⌆",Jle="∯",Qle="¨",ece="⇓",tce="⇐",nce="⇔",oce="⫤",rce="⟸",ice="⟺",sce="⟹",ace="⇒",lce="⊨",cce="⇑",uce="⇕",dce="∥",fce="⤓",hce="↓",pce="↓",mce="⇓",gce="⇵",vce="̑",bce="⇊",yce="⇃",xce="⇂",Cce="⥐",wce="⥞",_ce="⥖",Sce="↽",kce="⥟",Pce="⥗",Tce="⇁",Rce="↧",Ece="⊤",$ce="⤐",Ace="⌟",Ice="⌌",Mce="𝒟",Oce="𝒹",zce="Ѕ",Dce="ѕ",Lce="⧶",Fce="Đ",Bce="đ",Nce="⋱",Hce="▿",jce="▾",Vce="⇵",Wce="⥯",Uce="⦦",qce="Џ",Kce="џ",Gce="⟿",Yce="É",Xce="é",Zce="⩮",Jce="Ě",Qce="ě",eue="Ê",tue="ê",nue="≖",oue="≕",rue="Э",iue="э",sue="⩷",aue="Ė",lue="ė",cue="≑",uue="ⅇ",due="≒",fue="𝔈",hue="𝔢",pue="⪚",mue="È",gue="è",vue="⪖",bue="⪘",yue="⪙",xue="∈",Cue="⏧",wue="ℓ",_ue="⪕",Sue="⪗",kue="Ē",Pue="ē",Tue="∅",Rue="∅",Eue="◻",$ue="∅",Aue="▫",Iue=" ",Mue=" ",Oue=" ",zue="Ŋ",Due="ŋ",Lue=" ",Fue="Ę",Bue="ę",Nue="𝔼",Hue="𝕖",jue="⋕",Vue="⧣",Wue="⩱",Uue="ε",que="Ε",Kue="ε",Gue="ϵ",Yue="≖",Xue="≕",Zue="≂",Jue="⪖",Que="⪕",ede="⩵",tde="=",nde="≂",ode="≟",rde="⇌",ide="≡",sde="⩸",ade="⧥",lde="⥱",cde="≓",ude="ℯ",dde="ℰ",fde="≐",hde="⩳",pde="≂",mde="Η",gde="η",vde="Ð",bde="ð",yde="Ë",xde="ë",Cde="€",wde="!",_de="∃",Sde="∃",kde="ℰ",Pde="ⅇ",Tde="ⅇ",Rde="≒",Ede="Ф",$de="ф",Ade="♀",Ide="ffi",Mde="ff",Ode="ffl",zde="𝔉",Dde="𝔣",Lde="fi",Fde="◼",Bde="▪",Nde="fj",Hde="♭",jde="fl",Vde="▱",Wde="ƒ",Ude="𝔽",qde="𝕗",Kde="∀",Gde="∀",Yde="⋔",Xde="⫙",Zde="ℱ",Jde="⨍",Qde="½",efe="⅓",tfe="¼",nfe="⅕",ofe="⅙",rfe="⅛",ife="⅔",sfe="⅖",afe="¾",lfe="⅗",cfe="⅜",ufe="⅘",dfe="⅚",ffe="⅝",hfe="⅞",pfe="⁄",mfe="⌢",gfe="𝒻",vfe="ℱ",bfe="ǵ",yfe="Γ",xfe="γ",Cfe="Ϝ",wfe="ϝ",_fe="⪆",Sfe="Ğ",kfe="ğ",Pfe="Ģ",Tfe="Ĝ",Rfe="ĝ",Efe="Г",$fe="г",Afe="Ġ",Ife="ġ",Mfe="≥",Ofe="≧",zfe="⪌",Dfe="⋛",Lfe="≥",Ffe="≧",Bfe="⩾",Nfe="⪩",Hfe="⩾",jfe="⪀",Vfe="⪂",Wfe="⪄",Ufe="⋛︀",qfe="⪔",Kfe="𝔊",Gfe="𝔤",Yfe="≫",Xfe="⋙",Zfe="⋙",Jfe="ℷ",Qfe="Ѓ",ehe="ѓ",the="⪥",nhe="≷",ohe="⪒",rhe="⪤",ihe="⪊",she="⪊",ahe="⪈",lhe="≩",che="⪈",uhe="≩",dhe="⋧",fhe="𝔾",hhe="𝕘",phe="`",mhe="≥",ghe="⋛",vhe="≧",bhe="⪢",yhe="≷",xhe="⩾",Che="≳",whe="𝒢",_he="ℊ",She="≳",khe="⪎",Phe="⪐",The="⪧",Rhe="⩺",Ehe=">",$he=">",Ahe="≫",Ihe="⋗",Mhe="⦕",Ohe="⩼",zhe="⪆",Dhe="⥸",Lhe="⋗",Fhe="⋛",Bhe="⪌",Nhe="≷",Hhe="≳",jhe="≩︀",Vhe="≩︀",Whe="ˇ",Uhe=" ",qhe="½",Khe="ℋ",Ghe="Ъ",Yhe="ъ",Xhe="⥈",Zhe="↔",Jhe="⇔",Qhe="↭",epe="^",tpe="ℏ",npe="Ĥ",ope="ĥ",rpe="♥",ipe="♥",spe="…",ape="⊹",lpe="𝔥",cpe="ℌ",upe="ℋ",dpe="⤥",fpe="⤦",hpe="⇿",ppe="∻",mpe="↩",gpe="↪",vpe="𝕙",bpe="ℍ",ype="―",xpe="─",Cpe="𝒽",wpe="ℋ",_pe="ℏ",Spe="Ħ",kpe="ħ",Ppe="≎",Tpe="≏",Rpe="⁃",Epe="‐",$pe="Í",Ape="í",Ipe="⁣",Mpe="Î",Ope="î",zpe="И",Dpe="и",Lpe="İ",Fpe="Е",Bpe="е",Npe="¡",Hpe="⇔",jpe="𝔦",Vpe="ℑ",Wpe="Ì",Upe="ì",qpe="ⅈ",Kpe="⨌",Gpe="∭",Ype="⧜",Xpe="℩",Zpe="IJ",Jpe="ij",Qpe="Ī",eme="ī",tme="ℑ",nme="ⅈ",ome="ℐ",rme="ℑ",ime="ı",sme="ℑ",ame="⊷",lme="Ƶ",cme="⇒",ume="℅",dme="∞",fme="⧝",hme="ı",pme="⊺",mme="∫",gme="∬",vme="ℤ",bme="∫",yme="⊺",xme="⋂",Cme="⨗",wme="⨼",_me="⁣",Sme="⁢",kme="Ё",Pme="ё",Tme="Į",Rme="į",Eme="𝕀",$me="𝕚",Ame="Ι",Ime="ι",Mme="⨼",Ome="¿",zme="𝒾",Dme="ℐ",Lme="∈",Fme="⋵",Bme="⋹",Nme="⋴",Hme="⋳",jme="∈",Vme="⁢",Wme="Ĩ",Ume="ĩ",qme="І",Kme="і",Gme="Ï",Yme="ï",Xme="Ĵ",Zme="ĵ",Jme="Й",Qme="й",ege="𝔍",tge="𝔧",nge="ȷ",oge="𝕁",rge="𝕛",ige="𝒥",sge="𝒿",age="Ј",lge="ј",cge="Є",uge="є",dge="Κ",fge="κ",hge="ϰ",pge="Ķ",mge="ķ",gge="К",vge="к",bge="𝔎",yge="𝔨",xge="ĸ",Cge="Х",wge="х",_ge="Ќ",Sge="ќ",kge="𝕂",Pge="𝕜",Tge="𝒦",Rge="𝓀",Ege="⇚",$ge="Ĺ",Age="ĺ",Ige="⦴",Mge="ℒ",Oge="Λ",zge="λ",Dge="⟨",Lge="⟪",Fge="⦑",Bge="⟨",Nge="⪅",Hge="ℒ",jge="«",Vge="⇤",Wge="⤟",Uge="←",qge="↞",Kge="⇐",Gge="⤝",Yge="↩",Xge="↫",Zge="⤹",Jge="⥳",Qge="↢",eve="⤙",tve="⤛",nve="⪫",ove="⪭",rve="⪭︀",ive="⤌",sve="⤎",ave="❲",lve="{",cve="[",uve="⦋",dve="⦏",fve="⦍",hve="Ľ",pve="ľ",mve="Ļ",gve="ļ",vve="⌈",bve="{",yve="Л",xve="л",Cve="⤶",wve="“",_ve="„",Sve="⥧",kve="⥋",Pve="↲",Tve="≤",Rve="≦",Eve="⟨",$ve="⇤",Ave="←",Ive="←",Mve="⇐",Ove="⇆",zve="↢",Dve="⌈",Lve="⟦",Fve="⥡",Bve="⥙",Nve="⇃",Hve="⌊",jve="↽",Vve="↼",Wve="⇇",Uve="↔",qve="↔",Kve="⇔",Gve="⇆",Yve="⇋",Xve="↭",Zve="⥎",Jve="↤",Qve="⊣",ebe="⥚",tbe="⋋",nbe="⧏",obe="⊲",rbe="⊴",ibe="⥑",sbe="⥠",abe="⥘",lbe="↿",cbe="⥒",ube="↼",dbe="⪋",fbe="⋚",hbe="≤",pbe="≦",mbe="⩽",gbe="⪨",vbe="⩽",bbe="⩿",ybe="⪁",xbe="⪃",Cbe="⋚︀",wbe="⪓",_be="⪅",Sbe="⋖",kbe="⋚",Pbe="⪋",Tbe="⋚",Rbe="≦",Ebe="≶",$be="≶",Abe="⪡",Ibe="≲",Mbe="⩽",Obe="≲",zbe="⥼",Dbe="⌊",Lbe="𝔏",Fbe="𝔩",Bbe="≶",Nbe="⪑",Hbe="⥢",jbe="↽",Vbe="↼",Wbe="⥪",Ube="▄",qbe="Љ",Kbe="љ",Gbe="⇇",Ybe="≪",Xbe="⋘",Zbe="⌞",Jbe="⇚",Qbe="⥫",e0e="◺",t0e="Ŀ",n0e="ŀ",o0e="⎰",r0e="⎰",i0e="⪉",s0e="⪉",a0e="⪇",l0e="≨",c0e="⪇",u0e="≨",d0e="⋦",f0e="⟬",h0e="⇽",p0e="⟦",m0e="⟵",g0e="⟵",v0e="⟸",b0e="⟷",y0e="⟷",x0e="⟺",C0e="⟼",w0e="⟶",_0e="⟶",S0e="⟹",k0e="↫",P0e="↬",T0e="⦅",R0e="𝕃",E0e="𝕝",$0e="⨭",A0e="⨴",I0e="∗",M0e="_",O0e="↙",z0e="↘",D0e="◊",L0e="◊",F0e="⧫",B0e="(",N0e="⦓",H0e="⇆",j0e="⌟",V0e="⇋",W0e="⥭",U0e="‎",q0e="⊿",K0e="‹",G0e="𝓁",Y0e="ℒ",X0e="↰",Z0e="↰",J0e="≲",Q0e="⪍",e1e="⪏",t1e="[",n1e="‘",o1e="‚",r1e="Ł",i1e="ł",s1e="⪦",a1e="⩹",l1e="<",c1e="<",u1e="≪",d1e="⋖",f1e="⋋",h1e="⋉",p1e="⥶",m1e="⩻",g1e="◃",v1e="⊴",b1e="◂",y1e="⦖",x1e="⥊",C1e="⥦",w1e="≨︀",_1e="≨︀",S1e="¯",k1e="♂",P1e="✠",T1e="✠",R1e="↦",E1e="↦",$1e="↧",A1e="↤",I1e="↥",M1e="▮",O1e="⨩",z1e="М",D1e="м",L1e="—",F1e="∺",B1e="∡",N1e=" ",H1e="ℳ",j1e="𝔐",V1e="𝔪",W1e="℧",U1e="µ",q1e="*",K1e="⫰",G1e="∣",Y1e="·",X1e="⊟",Z1e="−",J1e="∸",Q1e="⨪",eye="∓",tye="⫛",nye="…",oye="∓",rye="⊧",iye="𝕄",sye="𝕞",aye="∓",lye="𝓂",cye="ℳ",uye="∾",dye="Μ",fye="μ",hye="⊸",pye="⊸",mye="∇",gye="Ń",vye="ń",bye="∠⃒",yye="≉",xye="⩰̸",Cye="≋̸",wye="ʼn",_ye="≉",Sye="♮",kye="ℕ",Pye="♮",Tye=" ",Rye="≎̸",Eye="≏̸",$ye="⩃",Aye="Ň",Iye="ň",Mye="Ņ",Oye="ņ",zye="≇",Dye="⩭̸",Lye="⩂",Fye="Н",Bye="н",Nye="–",Hye="⤤",jye="↗",Vye="⇗",Wye="↗",Uye="≠",qye="≐̸",Kye="​",Gye="​",Yye="​",Xye="​",Zye="≢",Jye="⤨",Qye="≂̸",exe="≫",txe="≪",nxe=` -`,oxe="∄",rxe="∄",ixe="𝔑",sxe="𝔫",axe="≧̸",lxe="≱",cxe="≱",uxe="≧̸",dxe="⩾̸",fxe="⩾̸",hxe="⋙̸",pxe="≵",mxe="≫⃒",gxe="≯",vxe="≯",bxe="≫̸",yxe="↮",xxe="⇎",Cxe="⫲",wxe="∋",_xe="⋼",Sxe="⋺",kxe="∋",Pxe="Њ",Txe="њ",Rxe="↚",Exe="⇍",$xe="‥",Axe="≦̸",Ixe="≰",Mxe="↚",Oxe="⇍",zxe="↮",Dxe="⇎",Lxe="≰",Fxe="≦̸",Bxe="⩽̸",Nxe="⩽̸",Hxe="≮",jxe="⋘̸",Vxe="≴",Wxe="≪⃒",Uxe="≮",qxe="⋪",Kxe="⋬",Gxe="≪̸",Yxe="∤",Xxe="⁠",Zxe=" ",Jxe="𝕟",Qxe="ℕ",eCe="⫬",tCe="¬",nCe="≢",oCe="≭",rCe="∦",iCe="∉",sCe="≠",aCe="≂̸",lCe="∄",cCe="≯",uCe="≱",dCe="≧̸",fCe="≫̸",hCe="≹",pCe="⩾̸",mCe="≵",gCe="≎̸",vCe="≏̸",bCe="∉",yCe="⋵̸",xCe="⋹̸",CCe="∉",wCe="⋷",_Ce="⋶",SCe="⧏̸",kCe="⋪",PCe="⋬",TCe="≮",RCe="≰",ECe="≸",$Ce="≪̸",ACe="⩽̸",ICe="≴",MCe="⪢̸",OCe="⪡̸",zCe="∌",DCe="∌",LCe="⋾",FCe="⋽",BCe="⊀",NCe="⪯̸",HCe="⋠",jCe="∌",VCe="⧐̸",WCe="⋫",UCe="⋭",qCe="⊏̸",KCe="⋢",GCe="⊐̸",YCe="⋣",XCe="⊂⃒",ZCe="⊈",JCe="⊁",QCe="⪰̸",ewe="⋡",twe="≿̸",nwe="⊃⃒",owe="⊉",rwe="≁",iwe="≄",swe="≇",awe="≉",lwe="∤",cwe="∦",uwe="∦",dwe="⫽⃥",fwe="∂̸",hwe="⨔",pwe="⊀",mwe="⋠",gwe="⊀",vwe="⪯̸",bwe="⪯̸",ywe="⤳̸",xwe="↛",Cwe="⇏",wwe="↝̸",_we="↛",Swe="⇏",kwe="⋫",Pwe="⋭",Twe="⊁",Rwe="⋡",Ewe="⪰̸",$we="𝒩",Awe="𝓃",Iwe="∤",Mwe="∦",Owe="≁",zwe="≄",Dwe="≄",Lwe="∤",Fwe="∦",Bwe="⋢",Nwe="⋣",Hwe="⊄",jwe="⫅̸",Vwe="⊈",Wwe="⊂⃒",Uwe="⊈",qwe="⫅̸",Kwe="⊁",Gwe="⪰̸",Ywe="⊅",Xwe="⫆̸",Zwe="⊉",Jwe="⊃⃒",Qwe="⊉",e_e="⫆̸",t_e="≹",n_e="Ñ",o_e="ñ",r_e="≸",i_e="⋪",s_e="⋬",a_e="⋫",l_e="⋭",c_e="Ν",u_e="ν",d_e="#",f_e="№",h_e=" ",p_e="≍⃒",m_e="⊬",g_e="⊭",v_e="⊮",b_e="⊯",y_e="≥⃒",x_e=">⃒",C_e="⤄",w_e="⧞",__e="⤂",S_e="≤⃒",k_e="<⃒",P_e="⊴⃒",T_e="⤃",R_e="⊵⃒",E_e="∼⃒",$_e="⤣",A_e="↖",I_e="⇖",M_e="↖",O_e="⤧",z_e="Ó",D_e="ó",L_e="⊛",F_e="Ô",B_e="ô",N_e="⊚",H_e="О",j_e="о",V_e="⊝",W_e="Ő",U_e="ő",q_e="⨸",K_e="⊙",G_e="⦼",Y_e="Œ",X_e="œ",Z_e="⦿",J_e="𝔒",Q_e="𝔬",e2e="˛",t2e="Ò",n2e="ò",o2e="⧁",r2e="⦵",i2e="Ω",s2e="∮",a2e="↺",l2e="⦾",c2e="⦻",u2e="‾",d2e="⧀",f2e="Ō",h2e="ō",p2e="Ω",m2e="ω",g2e="Ο",v2e="ο",b2e="⦶",y2e="⊖",x2e="𝕆",C2e="𝕠",w2e="⦷",_2e="“",S2e="‘",k2e="⦹",P2e="⊕",T2e="↻",R2e="⩔",E2e="∨",$2e="⩝",A2e="ℴ",I2e="ℴ",M2e="ª",O2e="º",z2e="⊶",D2e="⩖",L2e="⩗",F2e="⩛",B2e="Ⓢ",N2e="𝒪",H2e="ℴ",j2e="Ø",V2e="ø",W2e="⊘",U2e="Õ",q2e="õ",K2e="⨶",G2e="⨷",Y2e="⊗",X2e="Ö",Z2e="ö",J2e="⌽",Q2e="‾",eSe="⏞",tSe="⎴",nSe="⏜",oSe="¶",rSe="∥",iSe="∥",sSe="⫳",aSe="⫽",lSe="∂",cSe="∂",uSe="П",dSe="п",fSe="%",hSe=".",pSe="‰",mSe="⊥",gSe="‱",vSe="𝔓",bSe="𝔭",ySe="Φ",xSe="φ",CSe="ϕ",wSe="ℳ",_Se="☎",SSe="Π",kSe="π",PSe="⋔",TSe="ϖ",RSe="ℏ",ESe="ℎ",$Se="ℏ",ASe="⨣",ISe="⊞",MSe="⨢",OSe="+",zSe="∔",DSe="⨥",LSe="⩲",FSe="±",BSe="±",NSe="⨦",HSe="⨧",jSe="±",VSe="ℌ",WSe="⨕",USe="𝕡",qSe="ℙ",KSe="£",GSe="⪷",YSe="⪻",XSe="≺",ZSe="≼",JSe="⪷",QSe="≺",eke="≼",tke="≺",nke="⪯",oke="≼",rke="≾",ike="⪯",ske="⪹",ake="⪵",lke="⋨",cke="⪯",uke="⪳",dke="≾",fke="′",hke="″",pke="ℙ",mke="⪹",gke="⪵",vke="⋨",bke="∏",yke="∏",xke="⌮",Cke="⌒",wke="⌓",_ke="∝",Ske="∝",kke="∷",Pke="∝",Tke="≾",Rke="⊰",Eke="𝒫",$ke="𝓅",Ake="Ψ",Ike="ψ",Mke=" ",Oke="𝔔",zke="𝔮",Dke="⨌",Lke="𝕢",Fke="ℚ",Bke="⁗",Nke="𝒬",Hke="𝓆",jke="ℍ",Vke="⨖",Wke="?",Uke="≟",qke='"',Kke='"',Gke="⇛",Yke="∽̱",Xke="Ŕ",Zke="ŕ",Jke="√",Qke="⦳",e3e="⟩",t3e="⟫",n3e="⦒",o3e="⦥",r3e="⟩",i3e="»",s3e="⥵",a3e="⇥",l3e="⤠",c3e="⤳",u3e="→",d3e="↠",f3e="⇒",h3e="⤞",p3e="↪",m3e="↬",g3e="⥅",v3e="⥴",b3e="⤖",y3e="↣",x3e="↝",C3e="⤚",w3e="⤜",_3e="∶",S3e="ℚ",k3e="⤍",P3e="⤏",T3e="⤐",R3e="❳",E3e="}",$3e="]",A3e="⦌",I3e="⦎",M3e="⦐",O3e="Ř",z3e="ř",D3e="Ŗ",L3e="ŗ",F3e="⌉",B3e="}",N3e="Р",H3e="р",j3e="⤷",V3e="⥩",W3e="”",U3e="”",q3e="↳",K3e="ℜ",G3e="ℛ",Y3e="ℜ",X3e="ℝ",Z3e="ℜ",J3e="▭",Q3e="®",e4e="®",t4e="∋",n4e="⇋",o4e="⥯",r4e="⥽",i4e="⌋",s4e="𝔯",a4e="ℜ",l4e="⥤",c4e="⇁",u4e="⇀",d4e="⥬",f4e="Ρ",h4e="ρ",p4e="ϱ",m4e="⟩",g4e="⇥",v4e="→",b4e="→",y4e="⇒",x4e="⇄",C4e="↣",w4e="⌉",_4e="⟧",S4e="⥝",k4e="⥕",P4e="⇂",T4e="⌋",R4e="⇁",E4e="⇀",$4e="⇄",A4e="⇌",I4e="⇉",M4e="↝",O4e="↦",z4e="⊢",D4e="⥛",L4e="⋌",F4e="⧐",B4e="⊳",N4e="⊵",H4e="⥏",j4e="⥜",V4e="⥔",W4e="↾",U4e="⥓",q4e="⇀",K4e="˚",G4e="≓",Y4e="⇄",X4e="⇌",Z4e="‏",J4e="⎱",Q4e="⎱",ePe="⫮",tPe="⟭",nPe="⇾",oPe="⟧",rPe="⦆",iPe="𝕣",sPe="ℝ",aPe="⨮",lPe="⨵",cPe="⥰",uPe=")",dPe="⦔",fPe="⨒",hPe="⇉",pPe="⇛",mPe="›",gPe="𝓇",vPe="ℛ",bPe="↱",yPe="↱",xPe="]",CPe="’",wPe="’",_Pe="⋌",SPe="⋊",kPe="▹",PPe="⊵",TPe="▸",RPe="⧎",EPe="⧴",$Pe="⥨",APe="℞",IPe="Ś",MPe="ś",OPe="‚",zPe="⪸",DPe="Š",LPe="š",FPe="⪼",BPe="≻",NPe="≽",HPe="⪰",jPe="⪴",VPe="Ş",WPe="ş",UPe="Ŝ",qPe="ŝ",KPe="⪺",GPe="⪶",YPe="⋩",XPe="⨓",ZPe="≿",JPe="С",QPe="с",eTe="⊡",tTe="⋅",nTe="⩦",oTe="⤥",rTe="↘",iTe="⇘",sTe="↘",aTe="§",lTe=";",cTe="⤩",uTe="∖",dTe="∖",fTe="✶",hTe="𝔖",pTe="𝔰",mTe="⌢",gTe="♯",vTe="Щ",bTe="щ",yTe="Ш",xTe="ш",CTe="↓",wTe="←",_Te="∣",STe="∥",kTe="→",PTe="↑",TTe="­",RTe="Σ",ETe="σ",$Te="ς",ATe="ς",ITe="∼",MTe="⩪",OTe="≃",zTe="≃",DTe="⪞",LTe="⪠",FTe="⪝",BTe="⪟",NTe="≆",HTe="⨤",jTe="⥲",VTe="←",WTe="∘",UTe="∖",qTe="⨳",KTe="⧤",GTe="∣",YTe="⌣",XTe="⪪",ZTe="⪬",JTe="⪬︀",QTe="Ь",e5e="ь",t5e="⌿",n5e="⧄",o5e="/",r5e="𝕊",i5e="𝕤",s5e="♠",a5e="♠",l5e="∥",c5e="⊓",u5e="⊓︀",d5e="⊔",f5e="⊔︀",h5e="√",p5e="⊏",m5e="⊑",g5e="⊏",v5e="⊑",b5e="⊐",y5e="⊒",x5e="⊐",C5e="⊒",w5e="□",_5e="□",S5e="⊓",k5e="⊏",P5e="⊑",T5e="⊐",R5e="⊒",E5e="⊔",$5e="▪",A5e="□",I5e="▪",M5e="→",O5e="𝒮",z5e="𝓈",D5e="∖",L5e="⌣",F5e="⋆",B5e="⋆",N5e="☆",H5e="★",j5e="ϵ",V5e="ϕ",W5e="¯",U5e="⊂",q5e="⋐",K5e="⪽",G5e="⫅",Y5e="⊆",X5e="⫃",Z5e="⫁",J5e="⫋",Q5e="⊊",eRe="⪿",tRe="⥹",nRe="⊂",oRe="⋐",rRe="⊆",iRe="⫅",sRe="⊆",aRe="⊊",lRe="⫋",cRe="⫇",uRe="⫕",dRe="⫓",fRe="⪸",hRe="≻",pRe="≽",mRe="≻",gRe="⪰",vRe="≽",bRe="≿",yRe="⪰",xRe="⪺",CRe="⪶",wRe="⋩",_Re="≿",SRe="∋",kRe="∑",PRe="∑",TRe="♪",RRe="¹",ERe="²",$Re="³",ARe="⊃",IRe="⋑",MRe="⪾",ORe="⫘",zRe="⫆",DRe="⊇",LRe="⫄",FRe="⊃",BRe="⊇",NRe="⟉",HRe="⫗",jRe="⥻",VRe="⫂",WRe="⫌",URe="⊋",qRe="⫀",KRe="⊃",GRe="⋑",YRe="⊇",XRe="⫆",ZRe="⊋",JRe="⫌",QRe="⫈",eEe="⫔",tEe="⫖",nEe="⤦",oEe="↙",rEe="⇙",iEe="↙",sEe="⤪",aEe="ß",lEe=" ",cEe="⌖",uEe="Τ",dEe="τ",fEe="⎴",hEe="Ť",pEe="ť",mEe="Ţ",gEe="ţ",vEe="Т",bEe="т",yEe="⃛",xEe="⌕",CEe="𝔗",wEe="𝔱",_Ee="∴",SEe="∴",kEe="∴",PEe="Θ",TEe="θ",REe="ϑ",EEe="ϑ",$Ee="≈",AEe="∼",IEe="  ",MEe=" ",OEe=" ",zEe="≈",DEe="∼",LEe="Þ",FEe="þ",BEe="˜",NEe="∼",HEe="≃",jEe="≅",VEe="≈",WEe="⨱",UEe="⊠",qEe="×",KEe="⨰",GEe="∭",YEe="⤨",XEe="⌶",ZEe="⫱",JEe="⊤",QEe="𝕋",e$e="𝕥",t$e="⫚",n$e="⤩",o$e="‴",r$e="™",i$e="™",s$e="▵",a$e="▿",l$e="◃",c$e="⊴",u$e="≜",d$e="▹",f$e="⊵",h$e="◬",p$e="≜",m$e="⨺",g$e="⃛",v$e="⨹",b$e="⧍",y$e="⨻",x$e="⏢",C$e="𝒯",w$e="𝓉",_$e="Ц",S$e="ц",k$e="Ћ",P$e="ћ",T$e="Ŧ",R$e="ŧ",E$e="≬",$$e="↞",A$e="↠",I$e="Ú",M$e="ú",O$e="↑",z$e="↟",D$e="⇑",L$e="⥉",F$e="Ў",B$e="ў",N$e="Ŭ",H$e="ŭ",j$e="Û",V$e="û",W$e="У",U$e="у",q$e="⇅",K$e="Ű",G$e="ű",Y$e="⥮",X$e="⥾",Z$e="𝔘",J$e="𝔲",Q$e="Ù",eAe="ù",tAe="⥣",nAe="↿",oAe="↾",rAe="▀",iAe="⌜",sAe="⌜",aAe="⌏",lAe="◸",cAe="Ū",uAe="ū",dAe="¨",fAe="_",hAe="⏟",pAe="⎵",mAe="⏝",gAe="⋃",vAe="⊎",bAe="Ų",yAe="ų",xAe="𝕌",CAe="𝕦",wAe="⤒",_Ae="↑",SAe="↑",kAe="⇑",PAe="⇅",TAe="↕",RAe="↕",EAe="⇕",$Ae="⥮",AAe="↿",IAe="↾",MAe="⊎",OAe="↖",zAe="↗",DAe="υ",LAe="ϒ",FAe="ϒ",BAe="Υ",NAe="υ",HAe="↥",jAe="⊥",VAe="⇈",WAe="⌝",UAe="⌝",qAe="⌎",KAe="Ů",GAe="ů",YAe="◹",XAe="𝒰",ZAe="𝓊",JAe="⋰",QAe="Ũ",e6e="ũ",t6e="▵",n6e="▴",o6e="⇈",r6e="Ü",i6e="ü",s6e="⦧",a6e="⦜",l6e="ϵ",c6e="ϰ",u6e="∅",d6e="ϕ",f6e="ϖ",h6e="∝",p6e="↕",m6e="⇕",g6e="ϱ",v6e="ς",b6e="⊊︀",y6e="⫋︀",x6e="⊋︀",C6e="⫌︀",w6e="ϑ",_6e="⊲",S6e="⊳",k6e="⫨",P6e="⫫",T6e="⫩",R6e="В",E6e="в",$6e="⊢",A6e="⊨",I6e="⊩",M6e="⊫",O6e="⫦",z6e="⊻",D6e="∨",L6e="⋁",F6e="≚",B6e="⋮",N6e="|",H6e="‖",j6e="|",V6e="‖",W6e="∣",U6e="|",q6e="❘",K6e="≀",G6e=" ",Y6e="𝔙",X6e="𝔳",Z6e="⊲",J6e="⊂⃒",Q6e="⊃⃒",e8e="𝕍",t8e="𝕧",n8e="∝",o8e="⊳",r8e="𝒱",i8e="𝓋",s8e="⫋︀",a8e="⊊︀",l8e="⫌︀",c8e="⊋︀",u8e="⊪",d8e="⦚",f8e="Ŵ",h8e="ŵ",p8e="⩟",m8e="∧",g8e="⋀",v8e="≙",b8e="℘",y8e="𝔚",x8e="𝔴",C8e="𝕎",w8e="𝕨",_8e="℘",S8e="≀",k8e="≀",P8e="𝒲",T8e="𝓌",R8e="⋂",E8e="◯",$8e="⋃",A8e="▽",I8e="𝔛",M8e="𝔵",O8e="⟷",z8e="⟺",D8e="Ξ",L8e="ξ",F8e="⟵",B8e="⟸",N8e="⟼",H8e="⋻",j8e="⨀",V8e="𝕏",W8e="𝕩",U8e="⨁",q8e="⨂",K8e="⟶",G8e="⟹",Y8e="𝒳",X8e="𝓍",Z8e="⨆",J8e="⨄",Q8e="△",eIe="⋁",tIe="⋀",nIe="Ý",oIe="ý",rIe="Я",iIe="я",sIe="Ŷ",aIe="ŷ",lIe="Ы",cIe="ы",uIe="¥",dIe="𝔜",fIe="𝔶",hIe="Ї",pIe="ї",mIe="𝕐",gIe="𝕪",vIe="𝒴",bIe="𝓎",yIe="Ю",xIe="ю",CIe="ÿ",wIe="Ÿ",_Ie="Ź",SIe="ź",kIe="Ž",PIe="ž",TIe="З",RIe="з",EIe="Ż",$Ie="ż",AIe="ℨ",IIe="​",MIe="Ζ",OIe="ζ",zIe="𝔷",DIe="ℨ",LIe="Ж",FIe="ж",BIe="⇝",NIe="𝕫",HIe="ℤ",jIe="𝒵",VIe="𝓏",WIe="‍",UIe="‌",qIe={Aacute:Ete,aacute:$te,Abreve:Ate,abreve:Ite,ac:Mte,acd:Ote,acE:zte,Acirc:Dte,acirc:Lte,acute:Fte,Acy:Bte,acy:Nte,AElig:Hte,aelig:jte,af:Vte,Afr:Wte,afr:Ute,Agrave:qte,agrave:Kte,alefsym:Gte,aleph:Yte,Alpha:Xte,alpha:Zte,Amacr:Jte,amacr:Qte,amalg:ene,amp:tne,AMP:nne,andand:one,And:rne,and:ine,andd:sne,andslope:ane,andv:lne,ang:cne,ange:une,angle:dne,angmsdaa:fne,angmsdab:hne,angmsdac:pne,angmsdad:mne,angmsdae:gne,angmsdaf:vne,angmsdag:bne,angmsdah:yne,angmsd:xne,angrt:Cne,angrtvb:wne,angrtvbd:_ne,angsph:Sne,angst:kne,angzarr:Pne,Aogon:Tne,aogon:Rne,Aopf:Ene,aopf:$ne,apacir:Ane,ap:Ine,apE:Mne,ape:One,apid:zne,apos:Dne,ApplyFunction:Lne,approx:Fne,approxeq:Bne,Aring:Nne,aring:Hne,Ascr:jne,ascr:Vne,Assign:Wne,ast:Une,asymp:qne,asympeq:Kne,Atilde:Gne,atilde:Yne,Auml:Xne,auml:Zne,awconint:Jne,awint:Qne,backcong:eoe,backepsilon:toe,backprime:noe,backsim:ooe,backsimeq:roe,Backslash:ioe,Barv:soe,barvee:aoe,barwed:loe,Barwed:coe,barwedge:uoe,bbrk:doe,bbrktbrk:foe,bcong:hoe,Bcy:poe,bcy:moe,bdquo:goe,becaus:voe,because:boe,Because:yoe,bemptyv:xoe,bepsi:Coe,bernou:woe,Bernoullis:_oe,Beta:Soe,beta:koe,beth:Poe,between:Toe,Bfr:Roe,bfr:Eoe,bigcap:$oe,bigcirc:Aoe,bigcup:Ioe,bigodot:Moe,bigoplus:Ooe,bigotimes:zoe,bigsqcup:Doe,bigstar:Loe,bigtriangledown:Foe,bigtriangleup:Boe,biguplus:Noe,bigvee:Hoe,bigwedge:joe,bkarow:Voe,blacklozenge:Woe,blacksquare:Uoe,blacktriangle:qoe,blacktriangledown:Koe,blacktriangleleft:Goe,blacktriangleright:Yoe,blank:Xoe,blk12:Zoe,blk14:Joe,blk34:Qoe,block:ere,bne:tre,bnequiv:nre,bNot:ore,bnot:rre,Bopf:ire,bopf:sre,bot:are,bottom:lre,bowtie:cre,boxbox:ure,boxdl:dre,boxdL:fre,boxDl:hre,boxDL:pre,boxdr:mre,boxdR:gre,boxDr:vre,boxDR:bre,boxh:yre,boxH:xre,boxhd:Cre,boxHd:wre,boxhD:_re,boxHD:Sre,boxhu:kre,boxHu:Pre,boxhU:Tre,boxHU:Rre,boxminus:Ere,boxplus:$re,boxtimes:Are,boxul:Ire,boxuL:Mre,boxUl:Ore,boxUL:zre,boxur:Dre,boxuR:Lre,boxUr:Fre,boxUR:Bre,boxv:Nre,boxV:Hre,boxvh:jre,boxvH:Vre,boxVh:Wre,boxVH:Ure,boxvl:qre,boxvL:Kre,boxVl:Gre,boxVL:Yre,boxvr:Xre,boxvR:Zre,boxVr:Jre,boxVR:Qre,bprime:eie,breve:tie,Breve:nie,brvbar:oie,bscr:rie,Bscr:iie,bsemi:sie,bsim:aie,bsime:lie,bsolb:cie,bsol:uie,bsolhsub:die,bull:fie,bullet:hie,bump:pie,bumpE:mie,bumpe:gie,Bumpeq:vie,bumpeq:bie,Cacute:yie,cacute:xie,capand:Cie,capbrcup:wie,capcap:_ie,cap:Sie,Cap:kie,capcup:Pie,capdot:Tie,CapitalDifferentialD:Rie,caps:Eie,caret:$ie,caron:Aie,Cayleys:Iie,ccaps:Mie,Ccaron:Oie,ccaron:zie,Ccedil:Die,ccedil:Lie,Ccirc:Fie,ccirc:Bie,Cconint:Nie,ccups:Hie,ccupssm:jie,Cdot:Vie,cdot:Wie,cedil:Uie,Cedilla:qie,cemptyv:Kie,cent:Gie,centerdot:Yie,CenterDot:Xie,cfr:Zie,Cfr:Jie,CHcy:Qie,chcy:ese,check:tse,checkmark:nse,Chi:ose,chi:rse,circ:ise,circeq:sse,circlearrowleft:ase,circlearrowright:lse,circledast:cse,circledcirc:use,circleddash:dse,CircleDot:fse,circledR:hse,circledS:pse,CircleMinus:mse,CirclePlus:gse,CircleTimes:vse,cir:bse,cirE:yse,cire:xse,cirfnint:Cse,cirmid:wse,cirscir:_se,ClockwiseContourIntegral:Sse,CloseCurlyDoubleQuote:kse,CloseCurlyQuote:Pse,clubs:Tse,clubsuit:Rse,colon:Ese,Colon:$se,Colone:Ase,colone:Ise,coloneq:Mse,comma:Ose,commat:zse,comp:Dse,compfn:Lse,complement:Fse,complexes:Bse,cong:Nse,congdot:Hse,Congruent:jse,conint:Vse,Conint:Wse,ContourIntegral:Use,copf:qse,Copf:Kse,coprod:Gse,Coproduct:Yse,copy:Xse,COPY:Zse,copysr:Jse,CounterClockwiseContourIntegral:Qse,crarr:eae,cross:tae,Cross:nae,Cscr:oae,cscr:rae,csub:iae,csube:sae,csup:aae,csupe:lae,ctdot:cae,cudarrl:uae,cudarrr:dae,cuepr:fae,cuesc:hae,cularr:pae,cularrp:mae,cupbrcap:gae,cupcap:vae,CupCap:bae,cup:yae,Cup:xae,cupcup:Cae,cupdot:wae,cupor:_ae,cups:Sae,curarr:kae,curarrm:Pae,curlyeqprec:Tae,curlyeqsucc:Rae,curlyvee:Eae,curlywedge:$ae,curren:Aae,curvearrowleft:Iae,curvearrowright:Mae,cuvee:Oae,cuwed:zae,cwconint:Dae,cwint:Lae,cylcty:Fae,dagger:Bae,Dagger:Nae,daleth:Hae,darr:jae,Darr:Vae,dArr:Wae,dash:Uae,Dashv:qae,dashv:Kae,dbkarow:Gae,dblac:Yae,Dcaron:Xae,dcaron:Zae,Dcy:Jae,dcy:Qae,ddagger:ele,ddarr:tle,DD:nle,dd:ole,DDotrahd:rle,ddotseq:ile,deg:sle,Del:ale,Delta:lle,delta:cle,demptyv:ule,dfisht:dle,Dfr:fle,dfr:hle,dHar:ple,dharl:mle,dharr:gle,DiacriticalAcute:vle,DiacriticalDot:ble,DiacriticalDoubleAcute:yle,DiacriticalGrave:xle,DiacriticalTilde:Cle,diam:wle,diamond:_le,Diamond:Sle,diamondsuit:kle,diams:Ple,die:Tle,DifferentialD:Rle,digamma:Ele,disin:$le,div:Ale,divide:Ile,divideontimes:Mle,divonx:Ole,DJcy:zle,djcy:Dle,dlcorn:Lle,dlcrop:Fle,dollar:Ble,Dopf:Nle,dopf:Hle,Dot:jle,dot:Vle,DotDot:Wle,doteq:Ule,doteqdot:qle,DotEqual:Kle,dotminus:Gle,dotplus:Yle,dotsquare:Xle,doublebarwedge:Zle,DoubleContourIntegral:Jle,DoubleDot:Qle,DoubleDownArrow:ece,DoubleLeftArrow:tce,DoubleLeftRightArrow:nce,DoubleLeftTee:oce,DoubleLongLeftArrow:rce,DoubleLongLeftRightArrow:ice,DoubleLongRightArrow:sce,DoubleRightArrow:ace,DoubleRightTee:lce,DoubleUpArrow:cce,DoubleUpDownArrow:uce,DoubleVerticalBar:dce,DownArrowBar:fce,downarrow:hce,DownArrow:pce,Downarrow:mce,DownArrowUpArrow:gce,DownBreve:vce,downdownarrows:bce,downharpoonleft:yce,downharpoonright:xce,DownLeftRightVector:Cce,DownLeftTeeVector:wce,DownLeftVectorBar:_ce,DownLeftVector:Sce,DownRightTeeVector:kce,DownRightVectorBar:Pce,DownRightVector:Tce,DownTeeArrow:Rce,DownTee:Ece,drbkarow:$ce,drcorn:Ace,drcrop:Ice,Dscr:Mce,dscr:Oce,DScy:zce,dscy:Dce,dsol:Lce,Dstrok:Fce,dstrok:Bce,dtdot:Nce,dtri:Hce,dtrif:jce,duarr:Vce,duhar:Wce,dwangle:Uce,DZcy:qce,dzcy:Kce,dzigrarr:Gce,Eacute:Yce,eacute:Xce,easter:Zce,Ecaron:Jce,ecaron:Qce,Ecirc:eue,ecirc:tue,ecir:nue,ecolon:oue,Ecy:rue,ecy:iue,eDDot:sue,Edot:aue,edot:lue,eDot:cue,ee:uue,efDot:due,Efr:fue,efr:hue,eg:pue,Egrave:mue,egrave:gue,egs:vue,egsdot:bue,el:yue,Element:xue,elinters:Cue,ell:wue,els:_ue,elsdot:Sue,Emacr:kue,emacr:Pue,empty:Tue,emptyset:Rue,EmptySmallSquare:Eue,emptyv:$ue,EmptyVerySmallSquare:Aue,emsp13:Iue,emsp14:Mue,emsp:Oue,ENG:zue,eng:Due,ensp:Lue,Eogon:Fue,eogon:Bue,Eopf:Nue,eopf:Hue,epar:jue,eparsl:Vue,eplus:Wue,epsi:Uue,Epsilon:que,epsilon:Kue,epsiv:Gue,eqcirc:Yue,eqcolon:Xue,eqsim:Zue,eqslantgtr:Jue,eqslantless:Que,Equal:ede,equals:tde,EqualTilde:nde,equest:ode,Equilibrium:rde,equiv:ide,equivDD:sde,eqvparsl:ade,erarr:lde,erDot:cde,escr:ude,Escr:dde,esdot:fde,Esim:hde,esim:pde,Eta:mde,eta:gde,ETH:vde,eth:bde,Euml:yde,euml:xde,euro:Cde,excl:wde,exist:_de,Exists:Sde,expectation:kde,exponentiale:Pde,ExponentialE:Tde,fallingdotseq:Rde,Fcy:Ede,fcy:$de,female:Ade,ffilig:Ide,fflig:Mde,ffllig:Ode,Ffr:zde,ffr:Dde,filig:Lde,FilledSmallSquare:Fde,FilledVerySmallSquare:Bde,fjlig:Nde,flat:Hde,fllig:jde,fltns:Vde,fnof:Wde,Fopf:Ude,fopf:qde,forall:Kde,ForAll:Gde,fork:Yde,forkv:Xde,Fouriertrf:Zde,fpartint:Jde,frac12:Qde,frac13:efe,frac14:tfe,frac15:nfe,frac16:ofe,frac18:rfe,frac23:ife,frac25:sfe,frac34:afe,frac35:lfe,frac38:cfe,frac45:ufe,frac56:dfe,frac58:ffe,frac78:hfe,frasl:pfe,frown:mfe,fscr:gfe,Fscr:vfe,gacute:bfe,Gamma:yfe,gamma:xfe,Gammad:Cfe,gammad:wfe,gap:_fe,Gbreve:Sfe,gbreve:kfe,Gcedil:Pfe,Gcirc:Tfe,gcirc:Rfe,Gcy:Efe,gcy:$fe,Gdot:Afe,gdot:Ife,ge:Mfe,gE:Ofe,gEl:zfe,gel:Dfe,geq:Lfe,geqq:Ffe,geqslant:Bfe,gescc:Nfe,ges:Hfe,gesdot:jfe,gesdoto:Vfe,gesdotol:Wfe,gesl:Ufe,gesles:qfe,Gfr:Kfe,gfr:Gfe,gg:Yfe,Gg:Xfe,ggg:Zfe,gimel:Jfe,GJcy:Qfe,gjcy:ehe,gla:the,gl:nhe,glE:ohe,glj:rhe,gnap:ihe,gnapprox:she,gne:ahe,gnE:lhe,gneq:che,gneqq:uhe,gnsim:dhe,Gopf:fhe,gopf:hhe,grave:phe,GreaterEqual:mhe,GreaterEqualLess:ghe,GreaterFullEqual:vhe,GreaterGreater:bhe,GreaterLess:yhe,GreaterSlantEqual:xhe,GreaterTilde:Che,Gscr:whe,gscr:_he,gsim:She,gsime:khe,gsiml:Phe,gtcc:The,gtcir:Rhe,gt:Ehe,GT:$he,Gt:Ahe,gtdot:Ihe,gtlPar:Mhe,gtquest:Ohe,gtrapprox:zhe,gtrarr:Dhe,gtrdot:Lhe,gtreqless:Fhe,gtreqqless:Bhe,gtrless:Nhe,gtrsim:Hhe,gvertneqq:jhe,gvnE:Vhe,Hacek:Whe,hairsp:Uhe,half:qhe,hamilt:Khe,HARDcy:Ghe,hardcy:Yhe,harrcir:Xhe,harr:Zhe,hArr:Jhe,harrw:Qhe,Hat:epe,hbar:tpe,Hcirc:npe,hcirc:ope,hearts:rpe,heartsuit:ipe,hellip:spe,hercon:ape,hfr:lpe,Hfr:cpe,HilbertSpace:upe,hksearow:dpe,hkswarow:fpe,hoarr:hpe,homtht:ppe,hookleftarrow:mpe,hookrightarrow:gpe,hopf:vpe,Hopf:bpe,horbar:ype,HorizontalLine:xpe,hscr:Cpe,Hscr:wpe,hslash:_pe,Hstrok:Spe,hstrok:kpe,HumpDownHump:Ppe,HumpEqual:Tpe,hybull:Rpe,hyphen:Epe,Iacute:$pe,iacute:Ape,ic:Ipe,Icirc:Mpe,icirc:Ope,Icy:zpe,icy:Dpe,Idot:Lpe,IEcy:Fpe,iecy:Bpe,iexcl:Npe,iff:Hpe,ifr:jpe,Ifr:Vpe,Igrave:Wpe,igrave:Upe,ii:qpe,iiiint:Kpe,iiint:Gpe,iinfin:Ype,iiota:Xpe,IJlig:Zpe,ijlig:Jpe,Imacr:Qpe,imacr:eme,image:tme,ImaginaryI:nme,imagline:ome,imagpart:rme,imath:ime,Im:sme,imof:ame,imped:lme,Implies:cme,incare:ume,in:"∈",infin:dme,infintie:fme,inodot:hme,intcal:pme,int:mme,Int:gme,integers:vme,Integral:bme,intercal:yme,Intersection:xme,intlarhk:Cme,intprod:wme,InvisibleComma:_me,InvisibleTimes:Sme,IOcy:kme,iocy:Pme,Iogon:Tme,iogon:Rme,Iopf:Eme,iopf:$me,Iota:Ame,iota:Ime,iprod:Mme,iquest:Ome,iscr:zme,Iscr:Dme,isin:Lme,isindot:Fme,isinE:Bme,isins:Nme,isinsv:Hme,isinv:jme,it:Vme,Itilde:Wme,itilde:Ume,Iukcy:qme,iukcy:Kme,Iuml:Gme,iuml:Yme,Jcirc:Xme,jcirc:Zme,Jcy:Jme,jcy:Qme,Jfr:ege,jfr:tge,jmath:nge,Jopf:oge,jopf:rge,Jscr:ige,jscr:sge,Jsercy:age,jsercy:lge,Jukcy:cge,jukcy:uge,Kappa:dge,kappa:fge,kappav:hge,Kcedil:pge,kcedil:mge,Kcy:gge,kcy:vge,Kfr:bge,kfr:yge,kgreen:xge,KHcy:Cge,khcy:wge,KJcy:_ge,kjcy:Sge,Kopf:kge,kopf:Pge,Kscr:Tge,kscr:Rge,lAarr:Ege,Lacute:$ge,lacute:Age,laemptyv:Ige,lagran:Mge,Lambda:Oge,lambda:zge,lang:Dge,Lang:Lge,langd:Fge,langle:Bge,lap:Nge,Laplacetrf:Hge,laquo:jge,larrb:Vge,larrbfs:Wge,larr:Uge,Larr:qge,lArr:Kge,larrfs:Gge,larrhk:Yge,larrlp:Xge,larrpl:Zge,larrsim:Jge,larrtl:Qge,latail:eve,lAtail:tve,lat:nve,late:ove,lates:rve,lbarr:ive,lBarr:sve,lbbrk:ave,lbrace:lve,lbrack:cve,lbrke:uve,lbrksld:dve,lbrkslu:fve,Lcaron:hve,lcaron:pve,Lcedil:mve,lcedil:gve,lceil:vve,lcub:bve,Lcy:yve,lcy:xve,ldca:Cve,ldquo:wve,ldquor:_ve,ldrdhar:Sve,ldrushar:kve,ldsh:Pve,le:Tve,lE:Rve,LeftAngleBracket:Eve,LeftArrowBar:$ve,leftarrow:Ave,LeftArrow:Ive,Leftarrow:Mve,LeftArrowRightArrow:Ove,leftarrowtail:zve,LeftCeiling:Dve,LeftDoubleBracket:Lve,LeftDownTeeVector:Fve,LeftDownVectorBar:Bve,LeftDownVector:Nve,LeftFloor:Hve,leftharpoondown:jve,leftharpoonup:Vve,leftleftarrows:Wve,leftrightarrow:Uve,LeftRightArrow:qve,Leftrightarrow:Kve,leftrightarrows:Gve,leftrightharpoons:Yve,leftrightsquigarrow:Xve,LeftRightVector:Zve,LeftTeeArrow:Jve,LeftTee:Qve,LeftTeeVector:ebe,leftthreetimes:tbe,LeftTriangleBar:nbe,LeftTriangle:obe,LeftTriangleEqual:rbe,LeftUpDownVector:ibe,LeftUpTeeVector:sbe,LeftUpVectorBar:abe,LeftUpVector:lbe,LeftVectorBar:cbe,LeftVector:ube,lEg:dbe,leg:fbe,leq:hbe,leqq:pbe,leqslant:mbe,lescc:gbe,les:vbe,lesdot:bbe,lesdoto:ybe,lesdotor:xbe,lesg:Cbe,lesges:wbe,lessapprox:_be,lessdot:Sbe,lesseqgtr:kbe,lesseqqgtr:Pbe,LessEqualGreater:Tbe,LessFullEqual:Rbe,LessGreater:Ebe,lessgtr:$be,LessLess:Abe,lesssim:Ibe,LessSlantEqual:Mbe,LessTilde:Obe,lfisht:zbe,lfloor:Dbe,Lfr:Lbe,lfr:Fbe,lg:Bbe,lgE:Nbe,lHar:Hbe,lhard:jbe,lharu:Vbe,lharul:Wbe,lhblk:Ube,LJcy:qbe,ljcy:Kbe,llarr:Gbe,ll:Ybe,Ll:Xbe,llcorner:Zbe,Lleftarrow:Jbe,llhard:Qbe,lltri:e0e,Lmidot:t0e,lmidot:n0e,lmoustache:o0e,lmoust:r0e,lnap:i0e,lnapprox:s0e,lne:a0e,lnE:l0e,lneq:c0e,lneqq:u0e,lnsim:d0e,loang:f0e,loarr:h0e,lobrk:p0e,longleftarrow:m0e,LongLeftArrow:g0e,Longleftarrow:v0e,longleftrightarrow:b0e,LongLeftRightArrow:y0e,Longleftrightarrow:x0e,longmapsto:C0e,longrightarrow:w0e,LongRightArrow:_0e,Longrightarrow:S0e,looparrowleft:k0e,looparrowright:P0e,lopar:T0e,Lopf:R0e,lopf:E0e,loplus:$0e,lotimes:A0e,lowast:I0e,lowbar:M0e,LowerLeftArrow:O0e,LowerRightArrow:z0e,loz:D0e,lozenge:L0e,lozf:F0e,lpar:B0e,lparlt:N0e,lrarr:H0e,lrcorner:j0e,lrhar:V0e,lrhard:W0e,lrm:U0e,lrtri:q0e,lsaquo:K0e,lscr:G0e,Lscr:Y0e,lsh:X0e,Lsh:Z0e,lsim:J0e,lsime:Q0e,lsimg:e1e,lsqb:t1e,lsquo:n1e,lsquor:o1e,Lstrok:r1e,lstrok:i1e,ltcc:s1e,ltcir:a1e,lt:l1e,LT:c1e,Lt:u1e,ltdot:d1e,lthree:f1e,ltimes:h1e,ltlarr:p1e,ltquest:m1e,ltri:g1e,ltrie:v1e,ltrif:b1e,ltrPar:y1e,lurdshar:x1e,luruhar:C1e,lvertneqq:w1e,lvnE:_1e,macr:S1e,male:k1e,malt:P1e,maltese:T1e,Map:"⤅",map:R1e,mapsto:E1e,mapstodown:$1e,mapstoleft:A1e,mapstoup:I1e,marker:M1e,mcomma:O1e,Mcy:z1e,mcy:D1e,mdash:L1e,mDDot:F1e,measuredangle:B1e,MediumSpace:N1e,Mellintrf:H1e,Mfr:j1e,mfr:V1e,mho:W1e,micro:U1e,midast:q1e,midcir:K1e,mid:G1e,middot:Y1e,minusb:X1e,minus:Z1e,minusd:J1e,minusdu:Q1e,MinusPlus:eye,mlcp:tye,mldr:nye,mnplus:oye,models:rye,Mopf:iye,mopf:sye,mp:aye,mscr:lye,Mscr:cye,mstpos:uye,Mu:dye,mu:fye,multimap:hye,mumap:pye,nabla:mye,Nacute:gye,nacute:vye,nang:bye,nap:yye,napE:xye,napid:Cye,napos:wye,napprox:_ye,natural:Sye,naturals:kye,natur:Pye,nbsp:Tye,nbump:Rye,nbumpe:Eye,ncap:$ye,Ncaron:Aye,ncaron:Iye,Ncedil:Mye,ncedil:Oye,ncong:zye,ncongdot:Dye,ncup:Lye,Ncy:Fye,ncy:Bye,ndash:Nye,nearhk:Hye,nearr:jye,neArr:Vye,nearrow:Wye,ne:Uye,nedot:qye,NegativeMediumSpace:Kye,NegativeThickSpace:Gye,NegativeThinSpace:Yye,NegativeVeryThinSpace:Xye,nequiv:Zye,nesear:Jye,nesim:Qye,NestedGreaterGreater:exe,NestedLessLess:txe,NewLine:nxe,nexist:oxe,nexists:rxe,Nfr:ixe,nfr:sxe,ngE:axe,nge:lxe,ngeq:cxe,ngeqq:uxe,ngeqslant:dxe,nges:fxe,nGg:hxe,ngsim:pxe,nGt:mxe,ngt:gxe,ngtr:vxe,nGtv:bxe,nharr:yxe,nhArr:xxe,nhpar:Cxe,ni:wxe,nis:_xe,nisd:Sxe,niv:kxe,NJcy:Pxe,njcy:Txe,nlarr:Rxe,nlArr:Exe,nldr:$xe,nlE:Axe,nle:Ixe,nleftarrow:Mxe,nLeftarrow:Oxe,nleftrightarrow:zxe,nLeftrightarrow:Dxe,nleq:Lxe,nleqq:Fxe,nleqslant:Bxe,nles:Nxe,nless:Hxe,nLl:jxe,nlsim:Vxe,nLt:Wxe,nlt:Uxe,nltri:qxe,nltrie:Kxe,nLtv:Gxe,nmid:Yxe,NoBreak:Xxe,NonBreakingSpace:Zxe,nopf:Jxe,Nopf:Qxe,Not:eCe,not:tCe,NotCongruent:nCe,NotCupCap:oCe,NotDoubleVerticalBar:rCe,NotElement:iCe,NotEqual:sCe,NotEqualTilde:aCe,NotExists:lCe,NotGreater:cCe,NotGreaterEqual:uCe,NotGreaterFullEqual:dCe,NotGreaterGreater:fCe,NotGreaterLess:hCe,NotGreaterSlantEqual:pCe,NotGreaterTilde:mCe,NotHumpDownHump:gCe,NotHumpEqual:vCe,notin:bCe,notindot:yCe,notinE:xCe,notinva:CCe,notinvb:wCe,notinvc:_Ce,NotLeftTriangleBar:SCe,NotLeftTriangle:kCe,NotLeftTriangleEqual:PCe,NotLess:TCe,NotLessEqual:RCe,NotLessGreater:ECe,NotLessLess:$Ce,NotLessSlantEqual:ACe,NotLessTilde:ICe,NotNestedGreaterGreater:MCe,NotNestedLessLess:OCe,notni:zCe,notniva:DCe,notnivb:LCe,notnivc:FCe,NotPrecedes:BCe,NotPrecedesEqual:NCe,NotPrecedesSlantEqual:HCe,NotReverseElement:jCe,NotRightTriangleBar:VCe,NotRightTriangle:WCe,NotRightTriangleEqual:UCe,NotSquareSubset:qCe,NotSquareSubsetEqual:KCe,NotSquareSuperset:GCe,NotSquareSupersetEqual:YCe,NotSubset:XCe,NotSubsetEqual:ZCe,NotSucceeds:JCe,NotSucceedsEqual:QCe,NotSucceedsSlantEqual:ewe,NotSucceedsTilde:twe,NotSuperset:nwe,NotSupersetEqual:owe,NotTilde:rwe,NotTildeEqual:iwe,NotTildeFullEqual:swe,NotTildeTilde:awe,NotVerticalBar:lwe,nparallel:cwe,npar:uwe,nparsl:dwe,npart:fwe,npolint:hwe,npr:pwe,nprcue:mwe,nprec:gwe,npreceq:vwe,npre:bwe,nrarrc:ywe,nrarr:xwe,nrArr:Cwe,nrarrw:wwe,nrightarrow:_we,nRightarrow:Swe,nrtri:kwe,nrtrie:Pwe,nsc:Twe,nsccue:Rwe,nsce:Ewe,Nscr:$we,nscr:Awe,nshortmid:Iwe,nshortparallel:Mwe,nsim:Owe,nsime:zwe,nsimeq:Dwe,nsmid:Lwe,nspar:Fwe,nsqsube:Bwe,nsqsupe:Nwe,nsub:Hwe,nsubE:jwe,nsube:Vwe,nsubset:Wwe,nsubseteq:Uwe,nsubseteqq:qwe,nsucc:Kwe,nsucceq:Gwe,nsup:Ywe,nsupE:Xwe,nsupe:Zwe,nsupset:Jwe,nsupseteq:Qwe,nsupseteqq:e_e,ntgl:t_e,Ntilde:n_e,ntilde:o_e,ntlg:r_e,ntriangleleft:i_e,ntrianglelefteq:s_e,ntriangleright:a_e,ntrianglerighteq:l_e,Nu:c_e,nu:u_e,num:d_e,numero:f_e,numsp:h_e,nvap:p_e,nvdash:m_e,nvDash:g_e,nVdash:v_e,nVDash:b_e,nvge:y_e,nvgt:x_e,nvHarr:C_e,nvinfin:w_e,nvlArr:__e,nvle:S_e,nvlt:k_e,nvltrie:P_e,nvrArr:T_e,nvrtrie:R_e,nvsim:E_e,nwarhk:$_e,nwarr:A_e,nwArr:I_e,nwarrow:M_e,nwnear:O_e,Oacute:z_e,oacute:D_e,oast:L_e,Ocirc:F_e,ocirc:B_e,ocir:N_e,Ocy:H_e,ocy:j_e,odash:V_e,Odblac:W_e,odblac:U_e,odiv:q_e,odot:K_e,odsold:G_e,OElig:Y_e,oelig:X_e,ofcir:Z_e,Ofr:J_e,ofr:Q_e,ogon:e2e,Ograve:t2e,ograve:n2e,ogt:o2e,ohbar:r2e,ohm:i2e,oint:s2e,olarr:a2e,olcir:l2e,olcross:c2e,oline:u2e,olt:d2e,Omacr:f2e,omacr:h2e,Omega:p2e,omega:m2e,Omicron:g2e,omicron:v2e,omid:b2e,ominus:y2e,Oopf:x2e,oopf:C2e,opar:w2e,OpenCurlyDoubleQuote:_2e,OpenCurlyQuote:S2e,operp:k2e,oplus:P2e,orarr:T2e,Or:R2e,or:E2e,ord:$2e,order:A2e,orderof:I2e,ordf:M2e,ordm:O2e,origof:z2e,oror:D2e,orslope:L2e,orv:F2e,oS:B2e,Oscr:N2e,oscr:H2e,Oslash:j2e,oslash:V2e,osol:W2e,Otilde:U2e,otilde:q2e,otimesas:K2e,Otimes:G2e,otimes:Y2e,Ouml:X2e,ouml:Z2e,ovbar:J2e,OverBar:Q2e,OverBrace:eSe,OverBracket:tSe,OverParenthesis:nSe,para:oSe,parallel:rSe,par:iSe,parsim:sSe,parsl:aSe,part:lSe,PartialD:cSe,Pcy:uSe,pcy:dSe,percnt:fSe,period:hSe,permil:pSe,perp:mSe,pertenk:gSe,Pfr:vSe,pfr:bSe,Phi:ySe,phi:xSe,phiv:CSe,phmmat:wSe,phone:_Se,Pi:SSe,pi:kSe,pitchfork:PSe,piv:TSe,planck:RSe,planckh:ESe,plankv:$Se,plusacir:ASe,plusb:ISe,pluscir:MSe,plus:OSe,plusdo:zSe,plusdu:DSe,pluse:LSe,PlusMinus:FSe,plusmn:BSe,plussim:NSe,plustwo:HSe,pm:jSe,Poincareplane:VSe,pointint:WSe,popf:USe,Popf:qSe,pound:KSe,prap:GSe,Pr:YSe,pr:XSe,prcue:ZSe,precapprox:JSe,prec:QSe,preccurlyeq:eke,Precedes:tke,PrecedesEqual:nke,PrecedesSlantEqual:oke,PrecedesTilde:rke,preceq:ike,precnapprox:ske,precneqq:ake,precnsim:lke,pre:cke,prE:uke,precsim:dke,prime:fke,Prime:hke,primes:pke,prnap:mke,prnE:gke,prnsim:vke,prod:bke,Product:yke,profalar:xke,profline:Cke,profsurf:wke,prop:_ke,Proportional:Ske,Proportion:kke,propto:Pke,prsim:Tke,prurel:Rke,Pscr:Eke,pscr:$ke,Psi:Ake,psi:Ike,puncsp:Mke,Qfr:Oke,qfr:zke,qint:Dke,qopf:Lke,Qopf:Fke,qprime:Bke,Qscr:Nke,qscr:Hke,quaternions:jke,quatint:Vke,quest:Wke,questeq:Uke,quot:qke,QUOT:Kke,rAarr:Gke,race:Yke,Racute:Xke,racute:Zke,radic:Jke,raemptyv:Qke,rang:e3e,Rang:t3e,rangd:n3e,range:o3e,rangle:r3e,raquo:i3e,rarrap:s3e,rarrb:a3e,rarrbfs:l3e,rarrc:c3e,rarr:u3e,Rarr:d3e,rArr:f3e,rarrfs:h3e,rarrhk:p3e,rarrlp:m3e,rarrpl:g3e,rarrsim:v3e,Rarrtl:b3e,rarrtl:y3e,rarrw:x3e,ratail:C3e,rAtail:w3e,ratio:_3e,rationals:S3e,rbarr:k3e,rBarr:P3e,RBarr:T3e,rbbrk:R3e,rbrace:E3e,rbrack:$3e,rbrke:A3e,rbrksld:I3e,rbrkslu:M3e,Rcaron:O3e,rcaron:z3e,Rcedil:D3e,rcedil:L3e,rceil:F3e,rcub:B3e,Rcy:N3e,rcy:H3e,rdca:j3e,rdldhar:V3e,rdquo:W3e,rdquor:U3e,rdsh:q3e,real:K3e,realine:G3e,realpart:Y3e,reals:X3e,Re:Z3e,rect:J3e,reg:Q3e,REG:e4e,ReverseElement:t4e,ReverseEquilibrium:n4e,ReverseUpEquilibrium:o4e,rfisht:r4e,rfloor:i4e,rfr:s4e,Rfr:a4e,rHar:l4e,rhard:c4e,rharu:u4e,rharul:d4e,Rho:f4e,rho:h4e,rhov:p4e,RightAngleBracket:m4e,RightArrowBar:g4e,rightarrow:v4e,RightArrow:b4e,Rightarrow:y4e,RightArrowLeftArrow:x4e,rightarrowtail:C4e,RightCeiling:w4e,RightDoubleBracket:_4e,RightDownTeeVector:S4e,RightDownVectorBar:k4e,RightDownVector:P4e,RightFloor:T4e,rightharpoondown:R4e,rightharpoonup:E4e,rightleftarrows:$4e,rightleftharpoons:A4e,rightrightarrows:I4e,rightsquigarrow:M4e,RightTeeArrow:O4e,RightTee:z4e,RightTeeVector:D4e,rightthreetimes:L4e,RightTriangleBar:F4e,RightTriangle:B4e,RightTriangleEqual:N4e,RightUpDownVector:H4e,RightUpTeeVector:j4e,RightUpVectorBar:V4e,RightUpVector:W4e,RightVectorBar:U4e,RightVector:q4e,ring:K4e,risingdotseq:G4e,rlarr:Y4e,rlhar:X4e,rlm:Z4e,rmoustache:J4e,rmoust:Q4e,rnmid:ePe,roang:tPe,roarr:nPe,robrk:oPe,ropar:rPe,ropf:iPe,Ropf:sPe,roplus:aPe,rotimes:lPe,RoundImplies:cPe,rpar:uPe,rpargt:dPe,rppolint:fPe,rrarr:hPe,Rrightarrow:pPe,rsaquo:mPe,rscr:gPe,Rscr:vPe,rsh:bPe,Rsh:yPe,rsqb:xPe,rsquo:CPe,rsquor:wPe,rthree:_Pe,rtimes:SPe,rtri:kPe,rtrie:PPe,rtrif:TPe,rtriltri:RPe,RuleDelayed:EPe,ruluhar:$Pe,rx:APe,Sacute:IPe,sacute:MPe,sbquo:OPe,scap:zPe,Scaron:DPe,scaron:LPe,Sc:FPe,sc:BPe,sccue:NPe,sce:HPe,scE:jPe,Scedil:VPe,scedil:WPe,Scirc:UPe,scirc:qPe,scnap:KPe,scnE:GPe,scnsim:YPe,scpolint:XPe,scsim:ZPe,Scy:JPe,scy:QPe,sdotb:eTe,sdot:tTe,sdote:nTe,searhk:oTe,searr:rTe,seArr:iTe,searrow:sTe,sect:aTe,semi:lTe,seswar:cTe,setminus:uTe,setmn:dTe,sext:fTe,Sfr:hTe,sfr:pTe,sfrown:mTe,sharp:gTe,SHCHcy:vTe,shchcy:bTe,SHcy:yTe,shcy:xTe,ShortDownArrow:CTe,ShortLeftArrow:wTe,shortmid:_Te,shortparallel:STe,ShortRightArrow:kTe,ShortUpArrow:PTe,shy:TTe,Sigma:RTe,sigma:ETe,sigmaf:$Te,sigmav:ATe,sim:ITe,simdot:MTe,sime:OTe,simeq:zTe,simg:DTe,simgE:LTe,siml:FTe,simlE:BTe,simne:NTe,simplus:HTe,simrarr:jTe,slarr:VTe,SmallCircle:WTe,smallsetminus:UTe,smashp:qTe,smeparsl:KTe,smid:GTe,smile:YTe,smt:XTe,smte:ZTe,smtes:JTe,SOFTcy:QTe,softcy:e5e,solbar:t5e,solb:n5e,sol:o5e,Sopf:r5e,sopf:i5e,spades:s5e,spadesuit:a5e,spar:l5e,sqcap:c5e,sqcaps:u5e,sqcup:d5e,sqcups:f5e,Sqrt:h5e,sqsub:p5e,sqsube:m5e,sqsubset:g5e,sqsubseteq:v5e,sqsup:b5e,sqsupe:y5e,sqsupset:x5e,sqsupseteq:C5e,square:w5e,Square:_5e,SquareIntersection:S5e,SquareSubset:k5e,SquareSubsetEqual:P5e,SquareSuperset:T5e,SquareSupersetEqual:R5e,SquareUnion:E5e,squarf:$5e,squ:A5e,squf:I5e,srarr:M5e,Sscr:O5e,sscr:z5e,ssetmn:D5e,ssmile:L5e,sstarf:F5e,Star:B5e,star:N5e,starf:H5e,straightepsilon:j5e,straightphi:V5e,strns:W5e,sub:U5e,Sub:q5e,subdot:K5e,subE:G5e,sube:Y5e,subedot:X5e,submult:Z5e,subnE:J5e,subne:Q5e,subplus:eRe,subrarr:tRe,subset:nRe,Subset:oRe,subseteq:rRe,subseteqq:iRe,SubsetEqual:sRe,subsetneq:aRe,subsetneqq:lRe,subsim:cRe,subsub:uRe,subsup:dRe,succapprox:fRe,succ:hRe,succcurlyeq:pRe,Succeeds:mRe,SucceedsEqual:gRe,SucceedsSlantEqual:vRe,SucceedsTilde:bRe,succeq:yRe,succnapprox:xRe,succneqq:CRe,succnsim:wRe,succsim:_Re,SuchThat:SRe,sum:kRe,Sum:PRe,sung:TRe,sup1:RRe,sup2:ERe,sup3:$Re,sup:ARe,Sup:IRe,supdot:MRe,supdsub:ORe,supE:zRe,supe:DRe,supedot:LRe,Superset:FRe,SupersetEqual:BRe,suphsol:NRe,suphsub:HRe,suplarr:jRe,supmult:VRe,supnE:WRe,supne:URe,supplus:qRe,supset:KRe,Supset:GRe,supseteq:YRe,supseteqq:XRe,supsetneq:ZRe,supsetneqq:JRe,supsim:QRe,supsub:eEe,supsup:tEe,swarhk:nEe,swarr:oEe,swArr:rEe,swarrow:iEe,swnwar:sEe,szlig:aEe,Tab:lEe,target:cEe,Tau:uEe,tau:dEe,tbrk:fEe,Tcaron:hEe,tcaron:pEe,Tcedil:mEe,tcedil:gEe,Tcy:vEe,tcy:bEe,tdot:yEe,telrec:xEe,Tfr:CEe,tfr:wEe,there4:_Ee,therefore:SEe,Therefore:kEe,Theta:PEe,theta:TEe,thetasym:REe,thetav:EEe,thickapprox:$Ee,thicksim:AEe,ThickSpace:IEe,ThinSpace:MEe,thinsp:OEe,thkap:zEe,thksim:DEe,THORN:LEe,thorn:FEe,tilde:BEe,Tilde:NEe,TildeEqual:HEe,TildeFullEqual:jEe,TildeTilde:VEe,timesbar:WEe,timesb:UEe,times:qEe,timesd:KEe,tint:GEe,toea:YEe,topbot:XEe,topcir:ZEe,top:JEe,Topf:QEe,topf:e$e,topfork:t$e,tosa:n$e,tprime:o$e,trade:r$e,TRADE:i$e,triangle:s$e,triangledown:a$e,triangleleft:l$e,trianglelefteq:c$e,triangleq:u$e,triangleright:d$e,trianglerighteq:f$e,tridot:h$e,trie:p$e,triminus:m$e,TripleDot:g$e,triplus:v$e,trisb:b$e,tritime:y$e,trpezium:x$e,Tscr:C$e,tscr:w$e,TScy:_$e,tscy:S$e,TSHcy:k$e,tshcy:P$e,Tstrok:T$e,tstrok:R$e,twixt:E$e,twoheadleftarrow:$$e,twoheadrightarrow:A$e,Uacute:I$e,uacute:M$e,uarr:O$e,Uarr:z$e,uArr:D$e,Uarrocir:L$e,Ubrcy:F$e,ubrcy:B$e,Ubreve:N$e,ubreve:H$e,Ucirc:j$e,ucirc:V$e,Ucy:W$e,ucy:U$e,udarr:q$e,Udblac:K$e,udblac:G$e,udhar:Y$e,ufisht:X$e,Ufr:Z$e,ufr:J$e,Ugrave:Q$e,ugrave:eAe,uHar:tAe,uharl:nAe,uharr:oAe,uhblk:rAe,ulcorn:iAe,ulcorner:sAe,ulcrop:aAe,ultri:lAe,Umacr:cAe,umacr:uAe,uml:dAe,UnderBar:fAe,UnderBrace:hAe,UnderBracket:pAe,UnderParenthesis:mAe,Union:gAe,UnionPlus:vAe,Uogon:bAe,uogon:yAe,Uopf:xAe,uopf:CAe,UpArrowBar:wAe,uparrow:_Ae,UpArrow:SAe,Uparrow:kAe,UpArrowDownArrow:PAe,updownarrow:TAe,UpDownArrow:RAe,Updownarrow:EAe,UpEquilibrium:$Ae,upharpoonleft:AAe,upharpoonright:IAe,uplus:MAe,UpperLeftArrow:OAe,UpperRightArrow:zAe,upsi:DAe,Upsi:LAe,upsih:FAe,Upsilon:BAe,upsilon:NAe,UpTeeArrow:HAe,UpTee:jAe,upuparrows:VAe,urcorn:WAe,urcorner:UAe,urcrop:qAe,Uring:KAe,uring:GAe,urtri:YAe,Uscr:XAe,uscr:ZAe,utdot:JAe,Utilde:QAe,utilde:e6e,utri:t6e,utrif:n6e,uuarr:o6e,Uuml:r6e,uuml:i6e,uwangle:s6e,vangrt:a6e,varepsilon:l6e,varkappa:c6e,varnothing:u6e,varphi:d6e,varpi:f6e,varpropto:h6e,varr:p6e,vArr:m6e,varrho:g6e,varsigma:v6e,varsubsetneq:b6e,varsubsetneqq:y6e,varsupsetneq:x6e,varsupsetneqq:C6e,vartheta:w6e,vartriangleleft:_6e,vartriangleright:S6e,vBar:k6e,Vbar:P6e,vBarv:T6e,Vcy:R6e,vcy:E6e,vdash:$6e,vDash:A6e,Vdash:I6e,VDash:M6e,Vdashl:O6e,veebar:z6e,vee:D6e,Vee:L6e,veeeq:F6e,vellip:B6e,verbar:N6e,Verbar:H6e,vert:j6e,Vert:V6e,VerticalBar:W6e,VerticalLine:U6e,VerticalSeparator:q6e,VerticalTilde:K6e,VeryThinSpace:G6e,Vfr:Y6e,vfr:X6e,vltri:Z6e,vnsub:J6e,vnsup:Q6e,Vopf:e8e,vopf:t8e,vprop:n8e,vrtri:o8e,Vscr:r8e,vscr:i8e,vsubnE:s8e,vsubne:a8e,vsupnE:l8e,vsupne:c8e,Vvdash:u8e,vzigzag:d8e,Wcirc:f8e,wcirc:h8e,wedbar:p8e,wedge:m8e,Wedge:g8e,wedgeq:v8e,weierp:b8e,Wfr:y8e,wfr:x8e,Wopf:C8e,wopf:w8e,wp:_8e,wr:S8e,wreath:k8e,Wscr:P8e,wscr:T8e,xcap:R8e,xcirc:E8e,xcup:$8e,xdtri:A8e,Xfr:I8e,xfr:M8e,xharr:O8e,xhArr:z8e,Xi:D8e,xi:L8e,xlarr:F8e,xlArr:B8e,xmap:N8e,xnis:H8e,xodot:j8e,Xopf:V8e,xopf:W8e,xoplus:U8e,xotime:q8e,xrarr:K8e,xrArr:G8e,Xscr:Y8e,xscr:X8e,xsqcup:Z8e,xuplus:J8e,xutri:Q8e,xvee:eIe,xwedge:tIe,Yacute:nIe,yacute:oIe,YAcy:rIe,yacy:iIe,Ycirc:sIe,ycirc:aIe,Ycy:lIe,ycy:cIe,yen:uIe,Yfr:dIe,yfr:fIe,YIcy:hIe,yicy:pIe,Yopf:mIe,yopf:gIe,Yscr:vIe,yscr:bIe,YUcy:yIe,yucy:xIe,yuml:CIe,Yuml:wIe,Zacute:_Ie,zacute:SIe,Zcaron:kIe,zcaron:PIe,Zcy:TIe,zcy:RIe,Zdot:EIe,zdot:$Ie,zeetrf:AIe,ZeroWidthSpace:IIe,Zeta:MIe,zeta:OIe,zfr:zIe,Zfr:DIe,ZHcy:LIe,zhcy:FIe,zigrarr:BIe,zopf:NIe,Zopf:HIe,Zscr:jIe,zscr:VIe,zwj:WIe,zwnj:UIe};var fk=qIe,Hm=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Xs={},_1={};function KIe(e){var t,n,o=_1[e];if(o)return o;for(o=_1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t"u"&&(n=!0),a=KIe(t),o=0,r=e.length;o=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1=56320&&s<=57343)){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[o])}return l}qu.defaultChars=";/?:@&=+$,-_.!~*'()#";qu.componentChars="-_.!~*'()";var GIe=qu,S1={};function YIe(e){var t,n,o=S1[e];if(o)return o;for(o=S1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t=55296&&u<=57343?d+="���":d+=String.fromCharCode(u),r+=6;continue}if((s&248)===240&&r+91114111?d+="����":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}d+="�"}return d})}Ku.defaultChars=";/?:@&=+$,#";Ku.componentChars="";var XIe=Ku,ZIe=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function Nc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var JIe=/^([a-z0-9.+-]+:)/i,QIe=/:[0-9]*$/,eMe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,tMe=["<",">",'"',"`"," ","\r",` -`," "],nMe=["{","}","|","\\","^","`"].concat(tMe),oMe=["'"].concat(nMe),k1=["%","/","?",";","#"].concat(oMe),P1=["/","?","#"],rMe=255,T1=/^[+a-z0-9A-Z_-]{0,63}$/,iMe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R1={javascript:!0,"javascript:":!0},E1={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function sMe(e,t){if(e&&e instanceof Nc)return e;var n=new Nc;return n.parse(e,t),n}Nc.prototype.parse=function(e,t){var n,o,r,i,s,a=e;if(a=a.trim(),!t&&e.split("#").length===1){var l=eMe.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=JIe.exec(a);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(t||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(c&&R1[c])&&(a=a.substr(2),this.slashes=!0)),!R1[c]&&(s||c&&!E1[c])){var u=-1;for(n=0;n127?b+="x":b+=g[w];if(!b.match(T1)){var S=m.slice(0,n),_=m.slice(n+1),x=g.match(iMe);x&&(S.push(x[1]),_.unshift(x[2])),_.length&&(a=_.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>rMe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var y=a.indexOf("#");y!==-1&&(this.hash=a.substr(y),a=a.slice(0,y));var T=a.indexOf("?");return T!==-1&&(this.search=a.substr(T),a=a.slice(0,T)),a&&(this.pathname=a),E1[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Nc.prototype.parseHost=function(e){var t=QIe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var aMe=sMe;Xs.encode=GIe;Xs.decode=XIe;Xs.format=ZIe;Xs.parse=aMe;var di={},uf,$1;function hk(){return $1||($1=1,uf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),uf}var df,A1;function pk(){return A1||(A1=1,df=/[\0-\x1F\x7F-\x9F]/),df}var ff,I1;function lMe(){return I1||(I1=1,ff=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ff}var hf,M1;function mk(){return M1||(M1=1,hf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),hf}var O1;function cMe(){return O1||(O1=1,di.Any=hk(),di.Cc=pk(),di.Cf=lMe(),di.P=Hm,di.Z=mk()),di}(function(e){function t(O){return Object.prototype.toString.call(O)}function n(O){return t(O)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(O,M){return o.call(O,M)}function i(O){var M=Array.prototype.slice.call(arguments,1);return M.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(K){O[K]=z[K]})}}),O}function s(O,M,z){return[].concat(O.slice(0,M),z,O.slice(M+1))}function a(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function l(O){if(O>65535){O-=65536;var M=55296+(O>>10),z=56320+(O&1023);return String.fromCharCode(M,z)}return String.fromCharCode(O)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=fk;function p(O,M){var z;return r(h,M)?h[M]:M.charCodeAt(0)===35&&f.test(M)&&(z=M[1].toLowerCase()==="x"?parseInt(M.slice(2),16):parseInt(M.slice(1),10),a(z))?l(z):O}function m(O){return O.indexOf("\\")<0?O:O.replace(c,"$1")}function g(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(d,function(M,z,K){return z||p(M,K)})}var b=/[&<>"]/,w=/[&<>"]/g,C={"&":"&","<":"<",">":">",'"':"""};function S(O){return C[O]}function _(O){return b.test(O)?O.replace(w,S):O}var x=/[.?*+^$[\]\\(){}|-]/g;function y(O){return O.replace(x,"\\$&")}function T(O){switch(O){case 9:case 32:return!0}return!1}function k(O){if(O>=8192&&O<=8202)return!0;switch(O){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var P=Hm;function I(O){return P.test(O)}function R(O){switch(O){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function W(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Xs,e.lib.ucmicro=cMe(),e.assign=i,e.isString=n,e.has=r,e.unescapeMd=m,e.unescapeAll=g,e.isValidEntityCode=a,e.fromCodePoint=l,e.escapeHtml=_,e.arrayReplaceAt=s,e.isSpace=T,e.isWhiteSpace=k,e.isMdAsciiPunct=R,e.isPunctChar=I,e.escapeRE=y,e.normalizeReference=W})(Bt);var Gu={},uMe=function(t,n,o){var r,i,s,a,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,r=1;t.pos32))return a;if(r===41){if(i===0)break;i--}s++}return n===s||i!==0||(a.str=z1(t.slice(n,s)),a.pos=s,a.ok=!0),a},fMe=Bt.unescapeAll,hMe=function(t,n,o){var r,i,s=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(a>=o||(i=t.charCodeAt(a),i!==34&&i!==39&&i!==40))return l;for(a++,i===40&&(i=41);a"+Di(i.content)+""};Xo.code_block=function(e,t,n,o,r){var i=e[t];return""+Di(e[t].content)+` -`};Xo.fence=function(e,t,n,o,r){var i=e[t],s=i.info?mMe(i.info).trim():"",a="",l="",c,u,d,f,h;return s&&(d=s.split(/(\s+)/g),a=d[0],l=d.slice(2).join("")),n.highlight?c=n.highlight(i.content,a,l)||Di(i.content):c=Di(i.content),c.indexOf(""+c+` + `)])]),CQ=Object.assign(Object.assign({},Le.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 us;const wQ=xe({name:"Switch",props:CQ,setup(e){us===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?us=CSS.supports("width","max(1px)"):us=!1:us=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Switch","-switch",xQ,GG,e,t),r=mr(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,s=U(e.defaultValue),l=Ue(e,"value"),c=rn(l,s),u=I(()=>c.value===e.checkedValue),d=U(!1),f=U(!1),h=I(()=>{const{railStyle:P}=e;if(P)return P({focused:f.value,checked:u.value})});function p(P){const{"onUpdate:value":k,onChange:T,onUpdateValue:R}=e,{nTriggerFormInput:E,nTriggerFormChange:q}=r;k&&Re(k,P),R&&Re(R,P),T&&Re(T,P),s.value=P,E(),q()}function g(){const{nTriggerFormFocus:P}=r;P()}function m(){const{nTriggerFormBlur:P}=r;P()}function b(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function w(){f.value=!0,g()}function C(){f.value=!1,m(),d.value=!1}function _(P){e.loading||a.value||P.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),d.value=!1)}function S(P){e.loading||a.value||P.key===" "&&(P.preventDefault(),d.value=!0)}const y=I(()=>{const{value:P}=i,{self:{opacityDisabled:k,railColor:T,railColorActive:R,buttonBoxShadow:E,buttonColor:q,boxShadowFocus:D,loadingColor:B,textColor:M,iconColor:K,[Te("buttonHeight",P)]:V,[Te("buttonWidth",P)]:ae,[Te("buttonWidthPressed",P)]:pe,[Te("railHeight",P)]:Z,[Te("railWidth",P)]:N,[Te("railBorderRadius",P)]:O,[Te("buttonBorderRadius",P)]:ee},common:{cubicBezierEaseInOut:G}}=o.value;let ne,X,ce;return us?(ne=`calc((${Z} - ${V}) / 2)`,X=`max(${Z}, ${V})`,ce=`max(${N}, calc(${N} + ${V} - ${Z}))`):(ne=zn((bn(Z)-bn(V))/2),X=zn(Math.max(bn(Z),bn(V))),ce=bn(Z)>bn(V)?N:zn(bn(N)+bn(V)-bn(Z))),{"--n-bezier":G,"--n-button-border-radius":ee,"--n-button-box-shadow":E,"--n-button-color":q,"--n-button-width":ae,"--n-button-width-pressed":pe,"--n-button-height":V,"--n-height":X,"--n-offset":ne,"--n-opacity-disabled":k,"--n-rail-border-radius":O,"--n-rail-color":T,"--n-rail-color-active":R,"--n-rail-height":Z,"--n-rail-width":N,"--n-width":ce,"--n-box-shadow-focus":D,"--n-loading-color":B,"--n-text-color":M,"--n-icon-color":K}}),x=n?Pt("switch",I(()=>i.value[0]),y,e):void 0;return{handleClick:b,handleBlur:C,handleFocus:w,handleKeyup:_,handleKeydown:S,mergedRailStyle:h,pressed:d,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:a,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:o,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:s,icon:l,"checked-icon":c,"unchecked-icon":u}=i,d=!(pa(l)&&pa(c)&&pa(u));return v("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},v("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},At(a,f=>At(s,h=>f||h?v("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),f),v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),h)):null)),v("div",{class:`${e}-switch__button`},At(l,f=>At(c,h=>At(u,p=>v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(h||f)?v("div",{class:`${e}-switch__button-icon`,key:h?"checked-icon":"icon"},h||f):!this.checked&&(p||f)?v("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||f):null})))),At(a,f=>f&&v("div",{key:"checked",class:`${e}-switch__checked`},f)),At(s,f=>f&&v("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),_Q=xe({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),SQ={message:xY,notification:zY,loadingBar:nY,dialog:Iq,modal:kY};function kQ({providersAndProps:e,configProviderProps:t}){let n=Cx(r);const o={app:n};function r(){return v(PS,Se(t),{default:()=>e.map(({type:s,Provider:l,props:c})=>v(l,Se(c),{default:()=>v(_Q,{onSetup:()=>o[s]=SQ[s]()})}))})}let i;return pr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var s;if(n===null||i===null){cr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(s=i.parentNode)===null||s===void 0||s.removeChild(i),i=null,n=null}},o)}function PQ(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:o,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const s=[];return e.forEach(c=>{switch(c){case"message":s.push({type:c,Provider:yY,props:n});break;case"notification":s.push({type:c,Provider:MY,props:r});break;case"dialog":s.push({type:c,Provider:$q,props:o});break;case"loadingBar":s.push({type:c,Provider:tY,props:i});break;case"modal":s.push({type:c,Provider:SY,props:a})}}),kQ({providersAndProps:s,configProviderProps:t})}function TQ(){const e=Ve(Ao,null);return I(()=>{if(e===null)return xt;const{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:n}}=e,o=(t==null?void 0:t.common)||xt;return n!=null&&n.common?Object.assign({},o,n.common):o})}const EQ=()=>({}),RQ={name:"Equation",common:He,self:EQ},AQ=RQ,$Q={name:"FloatButtonGroup",common:He,self(e){const{popoverColor:t,dividerColor:n,borderRadius:o}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},IQ=$Q,Y2={name:"dark",common:He,Alert:aj,Anchor:vj,AutoComplete:Oj,Avatar:dS,AvatarGroup:Lj,BackTop:Nj,Badge:Xj,Breadcrumb:eU,Button:Vn,ButtonGroup:DK,Calendar:gU,Card:yS,Carousel:RU,Cascader:ZU,Checkbox:Ka,Code:kS,Collapse:cV,CollapseTransition:fV,ColorPicker:yU,DataTable:YV,DatePicker:uq,Descriptions:pq,Dialog:d2,Divider:Fq,Drawer:jq,Dropdown:km,DynamicInput:lK,DynamicTags:gK,Element:bK,Empty:Ki,Ellipsis:DS,Equation:AQ,Flex:CK,Form:kK,GradientText:BK,Icon:SW,IconWrapper:$X,Image:IX,Input:go,InputNumber:HK,LegacyTransfer:XX,Layout:qK,List:JK,LoadingBar:eG,Log:iG,Menu:fG,Mention:sG,Message:zK,Modal:Sq,Notification:AK,PageHeader:mG,Pagination:MS,Popconfirm:yG,Popover:Xi,Popselect:TS,Progress:R2,QrCode:WY,Radio:NS,Rate:SG,Result:RG,Row:PX,Scrollbar:Un,Select:$S,Skeleton:cQ,Slider:IG,Space:w2,Spin:FG,Statistic:BG,Steps:UG,Switch:WG,Table:JG,Tabs:nX,Tag:tS,Thing:iX,TimePicker:l2,Timeline:lX,Tooltip:Mu,Transfer:dX,Tree:O2,TreeSelect:mX,Typography:yX,Upload:wX,Watermark:SX,Split:yQ,FloatButton:EX,FloatButtonGroup:IQ},OQ={"aria-hidden":"true",width:"1em",height:"1em"},MQ=["xlink:href","fill"],zQ=xe({__name:"SvgIcon",props:{icon:{type:String,required:!0},prefix:{type:String,default:"icon-custom"},color:{type:String,default:"currentColor"}},setup(e){const t=e,n=I(()=>`#${t.prefix}-${t.icon}`);return(o,r)=>(ge(),ze("svg",OQ,[Y("use",{"xlink:href":n.value,fill:e.color},null,8,MQ)]))}}),tl=(e,t={size:12})=>()=>v(Xo,t,()=>v(AI,{icon:e})),Q2=(e,t={size:12})=>()=>v(Xo,t,()=>v(zQ,{icon:e}));function FQ(){var n,o;const e={default:DQ,blue:LQ,black:BQ,darkblue:NQ},t=((o=(n=window.settings)==null?void 0:n.theme)==null?void 0:o.color)||"default";return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e.default}const DQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#316C72FF",primaryColorHover:"#316C72E3",primaryColorPressed:"#2B4C59FF",primaryColorSuppl:"#316C72E3",infoColor:"#316C72FF",infoColorHover:"#316C72E3",infoColorPressed:"#2B4C59FF",infoColorSuppl:"#316C72E3",successColor:"#18A058FF",successColorHover:"#36AD6AFF",successColorPressed:"#0C7A43FF",successColorSuppl:"#36AD6AFF",warningColor:"#F0A020FF",warningColorHover:"#FCB040FF",warningColorPressed:"#C97C10FF",warningColorSuppl:"#FCB040FF",errorColor:"#D03050FF",errorColorHover:"#DE576DFF",errorColorPressed:"#AB1F3FFF",errorColorSuppl:"#DE576DFF"}}},LQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#0665d0",primaryColorHover:"#2a84de",primaryColorPressed:"#004085",primaryColorSuppl:"#0056b3",infoColor:"#0665d0",infoColorHover:"#2a84de",infoColorPressed:"#0c5460",infoColorSuppl:"#004085",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},BQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#343a40",primaryColorHover:"#23272b",primaryColorPressed:"#1d2124",primaryColorSuppl:"#23272b",infoColor:"#343a40",infoColorHover:"#23272b",infoColorPressed:"#1d2124",infoColorSuppl:"#23272b",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},NQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#004175",primaryColorHover:"#002c4c",primaryColorPressed:"#001f35",primaryColorSuppl:"#002c4c",infoColor:"#004175",infoColorHover:"#002c4c",infoColorPressed:"#001f35",infoColorSuppl:"#002c4c",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},{header:HQ,tags:F7e,naiveThemeOverrides:Hh}=FQ();function Nu(e){return Xh()?(py(e),!0):!1}function Po(e){return typeof e=="function"?e():Se(e)}const J2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jQ=e=>e!=null,UQ=Object.prototype.toString,VQ=e=>UQ.call(e)==="[object Object]",Z2=()=>{};function WQ(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const ek=e=>e();function qQ(e=ek){const t=U(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:uo(t),pause:n,resume:o,eventFilter:r}}function KQ(e){return e||no()}function GQ(...e){if(e.length!==1)return Ue(...e);const t=e[0];return typeof t=="function"?uo(G3(()=>({get:t,set:Z2}))):U(t)}function XQ(e,t,n={}){const{eventFilter:o=ek,...r}=n;return ft(e,WQ(o,t),r)}function YQ(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:i,pause:a,resume:s,isActive:l}=qQ(o);return{stop:XQ(e,t,{...r,eventFilter:i}),pause:a,resume:s,isActive:l}}function tk(e,t=!0,n){KQ()?jt(e,n):t?e():Ht(e)}function QQ(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=cn(e),i=U(e);function a(s){if(arguments.length)return i.value=s,i.value;{const l=Po(n);return i.value=i.value===l?Po(o):l,i.value}}return r?a:[i,a]}function $a(e){var t;const n=Po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vr=J2?window:void 0,JQ=J2?window.document:void 0;function Bc(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Vr):[t,n,o,r]=e,!t)return Z2;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),l=ft(()=>[$a(t),Po(r)],([u,d])=>{if(a(),!u)return;const f=VQ(d)?{...d}:d;i.push(...n.flatMap(h=>o.map(p=>s(u,h,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Nu(c),c}function ZQ(){const e=U(!1),t=no();return t&&jt(()=>{e.value=!0},t),e}function Lm(e){const t=ZQ();return I(()=>(t.value,!!e()))}function eJ(e,t,n={}){const{window:o=Vr,...r}=n;let i;const a=Lm(()=>o&&"MutationObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=I(()=>{const f=Po(e),h=(Array.isArray(f)?f:[f]).map($a).filter(jQ);return new Set(h)}),c=ft(()=>l.value,f=>{s(),a.value&&f.size&&(i=new MutationObserver(t),f.forEach(h=>i.observe(h,r)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{s(),c()};return Nu(d),{isSupported:a,stop:d,takeRecords:u}}function tJ(e,t={}){const{window:n=Vr}=t,o=Lm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=U(!1),a=c=>{i.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},l=Yt(()=>{o.value&&(s(),r=n.matchMedia(Po(e)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),i.value=r.matches)});return Nu(()=>{l(),s(),r=void 0}),i}const Gl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl="__vueuse_ssr_handlers__",nJ=oJ();function oJ(){return Xl in Gl||(Gl[Xl]=Gl[Xl]||{}),Gl[Xl]}function nk(e,t){return nJ[e]||t}function rJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const iJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},v1="vueuse-storage";function aJ(e,t,n,o={}){var r;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=Vr,eventFilter:f,onError:h=T=>{console.error(T)},initOnMounted:p}=o,g=(u?Ia:U)(typeof t=="function"?t():t);if(!n)try{n=nk("getDefaultStorage",()=>{var T;return(T=Vr)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!n)return g;const m=Po(t),b=rJ(m),w=(r=o.serializer)!=null?r:iJ[b],{pause:C,resume:_}=YQ(g,()=>y(g.value),{flush:i,deep:a,eventFilter:f});d&&s&&tk(()=>{Bc(d,"storage",P),Bc(d,v1,k),p&&P()}),p||P();function S(T,R){d&&d.dispatchEvent(new CustomEvent(v1,{detail:{key:e,oldValue:T,newValue:R,storageArea:n}}))}function y(T){try{const R=n.getItem(e);if(T==null)S(R,null),n.removeItem(e);else{const E=w.write(T);R!==E&&(n.setItem(e,E),S(R,E))}}catch(R){h(R)}}function x(T){const R=T?T.newValue:n.getItem(e);if(R==null)return l&&m!=null&&n.setItem(e,w.write(m)),m;if(!T&&c){const E=w.read(R);return typeof c=="function"?c(E,m):b==="object"&&!Array.isArray(E)?{...m,...E}:E}else return typeof R!="string"?R:w.read(R)}function P(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){g.value=m;return}if(!(T&&T.key!==e)){C();try{(T==null?void 0:T.newValue)!==w.write(g.value)&&(g.value=x(T))}catch(R){h(R)}finally{T?Ht(_):_()}}}}function k(T){P(T.detail)}return g}function ok(e){return tJ("(prefers-color-scheme: dark)",e)}function sJ(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Vr,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=ok({window:r}),h=I(()=>f.value?"dark":"light"),p=l||(a==null?GQ(o):aJ(a,o,i,{window:r,listenToStorageChanges:s})),g=I(()=>p.value==="auto"?h.value:p.value),m=nk("updateHTMLAttrs",(_,S,y)=>{const x=typeof _=="string"?r==null?void 0:r.document.querySelector(_):$a(_);if(!x)return;let P;if(u){P=r.document.createElement("style");const k="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";P.appendChild(document.createTextNode(k)),r.document.head.appendChild(P)}if(S==="class"){const k=y.split(/\s/g);Object.values(d).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{k.includes(T)?x.classList.add(T):x.classList.remove(T)})}else x.setAttribute(S,y);u&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function b(_){var S;m(t,n,(S=d[_])!=null?S:_)}function w(_){e.onChanged?e.onChanged(_,b):b(_)}ft(g,w,{flush:"post",immediate:!0}),tk(()=>w(g.value));const C=I({get(){return c?p.value:g.value},set(_){p.value=_}});try{return Object.assign(C,{store:p,system:h,state:g})}catch{return C}}function lJ(e,t,n={}){const{window:o=Vr,initialValue:r="",observe:i=!1}=n,a=U(r),s=I(()=>{var c;return $a(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const u=Po(e),d=Po(s);if(d&&o){const f=(c=o.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();a.value=f||r}}return i&&eJ(s,l,{attributeFilter:["style","class"],window:o}),ft([s,()=>Po(e)],l,{immediate:!0}),ft(a,c=>{var u;(u=s.value)!=null&&u.style&&s.value.style.setProperty(Po(e),c)}),a}function rk(e={}){const{valueDark:t="dark",valueLight:n="",window:o=Vr}=e,r=sJ({...e,onChanged:(s,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",l,s):l(s)},modes:{dark:t,light:n}}),i=I(()=>r.system?r.system.value:ok({window:o}).value?"dark":"light");return I({get(){return r.value==="dark"},set(s){const l=s?"dark":"light";i.value===l?r.value="auto":r.value=l}})}const b1=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function cJ(e,t={}){const{document:n=JQ,autoExit:o=!1}=t,r=I(()=>{var b;return(b=$a(e))!=null?b:n==null?void 0:n.querySelector("html")}),i=U(!1),a=I(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),s=I(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),l=I(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||r.value&&b in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),u=Lm(()=>r.value&&n&&a.value!==void 0&&s.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const b=r.value;if((b==null?void 0:b[l.value])!=null)return!!b[l.value]}}return!1};async function h(){if(!(!u.value||!i.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const b=r.value;(b==null?void 0:b[s.value])!=null&&await b[s.value]()}i.value=!1}}async function p(){if(!u.value||i.value)return;f()&&await h();const b=r.value;a.value&&(b==null?void 0:b[a.value])!=null&&(await b[a.value](),i.value=!0)}async function g(){await(i.value?h():p())}const m=()=>{const b=f();(!b||b&&d())&&(i.value=b)};return Bc(n,b1,m,!1),Bc(()=>$a(r),b1,m,!1),o&&Nu(h),{isSupported:u,isFullscreen:i,enter:p,exit:h,toggle:g}}const Tn=au("app",{state(){var e,t,n,o,r,i,a;return{collapsed:window.innerWidth<768,isDark:rk(),title:(e=window.settings)==null?void 0:e.title,assets_path:(t=window.settings)==null?void 0:t.assets_path,theme:(n=window.settings)==null?void 0:n.theme,version:(o=window.settings)==null?void 0:o.version,background_url:(r=window.settings)==null?void 0:r.background_url,description:(i=window.settings)==null?void 0:i.description,logo:(a=window.settings)==null?void 0:a.logo,lang:vu().value||"zh-CN",appConfig:{}}},actions:{async getConfig(){const{data:e}=await wJ();e&&(this.appConfig=e)},switchCollapsed(){this.collapsed=!this.collapsed},setCollapsed(e){this.collapsed=e},setDark(e){this.isDark=e},toggleDark(){this.isDark=!this.isDark},async switchLang(e){qC(e),location.reload()}}});function uJ(e){let t=null;class n{removeMessage(r=t,i=2e3){setTimeout(()=>{r&&(r.destroy(),r=null)},i)}showMessage(r,i,a={}){if(t&&t.type==="loading")t.type=r,t.content=i,r!=="loading"&&this.removeMessage(t,a.duration);else{const s=e[r](i,a);r==="loading"&&(t=s)}}loading(r){this.showMessage("loading",r,{duration:0})}success(r,i={}){this.showMessage("success",r,i)}error(r,i={}){this.showMessage("error",r,i)}info(r,i={}){this.showMessage("info",r,i)}warning(r,i={}){this.showMessage("warning",r,i)}}return new n}function dJ(e){return e.confirm=function(t={}){const n=!P$(t.title);return new Promise(o=>{e[t.type||"warning"]({showIcon:n,positiveText:mn.global.t("确定"),negativeText:mn.global.t("取消"),onPositiveClick:()=>{t.confirm&&t.confirm(),o(!0)},onNegativeClick:()=>{t.cancel&&t.cancel(),o(!1)},onMaskClick:()=>{t.cancel&&t.cancel(),o(!1)},...t})})},e}function fJ(){const e=Tn(),t=I(()=>({theme:e.isDark?Y2:void 0,themeOverrides:Hh})),{message:n,dialog:o,notification:r,loadingBar:i}=PQ(["message","dialog","notification","loadingBar"],{configProviderProps:t});window.$loadingBar=i,window.$notification=r,window.$message=uJ(n),window.$dialog=dJ(o)}const hJ="access_token",pJ=6*60*60;function cf(e){il.set(hJ,e,pJ)}function mJ(e){if(e.method==="get"&&(e.params={...e.params,t:new Date().getTime()}),lA(e))return e;const t=hC();return t.value?(e.headers.Authorization=e.headers.Authorization||t.value,e):(Sp(),Promise.reject({code:"-1",message:"未登录"}))}function gJ(e){return Promise.reject(e)}function vJ(e){return Promise.resolve((e==null?void 0:e.data)||{code:-1,message:"未知错误"})}function bJ(e){var i;const t=((i=e.response)==null?void 0:i.data)||{code:-1,message:"未知错误"};let n=t.message;const{code:o,errors:r}=t;switch(o){case 401:n=n||"登录已过期";break;case 403:n=n||"没有权限";break;case 404:n=n||"资源或接口不存在";break;default:n=n||"未知异常"}return window.$message.error(n),Promise.resolve({code:o,message:n,errors:r})}function yJ(e={}){const t={headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Language":vu().value||"zh-CN"},timeout:12e3},n=aA.create({...t,...e});return n.interceptors.request.use(mJ,gJ),n.interceptors.response.use(vJ,bJ),n}const _t=yJ({baseURL:xJ()});function xJ(){let e=CJ(window.routerBase||"/")+"api/v1";return/^https?:\/\//.test(e)||(e=window.location.origin+e),e}function CJ(e){return e.endsWith("/")?e:"/"+e}function wJ(){return _t.get("/user/comm/config")}function _J(){return _t.get("/user/info")}function SJ(){return _t.get("/user/getStat")}function kJ(){return _t.get("/user/getSubscribe")}function PJ(){return _t.get("/user/notice/fetch")}function TJ(){return _t.get("/user/plan/fetch")}function ik(){return _t.get("/user/server/fetch")}function Bm(){return _t.get("/user/order/fetch")}function EJ(e){return _t.get("/user/order/detail?trade_no="+e)}function Hu(e){return _t.post("/user/order/cancel",{trade_no:e})}function RJ(e){return _t.get("/user/order/check?trade_no="+e)}function AJ(){return _t.get("/user/invite/fetch")}function $J(e=1,t=10){return _t.get(`/user/invite/details?current=${e}&page_size=${t}`)}function IJ(){return _t.get("/user/invite/save")}function OJ(e){return _t.post("/user/transfer",{transfer_amount:e})}function MJ(e){return _t.post("/user/ticket/withdraw",e)}function y1(e){return _t.post("/user/update",e)}function zJ(e,t){return _t.post("/user/changePassword",{old_password:e,new_password:t})}function FJ(){return _t.get("/user/resetSecurity")}function DJ(){return _t.get("/user/stat/getTrafficLog")}function LJ(){return _t.get("/user/order/getPaymentMethod")}function ak(e,t,n){return _t.post("/user/order/save",{plan_id:e,period:t,coupon_code:n})}function BJ(e,t){return _t.post("/user/order/checkout",{trade_no:e,method:t})}function NJ(e){return _t.get("/user/plan/fetch?id="+e)}function HJ(e,t){return _t.post("/user/coupon/check",{code:e,plan_id:t})}function jJ(){return _t.get("/user/ticket/fetch")}function UJ(e,t,n){return _t.post("/user/ticket/save",{subject:e,level:t,message:n})}function VJ(e){return _t.post("/user/ticket/close",{id:e})}function WJ(e){return _t.get("/user/ticket/fetch?id="+e)}function qJ(e,t){return _t.post("/user/ticket/reply",{id:e,message:t})}function KJ(e="",t="zh-CN"){return _t.get(`/user/knowledge/fetch?keyword=${e}&language=${t}`)}function GJ(e,t="zh-CN"){return _t.get(`/user/knowledge/fetch?id=${e}&language=${t}`)}function XJ(){return _t.get("user/telegram/getBotInfo")}const Ji=au("user",{state:()=>({userInfo:{}}),getters:{userUUID(){var e;return(e=this.userInfo)==null?void 0:e.uuid},email(){var e;return(e=this.userInfo)==null?void 0:e.email},avatar(){return this.userInfo.avatar_url??""},role(){return[]},remind_expire(){return this.userInfo.remind_expire},remind_traffic(){return this.userInfo.remind_traffic},balance(){return this.userInfo.balance},plan_id(){return this.userInfo.plan_id},expired_at(){return this.userInfo.expired_at},plan(){return this.userInfo.plan},subscribe(){return this.userInfo.subscribe}},actions:{async getUserInfo(){try{const e=await _J(),{data:t}=e;return t?(this.userInfo=t,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async getUserSubscribe(){try{const e=await kJ(),{data:t}=e;return t?(this.userInfo.subscribe=t,this.userInfo.plan=t.plan,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async logout(){pC(),this.userInfo={},Sp()},setUserInfo(e){this.userInfo={...this.userInfo,...e}}}});function YJ(e,t){var o,r;if(!((o=e.meta)!=null&&o.requireAuth))return!0;const n=((r=e.meta)==null?void 0:r.role)||[];return!t.length||!n.length?!1:t.some(i=>n.includes(i))}function sk(e,t){const n=[];return e.forEach(o=>{if(YJ(o,t)){const r={...o,children:[]};o.children&&o.children.length?r.children=sk(o.children,t):Reflect.deleteProperty(r,"children"),n.push(r)}}),n}const lk=au("permission",{state(){return{accessRoutes:[]}},getters:{routes(){return Mx.concat(JSON.parse(JSON.stringify(this.accessRoutes)))},menus(){return this.routes.filter(e=>{var t;return e.name&&!((t=e.meta)!=null&&t.isHidden)})}},actions:{generateRoutes(e){const t=sk(zx,e);return this.accessRoutes=t,t}}}),QJ=Cc.get("activeTag"),JJ=Cc.get("tags"),ZJ=["/404","/login"],eZ=au({id:"tag",state:()=>{const e=U(JJ.value),t=U(QJ.value),n=U(!1);return{tags:e,activeTag:t,reloading:n}},getters:{activeIndex:e=>()=>e.tags.findIndex(t=>t.path===e.activeTag)},actions:{setActiveTag(e){this.activeTag=e,Cc.set("activeTag",e)},setTags(e){this.tags=e,Cc.set("tags",e)},addTag(e={}){if(ZJ.includes(e.path))return;let t=this.tags.find(n=>n.path===e.path);t?t=e:this.setTags([...this.tags,e]),this.setActiveTag(e.path)},async reloadTag(e,t){let n=this.tags.find(o=>o.path===e);n?t&&(n.keepAlive=!1):(n={path:e,keepAlive:!1},this.tags.push(n)),window.$loadingBar.start(),this.reloading=!0,await Ht(),this.reloading=!1,n.keepAlive=t,setTimeout(()=>{document.documentElement.scrollTo({left:0,top:0}),window.$loadingBar.finish()},100)},removeTag(e){this.setTags(this.tags.filter(t=>t.path!==e)),e===this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeOther(e){e||(e=this.activeTag),e||this.setTags(this.tags.filter(t=>t.path===e)),e!==this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeLeft(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r>=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},removeRight(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r<=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},resetTags(){this.setTags([]),this.setActiveTag("")}}});function tZ(e){e.use(_E())}const nZ=["/login","/register","/forgetpassword"];function oZ(e){const t=Ji(),n=lk();e.beforeEach(async(o,r,i)=>{var s;hC().value?o.path==="/login"?i({path:((s=o.query.redirect)==null?void 0:s.toString())??"/dashboard"}):t.userUUID?i():(await Promise.all([Tn().getConfig(),t.getUserInfo().catch(c=>{pC(),Sp(),window.$message.error(c.message||"获取用户信息失败!")})]),n.generateRoutes(t.role).forEach(c=>{c.name&&!e.hasRoute(c.name)&&e.addRoute(c)}),e.addRoute(yE),i({...o,replace:!0})):nZ.includes(o.path)?i():i({path:"/login"})})}function rZ(e){xE(e),oZ(e),CE(e)}const Gt=j4({history:g4("/"),routes:Mx,scrollBehavior:()=>({left:0,top:0})});function iZ(e){e.use(Gt),rZ(Gt)}const aZ=xe({__name:"AppProvider",setup(e){const t=Tn(),n={"zh-CN":[AL,O0],"en-US":[F_,L_],"fa-IR":[HL,_N],"ko-KR":[DL,z7],"vi-VN":[BL,CN],"zh-TW":[IL,O0],"ja-JP":[zL,Q9]};function o(){const r=Hh.common;for(const i in r)lJ(`--${wL(i)}`,document.documentElement).value=r[i]||"",i==="primaryColor"&&window.localStorage.setItem("__THEME_COLOR__",r[i]||"")}return o(),(r,i)=>{const a=PS;return ge(),We(a,{"wh-full":"",locale:n[Se(t).lang][0],"date-locale":n[Se(t).lang][1],theme:Se(t).isDark?Se(Y2):void 0,"theme-overrides":Se(Hh)},{default:me(()=>[Jc(r.$slots,"default")]),_:3},8,["locale","date-locale","theme","theme-overrides"])}}}),sZ=xe({__name:"App",setup(e){const t=Ji();return Yt(()=>{const{balance:o,plan:r,expired_at:i,subscribe:a,email:s}=t;if(window.$crisp&&s){const l=[["Balance",(o/100).toString()],...r!=null&&r.name?[["Plan",r.name]]:[],["ExpireTime",Wo(i)],["UsedTraffic",ks(((a==null?void 0:a.u)||0)+((a==null?void 0:a.d)||0))],["AllTraffic",ks(a==null?void 0:a.transfer_enable)]];window.$crisp.push(["set","user:email",s]),window.$crisp.push(["set","session:data",[l]])}}),(o,r)=>{const i=Qc("router-view");return ge(),We(aZ,null,{default:me(()=>[se(i,null,{default:me(({Component:a})=>[(ge(),We(xa(a)))]),_:1})]),_:1})}}}),ju=Cx(sZ);tZ(ju);fJ();iZ(ju);w$(ju);ju.mount("#app");const lZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},cZ=Y("path",{fill:"currentColor",d:"M6.225 4.811a1 1 0 0 0-1.414 1.414L10.586 12L4.81 17.775a1 1 0 1 0 1.414 1.414L12 13.414l5.775 5.775a1 1 0 0 0 1.414-1.414L13.414 12l5.775-5.775a1 1 0 0 0-1.414-1.414L12 10.586z"},null,-1),uZ=[cZ];function dZ(e,t){return ge(),ze("svg",lZ,[...uZ])}const ck={name:"gg-close",render:dZ},fZ={class:"h-15 f-c-c"},hZ=["src"],pZ=xe({__name:"SideLogo",setup(e){const t=Tn();return(n,o)=>{const r=ck,i=zt;return ge(),ze("div",fZ,[Se(t).logo?(ge(),ze("img",{key:0,src:Se(t).logo,height:"30"},null,8,hZ)):Ct("",!0),dn(Y("h2",{class:"ml-2.5 max-w-35 flex-shrink-0 font-bold color-primary"},he(Se(t).title),513),[[Mn,!Se(t).collapsed]]),se(i,{onClick:[o[0]||(o[0]=OT(()=>{},["stop"])),Se(t).switchCollapsed],class:"absolute right-4 h-auto p-0 md:hidden",tertiary:"",size:"medium"},{icon:me(()=>[se(r,{class:"cursor-pointer opacity-85"})]),_:1},8,["onClick"])])}}}),mZ=xe({__name:"SideMenu",setup(e){const t=Tn(),n=p=>mn.global.t(p);function o(){window.innerWidth<=950&&(t.collapsed=!0)}const r=Ox(),i=za(),a=lk(),s=I(()=>{var p;return((p=i.meta)==null?void 0:p.activeMenu)||i.name}),l=I(()=>a.menus.reduce((m,b)=>{var C,_,S,y;const w=d(b);if((_=(C=w.meta)==null?void 0:C.group)!=null&&_.key){const x=w.meta.group.key,P=m.findIndex(k=>k.key===x);if(P!==-1)(S=m[P].children)==null||S.push(w),m[P].children=(y=m[P].children)==null?void 0:y.sort((k,T)=>k.order-T.order);else{const k={type:"group",label:n(w.meta.group.label||""),key:x,children:[w]};m.push(k)}}else m.push(w);return m.sort((x,P)=>x.order-P.order)},[]).sort((m,b)=>m.type==="group"&&b.type!=="group"?1:m.type!=="group"&&b.type==="group"?-1:m.order-b.order));function c(p,g){return eb(g)?g:"/"+[p,g].filter(m=>!!m&&m!=="/").map(m=>m.replace(/(^\/)|(\/$)/g,"")).join("/")}function u(p,g){var b;const m=((b=p.children)==null?void 0:b.filter(w=>{var C;return w.name&&!((C=w.meta)!=null&&C.isHidden)}))||[];return m.length===1?d(m[0],g):m.length>1?{children:m.map(w=>d(w,g)).sort((w,C)=>w.order-C.order)}:null}function d(p,g=""){const{title:m,order:b}=p.meta||{title:"",order:0},{name:w,path:C}=p,_=m||w||"",S=w||"",y=f(p.meta),x=b||0,P=p.meta;let k={label:n(_),key:S,path:c(g,C),icon:y!==null?y:void 0,meta:P,order:x};const T=u(p,k.path);return T&&(k={...k,...T}),k}function f(p){return p!=null&&p.customIcon?Q2(p.customIcon,{size:18}):p!=null&&p.icon?tl(p.icon,{size:18}):null}function h(p,g){eb(g.path)?window.open(g.path):r.push(g.path)}return(p,g)=>{const m=fY;return ge(),We(m,{ref:"menu",class:"side-menu",accordion:"","root-indent":18,indent:0,"collapsed-icon-size":22,"collapsed-width":60,options:l.value,value:s.value,"onUpdate:value":h,onClick:g[0]||(g[0]=b=>o())},null,8,["options","value"])}}}),x1=xe({__name:"index",setup(e){return(t,n)=>(ge(),ze(rt,null,[se(pZ),se(mZ)],64))}}),gZ=xe({__name:"AppMain",setup(e){const t=eZ();return(n,o)=>{const r=Qc("router-view");return ge(),We(r,null,{default:me(({Component:i,route:a})=>[Se(t).reloading?Ct("",!0):(ge(),We(xa(i),{key:a.fullPath}))]),_:1})}}}),vZ=xe({__name:"BreadCrumb",setup(e){const t=za();function n(o){return o!=null&&o.customIcon?Q2(o.customIcon,{size:18}):o!=null&&o.icon?tl(o.icon,{size:18}):null}return(o,r)=>{const i=aU,a=oU;return ge(),We(a,null,{default:me(()=>[(ge(!0),ze(rt,null,Fn(Se(t).matched.filter(s=>{var l;return!!((l=s.meta)!=null&&l.title)}),s=>(ge(),We(i,{key:s.path},{default:me(()=>[(ge(),We(xa(n(s.meta)))),nt(" "+he(o.$t(s.meta.title)),1)]),_:2},1024))),128))]),_:1})}}}),bZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},yZ=Y("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M3 21h18v-2H3m0-7l4 4V8m4 9h10v-2H11z"},null,-1),xZ=[yZ];function CZ(e,t){return ge(),ze("svg",bZ,[...xZ])}const wZ={name:"mdi-format-indent-decrease",render:CZ},_Z={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},SZ=Y("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M11 17h10v-2H11M3 8v8l4-4m-4 9h18v-2H3z"},null,-1),kZ=[SZ];function PZ(e,t){return ge(),ze("svg",_Z,[...kZ])}const TZ={name:"mdi-format-indent-increase",render:PZ},EZ=xe({__name:"MenuCollapse",setup(e){const t=Tn();return(n,o)=>{const r=TZ,i=wZ,a=Xo;return ge(),We(a,{size:"20","cursor-pointer":"",onClick:Se(t).switchCollapsed},{default:me(()=>[Se(t).collapsed?(ge(),We(r,{key:0})):(ge(),We(i,{key:1}))]),_:1},8,["onClick"])}}}),RZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},AZ=Y("path",{fill:"currentColor",d:"m290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6l43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6L423.7 654c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),$Z=[AZ];function IZ(e,t){return ge(),ze("svg",RZ,[...$Z])}const OZ={name:"ant-design-fullscreen-outlined",render:IZ},MZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},zZ=Y("path",{fill:"currentColor",d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8m221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6L877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9M744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),FZ=[zZ];function DZ(e,t){return ge(),ze("svg",MZ,[...FZ])}const LZ={name:"ant-design-fullscreen-exit-outlined",render:DZ},BZ=xe({__name:"FullScreen",setup(e){const{isFullscreen:t,toggle:n}=cJ();return(o,r)=>{const i=LZ,a=OZ,s=Xo;return ge(),We(s,{class:"mr-5 cursor-pointer",size:"18",onClick:Se(n)},{default:me(()=>[Se(t)?(ge(),We(i,{key:0})):(ge(),We(a,{key:1}))]),_:1},8,["onClick"])}}}),NZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},HZ=Y("path",{fill:"currentColor",d:"M15.88 9.29L12 13.17L8.12 9.29a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0"},null,-1),jZ=[HZ];function UZ(e,t){return ge(),ze("svg",NZ,[...jZ])}const VZ={name:"ic-round-expand-more",render:UZ},WZ={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},qZ=Y("path",{fill:"none",d:"M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0M20.5 12.5A4.5 4.5 0 1 1 16 8a4.5 4.5 0 0 1 4.5 4.5"},null,-1),KZ=Y("path",{fill:"currentColor",d:"M26.749 24.93A13.99 13.99 0 1 0 2 16a13.9 13.9 0 0 0 3.251 8.93l-.02.017c.07.084.15.156.222.239c.09.103.187.2.28.3q.418.457.87.87q.14.124.28.242q.48.415.99.782c.044.03.084.069.128.1v-.012a13.9 13.9 0 0 0 16 0v.012c.044-.031.083-.07.128-.1q.51-.368.99-.782q.14-.119.28-.242q.451-.413.87-.87c.093-.1.189-.197.28-.3c.071-.083.152-.155.222-.24ZM16 8a4.5 4.5 0 1 1-4.5 4.5A4.5 4.5 0 0 1 16 8M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0"},null,-1),GZ=[qZ,KZ];function XZ(e,t){return ge(),ze("svg",WZ,[...GZ])}const YZ={name:"carbon-user-avatar-filled",render:XZ},QZ={class:"hidden md:block"},JZ=xe({__name:"UserAvatar",setup(e){const t=Ji(),n=i=>mn.global.t(i),o=[{label:n("个人中心"),key:"profile",icon:tl("mdi-account-outline",{size:14})},{label:n("登出"),key:"logout",icon:tl("mdi:exit-to-app",{size:14})}];function r(i){i==="logout"&&window.$dialog.confirm({title:n("提示"),type:"info",content:n("确认退出?"),confirm(){t.logout(),window.$message.success(n("已退出登录"))}}),i==="profile"&&Gt.push("/profile")}return(i,a)=>{const s=YZ,l=VZ,c=zt,u=Em;return ge(),We(u,{options:o,onSelect:r},{default:me(()=>[se(c,{text:"",flex:"","cursor-pointer":"","items-center":""},{default:me(()=>[se(s,{class:"mr-0 h-5 w-5 rounded-full md:mr-2.5 md:h-8 md:w-8"}),se(l,{class:"h-5 w-5 md:hidden"}),Y("span",QZ,he(Se(t).email),1)]),_:1})]),_:1})}}}),ZZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},eee=Y("path",{fill:"currentColor",d:"M11.4 18.4H.9a.9.9 0 0 1-.9-.9V7.3a.9.9 0 0 1 .9-.9h10.5zm-4.525-2.72c.058.187.229.32.431.32h.854a.45.45 0 0 0 .425-.597l.001.003l-2.15-6.34a.45.45 0 0 0-.426-.306H4.791a.45.45 0 0 0-.425.302l-.001.003l-2.154 6.34a.45.45 0 0 0 .426.596h.856a.45.45 0 0 0 .431-.323l.001-.003l.342-1.193h2.258l.351 1.195zM5.41 10.414s.16.79.294 1.245l.406 1.408H4.68l.415-1.408c.131-.455.294-1.245.294-1.245zM23.1 18.4H12.6v-12h10.5a.9.9 0 0 1 .9.9v10.2a.9.9 0 0 1-.9.9m-1.35-8.55h-2.4v-.601a.45.45 0 0 0-.45-.45h-.601a.45.45 0 0 0-.45.45v.601h-2.4a.45.45 0 0 0-.45.45v.602c0 .248.201.45.45.45h4.281a5.9 5.9 0 0 1-1.126 1.621l.001-.001a7 7 0 0 1-.637-.764l-.014-.021a.45.45 0 0 0-.602-.129l.002-.001l-.273.16l-.24.146a.45.45 0 0 0-.139.642l-.001-.001c.253.359.511.674.791.969l-.004-.004c-.28.216-.599.438-.929.645l-.05.029a.45.45 0 0 0-.159.61l-.001-.002l.298.52a.45.45 0 0 0 .628.159l-.002.001c.507-.312.94-.619 1.353-.95l-.026.02c.387.313.82.62 1.272.901l.055.032a.45.45 0 0 0 .626-.158l.001-.002l.298-.52a.45.45 0 0 0-.153-.605l-.002-.001a12 12 0 0 1-1.004-.696l.027.02a6.7 6.7 0 0 0 1.586-2.572l.014-.047h.43a.45.45 0 0 0 .45-.45v-.602a.45.45 0 0 0-.45-.447h-.001z"},null,-1),tee=[eee];function nee(e,t){return ge(),ze("svg",ZZ,[...tee])}const oee={name:"fontisto-language",render:nee},ree=xe({__name:"SwitchLang",setup(e){const t=Tn();return(n,o)=>{const r=oee,i=zt,a=Cm;return ge(),We(a,{value:Se(t).lang,"onUpdate:value":o[0]||(o[0]=s=>Se(t).lang=s),options:Object.entries(Se(ih)).map(([s,l])=>({label:l,value:s})),trigger:"click","on-update:value":Se(t).switchLang},{default:me(()=>[se(i,{text:"","icon-placement":"left",class:"mr-5"},{icon:me(()=>[se(r)]),_:1})]),_:1},8,["value","options","on-update:value"])}}}),iee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},aee=Y("path",{fill:"currentColor",d:"m3.55 19.09l1.41 1.41l1.8-1.79l-1.42-1.42M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6c0-3.32-2.69-6-6-6m8 7h3v-2h-3m-2.76 7.71l1.8 1.79l1.41-1.41l-1.79-1.8M20.45 5l-1.41-1.4l-1.8 1.79l1.42 1.42M13 1h-2v3h2M6.76 5.39L4.96 3.6L3.55 5l1.79 1.81zM1 13h3v-2H1m12 9h-2v3h2"},null,-1),see=[aee];function lee(e,t){return ge(),ze("svg",iee,[...see])}const cee={name:"mdi-white-balance-sunny",render:lee},uee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},dee=Y("path",{fill:"currentColor",d:"M2 12a10 10 0 0 0 13 9.54a10 10 0 0 1 0-19.08A10 10 0 0 0 2 12"},null,-1),fee=[dee];function hee(e,t){return ge(),ze("svg",uee,[...fee])}const pee={name:"mdi-moon-waning-crescent",render:hee},mee=xe({__name:"ThemeMode",setup(e){const t=Tn(),n=rk(),o=()=>{t.toggleDark(),QQ(n)()};return(r,i)=>{const a=pee,s=cee,l=Xo;return ge(),We(l,{class:"mr-5 cursor-pointer",size:"18",onClick:o},{default:me(()=>[Se(n)?(ge(),We(a,{key:0})):(ge(),We(s,{key:1}))]),_:1})}}}),gee={flex:"","items-center":""},vee={"ml-auto":"",flex:"","items-center":""},bee=xe({__name:"index",setup(e){return(t,n)=>(ge(),ze(rt,null,[Y("div",gee,[se(EZ),se(vZ)]),Y("div",vee,[se(mee),se(ree),se(BZ),se(JZ)])],64))}}),yee={class:"flex flex-col flex-1 overflow-hidden"},xee={class:"flex-1 overflow-hidden bg-hex-f5f6fb dark:bg-hex-101014"},Cee=xe({__name:"index",setup(e){const t=Tn();function n(a){t.collapsed=a}const o=I({get:()=>r.value&&!t.collapsed,set:a=>t.collapsed=!a}),r=U(!1),i=()=>{document.body.clientWidth<=950?(r.value=!0,t.collapsed=!0):(t.collapsed=!1,r.value=!1)};return jt(()=>{window.addEventListener("resize",i),i()}),(a,s)=>{const l=qX,c=x2,u=HX;return ge(),We(u,{"has-sider":"","wh-full":""},{default:me(()=>[dn(se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:Se(t).collapsed,"on-update:collapsed":n},{default:me(()=>[se(x1)]),_:1},8,["collapsed"]),[[Mn,!o.value]]),se(c,{show:o.value,"onUpdate:show":s[0]||(s[0]=d=>o.value=d),width:220,placement:"left"},{default:me(()=>[se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:Se(t).collapsed,"on-update:collapsed":n},{default:me(()=>[se(x1)]),_:1},8,["collapsed"])]),_:1},8,["show"]),Y("article",yee,[Y("header",{class:"flex items-center bg-white px-4",dark:"bg-dark border-0",style:Fi(`height: ${Se(HQ).height}px`)},[se(bee)],4),Y("section",xee,[se(gZ)])])]),_:1})}}}),br=Object.freeze(Object.defineProperty({__proto__:null,default:Cee},Symbol.toStringTag,{value:"Module"})),Uu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},wee={},_ee={"f-c-c":"","flex-col":"","text-14":"",color:"#6a6a6a"},See=Y("p",null,[nt(" Copyright © 2022-present "),Y("a",{href:"https://github.com/zclzone",target:"__blank",hover:"decoration-underline color-primary"}," Ronnie Zhang ")],-1),kee=Y("p",null,null,-1),Pee=[See,kee];function Tee(e,t){return ge(),ze("footer",_ee,Pee)}const Eee=Uu(wee,[["render",Tee]]),Ree={class:"cus-scroll-y wh-full flex-col bg-[#f5f6fb] p-1 dark:bg-hex-121212 md:p-4"},bo=xe({__name:"AppPage",props:{showFooter:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=Eee,r=Kj;return ge(),We(fn,{name:"fade-slide",mode:"out-in",appear:""},{default:me(()=>[Y("section",Ree,[Jc(t.$slots,"default"),e.showFooter?(ge(),We(o,{key:0,"mt-15":""})):Ct("",!0),se(r,{bottom:20,class:"z-99999"})])]),_:3})}}}),Aee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},$ee=Y("path",{fill:"currentColor",d:"M20 2H4c-.53 0-1.04.21-1.41.59C2.21 2.96 2 3.47 2 4v12c0 .53.21 1.04.59 1.41c.37.38.88.59 1.41.59h4l4 4l4-4h4c.53 0 1.04-.21 1.41-.59S22 16.53 22 16V4c0-.53-.21-1.04-.59-1.41C21.04 2.21 20.53 2 20 2M4 16V4h16v12h-4.83L12 19.17L8.83 16m1.22-9.96c.54-.36 1.25-.54 2.14-.54c.94 0 1.69.21 2.23.62q.81.63.81 1.68c0 .44-.15.83-.44 1.2c-.29.36-.67.64-1.13.85c-.26.15-.43.3-.52.47c-.09.18-.14.4-.14.68h-2c0-.5.1-.84.29-1.08c.21-.24.55-.52 1.07-.84c.26-.14.47-.32.64-.54c.14-.21.22-.46.22-.74c0-.3-.09-.52-.27-.69c-.18-.18-.45-.26-.76-.26c-.27 0-.49.07-.69.21c-.16.14-.26.35-.26.63H9.27c-.05-.69.23-1.29.78-1.65M11 14v-2h2v2Z"},null,-1),Iee=[$ee];function Oee(e,t){return ge(),ze("svg",Aee,[...Iee])}const Mee={name:"mdi-tooltip-question-outline",render:Oee},zee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Fee=Y("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7z"},null,-1),Dee=[Fee];function Lee(e,t){return ge(),ze("svg",zee,[...Dee])}const Bee={name:"mdi-clock-outline",render:Lee},Nee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Hee=Y("path",{fill:"currentColor",d:"M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27zm0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93z"},null,-1),jee=[Hee];function Uee(e,t){return ge(),ze("svg",Nee,[...jee])}const Vee={name:"mdi-rss",render:Uee},Wee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},qee=Y("path",{fill:"currentColor",d:"M12 21.5c-1.35-.85-3.8-1.5-5.5-1.5c-1.65 0-3.35.3-4.75 1.05c-.1.05-.15.05-.25.05c-.25 0-.5-.25-.5-.5V6c.6-.45 1.25-.75 2-1c1.11-.35 2.33-.5 3.5-.5c1.95 0 4.05.4 5.5 1.5c1.45-1.1 3.55-1.5 5.5-1.5c1.17 0 2.39.15 3.5.5c.75.25 1.4.55 2 1v14.6c0 .25-.25.5-.5.5c-.1 0-.15 0-.25-.05c-1.4-.75-3.1-1.05-4.75-1.05c-1.7 0-4.15.65-5.5 1.5M12 8v11.5c1.35-.85 3.8-1.5 5.5-1.5c1.2 0 2.4.15 3.5.5V7c-1.1-.35-2.3-.5-3.5-.5c-1.7 0-4.15.65-5.5 1.5m1 3.5c1.11-.68 2.6-1 4.5-1c.91 0 1.76.09 2.5.28V9.23c-.87-.15-1.71-.23-2.5-.23q-2.655 0-4.5.84zm4.5.17c-1.71 0-3.21.26-4.5.79v1.69c1.11-.65 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24v-1.5c-.87-.16-1.71-.23-2.5-.23m2.5 2.9c-.87-.16-1.71-.24-2.5-.24c-1.83 0-3.33.27-4.5.8v1.69c1.11-.66 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24z"},null,-1),Kee=[qee];function Gee(e,t){return ge(),ze("svg",Wee,[...Kee])}const Xee={name:"mdi-book-open-variant",render:Gee},Yee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Qee=Y("g",{fill:"none"},[Y("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Y("path",{fill:"currentColor",d:"M10.5 20a1.5 1.5 0 0 0 3 0v-6.5H20a1.5 1.5 0 0 0 0-3h-6.5V4a1.5 1.5 0 0 0-3 0v6.5H4a1.5 1.5 0 0 0 0 3h6.5z"})],-1),Jee=[Qee];function Zee(e,t){return ge(),ze("svg",Yee,[...Jee])}const ete={name:"mingcute-add-fill",render:Zee},tte={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},nte=Y("path",{fill:"currentColor",d:"M5.503 4.627L5.5 6.75v10.504a3.25 3.25 0 0 0 3.25 3.25h8.616a2.25 2.25 0 0 1-2.122 1.5H8.75A4.75 4.75 0 0 1 4 17.254V6.75c0-.98.627-1.815 1.503-2.123M17.75 2A2.25 2.25 0 0 1 20 4.25v13a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-13A2.25 2.25 0 0 1 8.75 2z"},null,-1),ote=[nte];function rte(e,t){return ge(),ze("svg",tte,[...ote])}const ite={name:"fluent-copy24-filled",render:rte},ate={class:"inline-block",viewBox:"0 0 1200 1200",width:"1em",height:"1em"},ste=Y("path",{fill:"currentColor",d:"M0 0v545.312h545.312V0zm654.688 0v545.312H1200V0zM108.594 108.594h328.125v328.125H108.594zm654.687 0h328.125v328.125H763.281zM217.969 219.531v108.594h110.156V219.531zm653.906 0v108.594h108.594V219.531zM0 654.688V1200h545.312V654.688zm654.688 0V1200h108.595V873.438h108.594v108.595H1200V654.688h-108.594v108.595H980.469V654.688zM108.594 763.281h328.125v328.125H108.594zm109.375 108.594v110.156h110.156V871.875zm653.906 219.531V1200h108.594v-108.594zm219.531 0V1200H1200v-108.594z"},null,-1),lte=[ste];function cte(e,t){return ge(),ze("svg",ate,[...lte])}const ute={name:"el-qrcode",render:cte};var Lt={};const dte="Á",fte="á",hte="Ă",pte="ă",mte="∾",gte="∿",vte="∾̳",bte="Â",yte="â",xte="´",Cte="А",wte="а",_te="Æ",Ste="æ",kte="⁡",Pte="𝔄",Tte="𝔞",Ete="À",Rte="à",Ate="ℵ",$te="ℵ",Ite="Α",Ote="α",Mte="Ā",zte="ā",Fte="⨿",Dte="&",Lte="&",Bte="⩕",Nte="⩓",Hte="∧",jte="⩜",Ute="⩘",Vte="⩚",Wte="∠",qte="⦤",Kte="∠",Gte="⦨",Xte="⦩",Yte="⦪",Qte="⦫",Jte="⦬",Zte="⦭",ene="⦮",tne="⦯",nne="∡",one="∟",rne="⊾",ine="⦝",ane="∢",sne="Å",lne="⍼",cne="Ą",une="ą",dne="𝔸",fne="𝕒",hne="⩯",pne="≈",mne="⩰",gne="≊",vne="≋",bne="'",yne="⁡",xne="≈",Cne="≊",wne="Å",_ne="å",Sne="𝒜",kne="𝒶",Pne="≔",Tne="*",Ene="≈",Rne="≍",Ane="Ã",$ne="ã",Ine="Ä",One="ä",Mne="∳",zne="⨑",Fne="≌",Dne="϶",Lne="‵",Bne="∽",Nne="⋍",Hne="∖",jne="⫧",Une="⊽",Vne="⌅",Wne="⌆",qne="⌅",Kne="⎵",Gne="⎶",Xne="≌",Yne="Б",Qne="б",Jne="„",Zne="∵",eoe="∵",toe="∵",noe="⦰",ooe="϶",roe="ℬ",ioe="ℬ",aoe="Β",soe="β",loe="ℶ",coe="≬",uoe="𝔅",doe="𝔟",foe="⋂",hoe="◯",poe="⋃",moe="⨀",goe="⨁",voe="⨂",boe="⨆",yoe="★",xoe="▽",Coe="△",woe="⨄",_oe="⋁",Soe="⋀",koe="⤍",Poe="⧫",Toe="▪",Eoe="▴",Roe="▾",Aoe="◂",$oe="▸",Ioe="␣",Ooe="▒",Moe="░",zoe="▓",Foe="█",Doe="=⃥",Loe="≡⃥",Boe="⫭",Noe="⌐",Hoe="𝔹",joe="𝕓",Uoe="⊥",Voe="⊥",Woe="⋈",qoe="⧉",Koe="┐",Goe="╕",Xoe="╖",Yoe="╗",Qoe="┌",Joe="╒",Zoe="╓",ere="╔",tre="─",nre="═",ore="┬",rre="╤",ire="╥",are="╦",sre="┴",lre="╧",cre="╨",ure="╩",dre="⊟",fre="⊞",hre="⊠",pre="┘",mre="╛",gre="╜",vre="╝",bre="└",yre="╘",xre="╙",Cre="╚",wre="│",_re="║",Sre="┼",kre="╪",Pre="╫",Tre="╬",Ere="┤",Rre="╡",Are="╢",$re="╣",Ire="├",Ore="╞",Mre="╟",zre="╠",Fre="‵",Dre="˘",Lre="˘",Bre="¦",Nre="𝒷",Hre="ℬ",jre="⁏",Ure="∽",Vre="⋍",Wre="⧅",qre="\\",Kre="⟈",Gre="•",Xre="•",Yre="≎",Qre="⪮",Jre="≏",Zre="≎",eie="≏",tie="Ć",nie="ć",oie="⩄",rie="⩉",iie="⩋",aie="∩",sie="⋒",lie="⩇",cie="⩀",uie="ⅅ",die="∩︀",fie="⁁",hie="ˇ",pie="ℭ",mie="⩍",gie="Č",vie="č",bie="Ç",yie="ç",xie="Ĉ",Cie="ĉ",wie="∰",_ie="⩌",Sie="⩐",kie="Ċ",Pie="ċ",Tie="¸",Eie="¸",Rie="⦲",Aie="¢",$ie="·",Iie="·",Oie="𝔠",Mie="ℭ",zie="Ч",Fie="ч",Die="✓",Lie="✓",Bie="Χ",Nie="χ",Hie="ˆ",jie="≗",Uie="↺",Vie="↻",Wie="⊛",qie="⊚",Kie="⊝",Gie="⊙",Xie="®",Yie="Ⓢ",Qie="⊖",Jie="⊕",Zie="⊗",eae="○",tae="⧃",nae="≗",oae="⨐",rae="⫯",iae="⧂",aae="∲",sae="”",lae="’",cae="♣",uae="♣",dae=":",fae="∷",hae="⩴",pae="≔",mae="≔",gae=",",vae="@",bae="∁",yae="∘",xae="∁",Cae="ℂ",wae="≅",_ae="⩭",Sae="≡",kae="∮",Pae="∯",Tae="∮",Eae="𝕔",Rae="ℂ",Aae="∐",$ae="∐",Iae="©",Oae="©",Mae="℗",zae="∳",Fae="↵",Dae="✗",Lae="⨯",Bae="𝒞",Nae="𝒸",Hae="⫏",jae="⫑",Uae="⫐",Vae="⫒",Wae="⋯",qae="⤸",Kae="⤵",Gae="⋞",Xae="⋟",Yae="↶",Qae="⤽",Jae="⩈",Zae="⩆",ese="≍",tse="∪",nse="⋓",ose="⩊",rse="⊍",ise="⩅",ase="∪︀",sse="↷",lse="⤼",cse="⋞",use="⋟",dse="⋎",fse="⋏",hse="¤",pse="↶",mse="↷",gse="⋎",vse="⋏",bse="∲",yse="∱",xse="⌭",Cse="†",wse="‡",_se="ℸ",Sse="↓",kse="↡",Pse="⇓",Tse="‐",Ese="⫤",Rse="⊣",Ase="⤏",$se="˝",Ise="Ď",Ose="ď",Mse="Д",zse="д",Fse="‡",Dse="⇊",Lse="ⅅ",Bse="ⅆ",Nse="⤑",Hse="⩷",jse="°",Use="∇",Vse="Δ",Wse="δ",qse="⦱",Kse="⥿",Gse="𝔇",Xse="𝔡",Yse="⥥",Qse="⇃",Jse="⇂",Zse="´",ele="˙",tle="˝",nle="`",ole="˜",rle="⋄",ile="⋄",ale="⋄",sle="♦",lle="♦",cle="¨",ule="ⅆ",dle="ϝ",fle="⋲",hle="÷",ple="÷",mle="⋇",gle="⋇",vle="Ђ",ble="ђ",yle="⌞",xle="⌍",Cle="$",wle="𝔻",_le="𝕕",Sle="¨",kle="˙",Ple="⃜",Tle="≐",Ele="≑",Rle="≐",Ale="∸",$le="∔",Ile="⊡",Ole="⌆",Mle="∯",zle="¨",Fle="⇓",Dle="⇐",Lle="⇔",Ble="⫤",Nle="⟸",Hle="⟺",jle="⟹",Ule="⇒",Vle="⊨",Wle="⇑",qle="⇕",Kle="∥",Gle="⤓",Xle="↓",Yle="↓",Qle="⇓",Jle="⇵",Zle="̑",ece="⇊",tce="⇃",nce="⇂",oce="⥐",rce="⥞",ice="⥖",ace="↽",sce="⥟",lce="⥗",cce="⇁",uce="↧",dce="⊤",fce="⤐",hce="⌟",pce="⌌",mce="𝒟",gce="𝒹",vce="Ѕ",bce="ѕ",yce="⧶",xce="Đ",Cce="đ",wce="⋱",_ce="▿",Sce="▾",kce="⇵",Pce="⥯",Tce="⦦",Ece="Џ",Rce="џ",Ace="⟿",$ce="É",Ice="é",Oce="⩮",Mce="Ě",zce="ě",Fce="Ê",Dce="ê",Lce="≖",Bce="≕",Nce="Э",Hce="э",jce="⩷",Uce="Ė",Vce="ė",Wce="≑",qce="ⅇ",Kce="≒",Gce="𝔈",Xce="𝔢",Yce="⪚",Qce="È",Jce="è",Zce="⪖",eue="⪘",tue="⪙",nue="∈",oue="⏧",rue="ℓ",iue="⪕",aue="⪗",sue="Ē",lue="ē",cue="∅",uue="∅",due="◻",fue="∅",hue="▫",pue=" ",mue=" ",gue=" ",vue="Ŋ",bue="ŋ",yue=" ",xue="Ę",Cue="ę",wue="𝔼",_ue="𝕖",Sue="⋕",kue="⧣",Pue="⩱",Tue="ε",Eue="Ε",Rue="ε",Aue="ϵ",$ue="≖",Iue="≕",Oue="≂",Mue="⪖",zue="⪕",Fue="⩵",Due="=",Lue="≂",Bue="≟",Nue="⇌",Hue="≡",jue="⩸",Uue="⧥",Vue="⥱",Wue="≓",que="ℯ",Kue="ℰ",Gue="≐",Xue="⩳",Yue="≂",Que="Η",Jue="η",Zue="Ð",ede="ð",tde="Ë",nde="ë",ode="€",rde="!",ide="∃",ade="∃",sde="ℰ",lde="ⅇ",cde="ⅇ",ude="≒",dde="Ф",fde="ф",hde="♀",pde="ffi",mde="ff",gde="ffl",vde="𝔉",bde="𝔣",yde="fi",xde="◼",Cde="▪",wde="fj",_de="♭",Sde="fl",kde="▱",Pde="ƒ",Tde="𝔽",Ede="𝕗",Rde="∀",Ade="∀",$de="⋔",Ide="⫙",Ode="ℱ",Mde="⨍",zde="½",Fde="⅓",Dde="¼",Lde="⅕",Bde="⅙",Nde="⅛",Hde="⅔",jde="⅖",Ude="¾",Vde="⅗",Wde="⅜",qde="⅘",Kde="⅚",Gde="⅝",Xde="⅞",Yde="⁄",Qde="⌢",Jde="𝒻",Zde="ℱ",efe="ǵ",tfe="Γ",nfe="γ",ofe="Ϝ",rfe="ϝ",ife="⪆",afe="Ğ",sfe="ğ",lfe="Ģ",cfe="Ĝ",ufe="ĝ",dfe="Г",ffe="г",hfe="Ġ",pfe="ġ",mfe="≥",gfe="≧",vfe="⪌",bfe="⋛",yfe="≥",xfe="≧",Cfe="⩾",wfe="⪩",_fe="⩾",Sfe="⪀",kfe="⪂",Pfe="⪄",Tfe="⋛︀",Efe="⪔",Rfe="𝔊",Afe="𝔤",$fe="≫",Ife="⋙",Ofe="⋙",Mfe="ℷ",zfe="Ѓ",Ffe="ѓ",Dfe="⪥",Lfe="≷",Bfe="⪒",Nfe="⪤",Hfe="⪊",jfe="⪊",Ufe="⪈",Vfe="≩",Wfe="⪈",qfe="≩",Kfe="⋧",Gfe="𝔾",Xfe="𝕘",Yfe="`",Qfe="≥",Jfe="⋛",Zfe="≧",ehe="⪢",the="≷",nhe="⩾",ohe="≳",rhe="𝒢",ihe="ℊ",ahe="≳",she="⪎",lhe="⪐",che="⪧",uhe="⩺",dhe=">",fhe=">",hhe="≫",phe="⋗",mhe="⦕",ghe="⩼",vhe="⪆",bhe="⥸",yhe="⋗",xhe="⋛",Che="⪌",whe="≷",_he="≳",She="≩︀",khe="≩︀",Phe="ˇ",The=" ",Ehe="½",Rhe="ℋ",Ahe="Ъ",$he="ъ",Ihe="⥈",Ohe="↔",Mhe="⇔",zhe="↭",Fhe="^",Dhe="ℏ",Lhe="Ĥ",Bhe="ĥ",Nhe="♥",Hhe="♥",jhe="…",Uhe="⊹",Vhe="𝔥",Whe="ℌ",qhe="ℋ",Khe="⤥",Ghe="⤦",Xhe="⇿",Yhe="∻",Qhe="↩",Jhe="↪",Zhe="𝕙",epe="ℍ",tpe="―",npe="─",ope="𝒽",rpe="ℋ",ipe="ℏ",ape="Ħ",spe="ħ",lpe="≎",cpe="≏",upe="⁃",dpe="‐",fpe="Í",hpe="í",ppe="⁣",mpe="Î",gpe="î",vpe="И",bpe="и",ype="İ",xpe="Е",Cpe="е",wpe="¡",_pe="⇔",Spe="𝔦",kpe="ℑ",Ppe="Ì",Tpe="ì",Epe="ⅈ",Rpe="⨌",Ape="∭",$pe="⧜",Ipe="℩",Ope="IJ",Mpe="ij",zpe="Ī",Fpe="ī",Dpe="ℑ",Lpe="ⅈ",Bpe="ℐ",Npe="ℑ",Hpe="ı",jpe="ℑ",Upe="⊷",Vpe="Ƶ",Wpe="⇒",qpe="℅",Kpe="∞",Gpe="⧝",Xpe="ı",Ype="⊺",Qpe="∫",Jpe="∬",Zpe="ℤ",eme="∫",tme="⊺",nme="⋂",ome="⨗",rme="⨼",ime="⁣",ame="⁢",sme="Ё",lme="ё",cme="Į",ume="į",dme="𝕀",fme="𝕚",hme="Ι",pme="ι",mme="⨼",gme="¿",vme="𝒾",bme="ℐ",yme="∈",xme="⋵",Cme="⋹",wme="⋴",_me="⋳",Sme="∈",kme="⁢",Pme="Ĩ",Tme="ĩ",Eme="І",Rme="і",Ame="Ï",$me="ï",Ime="Ĵ",Ome="ĵ",Mme="Й",zme="й",Fme="𝔍",Dme="𝔧",Lme="ȷ",Bme="𝕁",Nme="𝕛",Hme="𝒥",jme="𝒿",Ume="Ј",Vme="ј",Wme="Є",qme="є",Kme="Κ",Gme="κ",Xme="ϰ",Yme="Ķ",Qme="ķ",Jme="К",Zme="к",ege="𝔎",tge="𝔨",nge="ĸ",oge="Х",rge="х",ige="Ќ",age="ќ",sge="𝕂",lge="𝕜",cge="𝒦",uge="𝓀",dge="⇚",fge="Ĺ",hge="ĺ",pge="⦴",mge="ℒ",gge="Λ",vge="λ",bge="⟨",yge="⟪",xge="⦑",Cge="⟨",wge="⪅",_ge="ℒ",Sge="«",kge="⇤",Pge="⤟",Tge="←",Ege="↞",Rge="⇐",Age="⤝",$ge="↩",Ige="↫",Oge="⤹",Mge="⥳",zge="↢",Fge="⤙",Dge="⤛",Lge="⪫",Bge="⪭",Nge="⪭︀",Hge="⤌",jge="⤎",Uge="❲",Vge="{",Wge="[",qge="⦋",Kge="⦏",Gge="⦍",Xge="Ľ",Yge="ľ",Qge="Ļ",Jge="ļ",Zge="⌈",eve="{",tve="Л",nve="л",ove="⤶",rve="“",ive="„",ave="⥧",sve="⥋",lve="↲",cve="≤",uve="≦",dve="⟨",fve="⇤",hve="←",pve="←",mve="⇐",gve="⇆",vve="↢",bve="⌈",yve="⟦",xve="⥡",Cve="⥙",wve="⇃",_ve="⌊",Sve="↽",kve="↼",Pve="⇇",Tve="↔",Eve="↔",Rve="⇔",Ave="⇆",$ve="⇋",Ive="↭",Ove="⥎",Mve="↤",zve="⊣",Fve="⥚",Dve="⋋",Lve="⧏",Bve="⊲",Nve="⊴",Hve="⥑",jve="⥠",Uve="⥘",Vve="↿",Wve="⥒",qve="↼",Kve="⪋",Gve="⋚",Xve="≤",Yve="≦",Qve="⩽",Jve="⪨",Zve="⩽",ebe="⩿",tbe="⪁",nbe="⪃",obe="⋚︀",rbe="⪓",ibe="⪅",abe="⋖",sbe="⋚",lbe="⪋",cbe="⋚",ube="≦",dbe="≶",fbe="≶",hbe="⪡",pbe="≲",mbe="⩽",gbe="≲",vbe="⥼",bbe="⌊",ybe="𝔏",xbe="𝔩",Cbe="≶",wbe="⪑",_be="⥢",Sbe="↽",kbe="↼",Pbe="⥪",Tbe="▄",Ebe="Љ",Rbe="љ",Abe="⇇",$be="≪",Ibe="⋘",Obe="⌞",Mbe="⇚",zbe="⥫",Fbe="◺",Dbe="Ŀ",Lbe="ŀ",Bbe="⎰",Nbe="⎰",Hbe="⪉",jbe="⪉",Ube="⪇",Vbe="≨",Wbe="⪇",qbe="≨",Kbe="⋦",Gbe="⟬",Xbe="⇽",Ybe="⟦",Qbe="⟵",Jbe="⟵",Zbe="⟸",e0e="⟷",t0e="⟷",n0e="⟺",o0e="⟼",r0e="⟶",i0e="⟶",a0e="⟹",s0e="↫",l0e="↬",c0e="⦅",u0e="𝕃",d0e="𝕝",f0e="⨭",h0e="⨴",p0e="∗",m0e="_",g0e="↙",v0e="↘",b0e="◊",y0e="◊",x0e="⧫",C0e="(",w0e="⦓",_0e="⇆",S0e="⌟",k0e="⇋",P0e="⥭",T0e="‎",E0e="⊿",R0e="‹",A0e="𝓁",$0e="ℒ",I0e="↰",O0e="↰",M0e="≲",z0e="⪍",F0e="⪏",D0e="[",L0e="‘",B0e="‚",N0e="Ł",H0e="ł",j0e="⪦",U0e="⩹",V0e="<",W0e="<",q0e="≪",K0e="⋖",G0e="⋋",X0e="⋉",Y0e="⥶",Q0e="⩻",J0e="◃",Z0e="⊴",e1e="◂",t1e="⦖",n1e="⥊",o1e="⥦",r1e="≨︀",i1e="≨︀",a1e="¯",s1e="♂",l1e="✠",c1e="✠",u1e="↦",d1e="↦",f1e="↧",h1e="↤",p1e="↥",m1e="▮",g1e="⨩",v1e="М",b1e="м",y1e="—",x1e="∺",C1e="∡",w1e=" ",_1e="ℳ",S1e="𝔐",k1e="𝔪",P1e="℧",T1e="µ",E1e="*",R1e="⫰",A1e="∣",$1e="·",I1e="⊟",O1e="−",M1e="∸",z1e="⨪",F1e="∓",D1e="⫛",L1e="…",B1e="∓",N1e="⊧",H1e="𝕄",j1e="𝕞",U1e="∓",V1e="𝓂",W1e="ℳ",q1e="∾",K1e="Μ",G1e="μ",X1e="⊸",Y1e="⊸",Q1e="∇",J1e="Ń",Z1e="ń",eye="∠⃒",tye="≉",nye="⩰̸",oye="≋̸",rye="ʼn",iye="≉",aye="♮",sye="ℕ",lye="♮",cye=" ",uye="≎̸",dye="≏̸",fye="⩃",hye="Ň",pye="ň",mye="Ņ",gye="ņ",vye="≇",bye="⩭̸",yye="⩂",xye="Н",Cye="н",wye="–",_ye="⤤",Sye="↗",kye="⇗",Pye="↗",Tye="≠",Eye="≐̸",Rye="​",Aye="​",$ye="​",Iye="​",Oye="≢",Mye="⤨",zye="≂̸",Fye="≫",Dye="≪",Lye=` +`,Bye="∄",Nye="∄",Hye="𝔑",jye="𝔫",Uye="≧̸",Vye="≱",Wye="≱",qye="≧̸",Kye="⩾̸",Gye="⩾̸",Xye="⋙̸",Yye="≵",Qye="≫⃒",Jye="≯",Zye="≯",exe="≫̸",txe="↮",nxe="⇎",oxe="⫲",rxe="∋",ixe="⋼",axe="⋺",sxe="∋",lxe="Њ",cxe="њ",uxe="↚",dxe="⇍",fxe="‥",hxe="≦̸",pxe="≰",mxe="↚",gxe="⇍",vxe="↮",bxe="⇎",yxe="≰",xxe="≦̸",Cxe="⩽̸",wxe="⩽̸",_xe="≮",Sxe="⋘̸",kxe="≴",Pxe="≪⃒",Txe="≮",Exe="⋪",Rxe="⋬",Axe="≪̸",$xe="∤",Ixe="⁠",Oxe=" ",Mxe="𝕟",zxe="ℕ",Fxe="⫬",Dxe="¬",Lxe="≢",Bxe="≭",Nxe="∦",Hxe="∉",jxe="≠",Uxe="≂̸",Vxe="∄",Wxe="≯",qxe="≱",Kxe="≧̸",Gxe="≫̸",Xxe="≹",Yxe="⩾̸",Qxe="≵",Jxe="≎̸",Zxe="≏̸",eCe="∉",tCe="⋵̸",nCe="⋹̸",oCe="∉",rCe="⋷",iCe="⋶",aCe="⧏̸",sCe="⋪",lCe="⋬",cCe="≮",uCe="≰",dCe="≸",fCe="≪̸",hCe="⩽̸",pCe="≴",mCe="⪢̸",gCe="⪡̸",vCe="∌",bCe="∌",yCe="⋾",xCe="⋽",CCe="⊀",wCe="⪯̸",_Ce="⋠",SCe="∌",kCe="⧐̸",PCe="⋫",TCe="⋭",ECe="⊏̸",RCe="⋢",ACe="⊐̸",$Ce="⋣",ICe="⊂⃒",OCe="⊈",MCe="⊁",zCe="⪰̸",FCe="⋡",DCe="≿̸",LCe="⊃⃒",BCe="⊉",NCe="≁",HCe="≄",jCe="≇",UCe="≉",VCe="∤",WCe="∦",qCe="∦",KCe="⫽⃥",GCe="∂̸",XCe="⨔",YCe="⊀",QCe="⋠",JCe="⊀",ZCe="⪯̸",ewe="⪯̸",twe="⤳̸",nwe="↛",owe="⇏",rwe="↝̸",iwe="↛",awe="⇏",swe="⋫",lwe="⋭",cwe="⊁",uwe="⋡",dwe="⪰̸",fwe="𝒩",hwe="𝓃",pwe="∤",mwe="∦",gwe="≁",vwe="≄",bwe="≄",ywe="∤",xwe="∦",Cwe="⋢",wwe="⋣",_we="⊄",Swe="⫅̸",kwe="⊈",Pwe="⊂⃒",Twe="⊈",Ewe="⫅̸",Rwe="⊁",Awe="⪰̸",$we="⊅",Iwe="⫆̸",Owe="⊉",Mwe="⊃⃒",zwe="⊉",Fwe="⫆̸",Dwe="≹",Lwe="Ñ",Bwe="ñ",Nwe="≸",Hwe="⋪",jwe="⋬",Uwe="⋫",Vwe="⋭",Wwe="Ν",qwe="ν",Kwe="#",Gwe="№",Xwe=" ",Ywe="≍⃒",Qwe="⊬",Jwe="⊭",Zwe="⊮",e_e="⊯",t_e="≥⃒",n_e=">⃒",o_e="⤄",r_e="⧞",i_e="⤂",a_e="≤⃒",s_e="<⃒",l_e="⊴⃒",c_e="⤃",u_e="⊵⃒",d_e="∼⃒",f_e="⤣",h_e="↖",p_e="⇖",m_e="↖",g_e="⤧",v_e="Ó",b_e="ó",y_e="⊛",x_e="Ô",C_e="ô",w_e="⊚",__e="О",S_e="о",k_e="⊝",P_e="Ő",T_e="ő",E_e="⨸",R_e="⊙",A_e="⦼",$_e="Œ",I_e="œ",O_e="⦿",M_e="𝔒",z_e="𝔬",F_e="˛",D_e="Ò",L_e="ò",B_e="⧁",N_e="⦵",H_e="Ω",j_e="∮",U_e="↺",V_e="⦾",W_e="⦻",q_e="‾",K_e="⧀",G_e="Ō",X_e="ō",Y_e="Ω",Q_e="ω",J_e="Ο",Z_e="ο",eSe="⦶",tSe="⊖",nSe="𝕆",oSe="𝕠",rSe="⦷",iSe="“",aSe="‘",sSe="⦹",lSe="⊕",cSe="↻",uSe="⩔",dSe="∨",fSe="⩝",hSe="ℴ",pSe="ℴ",mSe="ª",gSe="º",vSe="⊶",bSe="⩖",ySe="⩗",xSe="⩛",CSe="Ⓢ",wSe="𝒪",_Se="ℴ",SSe="Ø",kSe="ø",PSe="⊘",TSe="Õ",ESe="õ",RSe="⨶",ASe="⨷",$Se="⊗",ISe="Ö",OSe="ö",MSe="⌽",zSe="‾",FSe="⏞",DSe="⎴",LSe="⏜",BSe="¶",NSe="∥",HSe="∥",jSe="⫳",USe="⫽",VSe="∂",WSe="∂",qSe="П",KSe="п",GSe="%",XSe=".",YSe="‰",QSe="⊥",JSe="‱",ZSe="𝔓",e2e="𝔭",t2e="Φ",n2e="φ",o2e="ϕ",r2e="ℳ",i2e="☎",a2e="Π",s2e="π",l2e="⋔",c2e="ϖ",u2e="ℏ",d2e="ℎ",f2e="ℏ",h2e="⨣",p2e="⊞",m2e="⨢",g2e="+",v2e="∔",b2e="⨥",y2e="⩲",x2e="±",C2e="±",w2e="⨦",_2e="⨧",S2e="±",k2e="ℌ",P2e="⨕",T2e="𝕡",E2e="ℙ",R2e="£",A2e="⪷",$2e="⪻",I2e="≺",O2e="≼",M2e="⪷",z2e="≺",F2e="≼",D2e="≺",L2e="⪯",B2e="≼",N2e="≾",H2e="⪯",j2e="⪹",U2e="⪵",V2e="⋨",W2e="⪯",q2e="⪳",K2e="≾",G2e="′",X2e="″",Y2e="ℙ",Q2e="⪹",J2e="⪵",Z2e="⋨",eke="∏",tke="∏",nke="⌮",oke="⌒",rke="⌓",ike="∝",ake="∝",ske="∷",lke="∝",cke="≾",uke="⊰",dke="𝒫",fke="𝓅",hke="Ψ",pke="ψ",mke=" ",gke="𝔔",vke="𝔮",bke="⨌",yke="𝕢",xke="ℚ",Cke="⁗",wke="𝒬",_ke="𝓆",Ske="ℍ",kke="⨖",Pke="?",Tke="≟",Eke='"',Rke='"',Ake="⇛",$ke="∽̱",Ike="Ŕ",Oke="ŕ",Mke="√",zke="⦳",Fke="⟩",Dke="⟫",Lke="⦒",Bke="⦥",Nke="⟩",Hke="»",jke="⥵",Uke="⇥",Vke="⤠",Wke="⤳",qke="→",Kke="↠",Gke="⇒",Xke="⤞",Yke="↪",Qke="↬",Jke="⥅",Zke="⥴",e3e="⤖",t3e="↣",n3e="↝",o3e="⤚",r3e="⤜",i3e="∶",a3e="ℚ",s3e="⤍",l3e="⤏",c3e="⤐",u3e="❳",d3e="}",f3e="]",h3e="⦌",p3e="⦎",m3e="⦐",g3e="Ř",v3e="ř",b3e="Ŗ",y3e="ŗ",x3e="⌉",C3e="}",w3e="Р",_3e="р",S3e="⤷",k3e="⥩",P3e="”",T3e="”",E3e="↳",R3e="ℜ",A3e="ℛ",$3e="ℜ",I3e="ℝ",O3e="ℜ",M3e="▭",z3e="®",F3e="®",D3e="∋",L3e="⇋",B3e="⥯",N3e="⥽",H3e="⌋",j3e="𝔯",U3e="ℜ",V3e="⥤",W3e="⇁",q3e="⇀",K3e="⥬",G3e="Ρ",X3e="ρ",Y3e="ϱ",Q3e="⟩",J3e="⇥",Z3e="→",ePe="→",tPe="⇒",nPe="⇄",oPe="↣",rPe="⌉",iPe="⟧",aPe="⥝",sPe="⥕",lPe="⇂",cPe="⌋",uPe="⇁",dPe="⇀",fPe="⇄",hPe="⇌",pPe="⇉",mPe="↝",gPe="↦",vPe="⊢",bPe="⥛",yPe="⋌",xPe="⧐",CPe="⊳",wPe="⊵",_Pe="⥏",SPe="⥜",kPe="⥔",PPe="↾",TPe="⥓",EPe="⇀",RPe="˚",APe="≓",$Pe="⇄",IPe="⇌",OPe="‏",MPe="⎱",zPe="⎱",FPe="⫮",DPe="⟭",LPe="⇾",BPe="⟧",NPe="⦆",HPe="𝕣",jPe="ℝ",UPe="⨮",VPe="⨵",WPe="⥰",qPe=")",KPe="⦔",GPe="⨒",XPe="⇉",YPe="⇛",QPe="›",JPe="𝓇",ZPe="ℛ",eTe="↱",tTe="↱",nTe="]",oTe="’",rTe="’",iTe="⋌",aTe="⋊",sTe="▹",lTe="⊵",cTe="▸",uTe="⧎",dTe="⧴",fTe="⥨",hTe="℞",pTe="Ś",mTe="ś",gTe="‚",vTe="⪸",bTe="Š",yTe="š",xTe="⪼",CTe="≻",wTe="≽",_Te="⪰",STe="⪴",kTe="Ş",PTe="ş",TTe="Ŝ",ETe="ŝ",RTe="⪺",ATe="⪶",$Te="⋩",ITe="⨓",OTe="≿",MTe="С",zTe="с",FTe="⊡",DTe="⋅",LTe="⩦",BTe="⤥",NTe="↘",HTe="⇘",jTe="↘",UTe="§",VTe=";",WTe="⤩",qTe="∖",KTe="∖",GTe="✶",XTe="𝔖",YTe="𝔰",QTe="⌢",JTe="♯",ZTe="Щ",e4e="щ",t4e="Ш",n4e="ш",o4e="↓",r4e="←",i4e="∣",a4e="∥",s4e="→",l4e="↑",c4e="­",u4e="Σ",d4e="σ",f4e="ς",h4e="ς",p4e="∼",m4e="⩪",g4e="≃",v4e="≃",b4e="⪞",y4e="⪠",x4e="⪝",C4e="⪟",w4e="≆",_4e="⨤",S4e="⥲",k4e="←",P4e="∘",T4e="∖",E4e="⨳",R4e="⧤",A4e="∣",$4e="⌣",I4e="⪪",O4e="⪬",M4e="⪬︀",z4e="Ь",F4e="ь",D4e="⌿",L4e="⧄",B4e="/",N4e="𝕊",H4e="𝕤",j4e="♠",U4e="♠",V4e="∥",W4e="⊓",q4e="⊓︀",K4e="⊔",G4e="⊔︀",X4e="√",Y4e="⊏",Q4e="⊑",J4e="⊏",Z4e="⊑",eEe="⊐",tEe="⊒",nEe="⊐",oEe="⊒",rEe="□",iEe="□",aEe="⊓",sEe="⊏",lEe="⊑",cEe="⊐",uEe="⊒",dEe="⊔",fEe="▪",hEe="□",pEe="▪",mEe="→",gEe="𝒮",vEe="𝓈",bEe="∖",yEe="⌣",xEe="⋆",CEe="⋆",wEe="☆",_Ee="★",SEe="ϵ",kEe="ϕ",PEe="¯",TEe="⊂",EEe="⋐",REe="⪽",AEe="⫅",$Ee="⊆",IEe="⫃",OEe="⫁",MEe="⫋",zEe="⊊",FEe="⪿",DEe="⥹",LEe="⊂",BEe="⋐",NEe="⊆",HEe="⫅",jEe="⊆",UEe="⊊",VEe="⫋",WEe="⫇",qEe="⫕",KEe="⫓",GEe="⪸",XEe="≻",YEe="≽",QEe="≻",JEe="⪰",ZEe="≽",eRe="≿",tRe="⪰",nRe="⪺",oRe="⪶",rRe="⋩",iRe="≿",aRe="∋",sRe="∑",lRe="∑",cRe="♪",uRe="¹",dRe="²",fRe="³",hRe="⊃",pRe="⋑",mRe="⪾",gRe="⫘",vRe="⫆",bRe="⊇",yRe="⫄",xRe="⊃",CRe="⊇",wRe="⟉",_Re="⫗",SRe="⥻",kRe="⫂",PRe="⫌",TRe="⊋",ERe="⫀",RRe="⊃",ARe="⋑",$Re="⊇",IRe="⫆",ORe="⊋",MRe="⫌",zRe="⫈",FRe="⫔",DRe="⫖",LRe="⤦",BRe="↙",NRe="⇙",HRe="↙",jRe="⤪",URe="ß",VRe=" ",WRe="⌖",qRe="Τ",KRe="τ",GRe="⎴",XRe="Ť",YRe="ť",QRe="Ţ",JRe="ţ",ZRe="Т",eAe="т",tAe="⃛",nAe="⌕",oAe="𝔗",rAe="𝔱",iAe="∴",aAe="∴",sAe="∴",lAe="Θ",cAe="θ",uAe="ϑ",dAe="ϑ",fAe="≈",hAe="∼",pAe="  ",mAe=" ",gAe=" ",vAe="≈",bAe="∼",yAe="Þ",xAe="þ",CAe="˜",wAe="∼",_Ae="≃",SAe="≅",kAe="≈",PAe="⨱",TAe="⊠",EAe="×",RAe="⨰",AAe="∭",$Ae="⤨",IAe="⌶",OAe="⫱",MAe="⊤",zAe="𝕋",FAe="𝕥",DAe="⫚",LAe="⤩",BAe="‴",NAe="™",HAe="™",jAe="▵",UAe="▿",VAe="◃",WAe="⊴",qAe="≜",KAe="▹",GAe="⊵",XAe="◬",YAe="≜",QAe="⨺",JAe="⃛",ZAe="⨹",e5e="⧍",t5e="⨻",n5e="⏢",o5e="𝒯",r5e="𝓉",i5e="Ц",a5e="ц",s5e="Ћ",l5e="ћ",c5e="Ŧ",u5e="ŧ",d5e="≬",f5e="↞",h5e="↠",p5e="Ú",m5e="ú",g5e="↑",v5e="↟",b5e="⇑",y5e="⥉",x5e="Ў",C5e="ў",w5e="Ŭ",_5e="ŭ",S5e="Û",k5e="û",P5e="У",T5e="у",E5e="⇅",R5e="Ű",A5e="ű",$5e="⥮",I5e="⥾",O5e="𝔘",M5e="𝔲",z5e="Ù",F5e="ù",D5e="⥣",L5e="↿",B5e="↾",N5e="▀",H5e="⌜",j5e="⌜",U5e="⌏",V5e="◸",W5e="Ū",q5e="ū",K5e="¨",G5e="_",X5e="⏟",Y5e="⎵",Q5e="⏝",J5e="⋃",Z5e="⊎",e$e="Ų",t$e="ų",n$e="𝕌",o$e="𝕦",r$e="⤒",i$e="↑",a$e="↑",s$e="⇑",l$e="⇅",c$e="↕",u$e="↕",d$e="⇕",f$e="⥮",h$e="↿",p$e="↾",m$e="⊎",g$e="↖",v$e="↗",b$e="υ",y$e="ϒ",x$e="ϒ",C$e="Υ",w$e="υ",_$e="↥",S$e="⊥",k$e="⇈",P$e="⌝",T$e="⌝",E$e="⌎",R$e="Ů",A$e="ů",$$e="◹",I$e="𝒰",O$e="𝓊",M$e="⋰",z$e="Ũ",F$e="ũ",D$e="▵",L$e="▴",B$e="⇈",N$e="Ü",H$e="ü",j$e="⦧",U$e="⦜",V$e="ϵ",W$e="ϰ",q$e="∅",K$e="ϕ",G$e="ϖ",X$e="∝",Y$e="↕",Q$e="⇕",J$e="ϱ",Z$e="ς",eIe="⊊︀",tIe="⫋︀",nIe="⊋︀",oIe="⫌︀",rIe="ϑ",iIe="⊲",aIe="⊳",sIe="⫨",lIe="⫫",cIe="⫩",uIe="В",dIe="в",fIe="⊢",hIe="⊨",pIe="⊩",mIe="⊫",gIe="⫦",vIe="⊻",bIe="∨",yIe="⋁",xIe="≚",CIe="⋮",wIe="|",_Ie="‖",SIe="|",kIe="‖",PIe="∣",TIe="|",EIe="❘",RIe="≀",AIe=" ",$Ie="𝔙",IIe="𝔳",OIe="⊲",MIe="⊂⃒",zIe="⊃⃒",FIe="𝕍",DIe="𝕧",LIe="∝",BIe="⊳",NIe="𝒱",HIe="𝓋",jIe="⫋︀",UIe="⊊︀",VIe="⫌︀",WIe="⊋︀",qIe="⊪",KIe="⦚",GIe="Ŵ",XIe="ŵ",YIe="⩟",QIe="∧",JIe="⋀",ZIe="≙",e8e="℘",t8e="𝔚",n8e="𝔴",o8e="𝕎",r8e="𝕨",i8e="℘",a8e="≀",s8e="≀",l8e="𝒲",c8e="𝓌",u8e="⋂",d8e="◯",f8e="⋃",h8e="▽",p8e="𝔛",m8e="𝔵",g8e="⟷",v8e="⟺",b8e="Ξ",y8e="ξ",x8e="⟵",C8e="⟸",w8e="⟼",_8e="⋻",S8e="⨀",k8e="𝕏",P8e="𝕩",T8e="⨁",E8e="⨂",R8e="⟶",A8e="⟹",$8e="𝒳",I8e="𝓍",O8e="⨆",M8e="⨄",z8e="△",F8e="⋁",D8e="⋀",L8e="Ý",B8e="ý",N8e="Я",H8e="я",j8e="Ŷ",U8e="ŷ",V8e="Ы",W8e="ы",q8e="¥",K8e="𝔜",G8e="𝔶",X8e="Ї",Y8e="ї",Q8e="𝕐",J8e="𝕪",Z8e="𝒴",eOe="𝓎",tOe="Ю",nOe="ю",oOe="ÿ",rOe="Ÿ",iOe="Ź",aOe="ź",sOe="Ž",lOe="ž",cOe="З",uOe="з",dOe="Ż",fOe="ż",hOe="ℨ",pOe="​",mOe="Ζ",gOe="ζ",vOe="𝔷",bOe="ℨ",yOe="Ж",xOe="ж",COe="⇝",wOe="𝕫",_Oe="ℤ",SOe="𝒵",kOe="𝓏",POe="‍",TOe="‌",EOe={Aacute:dte,aacute:fte,Abreve:hte,abreve:pte,ac:mte,acd:gte,acE:vte,Acirc:bte,acirc:yte,acute:xte,Acy:Cte,acy:wte,AElig:_te,aelig:Ste,af:kte,Afr:Pte,afr:Tte,Agrave:Ete,agrave:Rte,alefsym:Ate,aleph:$te,Alpha:Ite,alpha:Ote,Amacr:Mte,amacr:zte,amalg:Fte,amp:Dte,AMP:Lte,andand:Bte,And:Nte,and:Hte,andd:jte,andslope:Ute,andv:Vte,ang:Wte,ange:qte,angle:Kte,angmsdaa:Gte,angmsdab:Xte,angmsdac:Yte,angmsdad:Qte,angmsdae:Jte,angmsdaf:Zte,angmsdag:ene,angmsdah:tne,angmsd:nne,angrt:one,angrtvb:rne,angrtvbd:ine,angsph:ane,angst:sne,angzarr:lne,Aogon:cne,aogon:une,Aopf:dne,aopf:fne,apacir:hne,ap:pne,apE:mne,ape:gne,apid:vne,apos:bne,ApplyFunction:yne,approx:xne,approxeq:Cne,Aring:wne,aring:_ne,Ascr:Sne,ascr:kne,Assign:Pne,ast:Tne,asymp:Ene,asympeq:Rne,Atilde:Ane,atilde:$ne,Auml:Ine,auml:One,awconint:Mne,awint:zne,backcong:Fne,backepsilon:Dne,backprime:Lne,backsim:Bne,backsimeq:Nne,Backslash:Hne,Barv:jne,barvee:Une,barwed:Vne,Barwed:Wne,barwedge:qne,bbrk:Kne,bbrktbrk:Gne,bcong:Xne,Bcy:Yne,bcy:Qne,bdquo:Jne,becaus:Zne,because:eoe,Because:toe,bemptyv:noe,bepsi:ooe,bernou:roe,Bernoullis:ioe,Beta:aoe,beta:soe,beth:loe,between:coe,Bfr:uoe,bfr:doe,bigcap:foe,bigcirc:hoe,bigcup:poe,bigodot:moe,bigoplus:goe,bigotimes:voe,bigsqcup:boe,bigstar:yoe,bigtriangledown:xoe,bigtriangleup:Coe,biguplus:woe,bigvee:_oe,bigwedge:Soe,bkarow:koe,blacklozenge:Poe,blacksquare:Toe,blacktriangle:Eoe,blacktriangledown:Roe,blacktriangleleft:Aoe,blacktriangleright:$oe,blank:Ioe,blk12:Ooe,blk14:Moe,blk34:zoe,block:Foe,bne:Doe,bnequiv:Loe,bNot:Boe,bnot:Noe,Bopf:Hoe,bopf:joe,bot:Uoe,bottom:Voe,bowtie:Woe,boxbox:qoe,boxdl:Koe,boxdL:Goe,boxDl:Xoe,boxDL:Yoe,boxdr:Qoe,boxdR:Joe,boxDr:Zoe,boxDR:ere,boxh:tre,boxH:nre,boxhd:ore,boxHd:rre,boxhD:ire,boxHD:are,boxhu:sre,boxHu:lre,boxhU:cre,boxHU:ure,boxminus:dre,boxplus:fre,boxtimes:hre,boxul:pre,boxuL:mre,boxUl:gre,boxUL:vre,boxur:bre,boxuR:yre,boxUr:xre,boxUR:Cre,boxv:wre,boxV:_re,boxvh:Sre,boxvH:kre,boxVh:Pre,boxVH:Tre,boxvl:Ere,boxvL:Rre,boxVl:Are,boxVL:$re,boxvr:Ire,boxvR:Ore,boxVr:Mre,boxVR:zre,bprime:Fre,breve:Dre,Breve:Lre,brvbar:Bre,bscr:Nre,Bscr:Hre,bsemi:jre,bsim:Ure,bsime:Vre,bsolb:Wre,bsol:qre,bsolhsub:Kre,bull:Gre,bullet:Xre,bump:Yre,bumpE:Qre,bumpe:Jre,Bumpeq:Zre,bumpeq:eie,Cacute:tie,cacute:nie,capand:oie,capbrcup:rie,capcap:iie,cap:aie,Cap:sie,capcup:lie,capdot:cie,CapitalDifferentialD:uie,caps:die,caret:fie,caron:hie,Cayleys:pie,ccaps:mie,Ccaron:gie,ccaron:vie,Ccedil:bie,ccedil:yie,Ccirc:xie,ccirc:Cie,Cconint:wie,ccups:_ie,ccupssm:Sie,Cdot:kie,cdot:Pie,cedil:Tie,Cedilla:Eie,cemptyv:Rie,cent:Aie,centerdot:$ie,CenterDot:Iie,cfr:Oie,Cfr:Mie,CHcy:zie,chcy:Fie,check:Die,checkmark:Lie,Chi:Bie,chi:Nie,circ:Hie,circeq:jie,circlearrowleft:Uie,circlearrowright:Vie,circledast:Wie,circledcirc:qie,circleddash:Kie,CircleDot:Gie,circledR:Xie,circledS:Yie,CircleMinus:Qie,CirclePlus:Jie,CircleTimes:Zie,cir:eae,cirE:tae,cire:nae,cirfnint:oae,cirmid:rae,cirscir:iae,ClockwiseContourIntegral:aae,CloseCurlyDoubleQuote:sae,CloseCurlyQuote:lae,clubs:cae,clubsuit:uae,colon:dae,Colon:fae,Colone:hae,colone:pae,coloneq:mae,comma:gae,commat:vae,comp:bae,compfn:yae,complement:xae,complexes:Cae,cong:wae,congdot:_ae,Congruent:Sae,conint:kae,Conint:Pae,ContourIntegral:Tae,copf:Eae,Copf:Rae,coprod:Aae,Coproduct:$ae,copy:Iae,COPY:Oae,copysr:Mae,CounterClockwiseContourIntegral:zae,crarr:Fae,cross:Dae,Cross:Lae,Cscr:Bae,cscr:Nae,csub:Hae,csube:jae,csup:Uae,csupe:Vae,ctdot:Wae,cudarrl:qae,cudarrr:Kae,cuepr:Gae,cuesc:Xae,cularr:Yae,cularrp:Qae,cupbrcap:Jae,cupcap:Zae,CupCap:ese,cup:tse,Cup:nse,cupcup:ose,cupdot:rse,cupor:ise,cups:ase,curarr:sse,curarrm:lse,curlyeqprec:cse,curlyeqsucc:use,curlyvee:dse,curlywedge:fse,curren:hse,curvearrowleft:pse,curvearrowright:mse,cuvee:gse,cuwed:vse,cwconint:bse,cwint:yse,cylcty:xse,dagger:Cse,Dagger:wse,daleth:_se,darr:Sse,Darr:kse,dArr:Pse,dash:Tse,Dashv:Ese,dashv:Rse,dbkarow:Ase,dblac:$se,Dcaron:Ise,dcaron:Ose,Dcy:Mse,dcy:zse,ddagger:Fse,ddarr:Dse,DD:Lse,dd:Bse,DDotrahd:Nse,ddotseq:Hse,deg:jse,Del:Use,Delta:Vse,delta:Wse,demptyv:qse,dfisht:Kse,Dfr:Gse,dfr:Xse,dHar:Yse,dharl:Qse,dharr:Jse,DiacriticalAcute:Zse,DiacriticalDot:ele,DiacriticalDoubleAcute:tle,DiacriticalGrave:nle,DiacriticalTilde:ole,diam:rle,diamond:ile,Diamond:ale,diamondsuit:sle,diams:lle,die:cle,DifferentialD:ule,digamma:dle,disin:fle,div:hle,divide:ple,divideontimes:mle,divonx:gle,DJcy:vle,djcy:ble,dlcorn:yle,dlcrop:xle,dollar:Cle,Dopf:wle,dopf:_le,Dot:Sle,dot:kle,DotDot:Ple,doteq:Tle,doteqdot:Ele,DotEqual:Rle,dotminus:Ale,dotplus:$le,dotsquare:Ile,doublebarwedge:Ole,DoubleContourIntegral:Mle,DoubleDot:zle,DoubleDownArrow:Fle,DoubleLeftArrow:Dle,DoubleLeftRightArrow:Lle,DoubleLeftTee:Ble,DoubleLongLeftArrow:Nle,DoubleLongLeftRightArrow:Hle,DoubleLongRightArrow:jle,DoubleRightArrow:Ule,DoubleRightTee:Vle,DoubleUpArrow:Wle,DoubleUpDownArrow:qle,DoubleVerticalBar:Kle,DownArrowBar:Gle,downarrow:Xle,DownArrow:Yle,Downarrow:Qle,DownArrowUpArrow:Jle,DownBreve:Zle,downdownarrows:ece,downharpoonleft:tce,downharpoonright:nce,DownLeftRightVector:oce,DownLeftTeeVector:rce,DownLeftVectorBar:ice,DownLeftVector:ace,DownRightTeeVector:sce,DownRightVectorBar:lce,DownRightVector:cce,DownTeeArrow:uce,DownTee:dce,drbkarow:fce,drcorn:hce,drcrop:pce,Dscr:mce,dscr:gce,DScy:vce,dscy:bce,dsol:yce,Dstrok:xce,dstrok:Cce,dtdot:wce,dtri:_ce,dtrif:Sce,duarr:kce,duhar:Pce,dwangle:Tce,DZcy:Ece,dzcy:Rce,dzigrarr:Ace,Eacute:$ce,eacute:Ice,easter:Oce,Ecaron:Mce,ecaron:zce,Ecirc:Fce,ecirc:Dce,ecir:Lce,ecolon:Bce,Ecy:Nce,ecy:Hce,eDDot:jce,Edot:Uce,edot:Vce,eDot:Wce,ee:qce,efDot:Kce,Efr:Gce,efr:Xce,eg:Yce,Egrave:Qce,egrave:Jce,egs:Zce,egsdot:eue,el:tue,Element:nue,elinters:oue,ell:rue,els:iue,elsdot:aue,Emacr:sue,emacr:lue,empty:cue,emptyset:uue,EmptySmallSquare:due,emptyv:fue,EmptyVerySmallSquare:hue,emsp13:pue,emsp14:mue,emsp:gue,ENG:vue,eng:bue,ensp:yue,Eogon:xue,eogon:Cue,Eopf:wue,eopf:_ue,epar:Sue,eparsl:kue,eplus:Pue,epsi:Tue,Epsilon:Eue,epsilon:Rue,epsiv:Aue,eqcirc:$ue,eqcolon:Iue,eqsim:Oue,eqslantgtr:Mue,eqslantless:zue,Equal:Fue,equals:Due,EqualTilde:Lue,equest:Bue,Equilibrium:Nue,equiv:Hue,equivDD:jue,eqvparsl:Uue,erarr:Vue,erDot:Wue,escr:que,Escr:Kue,esdot:Gue,Esim:Xue,esim:Yue,Eta:Que,eta:Jue,ETH:Zue,eth:ede,Euml:tde,euml:nde,euro:ode,excl:rde,exist:ide,Exists:ade,expectation:sde,exponentiale:lde,ExponentialE:cde,fallingdotseq:ude,Fcy:dde,fcy:fde,female:hde,ffilig:pde,fflig:mde,ffllig:gde,Ffr:vde,ffr:bde,filig:yde,FilledSmallSquare:xde,FilledVerySmallSquare:Cde,fjlig:wde,flat:_de,fllig:Sde,fltns:kde,fnof:Pde,Fopf:Tde,fopf:Ede,forall:Rde,ForAll:Ade,fork:$de,forkv:Ide,Fouriertrf:Ode,fpartint:Mde,frac12:zde,frac13:Fde,frac14:Dde,frac15:Lde,frac16:Bde,frac18:Nde,frac23:Hde,frac25:jde,frac34:Ude,frac35:Vde,frac38:Wde,frac45:qde,frac56:Kde,frac58:Gde,frac78:Xde,frasl:Yde,frown:Qde,fscr:Jde,Fscr:Zde,gacute:efe,Gamma:tfe,gamma:nfe,Gammad:ofe,gammad:rfe,gap:ife,Gbreve:afe,gbreve:sfe,Gcedil:lfe,Gcirc:cfe,gcirc:ufe,Gcy:dfe,gcy:ffe,Gdot:hfe,gdot:pfe,ge:mfe,gE:gfe,gEl:vfe,gel:bfe,geq:yfe,geqq:xfe,geqslant:Cfe,gescc:wfe,ges:_fe,gesdot:Sfe,gesdoto:kfe,gesdotol:Pfe,gesl:Tfe,gesles:Efe,Gfr:Rfe,gfr:Afe,gg:$fe,Gg:Ife,ggg:Ofe,gimel:Mfe,GJcy:zfe,gjcy:Ffe,gla:Dfe,gl:Lfe,glE:Bfe,glj:Nfe,gnap:Hfe,gnapprox:jfe,gne:Ufe,gnE:Vfe,gneq:Wfe,gneqq:qfe,gnsim:Kfe,Gopf:Gfe,gopf:Xfe,grave:Yfe,GreaterEqual:Qfe,GreaterEqualLess:Jfe,GreaterFullEqual:Zfe,GreaterGreater:ehe,GreaterLess:the,GreaterSlantEqual:nhe,GreaterTilde:ohe,Gscr:rhe,gscr:ihe,gsim:ahe,gsime:she,gsiml:lhe,gtcc:che,gtcir:uhe,gt:dhe,GT:fhe,Gt:hhe,gtdot:phe,gtlPar:mhe,gtquest:ghe,gtrapprox:vhe,gtrarr:bhe,gtrdot:yhe,gtreqless:xhe,gtreqqless:Che,gtrless:whe,gtrsim:_he,gvertneqq:She,gvnE:khe,Hacek:Phe,hairsp:The,half:Ehe,hamilt:Rhe,HARDcy:Ahe,hardcy:$he,harrcir:Ihe,harr:Ohe,hArr:Mhe,harrw:zhe,Hat:Fhe,hbar:Dhe,Hcirc:Lhe,hcirc:Bhe,hearts:Nhe,heartsuit:Hhe,hellip:jhe,hercon:Uhe,hfr:Vhe,Hfr:Whe,HilbertSpace:qhe,hksearow:Khe,hkswarow:Ghe,hoarr:Xhe,homtht:Yhe,hookleftarrow:Qhe,hookrightarrow:Jhe,hopf:Zhe,Hopf:epe,horbar:tpe,HorizontalLine:npe,hscr:ope,Hscr:rpe,hslash:ipe,Hstrok:ape,hstrok:spe,HumpDownHump:lpe,HumpEqual:cpe,hybull:upe,hyphen:dpe,Iacute:fpe,iacute:hpe,ic:ppe,Icirc:mpe,icirc:gpe,Icy:vpe,icy:bpe,Idot:ype,IEcy:xpe,iecy:Cpe,iexcl:wpe,iff:_pe,ifr:Spe,Ifr:kpe,Igrave:Ppe,igrave:Tpe,ii:Epe,iiiint:Rpe,iiint:Ape,iinfin:$pe,iiota:Ipe,IJlig:Ope,ijlig:Mpe,Imacr:zpe,imacr:Fpe,image:Dpe,ImaginaryI:Lpe,imagline:Bpe,imagpart:Npe,imath:Hpe,Im:jpe,imof:Upe,imped:Vpe,Implies:Wpe,incare:qpe,in:"∈",infin:Kpe,infintie:Gpe,inodot:Xpe,intcal:Ype,int:Qpe,Int:Jpe,integers:Zpe,Integral:eme,intercal:tme,Intersection:nme,intlarhk:ome,intprod:rme,InvisibleComma:ime,InvisibleTimes:ame,IOcy:sme,iocy:lme,Iogon:cme,iogon:ume,Iopf:dme,iopf:fme,Iota:hme,iota:pme,iprod:mme,iquest:gme,iscr:vme,Iscr:bme,isin:yme,isindot:xme,isinE:Cme,isins:wme,isinsv:_me,isinv:Sme,it:kme,Itilde:Pme,itilde:Tme,Iukcy:Eme,iukcy:Rme,Iuml:Ame,iuml:$me,Jcirc:Ime,jcirc:Ome,Jcy:Mme,jcy:zme,Jfr:Fme,jfr:Dme,jmath:Lme,Jopf:Bme,jopf:Nme,Jscr:Hme,jscr:jme,Jsercy:Ume,jsercy:Vme,Jukcy:Wme,jukcy:qme,Kappa:Kme,kappa:Gme,kappav:Xme,Kcedil:Yme,kcedil:Qme,Kcy:Jme,kcy:Zme,Kfr:ege,kfr:tge,kgreen:nge,KHcy:oge,khcy:rge,KJcy:ige,kjcy:age,Kopf:sge,kopf:lge,Kscr:cge,kscr:uge,lAarr:dge,Lacute:fge,lacute:hge,laemptyv:pge,lagran:mge,Lambda:gge,lambda:vge,lang:bge,Lang:yge,langd:xge,langle:Cge,lap:wge,Laplacetrf:_ge,laquo:Sge,larrb:kge,larrbfs:Pge,larr:Tge,Larr:Ege,lArr:Rge,larrfs:Age,larrhk:$ge,larrlp:Ige,larrpl:Oge,larrsim:Mge,larrtl:zge,latail:Fge,lAtail:Dge,lat:Lge,late:Bge,lates:Nge,lbarr:Hge,lBarr:jge,lbbrk:Uge,lbrace:Vge,lbrack:Wge,lbrke:qge,lbrksld:Kge,lbrkslu:Gge,Lcaron:Xge,lcaron:Yge,Lcedil:Qge,lcedil:Jge,lceil:Zge,lcub:eve,Lcy:tve,lcy:nve,ldca:ove,ldquo:rve,ldquor:ive,ldrdhar:ave,ldrushar:sve,ldsh:lve,le:cve,lE:uve,LeftAngleBracket:dve,LeftArrowBar:fve,leftarrow:hve,LeftArrow:pve,Leftarrow:mve,LeftArrowRightArrow:gve,leftarrowtail:vve,LeftCeiling:bve,LeftDoubleBracket:yve,LeftDownTeeVector:xve,LeftDownVectorBar:Cve,LeftDownVector:wve,LeftFloor:_ve,leftharpoondown:Sve,leftharpoonup:kve,leftleftarrows:Pve,leftrightarrow:Tve,LeftRightArrow:Eve,Leftrightarrow:Rve,leftrightarrows:Ave,leftrightharpoons:$ve,leftrightsquigarrow:Ive,LeftRightVector:Ove,LeftTeeArrow:Mve,LeftTee:zve,LeftTeeVector:Fve,leftthreetimes:Dve,LeftTriangleBar:Lve,LeftTriangle:Bve,LeftTriangleEqual:Nve,LeftUpDownVector:Hve,LeftUpTeeVector:jve,LeftUpVectorBar:Uve,LeftUpVector:Vve,LeftVectorBar:Wve,LeftVector:qve,lEg:Kve,leg:Gve,leq:Xve,leqq:Yve,leqslant:Qve,lescc:Jve,les:Zve,lesdot:ebe,lesdoto:tbe,lesdotor:nbe,lesg:obe,lesges:rbe,lessapprox:ibe,lessdot:abe,lesseqgtr:sbe,lesseqqgtr:lbe,LessEqualGreater:cbe,LessFullEqual:ube,LessGreater:dbe,lessgtr:fbe,LessLess:hbe,lesssim:pbe,LessSlantEqual:mbe,LessTilde:gbe,lfisht:vbe,lfloor:bbe,Lfr:ybe,lfr:xbe,lg:Cbe,lgE:wbe,lHar:_be,lhard:Sbe,lharu:kbe,lharul:Pbe,lhblk:Tbe,LJcy:Ebe,ljcy:Rbe,llarr:Abe,ll:$be,Ll:Ibe,llcorner:Obe,Lleftarrow:Mbe,llhard:zbe,lltri:Fbe,Lmidot:Dbe,lmidot:Lbe,lmoustache:Bbe,lmoust:Nbe,lnap:Hbe,lnapprox:jbe,lne:Ube,lnE:Vbe,lneq:Wbe,lneqq:qbe,lnsim:Kbe,loang:Gbe,loarr:Xbe,lobrk:Ybe,longleftarrow:Qbe,LongLeftArrow:Jbe,Longleftarrow:Zbe,longleftrightarrow:e0e,LongLeftRightArrow:t0e,Longleftrightarrow:n0e,longmapsto:o0e,longrightarrow:r0e,LongRightArrow:i0e,Longrightarrow:a0e,looparrowleft:s0e,looparrowright:l0e,lopar:c0e,Lopf:u0e,lopf:d0e,loplus:f0e,lotimes:h0e,lowast:p0e,lowbar:m0e,LowerLeftArrow:g0e,LowerRightArrow:v0e,loz:b0e,lozenge:y0e,lozf:x0e,lpar:C0e,lparlt:w0e,lrarr:_0e,lrcorner:S0e,lrhar:k0e,lrhard:P0e,lrm:T0e,lrtri:E0e,lsaquo:R0e,lscr:A0e,Lscr:$0e,lsh:I0e,Lsh:O0e,lsim:M0e,lsime:z0e,lsimg:F0e,lsqb:D0e,lsquo:L0e,lsquor:B0e,Lstrok:N0e,lstrok:H0e,ltcc:j0e,ltcir:U0e,lt:V0e,LT:W0e,Lt:q0e,ltdot:K0e,lthree:G0e,ltimes:X0e,ltlarr:Y0e,ltquest:Q0e,ltri:J0e,ltrie:Z0e,ltrif:e1e,ltrPar:t1e,lurdshar:n1e,luruhar:o1e,lvertneqq:r1e,lvnE:i1e,macr:a1e,male:s1e,malt:l1e,maltese:c1e,Map:"⤅",map:u1e,mapsto:d1e,mapstodown:f1e,mapstoleft:h1e,mapstoup:p1e,marker:m1e,mcomma:g1e,Mcy:v1e,mcy:b1e,mdash:y1e,mDDot:x1e,measuredangle:C1e,MediumSpace:w1e,Mellintrf:_1e,Mfr:S1e,mfr:k1e,mho:P1e,micro:T1e,midast:E1e,midcir:R1e,mid:A1e,middot:$1e,minusb:I1e,minus:O1e,minusd:M1e,minusdu:z1e,MinusPlus:F1e,mlcp:D1e,mldr:L1e,mnplus:B1e,models:N1e,Mopf:H1e,mopf:j1e,mp:U1e,mscr:V1e,Mscr:W1e,mstpos:q1e,Mu:K1e,mu:G1e,multimap:X1e,mumap:Y1e,nabla:Q1e,Nacute:J1e,nacute:Z1e,nang:eye,nap:tye,napE:nye,napid:oye,napos:rye,napprox:iye,natural:aye,naturals:sye,natur:lye,nbsp:cye,nbump:uye,nbumpe:dye,ncap:fye,Ncaron:hye,ncaron:pye,Ncedil:mye,ncedil:gye,ncong:vye,ncongdot:bye,ncup:yye,Ncy:xye,ncy:Cye,ndash:wye,nearhk:_ye,nearr:Sye,neArr:kye,nearrow:Pye,ne:Tye,nedot:Eye,NegativeMediumSpace:Rye,NegativeThickSpace:Aye,NegativeThinSpace:$ye,NegativeVeryThinSpace:Iye,nequiv:Oye,nesear:Mye,nesim:zye,NestedGreaterGreater:Fye,NestedLessLess:Dye,NewLine:Lye,nexist:Bye,nexists:Nye,Nfr:Hye,nfr:jye,ngE:Uye,nge:Vye,ngeq:Wye,ngeqq:qye,ngeqslant:Kye,nges:Gye,nGg:Xye,ngsim:Yye,nGt:Qye,ngt:Jye,ngtr:Zye,nGtv:exe,nharr:txe,nhArr:nxe,nhpar:oxe,ni:rxe,nis:ixe,nisd:axe,niv:sxe,NJcy:lxe,njcy:cxe,nlarr:uxe,nlArr:dxe,nldr:fxe,nlE:hxe,nle:pxe,nleftarrow:mxe,nLeftarrow:gxe,nleftrightarrow:vxe,nLeftrightarrow:bxe,nleq:yxe,nleqq:xxe,nleqslant:Cxe,nles:wxe,nless:_xe,nLl:Sxe,nlsim:kxe,nLt:Pxe,nlt:Txe,nltri:Exe,nltrie:Rxe,nLtv:Axe,nmid:$xe,NoBreak:Ixe,NonBreakingSpace:Oxe,nopf:Mxe,Nopf:zxe,Not:Fxe,not:Dxe,NotCongruent:Lxe,NotCupCap:Bxe,NotDoubleVerticalBar:Nxe,NotElement:Hxe,NotEqual:jxe,NotEqualTilde:Uxe,NotExists:Vxe,NotGreater:Wxe,NotGreaterEqual:qxe,NotGreaterFullEqual:Kxe,NotGreaterGreater:Gxe,NotGreaterLess:Xxe,NotGreaterSlantEqual:Yxe,NotGreaterTilde:Qxe,NotHumpDownHump:Jxe,NotHumpEqual:Zxe,notin:eCe,notindot:tCe,notinE:nCe,notinva:oCe,notinvb:rCe,notinvc:iCe,NotLeftTriangleBar:aCe,NotLeftTriangle:sCe,NotLeftTriangleEqual:lCe,NotLess:cCe,NotLessEqual:uCe,NotLessGreater:dCe,NotLessLess:fCe,NotLessSlantEqual:hCe,NotLessTilde:pCe,NotNestedGreaterGreater:mCe,NotNestedLessLess:gCe,notni:vCe,notniva:bCe,notnivb:yCe,notnivc:xCe,NotPrecedes:CCe,NotPrecedesEqual:wCe,NotPrecedesSlantEqual:_Ce,NotReverseElement:SCe,NotRightTriangleBar:kCe,NotRightTriangle:PCe,NotRightTriangleEqual:TCe,NotSquareSubset:ECe,NotSquareSubsetEqual:RCe,NotSquareSuperset:ACe,NotSquareSupersetEqual:$Ce,NotSubset:ICe,NotSubsetEqual:OCe,NotSucceeds:MCe,NotSucceedsEqual:zCe,NotSucceedsSlantEqual:FCe,NotSucceedsTilde:DCe,NotSuperset:LCe,NotSupersetEqual:BCe,NotTilde:NCe,NotTildeEqual:HCe,NotTildeFullEqual:jCe,NotTildeTilde:UCe,NotVerticalBar:VCe,nparallel:WCe,npar:qCe,nparsl:KCe,npart:GCe,npolint:XCe,npr:YCe,nprcue:QCe,nprec:JCe,npreceq:ZCe,npre:ewe,nrarrc:twe,nrarr:nwe,nrArr:owe,nrarrw:rwe,nrightarrow:iwe,nRightarrow:awe,nrtri:swe,nrtrie:lwe,nsc:cwe,nsccue:uwe,nsce:dwe,Nscr:fwe,nscr:hwe,nshortmid:pwe,nshortparallel:mwe,nsim:gwe,nsime:vwe,nsimeq:bwe,nsmid:ywe,nspar:xwe,nsqsube:Cwe,nsqsupe:wwe,nsub:_we,nsubE:Swe,nsube:kwe,nsubset:Pwe,nsubseteq:Twe,nsubseteqq:Ewe,nsucc:Rwe,nsucceq:Awe,nsup:$we,nsupE:Iwe,nsupe:Owe,nsupset:Mwe,nsupseteq:zwe,nsupseteqq:Fwe,ntgl:Dwe,Ntilde:Lwe,ntilde:Bwe,ntlg:Nwe,ntriangleleft:Hwe,ntrianglelefteq:jwe,ntriangleright:Uwe,ntrianglerighteq:Vwe,Nu:Wwe,nu:qwe,num:Kwe,numero:Gwe,numsp:Xwe,nvap:Ywe,nvdash:Qwe,nvDash:Jwe,nVdash:Zwe,nVDash:e_e,nvge:t_e,nvgt:n_e,nvHarr:o_e,nvinfin:r_e,nvlArr:i_e,nvle:a_e,nvlt:s_e,nvltrie:l_e,nvrArr:c_e,nvrtrie:u_e,nvsim:d_e,nwarhk:f_e,nwarr:h_e,nwArr:p_e,nwarrow:m_e,nwnear:g_e,Oacute:v_e,oacute:b_e,oast:y_e,Ocirc:x_e,ocirc:C_e,ocir:w_e,Ocy:__e,ocy:S_e,odash:k_e,Odblac:P_e,odblac:T_e,odiv:E_e,odot:R_e,odsold:A_e,OElig:$_e,oelig:I_e,ofcir:O_e,Ofr:M_e,ofr:z_e,ogon:F_e,Ograve:D_e,ograve:L_e,ogt:B_e,ohbar:N_e,ohm:H_e,oint:j_e,olarr:U_e,olcir:V_e,olcross:W_e,oline:q_e,olt:K_e,Omacr:G_e,omacr:X_e,Omega:Y_e,omega:Q_e,Omicron:J_e,omicron:Z_e,omid:eSe,ominus:tSe,Oopf:nSe,oopf:oSe,opar:rSe,OpenCurlyDoubleQuote:iSe,OpenCurlyQuote:aSe,operp:sSe,oplus:lSe,orarr:cSe,Or:uSe,or:dSe,ord:fSe,order:hSe,orderof:pSe,ordf:mSe,ordm:gSe,origof:vSe,oror:bSe,orslope:ySe,orv:xSe,oS:CSe,Oscr:wSe,oscr:_Se,Oslash:SSe,oslash:kSe,osol:PSe,Otilde:TSe,otilde:ESe,otimesas:RSe,Otimes:ASe,otimes:$Se,Ouml:ISe,ouml:OSe,ovbar:MSe,OverBar:zSe,OverBrace:FSe,OverBracket:DSe,OverParenthesis:LSe,para:BSe,parallel:NSe,par:HSe,parsim:jSe,parsl:USe,part:VSe,PartialD:WSe,Pcy:qSe,pcy:KSe,percnt:GSe,period:XSe,permil:YSe,perp:QSe,pertenk:JSe,Pfr:ZSe,pfr:e2e,Phi:t2e,phi:n2e,phiv:o2e,phmmat:r2e,phone:i2e,Pi:a2e,pi:s2e,pitchfork:l2e,piv:c2e,planck:u2e,planckh:d2e,plankv:f2e,plusacir:h2e,plusb:p2e,pluscir:m2e,plus:g2e,plusdo:v2e,plusdu:b2e,pluse:y2e,PlusMinus:x2e,plusmn:C2e,plussim:w2e,plustwo:_2e,pm:S2e,Poincareplane:k2e,pointint:P2e,popf:T2e,Popf:E2e,pound:R2e,prap:A2e,Pr:$2e,pr:I2e,prcue:O2e,precapprox:M2e,prec:z2e,preccurlyeq:F2e,Precedes:D2e,PrecedesEqual:L2e,PrecedesSlantEqual:B2e,PrecedesTilde:N2e,preceq:H2e,precnapprox:j2e,precneqq:U2e,precnsim:V2e,pre:W2e,prE:q2e,precsim:K2e,prime:G2e,Prime:X2e,primes:Y2e,prnap:Q2e,prnE:J2e,prnsim:Z2e,prod:eke,Product:tke,profalar:nke,profline:oke,profsurf:rke,prop:ike,Proportional:ake,Proportion:ske,propto:lke,prsim:cke,prurel:uke,Pscr:dke,pscr:fke,Psi:hke,psi:pke,puncsp:mke,Qfr:gke,qfr:vke,qint:bke,qopf:yke,Qopf:xke,qprime:Cke,Qscr:wke,qscr:_ke,quaternions:Ske,quatint:kke,quest:Pke,questeq:Tke,quot:Eke,QUOT:Rke,rAarr:Ake,race:$ke,Racute:Ike,racute:Oke,radic:Mke,raemptyv:zke,rang:Fke,Rang:Dke,rangd:Lke,range:Bke,rangle:Nke,raquo:Hke,rarrap:jke,rarrb:Uke,rarrbfs:Vke,rarrc:Wke,rarr:qke,Rarr:Kke,rArr:Gke,rarrfs:Xke,rarrhk:Yke,rarrlp:Qke,rarrpl:Jke,rarrsim:Zke,Rarrtl:e3e,rarrtl:t3e,rarrw:n3e,ratail:o3e,rAtail:r3e,ratio:i3e,rationals:a3e,rbarr:s3e,rBarr:l3e,RBarr:c3e,rbbrk:u3e,rbrace:d3e,rbrack:f3e,rbrke:h3e,rbrksld:p3e,rbrkslu:m3e,Rcaron:g3e,rcaron:v3e,Rcedil:b3e,rcedil:y3e,rceil:x3e,rcub:C3e,Rcy:w3e,rcy:_3e,rdca:S3e,rdldhar:k3e,rdquo:P3e,rdquor:T3e,rdsh:E3e,real:R3e,realine:A3e,realpart:$3e,reals:I3e,Re:O3e,rect:M3e,reg:z3e,REG:F3e,ReverseElement:D3e,ReverseEquilibrium:L3e,ReverseUpEquilibrium:B3e,rfisht:N3e,rfloor:H3e,rfr:j3e,Rfr:U3e,rHar:V3e,rhard:W3e,rharu:q3e,rharul:K3e,Rho:G3e,rho:X3e,rhov:Y3e,RightAngleBracket:Q3e,RightArrowBar:J3e,rightarrow:Z3e,RightArrow:ePe,Rightarrow:tPe,RightArrowLeftArrow:nPe,rightarrowtail:oPe,RightCeiling:rPe,RightDoubleBracket:iPe,RightDownTeeVector:aPe,RightDownVectorBar:sPe,RightDownVector:lPe,RightFloor:cPe,rightharpoondown:uPe,rightharpoonup:dPe,rightleftarrows:fPe,rightleftharpoons:hPe,rightrightarrows:pPe,rightsquigarrow:mPe,RightTeeArrow:gPe,RightTee:vPe,RightTeeVector:bPe,rightthreetimes:yPe,RightTriangleBar:xPe,RightTriangle:CPe,RightTriangleEqual:wPe,RightUpDownVector:_Pe,RightUpTeeVector:SPe,RightUpVectorBar:kPe,RightUpVector:PPe,RightVectorBar:TPe,RightVector:EPe,ring:RPe,risingdotseq:APe,rlarr:$Pe,rlhar:IPe,rlm:OPe,rmoustache:MPe,rmoust:zPe,rnmid:FPe,roang:DPe,roarr:LPe,robrk:BPe,ropar:NPe,ropf:HPe,Ropf:jPe,roplus:UPe,rotimes:VPe,RoundImplies:WPe,rpar:qPe,rpargt:KPe,rppolint:GPe,rrarr:XPe,Rrightarrow:YPe,rsaquo:QPe,rscr:JPe,Rscr:ZPe,rsh:eTe,Rsh:tTe,rsqb:nTe,rsquo:oTe,rsquor:rTe,rthree:iTe,rtimes:aTe,rtri:sTe,rtrie:lTe,rtrif:cTe,rtriltri:uTe,RuleDelayed:dTe,ruluhar:fTe,rx:hTe,Sacute:pTe,sacute:mTe,sbquo:gTe,scap:vTe,Scaron:bTe,scaron:yTe,Sc:xTe,sc:CTe,sccue:wTe,sce:_Te,scE:STe,Scedil:kTe,scedil:PTe,Scirc:TTe,scirc:ETe,scnap:RTe,scnE:ATe,scnsim:$Te,scpolint:ITe,scsim:OTe,Scy:MTe,scy:zTe,sdotb:FTe,sdot:DTe,sdote:LTe,searhk:BTe,searr:NTe,seArr:HTe,searrow:jTe,sect:UTe,semi:VTe,seswar:WTe,setminus:qTe,setmn:KTe,sext:GTe,Sfr:XTe,sfr:YTe,sfrown:QTe,sharp:JTe,SHCHcy:ZTe,shchcy:e4e,SHcy:t4e,shcy:n4e,ShortDownArrow:o4e,ShortLeftArrow:r4e,shortmid:i4e,shortparallel:a4e,ShortRightArrow:s4e,ShortUpArrow:l4e,shy:c4e,Sigma:u4e,sigma:d4e,sigmaf:f4e,sigmav:h4e,sim:p4e,simdot:m4e,sime:g4e,simeq:v4e,simg:b4e,simgE:y4e,siml:x4e,simlE:C4e,simne:w4e,simplus:_4e,simrarr:S4e,slarr:k4e,SmallCircle:P4e,smallsetminus:T4e,smashp:E4e,smeparsl:R4e,smid:A4e,smile:$4e,smt:I4e,smte:O4e,smtes:M4e,SOFTcy:z4e,softcy:F4e,solbar:D4e,solb:L4e,sol:B4e,Sopf:N4e,sopf:H4e,spades:j4e,spadesuit:U4e,spar:V4e,sqcap:W4e,sqcaps:q4e,sqcup:K4e,sqcups:G4e,Sqrt:X4e,sqsub:Y4e,sqsube:Q4e,sqsubset:J4e,sqsubseteq:Z4e,sqsup:eEe,sqsupe:tEe,sqsupset:nEe,sqsupseteq:oEe,square:rEe,Square:iEe,SquareIntersection:aEe,SquareSubset:sEe,SquareSubsetEqual:lEe,SquareSuperset:cEe,SquareSupersetEqual:uEe,SquareUnion:dEe,squarf:fEe,squ:hEe,squf:pEe,srarr:mEe,Sscr:gEe,sscr:vEe,ssetmn:bEe,ssmile:yEe,sstarf:xEe,Star:CEe,star:wEe,starf:_Ee,straightepsilon:SEe,straightphi:kEe,strns:PEe,sub:TEe,Sub:EEe,subdot:REe,subE:AEe,sube:$Ee,subedot:IEe,submult:OEe,subnE:MEe,subne:zEe,subplus:FEe,subrarr:DEe,subset:LEe,Subset:BEe,subseteq:NEe,subseteqq:HEe,SubsetEqual:jEe,subsetneq:UEe,subsetneqq:VEe,subsim:WEe,subsub:qEe,subsup:KEe,succapprox:GEe,succ:XEe,succcurlyeq:YEe,Succeeds:QEe,SucceedsEqual:JEe,SucceedsSlantEqual:ZEe,SucceedsTilde:eRe,succeq:tRe,succnapprox:nRe,succneqq:oRe,succnsim:rRe,succsim:iRe,SuchThat:aRe,sum:sRe,Sum:lRe,sung:cRe,sup1:uRe,sup2:dRe,sup3:fRe,sup:hRe,Sup:pRe,supdot:mRe,supdsub:gRe,supE:vRe,supe:bRe,supedot:yRe,Superset:xRe,SupersetEqual:CRe,suphsol:wRe,suphsub:_Re,suplarr:SRe,supmult:kRe,supnE:PRe,supne:TRe,supplus:ERe,supset:RRe,Supset:ARe,supseteq:$Re,supseteqq:IRe,supsetneq:ORe,supsetneqq:MRe,supsim:zRe,supsub:FRe,supsup:DRe,swarhk:LRe,swarr:BRe,swArr:NRe,swarrow:HRe,swnwar:jRe,szlig:URe,Tab:VRe,target:WRe,Tau:qRe,tau:KRe,tbrk:GRe,Tcaron:XRe,tcaron:YRe,Tcedil:QRe,tcedil:JRe,Tcy:ZRe,tcy:eAe,tdot:tAe,telrec:nAe,Tfr:oAe,tfr:rAe,there4:iAe,therefore:aAe,Therefore:sAe,Theta:lAe,theta:cAe,thetasym:uAe,thetav:dAe,thickapprox:fAe,thicksim:hAe,ThickSpace:pAe,ThinSpace:mAe,thinsp:gAe,thkap:vAe,thksim:bAe,THORN:yAe,thorn:xAe,tilde:CAe,Tilde:wAe,TildeEqual:_Ae,TildeFullEqual:SAe,TildeTilde:kAe,timesbar:PAe,timesb:TAe,times:EAe,timesd:RAe,tint:AAe,toea:$Ae,topbot:IAe,topcir:OAe,top:MAe,Topf:zAe,topf:FAe,topfork:DAe,tosa:LAe,tprime:BAe,trade:NAe,TRADE:HAe,triangle:jAe,triangledown:UAe,triangleleft:VAe,trianglelefteq:WAe,triangleq:qAe,triangleright:KAe,trianglerighteq:GAe,tridot:XAe,trie:YAe,triminus:QAe,TripleDot:JAe,triplus:ZAe,trisb:e5e,tritime:t5e,trpezium:n5e,Tscr:o5e,tscr:r5e,TScy:i5e,tscy:a5e,TSHcy:s5e,tshcy:l5e,Tstrok:c5e,tstrok:u5e,twixt:d5e,twoheadleftarrow:f5e,twoheadrightarrow:h5e,Uacute:p5e,uacute:m5e,uarr:g5e,Uarr:v5e,uArr:b5e,Uarrocir:y5e,Ubrcy:x5e,ubrcy:C5e,Ubreve:w5e,ubreve:_5e,Ucirc:S5e,ucirc:k5e,Ucy:P5e,ucy:T5e,udarr:E5e,Udblac:R5e,udblac:A5e,udhar:$5e,ufisht:I5e,Ufr:O5e,ufr:M5e,Ugrave:z5e,ugrave:F5e,uHar:D5e,uharl:L5e,uharr:B5e,uhblk:N5e,ulcorn:H5e,ulcorner:j5e,ulcrop:U5e,ultri:V5e,Umacr:W5e,umacr:q5e,uml:K5e,UnderBar:G5e,UnderBrace:X5e,UnderBracket:Y5e,UnderParenthesis:Q5e,Union:J5e,UnionPlus:Z5e,Uogon:e$e,uogon:t$e,Uopf:n$e,uopf:o$e,UpArrowBar:r$e,uparrow:i$e,UpArrow:a$e,Uparrow:s$e,UpArrowDownArrow:l$e,updownarrow:c$e,UpDownArrow:u$e,Updownarrow:d$e,UpEquilibrium:f$e,upharpoonleft:h$e,upharpoonright:p$e,uplus:m$e,UpperLeftArrow:g$e,UpperRightArrow:v$e,upsi:b$e,Upsi:y$e,upsih:x$e,Upsilon:C$e,upsilon:w$e,UpTeeArrow:_$e,UpTee:S$e,upuparrows:k$e,urcorn:P$e,urcorner:T$e,urcrop:E$e,Uring:R$e,uring:A$e,urtri:$$e,Uscr:I$e,uscr:O$e,utdot:M$e,Utilde:z$e,utilde:F$e,utri:D$e,utrif:L$e,uuarr:B$e,Uuml:N$e,uuml:H$e,uwangle:j$e,vangrt:U$e,varepsilon:V$e,varkappa:W$e,varnothing:q$e,varphi:K$e,varpi:G$e,varpropto:X$e,varr:Y$e,vArr:Q$e,varrho:J$e,varsigma:Z$e,varsubsetneq:eIe,varsubsetneqq:tIe,varsupsetneq:nIe,varsupsetneqq:oIe,vartheta:rIe,vartriangleleft:iIe,vartriangleright:aIe,vBar:sIe,Vbar:lIe,vBarv:cIe,Vcy:uIe,vcy:dIe,vdash:fIe,vDash:hIe,Vdash:pIe,VDash:mIe,Vdashl:gIe,veebar:vIe,vee:bIe,Vee:yIe,veeeq:xIe,vellip:CIe,verbar:wIe,Verbar:_Ie,vert:SIe,Vert:kIe,VerticalBar:PIe,VerticalLine:TIe,VerticalSeparator:EIe,VerticalTilde:RIe,VeryThinSpace:AIe,Vfr:$Ie,vfr:IIe,vltri:OIe,vnsub:MIe,vnsup:zIe,Vopf:FIe,vopf:DIe,vprop:LIe,vrtri:BIe,Vscr:NIe,vscr:HIe,vsubnE:jIe,vsubne:UIe,vsupnE:VIe,vsupne:WIe,Vvdash:qIe,vzigzag:KIe,Wcirc:GIe,wcirc:XIe,wedbar:YIe,wedge:QIe,Wedge:JIe,wedgeq:ZIe,weierp:e8e,Wfr:t8e,wfr:n8e,Wopf:o8e,wopf:r8e,wp:i8e,wr:a8e,wreath:s8e,Wscr:l8e,wscr:c8e,xcap:u8e,xcirc:d8e,xcup:f8e,xdtri:h8e,Xfr:p8e,xfr:m8e,xharr:g8e,xhArr:v8e,Xi:b8e,xi:y8e,xlarr:x8e,xlArr:C8e,xmap:w8e,xnis:_8e,xodot:S8e,Xopf:k8e,xopf:P8e,xoplus:T8e,xotime:E8e,xrarr:R8e,xrArr:A8e,Xscr:$8e,xscr:I8e,xsqcup:O8e,xuplus:M8e,xutri:z8e,xvee:F8e,xwedge:D8e,Yacute:L8e,yacute:B8e,YAcy:N8e,yacy:H8e,Ycirc:j8e,ycirc:U8e,Ycy:V8e,ycy:W8e,yen:q8e,Yfr:K8e,yfr:G8e,YIcy:X8e,yicy:Y8e,Yopf:Q8e,yopf:J8e,Yscr:Z8e,yscr:eOe,YUcy:tOe,yucy:nOe,yuml:oOe,Yuml:rOe,Zacute:iOe,zacute:aOe,Zcaron:sOe,zcaron:lOe,Zcy:cOe,zcy:uOe,Zdot:dOe,zdot:fOe,zeetrf:hOe,ZeroWidthSpace:pOe,Zeta:mOe,zeta:gOe,zfr:vOe,Zfr:bOe,ZHcy:yOe,zhcy:xOe,zigrarr:COe,zopf:wOe,Zopf:_Oe,Zscr:SOe,zscr:kOe,zwj:POe,zwnj:TOe};var uk=EOe,Nm=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ga={},C1={};function ROe(e){var t,n,o=C1[e];if(o)return o;for(o=C1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t"u"&&(n=!0),s=ROe(t),o=0,r=e.length;o=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1=56320&&a<=57343)){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[o])}return l}Vu.defaultChars=";/?:@&=+$,-_.!~*'()#";Vu.componentChars="-_.!~*'()";var AOe=Vu,w1={};function $Oe(e){var t,n,o=w1[e];if(o)return o;for(o=w1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t=55296&&u<=57343?d+="���":d+=String.fromCharCode(u),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}d+="�"}return d})}Wu.defaultChars=";/?:@&=+$,#";Wu.componentChars="";var IOe=Wu,OOe=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function Nc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var MOe=/^([a-z0-9.+-]+:)/i,zOe=/:[0-9]*$/,FOe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,DOe=["<",">",'"',"`"," ","\r",` +`," "],LOe=["{","}","|","\\","^","`"].concat(DOe),BOe=["'"].concat(LOe),_1=["%","/","?",";","#"].concat(BOe),S1=["/","?","#"],NOe=255,k1=/^[+a-z0-9A-Z_-]{0,63}$/,HOe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P1={javascript:!0,"javascript:":!0},T1={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jOe(e,t){if(e&&e instanceof Nc)return e;var n=new Nc;return n.parse(e,t),n}Nc.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&e.split("#").length===1){var l=FOe.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=MOe.exec(s);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(c&&P1[c])&&(s=s.substr(2),this.slashes=!0)),!P1[c]&&(a||c&&!T1[c])){var u=-1;for(n=0;n127?b+="x":b+=m[w];if(!b.match(k1)){var _=g.slice(0,n),S=g.slice(n+1),y=m.match(HOe);y&&(_.push(y[1]),S.unshift(y[2])),S.length&&(s=S.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>NOe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=s.indexOf("#");x!==-1&&(this.hash=s.substr(x),s=s.slice(0,x));var P=s.indexOf("?");return P!==-1&&(this.search=s.substr(P),s=s.slice(0,P)),s&&(this.pathname=s),T1[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Nc.prototype.parseHost=function(e){var t=zOe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var UOe=jOe;Ga.encode=AOe;Ga.decode=IOe;Ga.format=OOe;Ga.parse=UOe;var di={},uf,E1;function dk(){return E1||(E1=1,uf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),uf}var df,R1;function fk(){return R1||(R1=1,df=/[\0-\x1F\x7F-\x9F]/),df}var ff,A1;function VOe(){return A1||(A1=1,ff=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ff}var hf,$1;function hk(){return $1||($1=1,hf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),hf}var I1;function WOe(){return I1||(I1=1,di.Any=dk(),di.Cc=fk(),di.Cf=VOe(),di.P=Nm,di.Z=hk()),di}(function(e){function t(D){return Object.prototype.toString.call(D)}function n(D){return t(D)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(D,B){return o.call(D,B)}function i(D){var B=Array.prototype.slice.call(arguments,1);return B.forEach(function(M){if(M){if(typeof M!="object")throw new TypeError(M+"must be object");Object.keys(M).forEach(function(K){D[K]=M[K]})}}),D}function a(D,B,M){return[].concat(D.slice(0,B),M,D.slice(B+1))}function s(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var B=55296+(D>>10),M=56320+(D&1023);return String.fromCharCode(B,M)}return String.fromCharCode(D)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=uk;function p(D,B){var M;return r(h,B)?h[B]:B.charCodeAt(0)===35&&f.test(B)&&(M=B[1].toLowerCase()==="x"?parseInt(B.slice(2),16):parseInt(B.slice(1),10),s(M))?l(M):D}function g(D){return D.indexOf("\\")<0?D:D.replace(c,"$1")}function m(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(d,function(B,M,K){return M||p(B,K)})}var b=/[&<>"]/,w=/[&<>"]/g,C={"&":"&","<":"<",">":">",'"':"""};function _(D){return C[D]}function S(D){return b.test(D)?D.replace(w,_):D}var y=/[.?*+^$[\]\\(){}|-]/g;function x(D){return D.replace(y,"\\$&")}function P(D){switch(D){case 9:case 32:return!0}return!1}function k(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=Nm;function R(D){return T.test(D)}function E(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function q(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Ga,e.lib.ucmicro=WOe(),e.assign=i,e.isString=n,e.has=r,e.unescapeMd=g,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=S,e.arrayReplaceAt=a,e.isSpace=P,e.isWhiteSpace=k,e.isMdAsciiPunct=E,e.isPunctChar=R,e.escapeRE=x,e.normalizeReference=q})(Lt);var qu={},qOe=function(t,n,o){var r,i,a,s,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,r=1;t.pos32))return s;if(r===41){if(i===0)break;i--}a++}return n===a||i!==0||(s.str=O1(t.slice(n,a)),s.pos=a,s.ok=!0),s},GOe=Lt.unescapeAll,XOe=function(t,n,o){var r,i,a=0,s=n,l={ok:!1,pos:0,lines:0,str:""};if(s>=o||(i=t.charCodeAt(s),i!==34&&i!==39&&i!==40))return l;for(s++,i===40&&(i=41);s"+zi(i.content)+""};Yo.code_block=function(e,t,n,o,r){var i=e[t];return""+zi(e[t].content)+` +`};Yo.fence=function(e,t,n,o,r){var i=e[t],a=i.info?QOe(i.info).trim():"",s="",l="",c,u,d,f,h;return a&&(d=a.split(/(\s+)/g),s=d[0],l=d.slice(2).join("")),n.highlight?c=n.highlight(i.content,s,l)||zi(i.content):c=zi(i.content),c.indexOf(""+c+` `):"
"+c+`
-`};Xo.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)};Xo.hardbreak=function(e,t,n){return n.xhtmlOut?`
+`};Yo.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)};Yo.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
-`};Xo.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
+`};Yo.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};Xo.text=function(e,t){return Di(e[t].content)};Xo.html_block=function(e,t){return e[t].content};Xo.html_inline=function(e,t){return e[t].content};function Zs(){this.rules=pMe({},Xo)}Zs.prototype.renderAttrs=function(t){var n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n -`:">",i)};Zs.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,s=0,a=e.length;s\s]/i.test(e)}function SMe(e){return/^<\/a\s*>/i.test(e)}var kMe=function(t){var n,o,r,i,s,a,l,c,u,d,f,h,p,m,g,b,w=t.tokens,C;if(t.md.options.linkify){for(o=0,r=w.length;o=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(_Me(a.content)&&p>0&&p--,SMe(a.content)&&p++),!(p>0)&&a.type==="text"&&t.md.linkify.test(a.content)){for(u=a.content,C=t.md.linkify.match(u),l=[],h=a.level,f=0,C.length>0&&C[0].index===0&&n>0&&i[n-1].type==="text_special"&&(C=C.slice(1)),c=0;cf&&(s=new t.Token("text","",0),s.content=u.slice(f,d),s.level=h,l.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",g]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),s=new t.Token("text","",0),s.content=b,s.level=h,l.push(s),s=new t.Token("link_close","a",-1),s.level=--h,s.markup="linkify",s.info="auto",l.push(s),f=C[c].lastIndex);f=0;t--)n=e[t],n.type==="text"&&!o&&(n.content=n.content.replace(TMe,EMe)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function AMe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&gk.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var IMe=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(PMe.test(t.tokens[n].content)&&$Me(t.tokens[n].children),gk.test(t.tokens[n].content)&&AMe(t.tokens[n].children))},D1=Bt.isWhiteSpace,L1=Bt.isPunctChar,F1=Bt.isMdAsciiPunct,MMe=/['"]/,B1=/['"]/g,N1="’";function Zl(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function OMe(e,t){var n,o,r,i,s,a,l,c,u,d,f,h,p,m,g,b,w,C,S,_,x;for(S=[],n=0;n=0&&!(S[w].level<=l);w--);if(S.length=w+1,o.type==="text"){r=o.content,s=0,a=r.length;e:for(;s=0)u=r.charCodeAt(i.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){u=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,s=48&&u<=57&&(b=g=!1),g&&b&&(g=f,b=h),!g&&!b){C&&(o.content=Zl(o.content,i.index,N1));continue}if(b){for(w=S.length-1;w>=0&&(c=S[w],!(S[w].level=0;n--)t.tokens[n].type!=="inline"||!MMe.test(t.tokens[n].content)||OMe(t.tokens[n].children,t)},DMe=function(t){var n,o,r,i,s,a,l=t.tokens;for(n=0,o=l.length;n=0&&(o=this.attrs[n][1]),o};Js.prototype.attrJoin=function(t,n){var o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var Vm=Js,LMe=Vm;function vk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}vk.prototype.Token=LMe;var FMe=vk,BMe=jm,pf=[["normalize",yMe],["block",xMe],["inline",CMe],["linkify",kMe],["replacements",IMe],["smartquotes",zMe],["text_join",DMe]];function Wm(){this.ruler=new BMe;for(var e=0;eo||(u=n+1,t.sCount[u]=4||(a=t.bMarks[u]+t.tShift[u],a>=t.eMarks[u])||(_=t.src.charCodeAt(a++),_!==124&&_!==45&&_!==58)||a>=t.eMarks[u]||(x=t.src.charCodeAt(a++),x!==124&&x!==45&&x!==58&&!mf(x))||_===45&&mf(x))return!1;for(;a=4||(d=H1(s),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),f=d.length,f===0||f!==p.length))return!1;if(r)return!0;for(w=t.parentType,t.parentType="table",S=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),h.map=g=[n,0],h=t.push("thead_open","thead",1),h.map=[n,n+1],h=t.push("tr_open","tr",1),h.map=[n,n+1],l=0;l=4)break;for(d=H1(s),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===n+2&&(h=t.push("tbody_open","tbody",1),h.map=b=[n+2,0]),h=t.push("tr_open","tr",1),h.map=[u,u+1],l=0;l=4){r++,i=r;continue}break}return t.line=i,s=t.push("code_block","code",0),s.content=t.getLines(n,i,4+t.blkIndent,!1)+` -`,s.map=[n,t.line],!0},VMe=function(t,n,o,r){var i,s,a,l,c,u,d,f=!1,h=t.bMarks[n]+t.tShift[n],p=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>p||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(c=h,h=t.skipChars(h,i),s=h-c,s<3)||(d=t.src.slice(c,h),a=t.src.slice(h,p),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(h=c=t.bMarks[l]+t.tShift[l],p=t.eMarks[l],h=4)&&(h=t.skipChars(h,i),!(h-c=4||t.src.charCodeAt(P)!==62)return!1;if(r)return!0;for(p=[],m=[],w=[],C=[],x=t.md.block.ruler.getRules("blockquote"),b=t.parentType,t.parentType="blockquote",f=n;f=I));f++){if(t.src.charCodeAt(P++)===62&&!T){for(l=t.sCount[f]+1,t.src.charCodeAt(P)===32?(P++,l++,i=!1,S=!0):t.src.charCodeAt(P)===9?(S=!0,(t.bsCount[f]+l)%4===3?(P++,l++,i=!1):i=!0):S=!1,h=l,p.push(t.bMarks[f]),t.bMarks[f]=P;P=I,m.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(S?1:0),w.push(t.sCount[f]),t.sCount[f]=h-l,C.push(t.tShift[f]),t.tShift[f]=P-t.bMarks[f];continue}if(u)break;for(_=!1,a=0,c=x.length;a",y.map=d=[n,0],t.md.block.tokenize(t,n,f),y=t.push("blockquote_close","blockquote",-1),y.markup=">",t.lineMax=k,t.parentType=b,d[1]=t.line,a=0;a=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r=4||t.listIndent>=0&&t.sCount[z]-t.listIndent>=4&&t.sCount[z]=t.blkIndent&&(K=!0),(P=V1(t,z))>=0){if(d=!0,R=t.bMarks[z]+t.tShift[z],b=Number(t.src.slice(R,P-1)),K&&b!==1)return!1}else if((P=j1(t,z))>=0)d=!1;else return!1;if(K&&t.skipSpaces(P)>=t.eMarks[z])return!1;if(r)return!0;for(g=t.src.charCodeAt(P-1),m=t.tokens.length,d?(M=t.push("ordered_list_open","ol",1),b!==1&&(M.attrs=[["start",b]])):M=t.push("bullet_list_open","ul",1),M.map=p=[z,0],M.markup=String.fromCharCode(g),I=!1,O=t.md.block.ruler.getRules("list"),_=t.parentType,t.parentType="list";z=w?c=1:c=C-u,c>4&&(c=1),l=u+c,M=t.push("list_item_open","li",1),M.markup=String.fromCharCode(g),M.map=f=[z,0],d&&(M.info=t.src.slice(R,P-1)),T=t.tight,y=t.tShift[z],x=t.sCount[z],S=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[z]=s-t.bMarks[z],t.sCount[z]=C,s>=w&&t.isEmpty(z+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,z,o,!0),(!t.tight||I)&&(J=!1),I=t.line-z>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=S,t.tShift[z]=y,t.sCount[z]=x,t.tight=T,M=t.push("list_item_close","li",-1),M.markup=String.fromCharCode(g),z=t.line,f[1]=z,z>=o||t.sCount[z]=4)break;for(W=!1,a=0,h=O.length;a=4||t.src.charCodeAt(x)!==91)return!1;for(;++x3)&&!(t.sCount[T]<0)){for(w=!1,u=0,d=C.length;u"u"&&(t.env.references={}),typeof t.env.references[f]>"u"&&(t.env.references[f]={title:S,href:c}),t.parentType=p,t.line=n+_+1),!0)},JMe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yu={},QMe="[a-zA-Z_:][a-zA-Z0-9:._-]*",eOe="[^\"'=<>`\\x00-\\x20]+",tOe="'[^']*'",nOe='"[^"]*"',oOe="(?:"+eOe+"|"+tOe+"|"+nOe+")",rOe="(?:\\s+"+QMe+"(?:\\s*=\\s*"+oOe+")?)",yk="<[A-Za-z][A-Za-z0-9\\-]*"+rOe+"*\\s*\\/?>",xk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",iOe="|",sOe="<[?][\\s\\S]*?[?]>",aOe="]*>",lOe="",cOe=new RegExp("^(?:"+yk+"|"+xk+"|"+iOe+"|"+sOe+"|"+aOe+"|"+lOe+")"),uOe=new RegExp("^(?:"+yk+"|"+xk+")");Yu.HTML_TAG_RE=cOe;Yu.HTML_OPEN_CLOSE_TAG_RE=uOe;var dOe=JMe,fOe=Yu.HTML_OPEN_CLOSE_TAG_RE,as=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(fOe.source+"\\s*$"),/^$/,!1]],hOe=function(t,n,o,r){var i,s,a,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(c)!==60)return!1;for(l=t.src.slice(c,u),i=0;i=4||(i=t.src.charCodeAt(c),i!==35||c>=u))return!1;for(s=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&W1(t.src.charCodeAt(a-1))&&(u=a),t.line=n+1,l=t.push("heading_open","h"+String(s),1),l.markup="########".slice(0,s),l.map=[n,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[n,t.line],l.children=[],l=t.push("heading_close","h"+String(s),-1),l.markup="########".slice(0,s)),!0)},mOe=function(t,n,o){var r,i,s,a,l,c,u,d,f,h=n+1,p,m=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(p=t.parentType,t.parentType="paragraph";h3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c=u)))){d=f===61?1:2;break}if(!(t.sCount[h]<0)){for(i=!1,s=0,a=m.length;s3)&&!(t.sCount[u]<0)){for(i=!1,s=0,a=d.length;s0&&this.level++,this.tokens.push(o),o};Zo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Zo.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Xu(this.src.charCodeAt(--t)))return t+1;return t};Zo.prototype.skipChars=function(t,n){for(var o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Zo.prototype.getLines=function(t,n,o,r){var i,s,a,l,c,u,d,f=t;if(t>=n)return"";for(u=new Array(n-t),i=0;fo?u[i]=new Array(s-o+1).join(" ")+this.src.slice(l,c):u[i]=this.src.slice(l,c)}return u.join("")};Zo.prototype.Token=Ck;var vOe=Zo,bOe=jm,Ql=[["table",HMe,["paragraph","reference"]],["code",jMe],["fence",VMe,["paragraph","reference","blockquote","list"]],["blockquote",UMe,["paragraph","reference","blockquote","list"]],["hr",KMe,["paragraph","reference","blockquote","list"]],["list",YMe,["paragraph","reference","blockquote"]],["reference",ZMe],["html_block",hOe,["paragraph","reference","blockquote"]],["heading",pOe,["paragraph","reference","blockquote"]],["lheading",mOe],["paragraph",gOe]];function Zu(){this.ruler=new bOe;for(var e=0;e=n||e.sCount[l]=u){e.line=n;break}for(i=e.line,r=0;r=e.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),l=e.line,l0||(o=t.pos,r=t.posMax,o+3>r)||t.src.charCodeAt(o)!==58||t.src.charCodeAt(o+1)!==47||t.src.charCodeAt(o+2)!==47||(i=t.pending.match(wOe),!i)||(s=i[1],a=t.md.linkify.matchAtStart(t.src.slice(o-s.length)),!a)||(l=a.url,l.length<=s.length)||(l=l.replace(/\*+$/,""),c=t.md.normalizeLink(l),!t.md.validateLink(c))?!1:(n||(t.pending=t.pending.slice(0,-s.length),u=t.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=t.push("text","",0),u.content=t.md.normalizeLinkText(l),u=t.push("link_close","a",-1),u.markup="linkify",u.info="auto"),t.pos+=l.length-s.length,!0)},SOe=Bt.isSpace,kOe=function(t,n){var o,r,i,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(o=t.pending.length-1,r=t.posMax,!n)if(o>=0&&t.pending.charCodeAt(o)===32)if(o>=1&&t.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s?@[]^_`{|}~-".split("").forEach(function(e){Um[e.charCodeAt(0)]=1});var TOe=function(t,n){var o,r,i,s,a,l=t.pos,c=t.posMax;if(t.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(o=t.src.charCodeAt(l),o===10){for(n||t.push("hardbreak","br",0),l++;l=55296&&o<=56319&&l+1=56320&&r<=57343&&(s+=t.src[l+1],l++)),i="\\"+s,n||(a=t.push("text_special","",0),o<256&&Um[o]!==0?a.content=s:a.content=i,a.markup=i,a.info="escape"),t.pos=l+1,!0},ROe=function(t,n){var o,r,i,s,a,l,c,u,d=t.pos,f=t.src.charCodeAt(d);if(f!==96)return!1;for(o=d,d++,r=t.posMax;d=0;n--)o=t[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=t[o.end],a=n>0&&t[n-1].end===o.end+1&&t[n-1].marker===o.marker&&t[n-1].token===o.token-1&&t[o.end+1].token===r.token+1,s=String.fromCharCode(o.marker),i=e.tokens[o.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?s+s:s,i.content="",i=e.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?s+s:s,i.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[o.end+1].token].content="",n--))}Qu.postProcess=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(K1(t,t.delimiters),n=0;n=m)return!1;if(g=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok){for(f=t.md.normalizeLink(c.str),t.md.validateLink(f)?l=c.pos:f="",g=l;l=m||t.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof t.env.references>"u")return!1;if(l=0?i=t.src.slice(g,l++):l=s+1):l=s+1,i||(i=t.src.slice(a,s)),u=t.env.references[EOe(i)],!u)return t.pos=p,!1;f=u.href,h=u.title}return n||(t.pos=a,t.posMax=s,d=t.push("link_open","a",1),d.attrs=o=[["href",f]],h&&o.push(["title",h]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,d=t.push("link_close","a",-1)),t.pos=l,t.posMax=m,!0},AOe=Bt.normalizeReference,bf=Bt.isSpace,IOe=function(t,n){var o,r,i,s,a,l,c,u,d,f,h,p,m,g="",b=t.pos,w=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(l=t.pos+2,a=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),a<0))return!1;if(c=a+1,c=w)return!1;for(m=c,d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),d.ok&&(g=t.md.normalizeLink(d.str),t.md.validateLink(g)?c=d.pos:g=""),m=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=b,!1;c++}else{if(typeof t.env.references>"u")return!1;if(c=0?s=t.src.slice(m,c++):c=a+1):c=a+1,s||(s=t.src.slice(l,a)),u=t.env.references[AOe(s)],!u)return t.pos=b,!1;g=u.href,f=u.title}return n||(i=t.src.slice(l,a),t.md.inline.parse(i,t.md,t.env,p=[]),h=t.push("image","img",0),h.attrs=o=[["src",g],["alt",""]],h.children=p,h.content=i,f&&o.push(["title",f])),t.pos=c,t.posMax=w,!0},MOe=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,OOe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,zOe=function(t,n){var o,r,i,s,a,l,c=t.pos;if(t.src.charCodeAt(c)!==60)return!1;for(a=t.pos,l=t.posMax;;){if(++c>=l||(s=t.src.charCodeAt(c),s===60))return!1;if(s===62)break}return o=t.src.slice(a+1,c),OOe.test(o)?(r=t.md.normalizeLink(o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):MOe.test(o)?(r=t.md.normalizeLink("mailto:"+o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):!1},DOe=Yu.HTML_TAG_RE;function LOe(e){return/^\s]/i.test(e)}function FOe(e){return/^<\/a\s*>/i.test(e)}function BOe(e){var t=e|32;return t>=97&&t<=122}var NOe=function(t,n){var o,r,i,s,a=t.pos;return!t.md.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(o=t.src.charCodeAt(a+1),o!==33&&o!==63&&o!==47&&!BOe(o))||(r=t.src.slice(a).match(DOe),!r)?!1:(n||(s=t.push("html_inline","",0),s.content=r[0],LOe(s.content)&&t.linkLevel++,FOe(s.content)&&t.linkLevel--),t.pos+=r[0].length,!0)},G1=fk,HOe=Bt.has,jOe=Bt.isValidEntityCode,Y1=Bt.fromCodePoint,VOe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,WOe=/^&([a-z][a-z0-9]{1,31});/i,UOe=function(t,n){var o,r,i,s,a=t.pos,l=t.posMax;if(t.src.charCodeAt(a)!==38||a+1>=l)return!1;if(o=t.src.charCodeAt(a+1),o===35){if(i=t.src.slice(a).match(VOe),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=t.push("text_special","",0),s.content=jOe(r)?Y1(r):Y1(65533),s.markup=i[0],s.info="entity"),t.pos+=i[0].length,!0}else if(i=t.src.slice(a).match(WOe),i&&HOe(G1,i[1]))return n||(s=t.push("text_special","",0),s.content=G1[i[1]],s.markup=i[0],s.info="entity"),t.pos+=i[0].length,!0;return!1};function X1(e){var t,n,o,r,i,s,a,l,c={},u=e.length;if(u){var d=0,f=-2,h=[];for(t=0;ti;n-=h[n]+1)if(r=e[n],r.marker===o.marker&&r.open&&r.end<0&&(a=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(a=!0),!a)){l=n>0&&!e[n-1].open?h[n-1]+1:0,h[t]=t-n+l,h[n]=l,o.open=!1,r.end=t,r.close=!1,s=-1,f=-2;break}s!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}var qOe=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(X1(t.delimiters),n=0;n0&&r++,i[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};yl.prototype.scanDelims=function(e,t){var n=e,o,r,i,s,a,l,c,u,d,f=!0,h=!0,p=this.posMax,m=this.src.charCodeAt(e);for(o=e>0?this.src.charCodeAt(e-1):32;n=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,a[o]=e.pos};xl.prototype.tokenize=function(e){for(var t,n,o,r=this.ruler.getRules(""),i=r.length,s=e.posMax,a=e.md.options.maxNesting;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=s)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};xl.prototype.parse=function(e,t,n,o){var r,i,s,a=new this.State(e,t,n,o);for(this.tokenize(a),i=this.ruler2.getRules(""),s=i.length,r=0;r|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Cf}function Hh(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function ed(e){return Object.prototype.toString.call(e)}function ZOe(e){return ed(e)==="[object String]"}function JOe(e){return ed(e)==="[object Object]"}function QOe(e){return ed(e)==="[object RegExp]"}function ny(e){return ed(e)==="[object Function]"}function eze(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var wk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tze(e){return Object.keys(e||{}).reduce(function(t,n){return t||wk.hasOwnProperty(n)},!1)}var nze={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},oze="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",rze="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ize(e){e.__index__=-1,e.__text_cache__=""}function sze(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function oy(){return function(e,t){t.normalize(e)}}function Hc(e){var t=e.re=XOe()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(oze),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var r=[];e.__compiled__={};function i(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[a]=c,JOe(l)){QOe(l.validate)?c.validate=sze(l.validate):ny(l.validate)?c.validate=l.validate:i(a,l),ny(l.normalize)?c.normalize=l.normalize:l.normalize?i(a,l):c.normalize=oy();return}if(ZOe(l)){r.push(a);return}i(a,l)}}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:oy()};var s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(eze).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),ize(e)}function aze(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function jh(e,t){var n=new aze(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function so(e,t){if(!(this instanceof so))return new so(e,t);t||tze(e)&&(t=e,e={}),this.__opts__=Hh({},wk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Hh({},nze,e),this.__compiled__={},this.__tlds__=rze,this.__tlds_replaced__=!1,this.re={},Hc(this)}so.prototype.add=function(t,n){return this.__schemas__[t]=n,Hc(this),this};so.prototype.set=function(t){return this.__opts__=Hh(this.__opts__,t),this};so.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,o,r,i,s,a,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};so.prototype.pretest=function(t){return this.re.pretest.test(t)};so.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};so.prototype.match=function(t){var n=0,o=[];this.__index__>=0&&this.__text_cache__===t&&(o.push(jh(this,n)),n=this.__last_index__);for(var r=n?t.slice(n):t;this.test(r);)o.push(jh(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};so.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var n=this.re.schema_at_start.exec(t);if(!n)return null;var o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,jh(this,0)):null};so.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),Hc(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Hc(this),this)};so.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};so.prototype.onCompile=function(){};var lze=so;const Cs=2147483647,jo=36,Km=1,rl=26,cze=38,uze=700,_k=72,Sk=128,kk="-",dze=/^xn--/,fze=/[^\0-\x7F]/,hze=/[\x2E\u3002\uFF0E\uFF61]/g,pze={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wf=jo-Km,Vo=Math.floor,_f=String.fromCharCode;function Or(e){throw new RangeError(pze[e])}function mze(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function Pk(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(hze,".");const r=e.split("."),i=mze(r,t).join(".");return o+i}function Gm(e){const t=[];let n=0;const o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),gze=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jo},ry=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Rk=function(e,t,n){let o=0;for(e=n?Vo(e/uze):e>>1,e+=Vo(e/t);e>wf*rl>>1;o+=jo)e=Vo(e/wf);return Vo(o+(wf+1)*e/(e+cze))},Ym=function(e){const t=[],n=e.length;let o=0,r=Sk,i=_k,s=e.lastIndexOf(kk);s<0&&(s=0);for(let a=0;a=128&&Or("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&Or("invalid-input");const f=gze(e.charCodeAt(a++));f>=jo&&Or("invalid-input"),f>Vo((Cs-o)/u)&&Or("overflow"),o+=f*u;const h=d<=i?Km:d>=i+rl?rl:d-i;if(fVo(Cs/p)&&Or("overflow"),u*=p}const c=t.length+1;i=Rk(o-l,c,l==0),Vo(o/c)>Cs-r&&Or("overflow"),r+=Vo(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},Xm=function(e){const t=[];e=Gm(e);const n=e.length;let o=Sk,r=0,i=_k;for(const l of e)l<128&&t.push(_f(l));const s=t.length;let a=s;for(s&&t.push(kk);a=o&&uVo((Cs-r)/c)&&Or("overflow"),r+=(l-o)*c,o=l;for(const u of e)if(uCs&&Or("overflow"),u===o){let d=r;for(let f=jo;;f+=jo){const h=f<=i?Km:f>=i+rl?rl:f-i;if(d=0))try{t.hostname=Ak.toASCII(t.hostname)}catch{}return yi.encode(yi.format(t))}function Oze(e){var t=yi.parse(e,!0);if(t.hostname&&(!t.protocol||Ik.indexOf(t.protocol)>=0))try{t.hostname=Ak.toUnicode(t.hostname)}catch{}return yi.decode(yi.format(t),yi.decode.defaultChars+"%")}function bo(e,t){if(!(this instanceof bo))return new bo(e,t);t||Da.isString(e)||(t=e||{},e="default"),this.inline=new Tze,this.block=new Pze,this.core=new kze,this.renderer=new Sze,this.linkify=new Rze,this.validateLink=Ize,this.normalizeLink=Mze,this.normalizeLinkText=Oze,this.utils=Da,this.helpers=Da.assign({},_ze),this.options={},this.configure(e),t&&this.set(t)}bo.prototype.set=function(e){return Da.assign(this.options,e),this};bo.prototype.configure=function(e){var t=this,n;if(Da.isString(e)&&(n=e,e=Eze[n],!e))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&t[o].ruler.enableOnly(e.components[o].rules),e.components[o].rules2&&t[o].ruler2.enableOnly(e.components[o].rules2)}),this};bo.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};bo.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};bo.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};bo.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};bo.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};bo.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};bo.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var zze=bo,Dze=zze;const td=Sp(Dze),Lze={xmlns:"http://www.w3.org/2000/svg",id:"Layer_1",viewBox:"0 0 442.19 323.31"},Fze=q("path",{d:"m72.8 140.45-12.7 145.1h42.41l8.99-102.69h.04l3.67-42.41zM124.16 37.75h-42.4l-5.57 63.61h42.4zM318.36 285.56h42.08l5.57-63.61H323.9z",class:"cls-2"},null,-1),Bze=q("path",{d:"M382.09 37.76H340l-10.84 123.9H221.09l-14.14 161.65 85.83-121.47h145.89l3.52-40.18h-70.94z",class:"cls-2"},null,-1),Nze=q("path",{d:"M149.41 121.47H3.52L0 161.66h221.09L235.23 0z",style:{fill:"#ffbc00"}},null,-1);function Hze(e,t){return ge(),Oe("svg",Lze,[q("defs",null,[(ge(),Ke(Qc("style"),null,{default:pe(()=>[it(".cls-2{fill:#000}@media (prefers-color-scheme:dark){.cls-2{fill:#fff}}")]),_:1}))]),Fze,Bze,Nze])}const jze={render:Hze},Vze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1109 1027"},Wze=Z4('',2),Uze=[Wze];function qze(e,t){return ge(),Oe("svg",Vze,[...Uze])}const Kze={render:qze},Gze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},Yze=q("g",{fill:"#E29942","clip-path":"url(#clip0_408_56)"},[q("path",{d:"M47.158 14.428c0-.591.31-1.14.818-1.444L61.449 4.9C62.572 4.225 64 5.034 64 6.343V20.21c0 .93-.754 1.685-1.684 1.685H48.842c-.93 0-1.684-.755-1.684-1.685z"}),q("path",{"fill-rule":"evenodd",d:"M24.397 26.46a1.68 1.68 0 0 0-.818 1.443V48c0 .93-.754 1.6-1.684 1.6h-3.369c-.93 0-1.684-.67-1.684-1.6V34.976c0-1.31-1.428-2.118-2.55-1.444L.817 41.617A1.68 1.68 0 0 0 0 43.062v17.572c0 .93.754 1.684 1.684 1.684h13.474c.93 0 1.684-.754 1.684-1.684v-3.803c0-.93.754-1.493 1.684-1.493h3.369c.93 0 1.684.563 1.684 1.493v3.803c0 .93.754 1.684 1.684 1.684h13.474c.93 0 1.684-.754 1.684-1.684V19.818c0-1.309-1.428-2.118-2.55-1.444z","clip-rule":"evenodd"}),q("path",{d:"M47.16 28.8v32c0 .884.753 1.6 1.683 1.6h13.474c.93 0 1.684-.716 1.684-1.6v-32c0-.884-.754-1.6-1.684-1.6H48.843c-.93 0-1.684.716-1.684 1.6"})],-1),Xze=[Yze];function Zze(e,t){return ge(),Oe("svg",Gze,[...Xze])}const Jze={render:Zze};var La=(e=>(e[e.PENDING=0]="PENDING",e[e.PROCESSING=1]="PROCESSING",e[e.CANCELLED=2]="CANCELLED",e[e.COMPLETED=3]="COMPLETED",e[e.DISCOUNTED=4]="DISCOUNTED",e))(La||{});const Qze={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Mk={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"},ts=e=>(s4("data-v-8ed2ef0c"),e=e(),a4(),e),eDe=["innerHTML"],tDe={class:"w-64"},nDe={class:"text-#666"},oDe={class:"w-64"},rDe={class:"text-#666"},iDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:Ste,class:"h-30 w-30"})],-1)),sDe={class:"text-#666"},aDe={class:"w-64"},lDe={class:"text-#666"},cDe={class:"font-bold"},uDe={class:"mb-20"},dDe={class:"text-center"},fDe={class:"mt-10 text-center"},hDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:dk,class:"h-30 w-30"})],-1)),pDe={class:"text-#666"},mDe={class:"w-64"},gDe={class:"text-#666"},vDe={class:"w-64"},bDe={class:"text-#666"},yDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:kte,class:"h-30 w-30 border-rounded-5"})],-1)),xDe={class:"text-#666"},CDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:Pte,class:"h-30 w-30 border-rounded-5"})],-1)),wDe={class:"text-#666"},_De=ts(()=>q("div",{class:"w-64"},[q("img",{src:Tte,class:"h-30 w-30"})],-1)),SDe={class:"text-#666"},kDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:dk,class:"h-30 w-30"})],-1)),PDe={class:"text-#666"},TDe=ts(()=>q("div",{class:"w-64"},[q("img",{src:Rte,class:"h-30 w-30"})],-1)),RDe={class:"text-#666"},EDe={class:"p-10 text-center"},$De={class:"mb-5 md:mb-40"},ADe={key:0,class:"mb-10"},IDe={class:"font-bold"},MDe=["onClick"],ODe={class:"carousel-img flex flex-col justify-between p-20",style:{background:"rgba(0, 0, 0, 0.5) !important"}},zDe={class:"text-20"},DDe={class:"text-16 font-600 color-[hsla(0,0%,100%,.75)]"},LDe={class:"text-block mb-16 p-t-20 text-20 font-600"},FDe={key:0,class:"mb-16 text-14 text-gray"},BDe={key:1,class:"mb-16 text-14 font-600 text-red-500"},NDe={key:2,class:"mb-16 text-14 text-gray"},HDe={class:"text-gray"},jDe={class:"flex items-center justify-between"},VDe={class:""},WDe={class:"text-16"},UDe={class:"text-14 text-gray"},qDe={class:"flex items-center justify-between"},KDe={class:"text-16"},GDe={class:"text-14 text-gray"},YDe={class:"flex items-center justify-between"},XDe={class:"text-16"},ZDe={class:"text-14 text-gray"},JDe={class:"flex items-center justify-between"},QDe={class:"text-16"},eLe={class:"text-14 text-gray"},tLe=be({__name:"index",setup(e){const t=F=>vn.global.t(F),n=NZ(),o=new td({html:!0}),r=F=>o.render(F),i=An(),s=es(),a=navigator.userAgent.toLowerCase();let l="unknown";a.includes("windows")?l="windows":a.includes("iphone")||a.includes("ipad")?l="ios":a.includes("macintosh")?l="mac":a.includes("android")&&(l="android");const c=H(!1),u=H();Wt(()=>{});const d=H(!1),f=H(!1),h=H(""),p=H(["auto"]),m=[{label:"自动",type:"auto"},{label:"全部",type:"all"},{label:"Vless",type:"vless"},{label:"Hy1",type:"hysteria"},{label:"Hy2",type:"hysteria2"},{label:"Shadowsocks",type:"shadowsocks"},{label:"Vmess",type:"vmess"},{label:"Trojan",type:"trojan"}],g=H([]);function b(F){if(F==="auto"||F==="all"&&p.value.includes("all"))p.value=["auto"];else if(F==="all"&&!p.value.includes("all"))p.value=g.value.map(E=>E.type).filter(E=>E!=="auto");else{const E=p.value.includes(F);p.value=E?p.value.filter(Y=>Y!==F):[...p.value.filter(Y=>Y!=="auto"),F],RA(g.value.map(Y=>Y.type).filter(Y=>Y!=="auto"&&Y!=="all"),p.value)?p.value.push("all"):p.value=p.value.filter(Y=>Y!=="all")}p.value.length===0&&(p.value=["auto"]),w()}function w(){var E,A,Y;const F=p.value;F.includes("all")?h.value=((E=_.value)==null?void 0:E.subscribe_url)+"&types=all":F.includes("auto")?h.value=((A=_.value)==null?void 0:A.subscribe_url)+"&types=auto":h.value=((Y=_.value)==null?void 0:Y.subscribe_url)+"&types="+p.value.join(",")}function C(F){console.log(F),window.location.href=F}function S(F){return btoa(unescape(encodeURIComponent(F)))}const _=D(()=>s.subscribe);function x(){var Y,ne,fe;const F=(Y=_.value)==null?void 0:Y.transfer_enable,E=((ne=_.value)==null?void 0:ne.u)||0,A=((fe=_.value)==null?void 0:fe.d)||0;return F?Math.floor((E+A)/F*100):0}const{errorColor:y,warningColor:T,successColor:k,primaryColor:P}=n.value;function I(){const F=x();return F>=100?y:F>=70?T:k}async function R(){var fe,Q;if(!await window.$dialog.confirm({title:t("确定重置当前已用流量?"),type:"info",content:t("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。"),showIcon:!1}))return;const E=(fe=await Nm())==null?void 0:fe.data,A=E==null?void 0:E.find(Ce=>Ce.status===La.PENDING);if(A)if(await window.$dialog.confirm({title:t("注意"),type:"info",content:t("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:t("确认取消"),negativeText:t("返回我的订单"),showIcon:!1})){const j=A.trade_no;if(!await Vu(j))return}else{Xt.push("order");return}const Y=(Q=_.value)==null?void 0:Q.plan_id;if(!Y)return;const{data:ne}=await ak(Y,"reset_price");ne&&Xt.push("order/"+ne)}const W=H([]);async function O(){const{data:F}=await BJ();W.value=F,F.map(E=>{var A;(A=E.tags)!=null&&A.includes("弹窗")&&(c.value=!0,u.value=E)})}const M=H([0,0,0]);async function z(){const{data:F}=await LJ();F&&(M.value=F)}const K=H(),J=H();async function se(){const{data:F}=await sk();if(F){K.value=F;const A=[...new Set(F.map(Y=>{let ne=Y.type;return Y.type==="hysteria"&&Y.version==2&&(ne="hysteria2"),ne}))];J.value=A,g.value=m.filter(Y=>A.includes(Y.type)||["auto","all"].includes(Y.type))}}function le(){O(),s.getUserSubscribe(),z(),se()}return mn(()=>{le()}),(F,E)=>{const A=ni,Y=_te,ne=Mm,fe=vr,Q=bte,Ce=gl,j=XS,ye=Co,Ie=Im,Le=Ji,U=Lt,B=ml,ae=Ti,Se=XV,te=bl,xe=Qi,ve=sZ,$=hte,N=lte,ee=ote,we=Jee,de=Kee,he=wo;return ge(),Ke(he,{"show-footer":!1},{default:pe(()=>{var re,me,Ne,He;return[ie(A,{show:c.value,"onUpdate:show":E[0]||(E[0]=De=>c.value=De),class:"mx-10 max-w-100% w-600 md:mx-auto",preset:"card",title:(re=u.value)==null?void 0:re.title,size:"huge",bordered:!1,"content-style":"padding-top:0",segmented:{content:!1}},{default:pe(()=>{var De;return[q("div",{innerHTML:r(((De=u.value)==null?void 0:De.content)||""),class:"markdown-body custom-html-style"},null,8,eDe)]}),_:1},8,["show","title"]),ie(A,{show:d.value,"onUpdate:show":E[15]||(E[15]=De=>d.value=De),"transform-origin":"center","auto-focus":!1,"display-directive":"show","trap-focus":!1},{default:pe(()=>[ie(ye,{class:"max-w-100% w-300",bordered:!1,size:"huge",contentStyle:"padding:0"},{default:pe(()=>[ie(Ie,{hoverable:""},{default:pe(()=>{var De,ot;return[ie(ne,{class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[1]||(E[1]=nt=>{var Ge,Me;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&_e(vs)((Me=_.value)==null?void 0:Me.subscribe_url)})},[q("div",tDe,[ie(Y,{class:"text-30 text-#595959"})]),q("div",nDe,ue(F.$t("复制订阅地址")),1)])]),_:1}),(De=J.value)!=null&&De.includes("hysteria2")?(ge(),Ke(ne,{key:0,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[2]||(E[2]=nt=>{var Ge,Me;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&_e(vs)(((Me=_.value)==null?void 0:Me.subscribe_url)+"&types=hysteria2")})},[q("div",oDe,[ie(fe,{size:"30"},{default:pe(()=>[ie(_e(jze))]),_:1})]),q("div",rDe,ue(F.$t("复制HY2订阅地址")),1)])]),_:1})):gt("",!0),(ot=J.value)!=null&&ot.includes("vless")?(ge(),Ke(ne,{key:1,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[3]||(E[3]=nt=>{var Ge,Me;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&_e(vs)(((Me=_.value)==null?void 0:Me.subscribe_url)+"&types=vless")})},[iDe,q("div",sDe,ue(F.$t("复制Vless订阅地址")),1)])]),_:1})):gt("",!0),ie(ne,{class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[5]||(E[5]=nt=>{var Ge;return h.value=((Ge=_.value)==null?void 0:Ge.subscribe_url)||"",f.value=!0})},[q("div",aDe,[ie(Q,{class:"text-30 text-#595959"})]),q("div",lDe,ue(F.$t("扫描二维码订阅")),1),ie(A,{show:f.value,"onUpdate:show":E[4]||(E[4]=nt=>f.value=nt)},{default:pe(()=>[ie(ye,{class:"w-300"},{default:pe(()=>[q("div",cDe,ue(F.$t("选择协议"))+":",1),q("div",uDe,[(ge(!0),Oe(st,null,Wn(g.value,nt=>(ge(),Ke(Ce,{key:nt.type,value:nt.type,checked:p.value.includes(nt.type),onClick:Ge=>b(nt.type)},{default:pe(()=>[it(ue(F.$t(nt.label)),1)]),_:2},1032,["value","checked","onClick"]))),128))]),q("div",dDe,[ie(j,{value:h.value,"icon-src":_e(i).logo,size:140,color:_e(P),style:{"box-sizing":"content-box"}},null,8,["value","icon-src","color"])]),q("div",fDe,ue(F.$t("使用支持扫码的客户端进行订阅")),1)]),_:1})]),_:1},8,["show"])])]),_:1}),["mac"].includes(_e(l))?(ge(),Ke(ne,{key:2,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[6]||(E[6]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("clash://install-config?url="+_.value.subscribe_url+`&name=${_e(i).title}`)})},[hDe,q("div",pDe,ue(F.$t("导入到"))+" ClashX Meta",1)])]),_:1})):gt("",!0),["mac","android","windows"].includes(_e(l))?(ge(),Ke(ne,{key:3,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[7]||(E[7]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("sing-box://import-remote-profile?url="+encodeURIComponent(_.value.subscribe_url)+`#${encodeURIComponent(_e(i).title||"")}`)})},[q("div",mDe,[ie(fe,{size:"30"},{default:pe(()=>[ie(_e(Jze))]),_:1})]),q("div",gDe,ue(F.$t("导入到"))+" Hiddify Next",1)])]),_:1})):gt("",!0),["android","mac","ios"].includes(_e(l))?(ge(),Ke(ne,{key:4,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[8]||(E[8]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("sing-box://import-remote-profile?url="+encodeURIComponent(_.value.subscribe_url)+`#${encodeURIComponent(_e(i).title||"")}`)})},[q("div",vDe,[ie(fe,{size:"30"},{default:pe(()=>[ie(_e(Kze))]),_:1})]),q("div",bDe,ue(F.$t("导入到"))+" sing-box",1)])]),_:1})):gt("",!0),["mac","ios"].includes(_e(l))?(ge(),Ke(ne,{key:5,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[9]||(E[9]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("shadowrocket://add/sub://"+S(_.value.subscribe_url).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")+`?remark=${_e(i).title}`)})},[yDe,q("div",xDe,ue(F.$t("导入到"))+" Shadowsocket",1)])]),_:1})):gt("",!0),["mac","ios"].includes(_e(l))?(ge(),Ke(ne,{key:6,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[10]||(E[10]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("stash://install-config?url="+encodeURIComponent(_.value.subscribe_url)+`&name=${_e(i).title}`)})},[CDe,q("div",wDe,ue(F.$t("导入到"))+" Stash",1)])]),_:1})):gt("",!0),["android"].includes(_e(l))?(ge(),Ke(ne,{key:7,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[11]||(E[11]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("clash://install-config?url="+_.value.subscribe_url+`&name=${_e(i).title}`)})},[_De,q("div",SDe,ue(F.$t("导入到"))+" NekoBox",1)])]),_:1})):gt("",!0),["android"].includes(_e(l))?(ge(),Ke(ne,{key:8,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[12]||(E[12]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("clash://install-config?url="+_.value.subscribe_url+`&name=${_e(i).title}`)})},[kDe,q("div",PDe,ue(F.$t("导入到"))+" Clash Meta",1)])]),_:1})):gt("",!0),["windows"].includes(_e(l))?(ge(),Ke(ne,{key:9,class:"p-0!"},{default:pe(()=>[q("div",{class:"flex cursor-pointer items-center pb-10 pl-20 pr-20 pt-10",onClick:E[13]||(E[13]=nt=>{var Ge;return((Ge=_.value)==null?void 0:Ge.subscribe_url)&&C("clash://install-config?url="+_.value.subscribe_url+`&name=${_e(i).title}`)})},[TDe,q("div",RDe,ue(F.$t("导入到"))+" Clash",1)])]),_:1})):gt("",!0)]}),_:1}),ie(Le,{class:"m-0!"}),q("div",EDe,[ie(U,{type:"primary",class:"w-100%",size:"large",onClick:E[14]||(E[14]=De=>F.$router.push("/knowledge"))},{default:pe(()=>[it(ue(F.$t("不会使用,查看使用教程")),1)]),_:1})])]),_:1})]),_:1},8,["show"]),q("div",$De,[M.value[1]&&M.value[1]>0||M.value[0]&&M.value[0]>0?(ge(),Oe("div",ADe,[M.value[1]&&M.value[1]>0?(ge(),Ke(B,{key:0,type:"warning","show-icon":!1,bordered:!0,closable:"",class:"mb-5"},{default:pe(()=>[it(ue(M.value[1])+" "+ue(F.$t("条工单正在处理中"))+" ",1),ie(U,{strong:"",text:"",onClick:E[16]||(E[16]=De=>_e(Xt).push("/ticket"))},{default:pe(()=>[it(ue(F.$t("立即查看")),1)]),_:1})]),_:1})):gt("",!0),M.value[0]&&M.value[0]>0?(ge(),Ke(B,{key:1,type:"error","show-icon":!1,bordered:!0,closable:"",class:"mb-5"},{default:pe(()=>[it(ue(F.$t("还有没支付的订单"))+" ",1),ie(U,{text:"",strong:"",onClick:E[17]||(E[17]=De=>_e(Xt).push("/order"))},{default:pe(()=>[it(ue(F.$t("立即支付")),1)]),_:1})]),_:1})):gt("",!0),!((me=_.value)!=null&&me.expired_at&&(((Ne=_.value)==null?void 0:Ne.expired_at)||0)>Date.now()/1e3)&&x()>=70?(ge(),Ke(B,{key:2,type:"info","show-icon":!1,bordered:!0,closable:"",class:"mb-5"},{default:pe(()=>[it(ue(F.$tc("当前已使用流量达{rate}%",{rate:x()}))+" ",1),ie(U,{text:"",onClick:E[18]||(E[18]=De=>R())},{default:pe(()=>[q("span",IDe,ue(F.$t("重置已用流量")),1)]),_:1})]),_:1})):gt("",!0)])):gt("",!0),hn(ie(ye,{class:"w-100% cursor-pointer overflow-hidden border-rounded-5 text-white transition hover:opacity-75",bordered:!1,"content-style":"padding: 0"},{default:pe(()=>[ie(Se,{autoplay:""},{default:pe(()=>[(ge(!0),Oe(st,null,Wn(W.value,De=>(ge(),Oe("div",{key:De.id,class:"",style:Li(De.img_url?`background:url(${De.img_url}) no-repeat;background-size: cover `:`background:url(${_e(i).$state.assets_path}/images/background.svg)`),onClick:ot=>(c.value=!0,u.value=De)},[q("div",ODe,[q("div",null,[ie(ae,{bordered:!1,class:"bg-#e04f1a text-12 color-white"},{default:pe(()=>[it(ue(F.$t("公告")),1)]),_:1})]),q("div",null,[q("p",zDe,ue(De.title),1),q("p",DDe,ue(_e(Uo)(De.created_at)),1)])])],12,MDe))),128))]),_:1})]),_:1},512),[[Nn,((He=W.value)==null?void 0:He.length)>0]]),ie(ye,{title:F.$t("我的订阅"),class:"mt-5 border-rounded-5 md:m-t-20"},{default:pe(()=>{var De,ot,nt,Ge,Me,tt,X,ce,Ee,Fe,Ve,Xe,Qe,rt,wt,Ft;return[_.value?(De=_.value)!=null&&De.plan_id?(ge(),Oe(st,{key:1},[q("div",LDe,ue((nt=(ot=_.value)==null?void 0:ot.plan)==null?void 0:nt.name),1),((Ge=_.value)==null?void 0:Ge.expired_at)===null?(ge(),Oe("div",FDe,ue(F.$t("该订阅长期有效")),1)):(Me=_.value)!=null&&Me.expired_at&&(((tt=_.value)==null?void 0:tt.expired_at)??0)(((Fe=_.value)==null?void 0:Fe.reset_day)||0)?(ge(),Oe(st,{key:0},[it(ue(F.$tc("已用流量将在 {reset_day} 日后重置",{reset_day:(Ve=_.value)==null?void 0:Ve.reset_day})),1)],64)):gt("",!0)])),ie(ve,{type:"line",percentage:x(),processing:"",color:I()},null,8,["percentage","color"]),q("div",null,ue(F.$tc("已用 {used} / 总计 {total}",{used:_e(hs)(((((Xe=_.value)==null?void 0:Xe.u)||0)+(((Qe=_.value)==null?void 0:Qe.d)||0))/1024/1024/1024)+" GB",total:_e(hs)((((rt=_.value)==null?void 0:rt.transfer_enable)||0)/1024/1024/1024)+" GB"})),1),(wt=_.value)!=null&&wt.expired_at&&(((Ft=_.value)==null?void 0:Ft.expired_at)||0)_e(Xt).push("/plan/"+_e(s).plan_id))},{default:pe(()=>[it(ue(F.$t("续费订阅")),1)]),_:1})):x()>=70?(ge(),Ke(U,{key:4,type:"primary",class:"mt-20",onClick:E[20]||(E[20]=Et=>R())},{default:pe(()=>[it(ue(F.$t("重置已用流量")),1)]),_:1})):gt("",!0)],64)):(ge(),Oe("div",{key:2,class:"cursor-pointer pt-20 text-center",onClick:E[21]||(E[21]=Et=>_e(Xt).push("/plan"))},[ie($,{class:"text-40"}),q("div",HDe,ue(F.$t("购买订阅")),1)])):(ge(),Ke(xe,{key:0},{default:pe(()=>[ie(te,{height:"20px",width:"33%"}),ie(te,{height:"20px",width:"66%"}),ie(te,{height:"20px"})]),_:1}))]}),_:1},8,["title"]),ie(ye,{title:F.$t("捷径"),class:"m-t-20 border-rounded-5","content-style":"padding: 0"},{default:pe(()=>[ie(Ie,{hoverable:"",clickable:""},{default:pe(()=>[ie(ne,{class:"flex flex cursor-pointer justify-between p-19 hover:bg-#f6f6f6",onClick:E[22]||(E[22]=De=>_e(Xt).push("/knowledge"))},{default:pe(()=>[q("div",jDe,[q("div",VDe,[q("div",WDe,ue(F.$t("查看教程")),1),q("div",UDe,ue(F.$t("学习如何使用"))+" "+ue(_e(i).title),1)]),q("div",null,[ie(N,{class:"text-30 color-gray-500"})])])]),_:1}),ie(ne,{class:"flex cursor-pointer justify-between p-19 hover:bg-#f6f6f6",onClick:E[23]||(E[23]=De=>d.value=!0)},{default:pe(()=>[q("div",qDe,[q("div",null,[q("div",KDe,ue(F.$t("一键订阅")),1),q("div",GDe,ue(F.$t("快速将节点导入对应客户端进行使用")),1)]),q("div",null,[ie(ee,{class:"text-30 color-gray-500"})])])]),_:1}),ie(ne,{class:"flex cursor-pointer justify-between p-19",onClick:E[24]||(E[24]=De=>_e(s).plan_id?_e(Xt).push("/plan/"+_e(s).plan_id):_e(Xt).push("/plan"))},{default:pe(()=>{var De;return[q("div",YDe,[q("div",null,[q("div",XDe,ue((De=_.value)!=null&&De.plan_id?F.$t("续费订阅"):F.$t("购买订阅")),1),q("div",ZDe,ue(F.$t("对您当前的订阅进行购买")),1)]),q("div",null,[ie(we,{class:"text-30 color-gray-500"})])])]}),_:1}),ie(ne,{class:"flex cursor-pointer justify-between p-19",onClick:E[25]||(E[25]=De=>F.$router.push("/ticket"))},{default:pe(()=>[q("div",JDe,[q("div",null,[q("div",QDe,ue(F.$t("遇到问题")),1),q("div",eLe,ue(F.$t("遇到问题可以通过工单与我们沟通")),1)]),q("div",null,[ie(de,{class:"text-30 color-gray-500"})])])]),_:1})]),_:1})]),_:1},8,["title"])])]}),_:1})}}}),nLe=Uu(tLe,[["__scopeId","data-v-8ed2ef0c"]]),oLe=Object.freeze(Object.defineProperty({__proto__:null,default:nLe},Symbol.toStringTag,{value:"Module"})),rLe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},iLe=q("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372m159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8c-.1-4.4-3.7-8-8.1-8"},null,-1),sLe=[iLe];function aLe(e,t){return ge(),Oe("svg",rLe,[...sLe])}const lLe={name:"ant-design-pay-circle-outlined",render:aLe},cLe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},uLe=q("path",{fill:"currentColor",d:"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7M157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9c43.6-18.4 89.9-27.8 137.6-27.8c47.8 0 94.1 9.3 137.6 27.8c42.1 17.8 79.9 43.4 112.4 75.9c10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82C277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8M934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4a352.6 352.6 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.6 352.6 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942C747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2"},null,-1),dLe=[uLe];function fLe(e,t){return ge(),Oe("svg",cLe,[...dLe])}const hLe={name:"ant-design-transaction-outlined",render:fLe},pLe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},mLe=q("path",{fill:"currentColor",d:"M19 17v2H7v-2s0-4 6-4s6 4 6 4m-3-9a3 3 0 1 0-3 3a3 3 0 0 0 3-3m3.2 5.06A5.6 5.6 0 0 1 21 17v2h3v-2s0-3.45-4.8-3.94M18 5a2.9 2.9 0 0 0-.89.14a5 5 0 0 1 0 5.72A2.9 2.9 0 0 0 18 11a3 3 0 0 0 0-6M8 10H5V7H3v3H0v2h3v3h2v-3h3Z"},null,-1),gLe=[mLe];function vLe(e,t){return ge(),Oe("svg",pLe,[...gLe])}const bLe={name:"mdi-invite",render:vLe},yLe={class:"text-50 font-400"},xLe={class:"m-l-10 text-20 text-#6c757d md:m-l20"},CLe={class:"text-#6c757d"},wLe={class:"flex justify-between p-b-5 p-t-5"},_Le={class:"flex justify-between p-b-5 p-t-5"},SLe={key:0},kLe={key:1},PLe={class:"flex justify-between p-b-5 p-t-5"},TLe={class:"flex justify-between p-b-5 p-t-5"},RLe={class:"m-t-10"},ELe={class:"m-b-5"},$Le={class:"m-t-10"},ALe={class:"m-b-5"},ILe={class:"flex justify-end"},MLe={class:"m-t-10"},OLe={class:"m-b-5"},zLe={class:"m-t-10"},DLe={class:"m-b-5"},LLe={class:"flex justify-end"},FLe=be({__name:"index",setup(e){const t=An(),n=x=>vn.global.t(x),o=[{title:n("邀请码"),key:"code",render(x){const y=`${window.location.protocol}//${window.location.host}/#/register?code=${x.code}`;return v("div",[v("span",x.code),v(Lt,{size:"small",onClick:()=>vs(y),quaternary:!0,type:"info"},{default:()=>n("复制链接")})])}},{title:n("创建时间"),key:"created_at",fixed:"right",align:"right",render(x){return Uo(x.created_at)}}],r=[{title:n("发放时间"),key:"created_at",render(x){return Uo(x.created_at)}},{title:n("佣金"),key:"get_amount",fixed:"right",align:"right",render(x){return sn(x.get_amount)}}],i=H(),s=H([]);async function a(){const x=await VJ(),{data:y}=x;i.value=y.codes,s.value=y.stat}const l=H([]),c=ro({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,50,100,150],onChange:x=>{c.page=x,u()},onUpdatePageSize:x=>{c.pageSize=x,c.page=1,u()}});async function u(){const x=await WJ(c.page,c.pageSize),{data:y}=x;l.value=y}const d=H(!1);async function f(){d.value=!0;const{data:x}=await UJ();x===!0&&(window.$message.success(n("已生成")),_()),d.value=!1}const h=H(!1),p=H(),m=H(!1);async function g(){m.value=!0;const x=p.value;if(typeof x!="number"){window.$message.error(n("请输入正确的划转金额")),m.value=!1;return}const{data:y}=await qJ(x*100);y===!0&&(window.$message.success(n("划转成功")),h.value=!1,a()),m.value=!1}const b=H(!1),w=ro({method:null,account:null}),C=H(!1);async function S(){if(C.value=!0,!w.method){window.$message.error(n("提现方式不能为空")),C.value=!1;return}if(!w.account){window.$message.error(n("提现账号不能为空")),C.value=!1;return}const x=w.method,y=w.account,{data:T}=await KJ({withdraw_method:x,withdraw_account:y});T===!0&&Xt.push("/ticket"),C.value=!1}function _(){a(),u()}return mn(()=>{_()}),(x,y)=>{const T=bLe,k=JX,P=hLe,I=lLe,R=Qi,W=Co,O=Bu,M=ml,z=ur,K=CX,J=ni,se=uk,le=zu,F=wo;return ge(),Ke(F,null,{default:pe(()=>[ie(W,{title:x.$t("我的邀请"),class:"border-rounded-5"},{"header-extra":pe(()=>[ie(T,{class:"text-40 text-gray"})]),default:pe(()=>{var E;return[q("div",null,[q("span",yLe,[ie(k,{from:0,to:parseFloat(_e(sn)(s.value[4])),active:!0,precision:2,duration:500},null,8,["to"])]),q("span",xLe,ue((E=_e(t).appConfig)==null?void 0:E.currency),1)]),q("div",CLe,ue(x.$t("当前剩余佣金")),1),ie(R,{class:"m-t-10"},{default:pe(()=>{var A;return[ie(_e(Lt),{size:"small",type:"primary",onClick:y[0]||(y[0]=Y=>h.value=!0)},{icon:pe(()=>[ie(P)]),default:pe(()=>[it(" "+ue(x.$t("划转")),1)]),_:1}),(A=_e(t).appConfig)!=null&&A.withdraw_close?gt("",!0):(ge(),Ke(_e(Lt),{key:0,size:"small",type:"primary",onClick:y[1]||(y[1]=Y=>b.value=!0)},{icon:pe(()=>[ie(I)]),default:pe(()=>[it(" "+ue(x.$t("推广佣金提现")),1)]),_:1}))]}),_:1})]}),_:1},8,["title"]),ie(W,{class:"m-t-15 border-rounded-5"},{default:pe(()=>{var E,A,Y,ne,fe,Q;return[q("div",wLe,[q("div",null,ue(x.$t("已注册用户数")),1),q("div",null,ue(x.$tc("{number} 人",{number:s.value[0]})),1)]),q("div",_Le,[q("div",null,ue(x.$t("佣金比例")),1),(E=_e(t).appConfig)!=null&&E.commission_distribution_enable?(ge(),Oe("div",SLe,ue(`${Math.floor((((A=_e(t).appConfig)==null?void 0:A.commission_distribution_l1)||0)*s.value[3]/100)}%,${Math.floor((((Y=_e(t).appConfig)==null?void 0:Y.commission_distribution_l2)||0)*s.value[3]/100)}%,${Math.floor((((ne=_e(t).appConfig)==null?void 0:ne.commission_distribution_l3)||0)*s.value[3]/100)}%`),1)):(ge(),Oe("div",kLe,ue(s.value[3])+"%",1))]),q("div",PLe,[q("div",null,ue(x.$t("确认中的佣金")),1),q("div",null,ue((fe=_e(t).appConfig)==null?void 0:fe.currency_symbol)+" "+ue(_e(sn)(s.value[2])),1)]),q("div",TLe,[q("div",null,ue(x.$t("累计获得佣金")),1),q("div",null,ue((Q=_e(t).appConfig)==null?void 0:Q.currency_symbol)+" "+ue(_e(sn)(s.value[1])),1)])]}),_:1}),ie(W,{title:x.$t("邀请码管理"),class:"m-t-15 border-rounded-5"},{"header-extra":pe(()=>[ie(_e(Lt),{size:"small",type:"primary",round:"",loading:d.value,onClick:f},{default:pe(()=>[it(ue(x.$t("生成邀请码")),1)]),_:1},8,["loading"])]),default:pe(()=>[ie(O,{columns:o,data:i.value,bordered:!0},null,8,["data"])]),_:1},8,["title"]),ie(W,{title:x.$t("佣金发放记录"),class:"m-t-15 border-rounded-5"},{default:pe(()=>[ie(O,{columns:r,data:l.value,pagination:c},null,8,["data","pagination"])]),_:1},8,["title"]),ie(J,{show:h.value,"onUpdate:show":y[6]||(y[6]=E=>h.value=E)},{default:pe(()=>[ie(W,{title:x.$t("划转"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-10 max-w-100% w-600 md:mx-auto",closable:"",onClose:y[5]||(y[5]=E=>h.value=!1)},{footer:pe(()=>[q("div",ILe,[q("div",null,[ie(_e(Lt),{onClick:y[3]||(y[3]=E=>h.value=!1)},{default:pe(()=>[it(ue(x.$t("取消")),1)]),_:1}),ie(_e(Lt),{type:"primary",class:"ml-10",onClick:y[4]||(y[4]=E=>g()),loading:m.value,disabled:m.value},{default:pe(()=>[it(ue(x.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:pe(()=>[ie(M,{type:"warning"},{default:pe(()=>[it(ue(x.$tc("划转后的余额仅用于{title}消费使用",{title:_e(t).title})),1)]),_:1}),q("div",RLe,[q("div",ELe,ue(x.$t("当前推广佣金余额")),1),ie(z,{placeholder:_e(sn)(s.value[4]),type:"number",disabled:""},null,8,["placeholder"])]),q("div",$Le,[q("div",ALe,ue(x.$t("划转金额")),1),ie(K,{value:p.value,"onUpdate:value":y[2]||(y[2]=E=>p.value=E),min:0,placeholder:x.$t("请输入需要划转到余额的金额"),clearable:""},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),ie(J,{show:b.value,"onUpdate:show":y[12]||(y[12]=E=>b.value=E)},{default:pe(()=>[ie(W,{title:x.$t("推广佣金划转至余额"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-10 max-w-100% w-600 md:mx-auto"},{"header-extra":pe(()=>[ie(_e(Lt),{class:"h-auto p-2",tertiary:"",size:"large",onClick:y[7]||(y[7]=E=>b.value=!1)},{icon:pe(()=>[ie(se,{class:"cursor-pointer opacity-85"})]),_:1})]),footer:pe(()=>[q("div",LLe,[q("div",null,[ie(_e(Lt),{onClick:y[10]||(y[10]=E=>b.value=!1)},{default:pe(()=>[it(ue(x.$t("取消")),1)]),_:1}),ie(_e(Lt),{type:"primary",class:"ml-10",onClick:y[11]||(y[11]=E=>S()),loading:C.value,disabled:C.value},{default:pe(()=>[it(ue(x.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:pe(()=>{var E;return[q("div",MLe,[q("div",OLe,ue(x.$t("提现方式")),1),ie(le,{value:w.method,"onUpdate:value":y[8]||(y[8]=A=>w.method=A),options:(E=_e(t).appConfig)==null?void 0:E.withdraw_methods.map(A=>({label:A,value:A})),placeholder:x.$t("请选择提现方式")},null,8,["value","options","placeholder"])]),q("div",zLe,[q("div",DLe,ue(x.$t("提现账号")),1),ie(z,{value:w.account,"onUpdate:value":y[9]||(y[9]=A=>w.account=A),placeholder:x.$t("请输入提现账号"),type:"string"},null,8,["value","placeholder"])])]}),_:1},8,["title"])]),_:1},8,["show"])]),_:1})}}}),BLe=Object.freeze(Object.defineProperty({__proto__:null,default:FLe},Symbol.toStringTag,{value:"Module"})),NLe={class:""},HLe={class:"mb-4 text-16 font-600"},jLe={class:"text-12 text-gray"},VLe=["innerHTML"],WLe=be({__name:"index",setup(e){const t=An(),n=new td({html:!0}),o=f=>n.render(f);window.copy=f=>vs(f),window.jump=f=>s(f);const r=H(!1),i=H();async function s(f){const{data:h}=await aQ(f,t.lang);h&&(i.value=h),r.value=!0}const a=H(""),l=H(!0),c=H();async function u(){l.value=!0;const f=a.value,{data:h}=await sQ(f,t.lang);c.value=h,l.value=!1}function d(){u()}return mn(()=>{d()}),(f,h)=>{const p=ur,m=Lt,g=vm,b=bl,w=Qi,C=Mm,S=Im,_=Co,x=rG,y=$S,T=wo;return ge(),Ke(T,{"show-footer":!1},{default:pe(()=>[ie(g,null,{default:pe(()=>[ie(p,{placeholder:f.$t("使用文档"),value:a.value,"onUpdate:value":h[0]||(h[0]=k=>a.value=k),onKeyup:h[1]||(h[1]=Sa(k=>d(),["enter"]))},null,8,["placeholder","value"]),ie(m,{type:"primary",ghost:"",onClick:h[2]||(h[2]=k=>d())},{default:pe(()=>[it(ue(f.$t("搜索")),1)]),_:1})]),_:1}),l.value?(ge(),Ke(w,{key:0,vertical:"",class:"mt-20"},{default:pe(()=>[ie(b,{height:"20px",width:"33%"}),ie(b,{height:"20px",width:"66%"}),ie(b,{height:"20px"})]),_:1})):gt("",!0),(ge(!0),Oe(st,null,Wn(c.value,(k,P)=>(ge(),Ke(_,{key:P,title:P,class:"mt-20 border-rounded-5",contentStyle:"padding:0"},{default:pe(()=>[ie(S,{clickable:"",hoverable:""},{default:pe(()=>[(ge(!0),Oe(st,null,Wn(k,I=>(ge(),Ke(C,{key:I.id,onClick:R=>s(I.id)},{default:pe(()=>[q("div",NLe,[q("div",HLe,ue(I.title),1),q("div",jLe,ue(f.$t("最后更新"))+" "+ue(_e(Ip)(I.updated_at)),1)])]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)),ie(y,{show:r.value,"onUpdate:show":h[3]||(h[3]=k=>r.value=k),width:"80%",placement:"right"},{default:pe(()=>{var k;return[ie(x,{title:(k=i.value)==null?void 0:k.title,closable:""},{default:pe(()=>{var P;return[q("div",{innerHTML:o(((P=i.value)==null?void 0:P.body)||""),class:"custom-html-style markdown-body"},null,8,VLe)]}),_:1},8,["title"])]}),_:1},8,["show"])]),_:1})}}}),ULe=Object.freeze(Object.defineProperty({__proto__:null,default:WLe},Symbol.toStringTag,{value:"Module"})),qLe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},KLe=q("path",{fill:"currentColor",d:"M11 18h2v-2h-2zm1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-14a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2a2 2 0 0 1 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4"},null,-1),GLe=[KLe];function YLe(e,t){return ge(),Oe("svg",qLe,[...GLe])}const XLe={name:"mdi-help-circle-outline",render:YLe},ZLe={class:"flex"},JLe={class:"flex-[1]"},QLe={class:"flex flex-[2] flex-shrink-0 text-center"},eFe={class:"flex flex-1 items-center justify-center"},tFe={class:"flex flex-1 items-center justify-center"},nFe={class:"flex-1"},oFe={class:"flex"},rFe={class:"flex-[1] break-anywhere"},iFe={class:"flex flex-[2] flex-shrink-0 items-center text-center"},sFe={class:"flex flex-[1] items-center justify-center"},aFe={class:"flex-[1]"},lFe={class:"flex-[1]"},cFe={key:0},uFe={key:1},dFe=be({__name:"index",setup(e){const t=H([]),n=H(!0);async function o(){n.value=!0;const r=await sk(),{data:i}=r;t.value=i,n.value=!1}return mn(()=>{o()}),(r,i)=>{const s=bl,a=Qi,l=XLe,c=Lu,u=Ti,d=Mm,f=Im,h=Jc("router-link"),p=ml,m=wo;return ge(),Ke(m,null,{default:pe(()=>[n.value?(ge(),Ke(a,{key:0,vertical:"",class:"mt-20"},{default:pe(()=>[ie(s,{height:"20px",width:"33%"}),ie(s,{height:"20px",width:"66%"}),ie(s,{height:"20px"})]),_:1})):t.value.length>0?(ge(),Ke(f,{key:1,clickable:"",hoverable:""},{header:pe(()=>[q("div",ZLe,[q("div",JLe,ue(r.$t("名称")),1),q("div",QLe,[q("div",eFe,[it(ue(r.$t("状态"))+" ",1),ie(c,{placement:"bottom",trigger:"hover"},{trigger:pe(()=>[ie(l,{class:"m-l-3 text-16"})]),default:pe(()=>[q("span",null,ue(r.$t("五分钟内节点在线情况")),1)]),_:1})]),q("div",tFe,[it(ue(r.$t("倍率"))+" ",1),ie(c,{placement:"bottom",trigger:"hover"},{trigger:pe(()=>[ie(l,{class:"m-l-3 text-16"})]),default:pe(()=>[q("span",null,ue(r.$t("使用的流量将乘以倍率进行扣除")),1)]),_:1})]),q("div",nFe,ue(r.$t("标签")),1)])])]),default:pe(()=>[(ge(!0),Oe(st,null,Wn(t.value,g=>(ge(),Ke(d,{key:g.id},{default:pe(()=>[q("div",oFe,[q("div",rFe,ue(g.name),1),q("div",iFe,[q("div",sFe,[q("div",{class:ho(["h-6 w-6 rounded-full",g.is_online?"bg-blue-500":"bg-red-500"])},null,2)]),q("div",aFe,[ie(u,{size:"small",round:"",class:""},{default:pe(()=>[it(ue(g.rate)+" x ",1)]),_:2},1024)]),q("div",lFe,[g.tags&&g.tags.length>0?(ge(),Oe("div",cFe,[(ge(!0),Oe(st,null,Wn(g.tags,b=>(ge(),Ke(u,{size:"small",round:"",key:b},{default:pe(()=>[it(ue(b),1)]),_:2},1024))),128))])):(ge(),Oe("span",uFe,"-"))])])])]),_:2},1024))),128))]),_:1})):(ge(),Ke(p,{key:2,type:"info"},{default:pe(()=>[q("div",null,[it(ue(r.$t("没有可用节点,如果您未订阅或已过期请"))+" ",1),ie(h,{class:"font-600",to:"/plan"},{default:pe(()=>[it(ue(r.$t("订阅")),1)]),_:1}),it("。 ")])]),_:1}))]),_:1})}}}),fFe=Object.freeze(Object.defineProperty({__proto__:null,default:dFe},Symbol.toStringTag,{value:"Module"})),hFe=be({__name:"index",setup(e){const t=a=>vn.global.t(a),n=[{title:t("# 订单号"),key:"trade_no",render(a){return v(Lt,{text:!0,class:"color-primary",onClick:()=>Xt.push(`/order/${a.trade_no}`)},{default:()=>a.trade_no})}},{title:t("周期"),key:"period",render(a){return v(Ti,{round:!0,size:"small"},{default:()=>t(Mk[a.period])})}},{title:t("订单金额"),key:"total_amount",render(a){return sn(a.total_amount)}},{title:t("订单状态"),key:"status",render(a){const l=t(Qze[a.status]),c=v("div",{class:["h-6 w-6 rounded-full mr-5",a.status===3?"bg-green-500":"bg-red-500"]});return v("div",{class:"flex items-center"},[c,l])}},{title:t("创建时间"),key:"created_at",render(a){return Uo(a.created_at)}},{title:t("操作"),key:"actions",fixed:"right",render(a){const l=v(Lt,{text:!0,type:"primary",onClick:()=>Xt.push(`/order/${a.trade_no}`)},{default:()=>t("查看详情")}),c=v(Lt,{text:!0,type:"primary",disabled:a.status!==0,onClick:()=>o(a.trade_no)},{default:()=>t("取消")}),u=v(Ji,{vertical:!0});return v("div",[l,u,c])}}];async function o(a){window.$dialog.confirm({title:t("注意"),type:"info",content:t("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:l}=await Vu(a);l===!0&&(window.$message.success(t("取消成功")),s())}})}const r=H([]);async function i(){const a=await Nm(),{data:l}=a;r.value=l}async function s(){i()}return mn(()=>{s()}),(a,l)=>{const c=Bu,u=wo;return ge(),Ke(u,null,{default:pe(()=>[ie(c,{columns:n,data:r.value,bordered:!1,"scroll-x":800},null,8,["data"])]),_:1})}}}),pFe=Object.freeze(Object.defineProperty({__proto__:null,default:hFe},Symbol.toStringTag,{value:"Module"})),mFe={class:"inline-block",viewBox:"0 0 48 48",width:"1em",height:"1em"},gFe=q("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[q("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6S6 14.059 6 24s8.059 18 18 18m0 2c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20"}),q("path",{d:"M34.67 16.259a1 1 0 0 1 .072 1.412L21.386 32.432l-8.076-7.709a1 1 0 0 1 1.38-1.446l6.59 6.29L33.259 16.33a1 1 0 0 1 1.413-.07"})],-1),vFe=[gFe];function bFe(e,t){return ge(),Oe("svg",mFe,[...vFe])}const Ok={name:"healthicons-yes-outline",render:bFe},yFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},xFe=q("path",{fill:"currentColor",d:"M952.08 1.552L529.039 116.144c-10.752 2.88-34.096 2.848-44.815-.16L72.08 1.776C35.295-8.352-.336 18.176-.336 56.048V834.16c0 32.096 24.335 62.785 55.311 71.409l412.16 114.224c11.025 3.055 25.217 4.751 39.937 4.751c10.095 0 25.007-.784 38.72-4.528l423.023-114.592c31.056-8.4 55.504-39.024 55.504-71.248V56.048c.016-37.84-35.616-64.464-72.24-54.496zM479.999 956.943L71.071 843.887c-3.088-.847-7.408-6.496-7.408-9.712V66.143L467.135 177.68c3.904 1.088 8.288 1.936 12.864 2.656zm480.336-122.767c0 3.152-5.184 8.655-8.256 9.503L544 954.207v-775.92c.592-.144 1.2-.224 1.792-.384L960.32 65.775v768.4h.016zM641.999 366.303c2.88 0 5.81-.367 8.69-1.184l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.128 16.815 23.344 30.783 23.344m.002 192.001c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473c-4.783-17.008-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.457c3.968 14.127 16.815 23.36 30.783 23.36m.002 192c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16L633.38 687.487c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.113 16.815 23.345 30.783 23.345M394.629 303.487l-223.934-63.025c-16.912-4.72-34.688 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.937 63.024a31.8 31.8 0 0 0 8.687 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999l-223.934-63.025c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999L170.699 624.46c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-17.008-5.12-34.657-22.16-39.473"},null,-1),CFe=[xFe];function wFe(e,t){return ge(),Oe("svg",yFe,[...CFe])}const _Fe={name:"simple-line-icons-book-open",render:wFe},SFe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},kFe=q("path",{fill:"currentColor",d:"M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8m-.615 12.66h-1.34l-3.24-4.54l1.341-1.25l2.569 2.4l5.141-5.931l1.34.94z"},null,-1),PFe=[kFe];function TFe(e,t){return ge(),Oe("svg",SFe,[...PFe])}const RFe={name:"dashicons-yes-alt",render:TFe},EFe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},$Fe=q("path",{fill:"currentColor",d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8s3.58-8 8-8m1.13 9.38l.35-6.46H8.52l.35 6.46zm-.09 3.36c.24-.23.37-.55.37-.96c0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35s-.82.12-1.07.35s-.37.55-.37.97c0 .41.13.73.38.96c.26.23.61.34 1.06.34s.8-.11 1.05-.34"},null,-1),AFe=[$Fe];function IFe(e,t){return ge(),Oe("svg",EFe,[...AFe])}const MFe={name:"dashicons-warning",render:IFe},OFe={class:"relative max-w-full w-300",style:{"padding-bottom":"100%"}},zFe={class:"p-10 text-center"},DFe={key:1,class:"flex flex-wrap"},LFe={class:"w-100% md:flex-[2]"},FFe={key:2,class:"mt-10 text-22"},BFe={key:3,class:"text-14 text-[rgba(0,0,0,0.45)]"},NFe={class:"flex"},HFe={class:"flex-[1] text-#49505799"},jFe={class:"flex-[2]"},VFe={class:"flex"},WFe={class:"m-t-5 flex-[1] text-#49505799"},UFe={class:"flex-[2]"},qFe={class:"flex"},KFe={class:"m-b-5 m-t-5 flex-[1] text-#49505799"},GFe={class:"flex-[2]"},YFe={class:"flex"},XFe={class:"flex-[1] text-#49505799"},ZFe={class:"flex-[2]"},JFe={key:0,class:"flex"},QFe={class:"flex-[1] text-#49505799"},e9e={class:"flex-[2]"},t9e={key:1,class:"flex"},n9e={class:"flex-[1] text-#49505799"},o9e={class:"flex-[2]"},r9e={key:2,class:"flex"},i9e={class:"flex-[1] text-#49505799"},s9e={class:"flex-[2]"},a9e={key:3,class:"flex"},l9e={class:"flex-[1] text-#49505799"},c9e={class:"flex-[2]"},u9e={key:4,class:"flex"},d9e={class:"flex-[1] text-#49505799"},f9e={class:"flex-[2]"},h9e={class:"flex"},p9e={class:"m-t-5 flex-[1] text-#49505799"},m9e={class:"flex-[2]"},g9e=["onClick"],v9e={class:"flex-[1] whitespace-nowrap"},b9e={class:"flex-[1]"},y9e=["src"],x9e={key:0,class:"w-100% md:flex-[1] md:pl-20"},C9e={class:"mt-20 border-rounded-5 bg-#2f3135 p-20 color-white"},w9e={class:"text-18 font-600"},_9e={class:"flex border-#646669 border-b-solid pb-16 pt-16"},S9e={class:"flex-[2]"},k9e={class:"flex-[1] text-right color-#f8f9fa"},P9e={key:0,class:"border-[#646669] border-b-solid pb-16 pt-16"},T9e={class:"color-#f8f9fa41"},R9e={class:"pt-16 text-right"},E9e={key:1,class:"border-[#646669] border-b-solid pb-16 pt-16"},$9e={class:"color-#f8f9fa41"},A9e={class:"pt-16 text-right"},I9e={key:2,class:"border-[#646669] border-b-solid pb-16 pt-16"},M9e={class:"color-#f8f9fa41"},O9e={class:"pt-16 text-right"},z9e={key:3,class:"border-[#646669] border-b-solid pb-16 pt-16"},D9e={class:"color-#f8f9fa41"},L9e={class:"pt-16 text-right"},F9e={key:4,class:"border-[#646669] border-b-solid pb-16 pt-16"},B9e={class:"color-#f8f9fa41"},N9e={class:"pt-16 text-right"},H9e={class:"pb-16 pt-16"},j9e={class:"color-#f8f9fa41"},V9e={class:"text-36 font-600"},W9e=be({__name:"detail",setup(e){const t=An(),n=es(),o=Ds(),r=y=>vn.global.t(y);function i(y){switch(y){case 1:return{icon:"info",title:r("开通中"),subTitle:r("订单系统正在进行处理,请稍等1-3分钟。")};case 2:return{icon:"info",title:r("已取消"),subTitle:r("订单由于超时支付已被取消。")};case 3:case 4:return{icon:"info",title:r("已完成"),subTitle:r("订单已支付并开通。")}}return{icon:"error",title:r("意料之外"),subTitle:r("意料之外的状态")}}async function s(){window.$dialog.confirm({title:r("注意"),type:"info",content:r("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:y}=await Vu(a.value);y===!0&&(window.$message.success(r("取消成功")),x())}})}const a=H(""),l=H(),c=H(),u=H(!0);async function d(){u.value=!0;const{data:y}=await HJ(a.value);l.value=y,clearInterval(c.value),y.status===La.PENDING&&p(),[La.PENDING,La.PROCESSING].includes(y.status)&&(c.value=setInterval(S,1500)),u.value=!1}const f=H([]),h=H(0);async function p(){const{data:y}=await ZJ();f.value=y}function m(){var T,k,P,I,R;return(((T=l.value)==null?void 0:T.plan[l.value.period])||0)-(((k=l.value)==null?void 0:k.balance_amount)||0)-(((P=l.value)==null?void 0:P.surplus_amount)||0)+(((I=l.value)==null?void 0:I.refund_amount)||0)-(((R=l.value)==null?void 0:R.discount_amount)||0)}function g(){const y=f.value[h.value];return(y!=null&&y.handling_fee_percent||y!=null&&y.handling_fee_fixed)&&m()?m()*parseFloat(y.handling_fee_percent||"0")/100+((y==null?void 0:y.handling_fee_fixed)||0):0}async function b(){const y=f.value[h.value],{data:T,type:k}=await JJ(a.value,y==null?void 0:y.id);T&&(T===!0?(window.$message.info(r("支付成功")),setTimeout(()=>{_()},500)):k===0?(w.value=!0,C.value=T):k===1&&(window.$message.info(r("正在前往收银台")),setTimeout(()=>{window.location.href=T},500)))}const w=H(!1),C=H("");async function S(){var T;const{data:y}=await jJ(a.value);y!==((T=l.value)==null?void 0:T.status)&&_()}async function _(){x(),n.getUserInfo()}async function x(){d(),w.value=!1}return mn(()=>{typeof o.params.trade_no=="string"&&(a.value=o.params.trade_no),x()}),Fi(()=>{clearInterval(c.value)}),(y,T)=>{const k=XS,P=Ji,I=Co,R=ni,W=bl,O=Qi,M=MFe,z=RFe,K=_Fe,J=Lt,se=Ok,le=wo;return ge(),Ke(le,null,{default:pe(()=>{var F,E,A,Y,ne,fe,Q,Ce,j,ye,Ie,Le,U,B,ae,Se,te,xe,ve,$,N,ee,we,de,he,re;return[ie(R,{show:w.value,"onUpdate:show":T[0]||(T[0]=me=>w.value=me),onOnAfterLeave:T[1]||(T[1]=me=>C.value="")},{default:pe(()=>[ie(I,{"content-style":"padding:10px",class:"w-auto",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:pe(()=>[q("div",OFe,[C.value?(ge(),Ke(k,{key:0,value:C.value,class:"pay-qrcode absolute h-full! w-full!",size:"400"},null,8,["value"])):gt("",!0)]),ie(P,{class:"m-0!"}),q("div",zFe,ue(y.$t("等待支付中")),1)]),_:1})]),_:1},8,["show"]),u.value?(ge(),Ke(O,{key:0,vertical:"",class:"mt-20"},{default:pe(()=>[ie(W,{height:"20px",width:"33%"}),ie(W,{height:"20px",width:"66%"}),ie(W,{height:"20px"})]),_:1})):(ge(),Oe("div",DFe,[q("div",LFe,[((F=l.value)==null?void 0:F.status)!==0?(ge(),Ke(I,{key:0,class:"flex text-center","items-center":"","border-rounded-5":""},{default:pe(()=>{var me,Ne,He,De,ot,nt;return[((me=l.value)==null?void 0:me.status)===2?(ge(),Ke(M,{key:0,class:"text-90 color-#f9a314"})):gt("",!0),((Ne=l.value)==null?void 0:Ne.status)===3||((He=l.value)==null?void 0:He.status)==4?(ge(),Ke(z,{key:1,class:"text-90 color-#48bc19"})):gt("",!0),(De=l.value)!=null&&De.status?(ge(),Oe("div",FFe,ue(i(l.value.status).title),1)):gt("",!0),(ot=l.value)!=null&&ot.status?(ge(),Oe("div",BFe,ue(i(l.value.status).subTitle),1)):gt("",!0),((nt=l.value)==null?void 0:nt.status)===3?(ge(),Ke(J,{key:4,"icon-placement":"left",strong:"",color:"#db4619",size:"small",round:"",class:"mt-30",onClick:T[2]||(T[2]=Ge=>y.$router.push("/knowledge"))},{icon:pe(()=>[ie(K)]),default:pe(()=>[it(" "+ue(y.$t("查看使用教程")),1)]),_:1})):gt("",!0)]}),_:1})):gt("",!0),ie(I,{class:"mt-20 border-rounded-5",title:y.$t("商品信息")},{default:pe(()=>{var me,Ne,He;return[q("div",NFe,[q("div",HFe,ue(y.$t("产品名称"))+":",1),q("div",jFe,ue((me=l.value)==null?void 0:me.plan.name),1)]),q("div",VFe,[q("div",WFe,ue(y.$t("类型/周期"))+":",1),q("div",UFe,ue((Ne=l.value)!=null&&Ne.period?y.$t(_e(Mk)[l.value.period]):""),1)]),q("div",qFe,[q("div",KFe,ue(y.$t("产品流量"))+":",1),q("div",GFe,ue((He=l.value)==null?void 0:He.plan.transfer_enable)+" GB",1)])]}),_:1},8,["title"]),ie(I,{class:"mt-20 border-rounded-5",title:y.$t("订单信息")},{"header-extra":pe(()=>{var me;return[((me=l.value)==null?void 0:me.status)===0?(ge(),Ke(J,{key:0,color:"#db4619",size:"small",round:"",strong:"",onClick:T[3]||(T[3]=Ne=>s())},{default:pe(()=>[it(ue(y.$t("关闭订单")),1)]),_:1})):gt("",!0)]}),default:pe(()=>{var me,Ne,He,De,ot,nt,Ge,Me,tt,X,ce;return[q("div",YFe,[q("div",XFe,ue(y.$t("订单号"))+":",1),q("div",ZFe,ue((me=l.value)==null?void 0:me.trade_no),1)]),(Ne=l.value)!=null&&Ne.discount_amount&&((He=l.value)==null?void 0:He.discount_amount)>0?(ge(),Oe("div",JFe,[q("div",QFe,ue(y.$t("优惠金额")),1),q("div",e9e,ue(_e(sn)(l.value.discount_amount)),1)])):gt("",!0),(De=l.value)!=null&&De.surplus_amount&&((ot=l.value)==null?void 0:ot.surplus_amount)>0?(ge(),Oe("div",t9e,[q("div",n9e,ue(y.$t("旧订阅折抵金额")),1),q("div",o9e,ue(_e(sn)(l.value.surplus_amount)),1)])):gt("",!0),(nt=l.value)!=null&&nt.refund_amount&&((Ge=l.value)==null?void 0:Ge.refund_amount)>0?(ge(),Oe("div",r9e,[q("div",i9e,ue(y.$t("退款金额")),1),q("div",s9e,ue(_e(sn)(l.value.refund_amount)),1)])):gt("",!0),(Me=l.value)!=null&&Me.balance_amount&&((tt=l.value)==null?void 0:tt.balance_amount)>0?(ge(),Oe("div",a9e,[q("div",l9e,ue(y.$t("余额支付 ")),1),q("div",c9e,ue(_e(sn)(l.value.balance_amount)),1)])):gt("",!0),((X=l.value)==null?void 0:X.status)===0&&g()>0?(ge(),Oe("div",u9e,[q("div",d9e,ue(y.$t("支付手续费"))+":",1),q("div",f9e,ue(_e(sn)(g())),1)])):gt("",!0),q("div",h9e,[q("div",p9e,ue(y.$t("创建时间"))+":",1),q("div",m9e,ue(_e(Uo)((ce=l.value)==null?void 0:ce.created_at)),1)])]}),_:1},8,["title"]),((E=l.value)==null?void 0:E.status)===0?(ge(),Ke(I,{key:1,title:y.$t("支付方式"),class:"mt-20","content-style":"padding:0"},{default:pe(()=>[(ge(!0),Oe(st,null,Wn(f.value,(me,Ne)=>(ge(),Oe("div",{key:me.id,class:ho(["border-2 border-rounded-5 p-20 border-solid flex",h.value===Ne?"border-#0665d0":"border-transparent"]),onClick:He=>h.value=Ne},[q("div",v9e,ue(me.name),1),q("div",b9e,[q("img",{class:"max-h-30",src:me.icon},null,8,y9e)])],10,g9e))),128))]),_:1},8,["title"])):gt("",!0)]),((A=l.value)==null?void 0:A.status)===0?(ge(),Oe("div",x9e,[q("div",C9e,[q("div",w9e,ue(y.$t("订单总额")),1),q("div",_9e,[q("div",S9e,ue((Y=l.value)==null?void 0:Y.plan.name),1),q("div",k9e,ue((ne=_e(t).appConfig)==null?void 0:ne.currency_symbol)+ue(((fe=l.value)==null?void 0:fe.period)&&_e(sn)((Q=l.value)==null?void 0:Q.plan[l.value.period])),1)]),(Ce=l.value)!=null&&Ce.surplus_amount&&((j=l.value)==null?void 0:j.surplus_amount)>0?(ge(),Oe("div",P9e,[q("div",T9e,ue(y.$t("折抵")),1),q("div",R9e," - "+ue((ye=_e(t).appConfig)==null?void 0:ye.currency_symbol)+ue(_e(sn)((Ie=l.value)==null?void 0:Ie.surplus_amount)),1)])):gt("",!0),(Le=l.value)!=null&&Le.discount_amount&&((U=l.value)==null?void 0:U.discount_amount)>0?(ge(),Oe("div",E9e,[q("div",$9e,ue(y.$t("折扣")),1),q("div",A9e," - "+ue((B=_e(t).appConfig)==null?void 0:B.currency_symbol)+ue(_e(sn)((ae=l.value)==null?void 0:ae.discount_amount)),1)])):gt("",!0),(Se=l.value)!=null&&Se.refund_amount&&((te=l.value)==null?void 0:te.refund_amount)>0?(ge(),Oe("div",I9e,[q("div",M9e,ue(y.$t("退款")),1),q("div",O9e," - "+ue((xe=_e(t).appConfig)==null?void 0:xe.currency_symbol)+ue(_e(sn)((ve=l.value)==null?void 0:ve.refund_amount)),1)])):gt("",!0),($=l.value)!=null&&$.balance_amount&&((N=l.value)==null?void 0:N.balance_amount)>0?(ge(),Oe("div",z9e,[q("div",D9e,ue(y.$t("余额支付")),1),q("div",L9e," - "+ue((ee=_e(t).appConfig)==null?void 0:ee.currency_symbol)+ue(_e(sn)((we=l.value)==null?void 0:we.balance_amount)),1)])):gt("",!0),g()>0?(ge(),Oe("div",F9e,[q("div",B9e,ue(y.$t("支付手续费")),1),q("div",N9e," + "+ue((de=_e(t).appConfig)==null?void 0:de.currency_symbol)+ue(_e(sn)(g())),1)])):gt("",!0),q("div",H9e,[q("div",j9e,ue(y.$t("总计")),1),q("div",V9e,ue((he=_e(t).appConfig)==null?void 0:he.currency_symbol)+" "+ue(_e(sn)(m()+g()))+" "+ue((re=_e(t).appConfig)==null?void 0:re.currency),1)]),ie(J,{type:"primary",class:"w-100% text-white","icon-placement":"left",strong:"",onClick:T[4]||(T[4]=me=>b())},{icon:pe(()=>[ie(se)]),default:pe(()=>[it(" "+ue(y.$t("结账")),1)]),_:1})])])):gt("",!0)]))]}),_:1})}}}),U9e=Object.freeze(Object.defineProperty({__proto__:null,default:W9e},Symbol.toStringTag,{value:"Module"})),q9e={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},K9e=q("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),G9e=q("path",{fill:"currentColor",d:"m32.283 16.302l1.414 1.415l-15.98 15.98l-1.414-1.414z"},null,-1),Y9e=q("path",{fill:"currentColor",d:"m17.717 16.302l15.98 15.98l-1.414 1.415l-15.98-15.98z"},null,-1),X9e=[K9e,G9e,Y9e];function Z9e(e,t){return ge(),Oe("svg",q9e,[...X9e])}const zk={name:"ei-close-o",render:Z9e},J9e={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},Q9e=q("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),e7e=q("path",{fill:"currentColor",d:"m23 32.4l-8.7-8.7l1.4-1.4l7.3 7.3l11.3-11.3l1.4 1.4z"},null,-1),t7e=[Q9e,e7e];function n7e(e,t){return ge(),Oe("svg",J9e,[...t7e])}const Dk={name:"ei-check",render:n7e},o7e={class:"ml-auto mr-auto max-w-1200 w-100%"},r7e={class:"m-3 mb-4 mt-4 text-30 font-400"},i7e={class:"card-container m-t-10 md:m-t-40"},s7e=["onClick"],a7e={class:"vertical-bottom"},l7e={class:"text-30 font-600"},c7e={class:"p-l-5 text-16 text-gray"},u7e={key:0},d7e=["innerHTML"],f7e=be({__name:"index",setup(e){const t=An(),n=d=>vn.global.t(d),o=new td({html:!0}),r=d=>o.render(d),i=H(0),s=[{value:0,label:n("全部")},{value:1,label:n("按周期")},{value:2,label:n("按流量")}],a=H([]),l=H([]);dt([l,i],d=>{a.value=d[0].filter(f=>{if(d[1]===0)return 1;if(d[1]===1)return!((f.onetime_price||0)>0);if(d[1]===2)return(f.onetime_price||0)>0})});async function c(){const{data:d}=await NJ();d.forEach(f=>{const h=u(f);f.price=h.price,f.cycle=h.cycle}),l.value=d}mn(()=>{c()});function u(d){return d.onetime_price!==null?{price:d.onetime_price/100,cycle:n("一次性")}:d.month_price!==null?{price:d.month_price/100,cycle:n("月付")}:d.quarter_price!==null?{price:d.quarter_price/100,cycle:n("季付")}:d.half_year_price!==null?{price:d.half_year_price/100,cycle:n("半年付")}:d.year_price!==null?{price:d.year_price/100,cycle:n("年付")}:d.two_year_price!==null?{price:d.two_year_price/100,cycle:n("两年付")}:d.three_year_price!==null?{price:d.three_year_price/100,cycle:n("三年付")}:{price:0,cycle:n("错误")}}return(d,f)=>{const h=fU,p=J2,m=Dk,g=zk,b=vr,w=Lt,C=Co,S=wo;return ge(),Ke(S,null,{default:pe(()=>[q("div",o7e,[q("h2",r7e,ue(d.$t("选择最适合你的计划")),1),ie(p,{value:i.value,"onUpdate:value":f[0]||(f[0]=_=>i.value=_),name:"plan_select",class:""},{default:pe(()=>[(ge(),Oe(st,null,Wn(s,_=>ie(h,{key:_.value,value:_.value,label:_.label,style:{background:"--n-color"}},null,8,["value","label"])),64))]),_:1},8,["value"]),q("section",i7e,[(ge(!0),Oe(st,null,Wn(a.value,_=>(ge(),Oe("div",{class:"card-item min-w-300 cursor-pointer",key:_.id,onClick:x=>d.$router.push("/plan/"+_.id)},[ie(C,{title:_.name,hoverable:"",class:"max-w-100% w-375"},{"header-extra":pe(()=>{var x;return[q("div",a7e,[q("span",l7e,ue((x=_e(t).appConfig)==null?void 0:x.currency_symbol)+" "+ue(_.price),1),q("span",c7e," /"+ue(_.cycle),1)])]}),action:pe(()=>[ie(w,{strong:"",secondary:"",type:"primary"},{default:pe(()=>[it(ue(d.$t("立即订阅")),1)]),_:1})]),default:pe(()=>[_e(dC)(_.content)?(ge(),Oe("div",u7e,[(ge(!0),Oe(st,null,Wn(JSON.parse(_.content),(x,y)=>(ge(),Oe("div",{key:y,class:ho(["vertical-center flex items-center",x.support?"":"opacity-30"])},[ie(b,{size:"30",class:"flex items-center text-[--primary-color]"},{default:pe(()=>[x.support?(ge(),Ke(m,{key:0})):(ge(),Ke(g,{key:1}))]),_:2},1024),q("div",null,ue(x.feature),1)],2))),128))])):(ge(),Oe("div",{key:1,innerHTML:r(_.content||""),class:"markdown-body"},null,8,d7e))]),_:2},1032,["title"])],8,s7e))),128))])])]),_:1})}}}),h7e=Uu(f7e,[["__scopeId","data-v-79fa0f66"]]),p7e=Object.freeze(Object.defineProperty({__proto__:null,default:h7e},Symbol.toStringTag,{value:"Module"})),m7e={class:"inline-block",viewBox:"0 0 576 512",width:"1em",height:"1em"},g7e=q("path",{fill:"currentColor",d:"M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64v-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6v-64c0-35.3-28.7-64-64-64zm64 112v160c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16m-32-16c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32z"},null,-1),v7e=[g7e];function b7e(e,t){return ge(),Oe("svg",m7e,[...v7e])}const y7e={name:"fa6-solid-ticket",render:b7e},x7e={key:1,class:"flex flex-wrap"},C7e={class:"w-100% md:max-w-2/3"},w7e={key:0},_7e=["innerHTML"],S7e=["onClick"],k7e={class:"mt-20 w-full md:mt-0 md:max-w-1/3 sm:max-w-full md:pl-20"},P7e={class:"border-rounded-5 bg-#2f3135 p-20 color-white"},T7e={class:"flex items-center"},R7e=["placeholder"],E7e={class:"mt-0 border-rounded-5 bg-#2f3135 p-20 color-white md:mt-20"},$7e={class:"text-18 font-600"},A7e={class:"flex border-#646669 border-b-solid pb-16 pt-16"},I7e={class:"flex-[2]"},M7e={class:"flex-[1] text-right color-#f8f9fa"},O7e={key:0,class:"border-[#646669] border-b-solid pb-16 pt-16"},z7e={class:"color-#f8f9fa"},D7e={class:"flex pb-16 pt-16"},L7e={class:"flex-[2]"},F7e={class:"flex-[1] text-right color-#f8f9fa"},B7e={class:"pb-16 pt-16"},N7e={class:"color-#f8f9fa"},H7e={class:"text-36 font-600"},j7e=be({__name:"detail",setup(e){const t=An(),n=Ds(),o=es(),r=P=>vn.global.t(P),i=new td({html:!0}),s=P=>i.render(P),a={month_price:r("月付"),quarter_price:r("季付"),half_year_price:r("半年付"),year_price:r("年付"),two_year_price:r("两年付"),three_year_price:r("三年付"),onetime_price:r("一次性"),reset_price:r("流量重置包")},l=H(0),c=H([]);dt(l,()=>{d.value&&p()});async function u(){const P=C.value;c.value=[];for(const I in P)I in a&&P[I]!==null&&c.value.push({name:a[I],key:I})}const d=H(""),f=H(!1),h=H();async function p(){f.value=!0,eQ(d.value,k.value,c.value[l.value].key).then(({data:P})=>{P?h.value=P:h.value=void 0}).finally(()=>{f.value=!1})}dt(d,P=>{P.trim()||(h.value=void 0)});function m(){if(!h.value||!C.value||XC(l.value))return 0;const{type:P,value:I}=h.value,R=c.value[l.value].key;return P===1?I:I*C.value[R]/100}const g=H(!1);async function b(){var I;const P=(I=x.value)==null?void 0:I.find(R=>R.status===0);if(P){const R=P.trade_no;window.$dialog.confirm({title:r("注意"),type:"info",content:r("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:r("确认取消"),negativeText:r("返回我的订单"),confirm(){Vu(R).then(({data:W})=>{W&&w()})},cancel(){Xt.push("/order")}});return}if(o.plan_id&&o.plan_id!=k.value&&(o.expired_at===null||o.expired_at>=Math.floor(Date.now()/1e3))){window.$dialog.confirm({title:r("注意"),type:"info",content:r("请注意,变更订阅会导致当前订阅被覆盖。"),confirm(){w()}});return}w()}async function w(){var R;g.value=!0;const P=c.value[l.value].key,{data:I}=await ak(k.value,P,(R=h.value)==null?void 0:R.code);I&&(window.$message.success(r("订单提交成功,正在跳转支付")),setTimeout(()=>{Xt.push("/order/"+I)},500)),g.value=!1}const C=H(),S=H(!0);async function _(){S.value=!0;const{data:P}=await QJ(k.value);S.value=!1,P?(C.value=P,u()):Xt.push("/plan")}const x=H();async function y(){const{data:P}=await Nm();x.value=P}function T(){_(),y()}const k=H();return mn(()=>{k.value=n.params.plan_id,T()}),(P,I)=>{const R=bl,W=Qi,O=Dk,M=zk,z=vr,K=Co,J=Ji,se=y7e,le=Lt,F=Ok,E=wo;return ge(),Ke(E,null,{default:pe(()=>{var A,Y,ne,fe,Q,Ce,j,ye;return[S.value?(ge(),Ke(W,{key:0,vertical:"",class:"mt-20"},{default:pe(()=>[ie(R,{height:"20px",width:"33%"}),ie(R,{height:"20px",width:"66%"}),ie(R,{height:"20px"})]),_:1})):(ge(),Oe("div",x7e,[q("div",C7e,[ie(K,{title:(A=C.value)==null?void 0:A.name,class:"m-auto max-w-100% border-rounded-5"},{default:pe(()=>{var Ie,Le,U;return[_e(dC)(((Ie=C.value)==null?void 0:Ie.content)||"")?(ge(),Oe("div",w7e,[(ge(!0),Oe(st,null,Wn(JSON.parse(((Le=C.value)==null?void 0:Le.content)||""),(B,ae)=>(ge(),Oe("div",{key:ae,class:ho(["vertical-center flex items-center",B.support?"":"opacity-30"])},[ie(z,{size:"30",class:"flex items-center text-[--primary-color]"},{default:pe(()=>[B.support?(ge(),Ke(O,{key:0})):(ge(),Ke(M,{key:1}))]),_:2},1024),q("div",null,ue(B.feature),1)],2))),128))])):(ge(),Oe("div",{key:1,innerHTML:s(((U=C.value)==null?void 0:U.content)||""),class:"markdown-body"},null,8,_7e))]}),_:1},8,["title"]),ie(K,{title:P.$t("付款周期"),class:"mt-20 border-rounded-5",contentStyle:"padding:0"},{default:pe(()=>[(ge(!0),Oe(st,null,Wn(c.value,(Ie,Le)=>{var U,B;return ge(),Oe("div",{key:Ie.key},[q("div",{class:ho(["flex justify-between border-2 border-rounded-5 border-solid p-20 text-16 cursor-pointer",Le===l.value?"border-#0665d0":"border-transparent"]),onClick:ae=>l.value=Le},[q("div",null,ue(Ie.name),1),q("div",null,ue((U=_e(t).appConfig)==null?void 0:U.currency_symbol)+" "+ue(_e(sn)((B=C.value)==null?void 0:B[c.value[Le].key])),1)],10,S7e),ie(J,{class:"m-0!"})])}),128))]),_:1},8,["title"])]),q("div",k7e,[q("div",P7e,[q("div",T7e,[hn(q("input",{placeholder:r("有优惠券?"),"onUpdate:modelValue":I[0]||(I[0]=Ie=>d.value=Ie),class:"min-w-0 flex-[1] border-none bg-transparent color-white outline-none"},null,8,R7e),[[DP,d.value]]),ie(le,{type:"primary","icon-placement":"left",loading:f.value,disabled:f.value,onClick:I[1]||(I[1]=Ie=>p())},{icon:pe(()=>[ie(se)]),default:pe(()=>[it(" "+ue(P.$t("验证")),1)]),_:1},8,["loading","disabled"])])]),q("div",E7e,[q("div",$7e,ue(P.$t("订单总额")),1),q("div",A7e,[q("div",I7e,ue((Y=C.value)==null?void 0:Y.name),1),q("div",M7e,ue((ne=_e(t).appConfig)==null?void 0:ne.currency_symbol)+" "+ue(_e(sn)((fe=C.value)==null?void 0:fe[c.value[l.value].key])),1)]),h.value?(ge(),Oe("div",O7e,[q("div",z7e,ue(P.$t("折扣")),1),q("div",D7e,[q("div",L7e,ue((Q=h.value)==null?void 0:Q.name),1),q("div",F7e,"- "+ue(_e(sn)(m())),1)])])):gt("",!0),q("div",B7e,[q("div",N7e,ue(P.$t("总计")),1),q("div",H7e,ue((Ce=_e(t).appConfig)==null?void 0:Ce.currency_symbol)+" "+ue(_e(sn)(((j=C.value)==null?void 0:j[c.value[l.value].key])-m()))+" "+ue((ye=_e(t).appConfig)==null?void 0:ye.currency),1)]),ie(le,{type:"primary",class:"w-100% text-white","icon-placement":"left",strong:"",loading:g.value,disabled:g.value,onClick:I[2]||(I[2]=Ie=>b())},{icon:pe(()=>[ie(F)]),default:pe(()=>[it(" "+ue(P.$t("下单")),1)]),_:1},8,["loading","disabled"])])])]))]}),_:1})}}}),V7e=Object.freeze(Object.defineProperty({__proto__:null,default:j7e},Symbol.toStringTag,{value:"Module"})),W7e={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},U7e=q("path",{fill:"currentColor",d:"M216 64H56a8 8 0 0 1 0-16h136a8 8 0 0 0 0-16H56a24 24 0 0 0-24 24v128a24 24 0 0 0 24 24h160a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16m-36 80a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),q7e=[U7e];function K7e(e,t){return ge(),Oe("svg",W7e,[...q7e])}const G7e={name:"ph-wallet-fill",render:K7e},Y7e={class:"text-50 font-400"},X7e={class:"m-l-20 text-20 text-#6c757d"},Z7e={class:"text-#6c757d"},J7e={class:"mt-10 max-w-500"},Q7e={class:"mt-10 max-w-500"},eBe={class:"mt-10 max-w-500"},tBe={class:"mt-10 max-w-500"},nBe={class:"mb-5"},oBe={class:"mt-10 max-w-500"},rBe={class:"mb-5"},iBe={class:"m-0 pb-10 pt-10 text-20"},sBe={class:"mt-20"},aBe=["href"],lBe={class:"mt-20"},cBe={class:"m-0 pb-10 pt-10 text-20"},uBe={class:"mt-20"},dBe={class:"flex justify-end"},fBe=be({__name:"index",setup(e){const t=es(),n=An(),o=C=>vn.global.t(C),r=H(""),i=H(""),s=H(""),a=H(!1);async function l(){if(a.value=!0,i.value!==s.value){window.$message.error(o("两次新密码输入不同"));return}const{data:C}=await GJ(r.value,i.value);C===!0&&window.$message.success(o("密码修改成功")),a.value=!1}const c=H(!1),u=H(!1);async function d(C){if(C==="expire"){const{data:S}=await C1({remind_expire:c.value?1:0});S===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),c.value=!c.value)}else if(C==="traffic"){const{data:S}=await C1({remind_traffic:u.value?1:0});S===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),u.value=!u.value)}}const f=H(),h=H(!1);async function p(){const{data:C}=await lQ();C&&(f.value=C)}function m(C){window.location.href=C}const g=H(!1);async function b(){const{data:C}=await YJ();C&&window.$message.success(o("重置成功"))}async function w(){t.getUserInfo(),c.value=!!t.remind_expire,u.value=!!t.remind_traffic}return mn(()=>{w()}),(C,S)=>{const _=G7e,x=Co,y=ur,T=Lt,k=BZ,P=ml,I=Ji,R=OZ,W=ni,O=wo;return ge(),Ke(O,null,{default:pe(()=>{var M,z,K,J;return[ie(x,{title:C.$t("我的钱包"),class:"border-rounded-5"},{"header-extra":pe(()=>[ie(_,{class:"text-40 color-gray"})]),default:pe(()=>{var se;return[q("div",null,[q("span",Y7e,ue(_e(sn)(_e(t).balance)),1),q("span",X7e,ue((se=_e(n).appConfig)==null?void 0:se.currency),1)]),q("div",Z7e,ue(C.$t("账户余额(仅消费)")),1)]}),_:1},8,["title"]),ie(x,{title:C.$t("修改密码"),class:"mt-20 border-rounded-5"},{default:pe(()=>[q("div",J7e,[q("label",null,ue(C.$t("旧密码")),1),ie(y,{type:"password",value:r.value,"onUpdate:value":S[0]||(S[0]=se=>r.value=se),placeholder:C.$t("请输入旧密码"),maxlength:32},null,8,["value","placeholder"])]),q("div",Q7e,[q("label",null,ue(C.$t("新密码")),1),ie(y,{type:"password",value:i.value,"onUpdate:value":S[1]||(S[1]=se=>i.value=se),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),q("div",eBe,[q("label",null,ue(C.$t("新密码")),1),ie(y,{type:"password",value:s.value,"onUpdate:value":S[2]||(S[2]=se=>s.value=se),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),ie(T,{class:"mt-20",type:"primary",onClick:l,loading:a.value,disabled:a.value},{default:pe(()=>[it(ue(C.$t("保存")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title"]),ie(x,{title:C.$t("通知"),class:"mt-20 border-rounded-5"},{default:pe(()=>[q("div",tBe,[q("div",nBe,ue(C.$t("到期邮件提醒")),1),ie(k,{value:c.value,"onUpdate:value":[S[3]||(S[3]=se=>c.value=se),S[4]||(S[4]=se=>d("expire"))]},null,8,["value"])]),q("div",oBe,[q("div",rBe,ue(C.$t("流量邮件提醒")),1),ie(k,{value:u.value,"onUpdate:value":[S[5]||(S[5]=se=>u.value=se),S[6]||(S[6]=se=>d("traffic"))]},null,8,["value"])])]),_:1},8,["title"]),(z=(M=_e(n))==null?void 0:M.appConfig)!=null&&z.is_telegram?(ge(),Ke(x,{key:0,title:C.$t("绑定Telegram"),class:"mt-20 border-rounded-5"},{"header-extra":pe(()=>[ie(T,{type:"primary",round:"",disabled:_e(t).userInfo.telegram_id,onClick:S[7]||(S[7]=se=>(h.value=!0,p(),_e(t).getUserSubscribe()))},{default:pe(()=>[it(ue(_e(t).userInfo.telegram_id?C.$t("已绑定"):C.$t("立即开始")),1)]),_:1},8,["disabled"])]),_:1},8,["title"])):gt("",!0),(J=(K=_e(n))==null?void 0:K.appConfig)!=null&&J.telegram_discuss_link?(ge(),Ke(x,{key:1,title:C.$t("Telegram 讨论组"),class:"mt-20 border-rounded-5"},{"header-extra":pe(()=>[ie(T,{type:"primary",round:"",onClick:S[8]||(S[8]=se=>{var le,F;return m((F=(le=_e(n))==null?void 0:le.appConfig)==null?void 0:F.telegram_discuss_link)})},{default:pe(()=>[it(ue(C.$t("立即加入")),1)]),_:1})]),_:1},8,["title"])):gt("",!0),ie(x,{title:C.$t("重置订阅信息"),class:"mt-20 border-rounded-5"},{default:pe(()=>[ie(P,{type:"warning"},{default:pe(()=>[it(ue(C.$t("当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。")),1)]),_:1}),ie(T,{type:"error",size:"small",class:"mt-10",onClick:S[9]||(S[9]=se=>g.value=!0)},{default:pe(()=>[it(ue(C.$t("重置")),1)]),_:1})]),_:1},8,["title"]),ie(W,{title:C.$t("绑定Telegram"),preset:"card",show:h.value,"onUpdate:show":S[12]||(S[12]=se=>h.value=se),class:"mx-10 max-w-100% w-600 md:mx-auto",footerStyle:"padding: 10px 16px",segmented:{content:!0,footer:!0}},{footer:pe(()=>[q("div",dBe,[ie(T,{type:"primary",onClick:S[11]||(S[11]=se=>h.value=!1)},{default:pe(()=>[it(ue(C.$t("我知道了")),1)]),_:1})])]),default:pe(()=>{var se,le,F;return[f.value&&_e(t).subscribe?(ge(),Oe(st,{key:0},[q("div",null,[q("h2",iBe,ue(C.$t("第一步")),1),ie(I,{class:"m-0!"}),q("div",sBe,[it(ue(C.$t("打开Telegram搜索"))+" ",1),q("a",{href:"https://t.me/"+((se=f.value)==null?void 0:se.username)},"@"+ue((le=f.value)==null?void 0:le.username),9,aBe)])]),q("div",lBe,[q("h2",cBe,ue(C.$t("第二步")),1),ie(I,{class:"m-0!"}),q("div",uBe,ue(C.$t("向机器人发送你的")),1),q("code",{class:"cursor-pointer",onClick:S[10]||(S[10]=E=>{var A;return _e(vs)("/bind "+((A=_e(t).subscribe)==null?void 0:A.subscribe_url))})},"/bind "+ue((F=_e(t).subscribe)==null?void 0:F.subscribe_url),1)])],64)):(ge(),Ke(R,{key:1,size:"large"}))]}),_:1},8,["title","show"]),ie(W,{show:g.value,"onUpdate:show":S[13]||(S[13]=se=>g.value=se),preset:"dialog",title:C.$t("确定要重置订阅信息?"),content:C.$t("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。"),"positive-text":C.$t("确认"),"negative-text":C.$t("取消"),onPositiveClick:b},null,8,["show","title","content","positive-text","negative-text"])]}),_:1})}}}),hBe=Object.freeze(Object.defineProperty({__proto__:null,default:fBe},Symbol.toStringTag,{value:"Module"})),pBe={class:"flex justify-end"},mBe=be({__name:"index",setup(e){const t=h=>vn.global.t(h),n=[{label:t("低"),value:0},{label:t("中"),value:1},{label:t("高"),value:2}],o=[{title:t("主题"),key:"subject"},{title:t("工单级别"),key:"u",render(h){return n[h.level].label}},{title:t("工单状态"),key:"status",render(h){const p=v("div",{class:["h-6 w-6 rounded-full mr-5",h.status===1?"bg-green-500":h.reply_status===0?"bg-blue-500":"bg-red-500"]}),m=h.status===1?t("已关闭"):h.reply_status===0?t("已回复"):t("待回复");return v("div",{class:"flex items-center"},[p,m])}},{title:t("创建时间"),key:"created_at",render(h){return Uo(h.created_at)}},{title:t("最后回复时间"),key:"updated_at",render(h){return Uo(h.updated_at)}},{title:t("操作"),key:"actions",fixed:"right",render(h){const p=v(Lt,{text:!0,type:"primary",onClick:()=>Xt.push(`/ticket/${h.id}`)},{default:()=>t("查看")}),m=v(Lt,{text:!0,type:"primary",disabled:h.status===1,onClick:()=>c(h.id)},{default:()=>t("关闭")}),g=v(Ji,{vertical:!0});return v("div",[p,g,m])}}],r=H(!1),i=H(""),s=H(),a=H("");async function l(){const{data:h}=await nQ(i.value,s.value,a.value);h===!0&&(window.$message.success(t("创建成功")),f(),r.value=!1)}async function c(h){const{data:p}=await oQ(h);p&&(window.$message.success(t("关闭成功")),f())}const u=H([]);async function d(){const{data:h}=await tQ();u.value=h}function f(){d()}return mn(()=>{f()}),(h,p)=>{const m=ur,g=zu,b=Qi,w=Co,C=ni,S=Bu,_=wo;return ge(),Ke(_,null,{default:pe(()=>[ie(C,{show:r.value,"onUpdate:show":p[6]||(p[6]=x=>r.value=x)},{default:pe(()=>[ie(w,{title:h.$t("新的工单"),class:"mx-10 max-w-100% w-600 md:mx-auto",segmented:{content:!0,footer:!0},closable:"",onClose:p[5]||(p[5]=x=>r.value=!1)},{footer:pe(()=>[q("div",pBe,[ie(b,null,{default:pe(()=>[ie(_e(Lt),{onClick:p[3]||(p[3]=x=>r.value=!1)},{default:pe(()=>[it(ue(h.$t("取消")),1)]),_:1}),ie(_e(Lt),{type:"primary",onClick:p[4]||(p[4]=x=>l())},{default:pe(()=>[it(ue(h.$t("确认")),1)]),_:1})]),_:1})])]),default:pe(()=>[q("div",null,[q("label",null,ue(h.$t("主题")),1),ie(m,{value:i.value,"onUpdate:value":p[0]||(p[0]=x=>i.value=x),class:"mt-5",placeholder:h.$t("请输入工单主题")},null,8,["value","placeholder"])]),q("div",null,[q("label",null,ue(h.$t("工单级别")),1),ie(g,{value:s.value,"onUpdate:value":p[1]||(p[1]=x=>s.value=x),options:n,placeholder:h.$t("请选项工单等级"),class:"mt-5"},null,8,["value","placeholder"])]),q("div",null,[q("label",null,ue(h.$t("消息")),1),ie(m,{value:a.value,"onUpdate:value":p[2]||(p[2]=x=>a.value=x),type:"textarea",placeholder:h.$t("请描述你遇到的问题"),round:"",class:"mt-5"},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),ie(w,{class:"border-rounded-5",title:h.$t("工单历史")},{"header-extra":pe(()=>[ie(_e(Lt),{type:"primary",round:"",onClick:p[7]||(p[7]=x=>r.value=!0)},{default:pe(()=>[it(ue(h.$t("新的工单")),1)]),_:1})]),default:pe(()=>[ie(S,{columns:o,data:u.value,"scroll-x":800},null,8,["data"])]),_:1},8,["title"])]),_:1})}}}),gBe=Object.freeze(Object.defineProperty({__proto__:null,default:mBe},Symbol.toStringTag,{value:"Module"})),vBe={class:"relative",style:{height:"calc(100% - 70px)"}},bBe={class:"mb-8 mt-8 text-14 text-gray"},yBe={class:"mb-8 inline-block border-rounded-5 bg-#f8f9fa pb-8 pl-16 pr-16 pt-8"},xBe=be({__name:"detail",setup(e){const t=Ds(),n=h=>vn.global.t(h),o=H("");async function r(){const{data:h}=await iQ(i.value,o.value);h===!0&&(window.$message.success(n("回复成功")),o.value="",f())}const i=H(),s=H();async function a(){const{data:h}=await rQ(i.value);h&&(s.value=h)}const l=H(null),c=H(null),u=async()=>{const h=l.value,p=c.value;h&&p&&h.scrollBy({top:p.scrollHeight,behavior:"auto"})},d=H();async function f(){await a(),await Vt(),u(),d.value=setInterval(a,2e3)}return mn(()=>{i.value=t.params.ticket_id,f()}),(h,p)=>{const m=kZ,g=ur,b=Lt,w=vm,C=Co,S=wo;return ge(),Ke(S,null,{default:pe(()=>{var _;return[ie(C,{title:(_=s.value)==null?void 0:_.subject,class:"h-full overflow-hidden"},{default:pe(()=>[q("div",vBe,[ie(m,{class:"absolute right-0 h-full",ref_key:"scrollbarRef",ref:l},{default:pe(()=>{var x;return[q("div",{ref_key:"scrollContainerRef",ref:c},[(ge(!0),Oe(st,null,Wn((x=s.value)==null?void 0:x.message,y=>(ge(),Oe("div",{key:y.id,class:ho([y.is_me?"text-right":"text-left"])},[q("div",bBe,ue(_e(Uo)(y.created_at)),1),q("div",yBe,ue(y.message),1)],2))),128))],512)]}),_:1},512)]),ie(w,{size:"large",class:"mt-30"},{default:pe(()=>[ie(g,{type:"text",size:"large",placeholder:h.$t("输入内容回复工单"),autofocus:!0,value:o.value,"onUpdate:value":p[0]||(p[0]=x=>o.value=x),onKeyup:p[1]||(p[1]=Sa(x=>r(),["enter"]))},null,8,["placeholder","value"]),ie(b,{type:"primary",size:"large",onClick:p[2]||(p[2]=x=>r())},{default:pe(()=>[it(ue(h.$t("回复")),1)]),_:1})]),_:1})]),_:1},8,["title"])]}),_:1})}}}),CBe=Object.freeze(Object.defineProperty({__proto__:null,default:xBe},Symbol.toStringTag,{value:"Module"})),wBe=be({__name:"index",setup(e){const t=i=>vn.global.t(i),n=[{title:t("记录时间"),key:"record_at",render(i){return Ip(i.record_at)}},{title:t("实际上行"),key:"u",render(i){return Ra(i.u)}},{title:t("实际下行"),key:"d",render(i){return Ra(i.d)}},{title:t("扣费倍率"),key:"server_rate",render(i){return v(Ti,{size:"small",round:!0},{default:()=>i.server_rate+" x"})}},{title(){const i=v(Lu,{placement:"bottom",trigger:"hover"},{trigger:()=>v(ol("mdi-help-circle-outline",{size:16})),default:()=>t("公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量")});return v("div",{class:"flex items-center"},[t("总计"),i])},key:"total",fixed:"right",render(i){return Ra((i.d+i.u)*parseFloat(i.server_rate))}}],o=H([]);async function r(){const{data:i}=await XJ();o.value=i}return mn(()=>{r()}),(i,s)=>{const a=ml,l=Bu,c=Co,u=wo;return ge(),Ke(u,null,{default:pe(()=>[ie(c,{class:"border-rounded-5"},{default:pe(()=>[ie(a,{type:"info",bordered:!1,class:"mb-20"},{default:pe(()=>[it(ue(i.$t("流量明细仅保留近月数据以供查询。")),1)]),_:1}),ie(l,{columns:n,data:o.value,"scroll-x":600},null,8,["data"])]),_:1})]),_:1})}}}),_Be=Object.freeze(Object.defineProperty({__proto__:null,default:wBe},Symbol.toStringTag,{value:"Module"})),SBe={name:"NOTFOUND"},kBe={"h-full":"",flex:""};function PBe(e,t,n,o,r,i){const s=Lt,a=wZ;return ge(),Oe("div",kBe,[ie(a,{"m-auto":"",status:"404",title:"404 Not Found",description:""},{footer:pe(()=>[ie(s,null,{default:pe(()=>[it("Find some fun")]),_:1})]),_:1})])}const TBe=Uu(SBe,[["render",PBe]]),RBe=Object.freeze(Object.defineProperty({__proto__:null,default:TBe},Symbol.toStringTag,{value:"Module"})),EBe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},$Be=q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[q("path",{d:"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2S2 6.477 2 12"}),q("path",{d:"M13 2.05S16 6 16 12s-3 9.95-3 9.95m-2 0S8 18 8 12s3-9.95 3-9.95M2.63 15.5h18.74m-18.74-7h18.74"})],-1),ABe=[$Be];function IBe(e,t){return ge(),Oe("svg",EBe,[...ABe])}const MBe={name:"iconoir-language",render:IBe},OBe={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},zBe=q("path",{fill:"currentColor",d:"M26 30H14a2 2 0 0 1-2-2v-3h2v3h12V4H14v3h-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2"},null,-1),DBe=q("path",{fill:"currentColor",d:"M14.59 20.59L18.17 17H4v-2h14.17l-3.58-3.59L16 10l6 6l-6 6z"},null,-1),LBe=[zBe,DBe];function FBe(e,t){return ge(),Oe("svg",OBe,[...LBe])}const BBe={name:"carbon-login",render:FBe},NBe=be({__name:"vueRecaptcha",props:{sitekey:{type:String,required:!0},size:{type:String,required:!1,default:"normal"},theme:{type:String,required:!1,default:"light"},hl:{type:String,required:!1},loadingTimeout:{type:Number,required:!1,default:0}},emits:{verify:e=>e!=null&&e!="",error:e=>e,expire:null,fail:null},setup(e,{expose:t,emit:n}){const o=e,r=H(null);let i=null;t({execute:function(){window.grecaptcha.execute(i)},reset:function(){window.grecaptcha.reset(i)}});function s(){i=window.grecaptcha.render(r.value,{sitekey:o.sitekey,theme:o.theme,size:o.size,callback:a=>n("verify",a),"expired-callback":()=>n("expire"),"error-callback":()=>n("fail")})}return Wt(()=>{window.grecaptcha==null?new Promise((a,l)=>{let c,u=!1;window.recaptchaReady=function(){u||(u=!0,clearTimeout(c),a())};const d="recaptcha-script",f=m=>()=>{var g;u||(u=!0,clearTimeout(c),(g=document.getElementById(d))==null||g.remove(),l(m))};o.loadingTimeout>0&&(c=setTimeout(f("timeout"),o.loadingTimeout));const h=window.document,p=h.createElement("script");p.id=d,p.onerror=f("error"),p.onabort=f("aborted"),p.setAttribute("src",`https://www.recaptcha.net/recaptcha/api.js?onload=recaptchaReady&render=explicit&hl=${o.hl}&_=${+new Date}`),h.head.appendChild(p)}).then(()=>{s()}).catch(a=>{n("error",a)}):s()}),(a,l)=>(ge(),Oe("div",{ref_key:"recaptchaDiv",ref:r},null,512))}}),HBe=e=>kt({url:"/passport/auth/login",method:"post",data:e}),jBe=e=>kt.get("/passport/auth/token2Login?verify="+encodeURIComponent(e.verify)+"&redirect="+encodeURIComponent(e.redirect)),VBe=e=>kt({url:"/passport/auth/register",method:"post",data:e});function WBe(){return kt.get("/guest/comm/config")}function UBe(e,t){return kt.post("/passport/comm/sendEmailVerify",{email:e,recaptcha_data:t})}function qBe(e,t,n){return kt.post("/passport/auth/forget",{email:e,password:t,email_code:n})}const KBe={class:"p-24"},GBe={key:0,class:"text-center"},YBe=["src"],XBe={key:1,class:"m-1 text-center text-36 font-normal",color:"#343a40"},ZBe={class:"text-muted mb-3 text-center text-14 font-400",color:"#6c757d"},JBe={class:"mt-20 w-full"},QBe={class:"mt-20 w-full"},eNe={class:"mt-20 w-full"},tNe={class:"mt-20 w-full"},nNe={class:"mt-20 w-full"},oNe={class:"mt-20 w-full"},rNe=["innerHTML"],iNe={class:"mt-20 w-full"},sNe={class:"flex justify-between bg-[--n-color-embedded] p-x-24 p-y-16 text-#6c757d"},aNe=be({__name:"login",setup(e){const t=An(),n=Ox(),o=Ds(),r=k=>vn.global.t(k),i=ro({email:"",email_code:"",password:"",confirm_password:"",confirm:"",invite_code:"",lock_invite_code:!1,suffix:""}),s=H(!0),a=D(()=>{var P;const k=(P=C.value)==null?void 0:P.tos_url;return"
"+vn.global.tc('我已阅读并同意 服务条款',{url:k})+"
"}),l=H(),c=H(),u=H(!1),d=H();function f(k){l.value=k,setTimeout(()=>{u.value=!1,c.value&&c.value.reset,d.value==="register"?(x(),d.value=""):d.value==="sendEmailVerify"&&(w(),d.value="")},500)}function h(){c.value&&c.value.reset()}function p(){c.value&&c.value.reset()}function m(){c.value&&c.value.reset&&c.value.reset()}const g=H(!1),b=H(0);async function w(){var I,R;if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}if(g.value=!0,b.value>0){window.$message.warning(vn.global.tc("{second}秒后可重新发送",{second:b.value}));return}if((I=C.value)!=null&&I.is_recaptcha&&((R=C.value)!=null&&R.recaptcha_site_key)&&!l.value){u.value=!0,g.value=!1,d.value="sendEmailVerify";return}const k=i.suffix?`${i.email}${i.suffix}`:i.email,{data:P}=await UBe(k,l.value);if(P===!0){window.$message.success(r("发送成功")),b.value=60;const W=setInterval(()=>{b.value--,b.value===0&&clearInterval(W)},1e3);l.value=""}g.value=!1}const C=H();async function S(){var P,I;const{data:k}=await WBe();k&&(C.value=k,eb(k.email_whitelist_suffix)&&(i.suffix=(P=k.email_whitelist_suffix)!=null&&P[0]?"@"+((I=k.email_whitelist_suffix)==null?void 0:I[0]):""),k.tos_url&&(s.value=!1))}const _=H(!1);async function x(){var W,O,M;const{email:k,password:P,confirm_password:I,email_code:R}=i;switch(y.value){case"login":{if(!k||!P){window.$message.warning(r("请输入用户名和密码"));return}_.value=!0;const{data:z}=await HBe({email:k,password:P.toString()});_.value=!1,z!=null&&z.auth_data&&(window.$message.success(r("登录成功")),cf(z==null?void 0:z.auth_data),n.push(((W=o.query.redirect)==null?void 0:W.toString())??"/dashboard"));break}case"register":{if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}const{password:z,confirm_password:K,invite_code:J,email_code:se}=i,le=i.suffix?`${i.email}${i.suffix}`:i.email;if(!le||!z){window.$message.warning(r("请输入账号密码"));return}if(z!==K){window.$message.warning(r("请确保两次密码输入一致"));return}if((O=C.value)!=null&&O.is_recaptcha&&((M=C.value)!=null&&M.recaptcha_site_key)&&!l.value){l.value||(u.value=!0),d.value="register";return}_.value=!0;const{data:F}=await VBe({email:le,password:z,invite_code:J,email_code:se,recaptcha_data:l.value});_.value=!1,F!=null&&F.auth_data&&(window.$message.success(r("注册成功")),cf(F.auth_data),n.push("/")),l.value="";break}case"forgetpassword":{if(k===""){window.$message.error(r("请输入邮箱地址"));return}if(!k||!P){window.$message.warning(r("请输入账号密码"));return}if(P!==I){window.$message.warning(r("请确保两次密码输入一致"));return}_.value=!0;const z=i.suffix?`${i.email}${i.suffix}`:i.email,{data:K}=await qBe(z,P,R);_.value=!1,K&&(window.$message.success(r("重置密码成功,正在返回登录")),setTimeout(()=>{n.push("/login")},500))}}}const y=D(()=>{const k=o.path;return k.includes("login")?"login":k.includes("register")?"register":k.includes("forgetpassword")?"forgetpassword":""}),T=async()=>{["register","forgetpassword"].includes(y.value)&&S(),o.query.code&&(i.lock_invite_code=!0,i.invite_code=o.query.code);const{verify:k,redirect:P}=o.query;if(k&&P){const{data:I}=await jBe({verify:k,redirect:P});I!=null&&I.auth_data&&(window.$message.success(r("登录成功")),cf(I==null?void 0:I.auth_data),n.push(P.toString()))}};return Jt(()=>{T()}),(k,P)=>{const I=ni,R=ur,W=zu,O=vm,M=Lt,z=gl,K=BBe,J=Jc("router-link"),se=Ji,le=MBe,F=wm,E=Co;return ge(),Oe(st,null,[ie(I,{show:u.value,"onUpdate:show":P[0]||(P[0]=A=>u.value=A)},{default:pe(()=>{var A,Y,ne;return[(A=C.value)!=null&&A.is_recaptcha&&((Y=C.value)!=null&&Y.recaptcha_site_key)?(ge(),Ke(_e(NBe),{key:0,sitekey:(ne=C.value)==null?void 0:ne.recaptcha_site_key,size:"normal",theme:"light","loading-timeout":3e4,onVerify:f,onExpire:h,onFail:p,onError:m,ref_key:"vueRecaptchaRef",ref:c},null,8,["sitekey"])):gt("",!0)]}),_:1},8,["show"]),q("div",{class:"wh-full flex items-center justify-center",style:Li(_e(t).background_url&&`background:url(${_e(t).background_url}) no-repeat center center / cover;`)},[ie(E,{class:"m-auto max-w-450 rounded-5 bg-[--n-color] shadow-black","content-style":"padding: 0;"},{default:pe(()=>{var A,Y,ne;return[q("div",KBe,[_e(t).logo?(ge(),Oe("div",GBe,[q("img",{src:_e(t).logo,class:"mb-1em max-w-100%"},null,8,YBe)])):(ge(),Oe("h1",XBe,ue(_e(t).title),1)),q("h5",ZBe,ue(_e(t).description||" "),1),q("div",JBe,[ie(O,null,{default:pe(()=>{var fe,Q,Ce;return[ie(R,{value:i.email,"onUpdate:value":P[1]||(P[1]=j=>i.email=j),autofocus:"",placeholder:k.$t("邮箱"),maxlength:40},null,8,["value","placeholder"]),["register","forgetpassword"].includes(y.value)&&_e(eb)((fe=C.value)==null?void 0:fe.email_whitelist_suffix)?(ge(),Ke(W,{key:0,value:i.suffix,"onUpdate:value":P[2]||(P[2]=j=>i.suffix=j),options:((Ce=(Q=C.value)==null?void 0:Q.email_whitelist_suffix)==null?void 0:Ce.map(j=>({value:`@${j}`,label:`@${j}`})))||[],class:"flex-[1]","consistent-menu-width":!1},null,8,["value","options"])):gt("",!0)]}),_:1})]),hn(q("div",QBe,[ie(O,{class:"flex"},{default:pe(()=>[ie(R,{value:i.email_code,"onUpdate:value":P[3]||(P[3]=fe=>i.email_code=fe),placeholder:k.$t("邮箱验证码")},null,8,["value","placeholder"]),ie(M,{type:"primary",onClick:P[4]||(P[4]=fe=>w()),loading:g.value,disabled:g.value||b.value>0},{default:pe(()=>[it(ue(b.value||k.$t("发送")),1)]),_:1},8,["loading","disabled"])]),_:1})],512),[[Nn,["register"].includes(y.value)&&((A=C.value)==null?void 0:A.is_email_verify)||["forgetpassword"].includes(y.value)]]),q("div",eNe,[ie(R,{value:i.password,"onUpdate:value":P[5]||(P[5]=fe=>i.password=fe),class:"",type:"password","show-password-on":"click",placeholder:k.$t("密码"),maxlength:40,onKeydown:P[6]||(P[6]=Sa(fe=>["login"].includes(y.value)&&x(),["enter"]))},null,8,["value","placeholder"])]),hn(q("div",tNe,[ie(R,{value:i.confirm_password,"onUpdate:value":P[7]||(P[7]=fe=>i.confirm_password=fe),type:"password","show-password-on":"click",placeholder:k.$t("再次输入密码"),maxlength:40,onKeydown:P[8]||(P[8]=Sa(fe=>["forgetpassword"].includes(y.value)&&x(),["enter"]))},null,8,["value","placeholder"])],512),[[Nn,["register","forgetpassword"].includes(y.value)]]),hn(q("div",nNe,[ie(R,{value:i.invite_code,"onUpdate:value":P[9]||(P[9]=fe=>i.invite_code=fe),placeholder:[k.$t("邀请码"),(Y=C.value)!=null&&Y.is_invite_force?`(${k.$t("必填")})`:`(${k.$t("选填")})`],maxlength:20,disabled:i.lock_invite_code,onKeydown:P[10]||(P[10]=Sa(fe=>x(),["enter"]))},null,8,["value","placeholder","disabled"])],512),[[Nn,["register"].includes(y.value)]]),hn(q("div",oNe,[ie(z,{checked:s.value,"onUpdate:checked":P[11]||(P[11]=fe=>s.value=fe),class:"text-bold text-16"},{default:pe(()=>[q("div",{innerHTML:a.value},null,8,rNe)]),_:1},8,["checked"])],512),[[Nn,["register"].includes(y.value)&&((ne=C.value)==null?void 0:ne.tos_url)]]),q("div",iNe,[ie(M,{class:"h-36 w-full rounded-5 text-16",type:"primary","icon-placement":"left",onClick:P[12]||(P[12]=fe=>x()),loading:_.value,disabled:_.value||!s.value&&["register"].includes(y.value)},{icon:pe(()=>[ie(K)]),default:pe(()=>[it(" "+ue(["login"].includes(y.value)?k.$t("登入"):["register"].includes(y.value)?k.$t("注册"):k.$t("重置密码")),1)]),_:1},8,["loading","disabled"])])]),q("div",sNe,[q("div",null,[["login"].includes(y.value)?(ge(),Oe(st,{key:0},[ie(J,{to:"/register",class:"text-#6c757d"},{default:pe(()=>[it(ue(k.$t("注册")),1)]),_:1}),ie(se,{vertical:""}),ie(J,{to:"/forgetpassword",class:"text-#6c757d"},{default:pe(()=>[it(ue(k.$t("忘记密码")),1)]),_:1})],64)):(ge(),Ke(J,{key:1,to:"/login",class:"text-#6c757d"},{default:pe(()=>[it(ue(k.$t("返回登入")),1)]),_:1}))]),q("div",null,[ie(F,{value:_e(t).lang,"onUpdate:value":P[13]||(P[13]=fe=>_e(t).lang=fe),options:Object.entries(_e(ih)).map(([fe,Q])=>({label:Q,value:fe})),trigger:"click","on-update:value":_e(t).switchLang},{default:pe(()=>[ie(M,{text:"","icon-placement":"left"},{icon:pe(()=>[ie(le)]),default:pe(()=>[it(" "+ue(_e(ih)[_e(t).lang]),1)]),_:1})]),_:1},8,["value","options","on-update:value"])])])]}),_:1})],4)],64)}}}),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:aNe},Symbol.toStringTag,{value:"Module"})),lNe={请求失败:"Request failed",月付:"Monthly",季付:"Quarterly",半年付:"Semi-Annually",年付:"Annually",两年付:"Biennially",三年付:"Triennially",一次性:"One Time",重置流量包:"Data Reset Package",待支付:"Pending Payment",开通中:"Pending Active",已取消:"Canceled",已完成:"Completed",已折抵:"Converted",待确认:"Pending",发放中:"Confirming",已发放:"Completed",无效:"Invalid",个人中心:"User Center",登出:"Logout",搜索:"Search",仪表盘:"Dashboard",订阅:"Subscription",我的订阅:"My Subscription",购买订阅:"Purchase Subscription",财务:"Billing",我的订单:"My Orders",我的邀请:"My Invitation",用户:"Account",我的工单:"My Tickets",流量明细:"Transfer Data Details",使用文档:"Knowledge Base",绑定Telegram获取更多服务:"Not link to Telegram yet",点击这里进行绑定:"Please click here to link to Telegram",公告:"Announcements",总览:"Overview",该订阅长期有效:"The subscription is valid for an unlimited time",已过期:"Expired","已用 {used} / 总计 {total}":"{used} Used / Total {total}",查看订阅:"View Subscription",邮箱:"Email",邮箱验证码:"Email verification code",发送:"Send",重置密码:"Reset Password",返回登入:"Back to Login",邀请码:"Invitation Code",复制链接:"Copy Link",完成时间:"Complete Time",佣金:"Commission",已注册用户数:"Registered users",佣金比例:"Commission rate",确认中的佣金:"Pending commission","佣金将会在确认后会到达你的佣金账户。":"The commission will reach your commission account after review.",邀请码管理:"Invitation Code Management",生成邀请码:"Generate invitation code",佣金发放记录:"Commission Income Record",复制成功:"Copied successfully",密码:"Password",登入:"Login",注册:"Register",忘记密码:"Forgot password","# 订单号":"Order Number #",周期:"Type / Cycle",订单金额:"Order Amount",订单状态:"Order Status",创建时间:"Creation Time",操作:"Action",查看详情:"View Details",请选择支付方式:"Please select a payment method",请检查信用卡支付信息:"Please check credit card payment information",订单详情:"Order Details",折扣:"Discount",折抵:"Converted",退款:"Refund",支付方式:"Payment Method",填写信用卡支付信息:"Please fill in credit card payment information","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"We will not collect your credit card information, credit card number and other details only use to verify the current transaction.",订单总额:"Order Total",总计:"Total",结账:"Checkout",等待支付中:"Waiting for payment","订单系统正在进行处理,请稍等1-3分钟。":"Order system is being processed, please wait 1 to 3 minutes.","订单由于超时支付已被取消。":"The order has been canceled due to overtime payment.","订单已支付并开通。":"The order has been paid and the service is activated.",选择订阅:"Select a Subscription",立即订阅:"Subscribe now",配置订阅:"Configure Subscription",付款周期:"Payment Cycle","有优惠券?":"Have coupons?",验证:"Verify",下单:"Order","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Attention please, change subscription will overwrite your current subscription.",该订阅无法续费:"This subscription cannot be renewed",选择其他订阅:"Choose another subscription",我的钱包:"My Wallet","账户余额(仅消费)":"Account Balance (For billing only)","推广佣金(可提现)":"Invitation Commission (Can be used to withdraw)",钱包组成部分:"Wallet Details",划转:"Transfer",推广佣金提现:"Invitation Commission Withdrawal",修改密码:"Change Password",保存:"Save",旧密码:"Old Password",新密码:"New Password",请输入旧密码:"Please enter the old password",请输入新密码:"Please enter the new password",通知:"Notification",到期邮件提醒:"Subscription expiration email reminder",流量邮件提醒:"Insufficient transfer data email alert",绑定Telegram:"Link to Telegram",立即开始:"Start Now",重置订阅信息:"Reset Subscription",重置:"Reset","确定要重置订阅信息?":"Do you want to reset subscription?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"In case of your account information or subscription leak, this option is for reset. After resetting your UUID and subscription will change, you need to re-subscribe.",重置成功:"Reset successfully",两次新密码输入不同:"Two new passwords entered do not match",两次密码输入不同:"The passwords entered do not match","邀请码(选填)":"Invitation code (Optional)",'我已阅读并同意 服务条款':'I have read and agree to the terms of service',请同意服务条款:"Please agree to the terms of service",名称:"Name",标签:"Tags",状态:"Status",节点五分钟内节点在线情况:"Access Point online status in the last 5 minutes",倍率:"Rate",使用的流量将乘以倍率进行扣除:"The transfer data usage will be multiplied by the transfer data rate deducted.",更多操作:"Action","没有可用节点,如果您未订阅或已过期请":"No access points are available. If you have not subscribed or the subscription has expired, please","确定重置当前已用流量?":"Are you sure to reset your current data usage?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'Click "Confirm" and you will be redirected to the payment page. The system will empty your current month"s usage after your purchase.',确定:"Confirm",低:"Low",中:"Medium",高:"High",主题:"Subject",工单级别:"Ticket Priority",工单状态:"Ticket Status",最后回复:"Last Reply",已关闭:"Closed",待回复:"Pending Reply",已回复:"Replied",查看:"View",关闭:"Cancel",新的工单:"My Tickets",确认:"Confirm",请输入工单主题:"Please enter a subject",工单等级:"Ticket Priority",请选择工单等级:"Please select the ticket priority",消息:"Message",请描述你遇到的问题:"Please describe the problem you encountered",记录时间:"Record Time",实际上行:"Actual Upload",实际下行:"Actual Download",合计:"Total","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Formula: (Actual Upload + Actual Download) x Deduction Rate = Deduct Transfer Data",复制订阅地址:"Copy Subscription URL",导入到:"Export to",一键订阅:"Quick Subscription",复制订阅:"Copy Subscription URL",推广佣金划转至余额:"Transfer Invitation Commission to Account Balance","划转后的余额仅用于{title}消费使用":"The transferred balance will be used for {title} payments only",当前推广佣金余额:"Current invitation balance",划转金额:"Transfer amount",请输入需要划转到余额的金额:"Please enter the amount to be transferred to the balance","输入内容回复工单...":"Please enter to reply to the ticket...",申请提现:"Apply For Withdrawal",取消:"Cancel",提现方式:"Withdrawal Method",请选择提现方式:"Please select a withdrawal method",提现账号:"Withdrawal Account",请输入提现账号:"Please enter the withdrawal account",我知道了:"I got it",第一步:"First Step",第二步:"Second Step",打开Telegram搜索:"Open Telegram and Search ",向机器人发送你的:"Send the following command to bot","最后更新: {date}":"Last Updated: {date}",还有没支付的订单:"There are still unpaid orders",立即支付:"Pay Now",条工单正在处理中:"tickets are in process",立即查看:"View Now",节点状态:"Access Point Status",商品信息:"Product Information",产品名称:"Product Name","类型/周期":"Type / Cycle",产品流量:"Product Transfer Data",订单信息:"Order Details",关闭订单:"Close order",订单号:"Order Number",优惠金额:"Discount amount",旧订阅折抵金额:"Old subscription converted amount",退款金额:"Refunded amount",余额支付:"Balance payment",工单历史:"Ticket History","已用流量将在 {reset_day} 日后重置":"Used data will reset after {reset_day} days",已用流量已在今日重置:"Data usage has been reset today",重置已用流量:"Reset used data",查看节点状态:"View Access Point status","当前已使用流量达{rate}%":"Currently used data up to {rate}%",节点名称:"Access Point Name","于 {date} 到期,距离到期还有 {day} 天。":"Will expire on {date}, {day} days before expiration.","Telegram 讨论组":"Telegram Discussion Group",立即加入:"Join Now","该订阅无法续费,仅允许新用户购买":"This subscription cannot be renewed and is only available to new users.",重置当月流量:"Reset current month usage","流量明细仅保留近月数据以供查询。":'Only keep the most recent month"s usage for checking the transfer data details.',扣费倍率:"Fee deduction rate",支付手续费:"Payment fee",续费订阅:"Renewal Subscription",学习如何使用:"Learn how to use",快速将节点导入对应客户端进行使用:"Quickly export subscription into the client app",对您当前的订阅进行续费:"Renew your current subscription",对您当前的订阅进行购买:"Purchase your current subscription",捷径:"Shortcut","不会使用,查看使用教程":"I am a newbie, view the tutorial",使用支持扫码的客户端进行订阅:"Use a client app that supports scanning QR code to subscribe",扫描二维码订阅:"Scan QR code to subscribe",续费:"Renewal",购买:"Purchase",查看教程:"View Tutorial",注意:"Attention","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"You still have an unpaid order. You need to cancel it before purchasing. Are you sure you want to cancel the previous order?",确定取消:"Confirm Cancel",返回我的订单:"Back to My Order","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"If you have already paid, canceling the order may cause the payment to fail. Are you sure you want to cancel the order?",选择最适合你的计划:"Choose the right plan for you",全部:"All",按周期:"By Cycle",遇到问题:"I have a problem",遇到问题可以通过工单与我们沟通:"If you have any problems, you can contact us via ticket",按流量:"Pay As You Go",搜索文档:"Search Documents",技术支持:"Technical Support",当前剩余佣金:"Current commission remaining",三级分销比例:"Three-level Distribution Ratio",累计获得佣金:"Cumulative commission earned","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"The users you invite to re-invite users will be divided according to the order amount multiplied by the distribution level.",发放时间:"Commission Time","{number} 人":"{number} people","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"If your subscription address or account is leaked and misused by others, you can reset your subscription information here to prevent unnecessary losses.",再次输入密码:"Enter password again",返回登陆:"Return to Login",选填:"Optional",必填:"Required",最后回复时间:"Last Reply Time",请选项工单等级:"Please Select Ticket Priority",回复:"Reply",输入内容回复工单:"Enter Content to Reply to Ticket",已生成:"Generated",选择协议:"Select Protocol",自动:"Automatic",流量重置包:"Data Reset Package",复制失败:"Copy failed",提示:"Notification","确认退出?":"Confirm Logout?",已退出登录:"Logged out successfully",请输入邮箱地址:"Enter email address","{second}秒后可重新发送":"Resend available in {second} seconds",发送成功:"Sent successfully",请输入账号密码:"Enter account and password",请确保两次密码输入一致:"Ensure password entries match",注册成功:"Registration successful","重置密码成功,正在返回登录":"Password reset successful, returning to login",确认取消:"Confirm Cancel","请注意,变更订阅会导致当前订阅被覆盖。":"Please note that changing the subscription will overwrite the current subscription.","订单提交成功,正在跳转支付":"Order submitted successfully, redirecting to payment.",回复成功:"Reply Successful",工单详情:"Ticket Details",登录成功:"Login Successful","确定退出?":"Are you sure you want to exit?",支付成功:"Payment Successful",正在前往收银台:"Proceeding to Checkout",请输入正确的划转金额:"Please enter the correct transfer amount",划转成功:"Transfer Successful",提现方式不能为空:"Withdrawal method cannot be empty",提现账号不能为空:"Withdrawal account cannot be empty",已绑定:"Already Bound",创建成功:"Creation successful",关闭成功:"Shutdown successful"},Lk=Object.freeze(Object.defineProperty({__proto__:null,default:lNe},Symbol.toStringTag,{value:"Module"})),cNe={请求失败:"درخواست انجام نشد",月付:"ماهانه",季付:"سه ماهه",半年付:"نیم سال",年付:"سالانه",两年付:"دو سال",三年付:"سه سال",一次性:"یک‌باره",重置流量包:"بازنشانی بسته های داده",待支付:"در انتظار پرداخت",开通中:"ایجاید",已取消:"صرف نظر شد",已完成:"به پایان رسید",已折抵:"تخفیف داده شده است",待确认:"در حال بررسی",发放中:"صدور",已发放:"صادر شده",无效:"نامعتبر",个人中心:"پروفایل",登出:"خروج",搜索:"جستجو",仪表盘:"داشبرد",订阅:"اشتراک",我的订阅:"اشتراک من",购买订阅:"خرید اشتراک",财务:"امور مالی",我的订单:"درخواست های من",我的邀请:"دعوتنامه های من",用户:"کاربر",我的工单:"درخواست های من",流量明细:"جزئیات\\nعبورو مرور در\\nمحیط آموزشی",使用文档:"کار با مستندات",绑定Telegram获取更多服务:"برای خدمات بیشتر تلگرام را ببندید",点击这里进行绑定:"برای اتصال اینجا را کلیک کنید",公告:"هشدارها",总览:"بررسی کلی",该订阅长期有效:"این اشتراک برای مدت طولانی معتبر است",已过期:"منقضی شده","已用 {used} / 总计 {total}":"استفاده شده {used} / مجموع {total}",查看订阅:"مشاهده عضویت ها",邮箱:"ایمیل",邮箱验证码:"کد تایید ایمیل شما",发送:"ارسال",重置密码:"بازنشانی رمز عبور",返回登入:"بازگشت به صفحه ورود",邀请码:"کد دعوت شما",复制链接:"کپی‌کردن لینک",完成时间:"زمان پایان",佣金:"کمیسیون",已注册用户数:"تعداد کاربران ثبت نام شده",佣金比例:"نرخ کمیسیون",确认中的佣金:"کمیسیون تایید شده","佣金将会在确认后会到达你的佣金账户。":"کمیسیون پس از تایید به حساب کمیسیون شما واریز خواهد شد",邀请码管理:"مدیریت کد دعوت",生成邀请码:"یک کد دعوت ایجاد کنید",佣金发放记录:"سابقه پرداخت کمیسیون",复制成功:"آدرس URL با موفقیت کپی شد",密码:"رمز عبور",登入:"ورود",注册:"ثبت‌نام",忘记密码:"رمز عبور فراموش شده","# 订单号":"# شماره سفارش",周期:"چرخه",订单金额:"مقدار سفارش",订单状态:"وضعیت سفارش",创建时间:"ساختن",操作:"عملیات",查看详情:"مشاهده جزئیات",请选择支付方式:"لطفا نوع پرداخت را انتخاب کنید",请检查信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید",订单详情:"اطلاعات سفارش",折扣:"ذخیره",折抵:"折抵",退款:"بازگشت هزینه",支付方式:"روش پرداخت",填写信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"اطلاعات کارت اعتباری شما فقط برای بدهی فعلی استفاده می شود، سیستم آن را ذخیره نمی کند، که ما فکر می کنیم امن ترین است.",订单总额:"مجموع سفارش",总计:"مجموع",结账:"پرداخت",等待支付中:"در انتظار پرداخت","订单系统正在进行处理,请稍等1-3分钟。":"سیستم سفارش در حال پردازش است، لطفا 1-3 دقیقه صبر کنید.","订单由于超时支付已被取消。":"سفارش به دلیل پرداخت اضافه کاری لغو شده است","订单已支付并开通。":"سفارش پرداخت و باز شد.",选择订阅:"انتخاب اشتراک",立即订阅:"همین حالا مشترک شوید",配置订阅:"پیکربندی اشتراک",付款周期:"چرخه پرداخت","有优惠券?":"یک کوپن دارید؟",验证:"تأیید",下单:"ایجاد سفارش","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"لطفاً توجه داشته باشید، تغییر یک اشتراک باعث می‌شود که اشتراک فعلی توسط اشتراک جدید بازنویسی شود.",该订阅无法续费:"این اشتراک قابل تمدید نیست",选择其他订阅:"اشتراک دیگری را انتخاب کنید",我的钱包:"کیف پول من","账户余额(仅消费)":"موجودی حساب (فقط خرج کردن)","推广佣金(可提现)":"کمیسیون ارتقاء (قابل برداشت)",钱包组成部分:"اجزای کیف پول",划转:"منتقل کردن",推广佣金提现:"انصراف کمیسیون ارتقاء",修改密码:"تغییر کلمه عبور",保存:"ذخیره کردن",旧密码:"گذرواژه قدیمی",新密码:"رمز عبور جدید",请输入旧密码:", رمز عبور مورد نیاز است",请输入新密码:"گذاشتن گذرواژه",通知:"اعلانات",到期邮件提醒:"یادآوری ایمیل انقضا",流量邮件提醒:"یادآوری ایمیل ترافیک",绑定Telegram:"تلگرام را ببندید",立即开始:"امروز شروع کنید",重置订阅信息:"بازنشانی اطلاعات اشتراک",重置:"تغییر","确定要重置订阅信息?":"آیا مطمئن هستید که می خواهید اطلاعات اشتراک خود را بازنشانی کنید؟","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"اگر آدرس یا اطلاعات اشتراک شما لو رفته باشد، این کار را می توان انجام داد. پس از تنظیم مجدد، Uuid و اشتراک شما تغییر خواهد کرد و باید دوباره مشترک شوید.",重置成功:"بازنشانی با موفقیت انجام شد",两次新密码输入不同:"رمز جدید را دو بار وارد کنید",两次密码输入不同:"رمز جدید را دو بار وارد کنید","邀请码(选填)":"کد دعوت (اختیاری)",'我已阅读并同意 服务条款':"من شرایط خدمات را خوانده‌ام و با آن موافقم",请同意服务条款:"لطفاً با شرایط خدمات موافقت کنید",名称:"نام ویژگی محصول",标签:"برچسب‌ها",状态:"وضعیت",节点五分钟内节点在线情况:"وضعیت آنلاین گره را در عرض پنج دقیقه ثبت کنید",倍率:"بزرگنمایی",使用的流量将乘以倍率进行扣除:"جریان استفاده شده در ضریب برای کسر ضرب خواهد شد",更多操作:"اکشن های بیشتر","没有可用节点,如果您未订阅或已过期请":"هیچ گره ای در دسترس نیست، اگر مشترک نیستید یا منقضی شده اید، لطفاً","确定重置当前已用流量?":"آیا مطمئن هستید که می خواهید داده های استفاده شده فعلی را بازنشانی کنید؟","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"برای رفتن به صندوقدار روی 'OK' کلیک کنید. پس از پرداخت سفارش، سیستم اطلاعاتی را که برای ماه استفاده کرده اید پاک می کند.",确定:"تأیید",低:"پایین",中:"متوسط",高:"بالا",主题:"موضوع",工单级别:"سطح بلیط",工单状态:"وضعیت درخواست",最后回复:"آخرین پاسخ",已关闭:"پایان‌یافته",待回复:"در انتظار پاسخ",已回复:"پاسخ داده",查看:"بازدیدها",关闭:"بستن",新的工单:"سفارش کار جدید",确认:"تاييدات",请输入工单主题:"لطفا موضوع بلیط را وارد کنید",工单等级:"سطح سفارش کار",请选择工单等级:"لطفا سطح بلیط را انتخاب کنید",消息:"پیام ها",请描述你遇到的问题:"لطفا مشکلی که با آن مواجه شدید را شرح دهید",记录时间:"زمان ضبط",实际上行:"نقطه ضعف واقعی",实际下行:"نقطه ضعف واقعی",合计:"تعداد ارزش‌ها","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"فرمول: (خط واقعی + پایین دست واقعی) x نرخ کسر = ترافیک کسر شده",复制订阅地址:"آدرس اشتراک را کپی کنید",导入到:"واردات در:",一键订阅:"اشتراک با یک کلیک",复制订阅:"اشتراک را کپی کنید",推广佣金划转至余额:"کمیسیون ارتقاء به موجودی منتقل می شود","划转后的余额仅用于{title}消费使用":"موجودی منتقل شده فقط برای مصرف {title} استفاده می شود",当前推广佣金余额:"موجودی کمیسیون ترفیع فعلی",划转金额:"مقدار انتقال",请输入需要划转到余额的金额:"لطفا مبلغی را که باید به موجودی منتقل شود وارد کنید","输入内容回复工单...":"برای پاسخ به تیکت محتوا را وارد کنید...",申请提现:"برای انصراف اقدام کنید",取消:"انصراف",提现方式:"روش برداشت",请选择提现方式:"لطفاً یک روش برداشت را انتخاب کنید",提现账号:"حساب برداشت",请输入提现账号:"لطفا حساب برداشت را وارد کنید",我知道了:"می فهمم",第一步:"گام ۱",第二步:"گام ۲",打开Telegram搜索:"جستجوی تلگرام را باز کنید",向机器人发送你的:"ربات های خود را بفرستید","最后更新: {date}":"آخرین به روز رسانی: {date}",还有没支付的订单:"هنوز سفارشات پرداخت نشده وجود دارد",立即支付:"اکنون پرداخت کنید",条工单正在处理中:"بلیط در حال پردازش است",立即查看:"آن را در عمل ببینید",节点状态:"وضعیت گره",商品信息:"مشتریان ثبت نام شده",产品名称:"عنوان کالا","类型/周期":"نوع/چرخه",产品流量:"جریان محصول",订单信息:"اطلاعات سفارش",关闭订单:"سفارش بستن",订单号:"شماره سفارش",优惠金额:"قیمت با تخفیف",旧订阅折抵金额:"مبلغ تخفیف اشتراک قدیمی",退款金额:"کل مبلغ مسترد شده",余额支付:"پرداخت مانده",工单历史:"تاریخچه بلیط","已用流量将在 {reset_day} 日后重置":"داده‌های استفاده شده ظرف {reset_day} روز بازنشانی می‌شوند",已用流量已在今日重置:"امروز بازنشانی داده استفاده شده است",重置已用流量:"بازنشانی داده های استفاده شده",查看节点状态:"مشاهده وضعیت گره","当前已使用流量达{rate}%":"ترافیک استفاده شده در حال حاضر در {rate}%",节点名称:"نام گره","于 {date} 到期,距离到期还有 {day} 天。":"در {date} منقضی می‌شود که {day} روز دیگر است.","Telegram 讨论组":"گروه گفتگوی تلگرام",立即加入:"حالا پیوستن","该订阅无法续费,仅允许新用户购买":"این اشتراک قابل تمدید نیست، فقط کاربران جدید مجاز به خرید آن هستند",重置当月流量:"بازنشانی ترافیک ماه جاری","流量明细仅保留近月数据以供查询。":"جزئیات ترافیک فقط داده های ماه های اخیر را برای پرس و جو حفظ می کند.",扣费倍率:"نرخ کسر",支付手续费:"پرداخت هزینه های پردازش",续费订阅:"تمدید اشتراک",学习如何使用:"نحوه استفاده را یاد بگیرید",快速将节点导入对应客户端进行使用:"به سرعت گره ها را برای استفاده به مشتری مربوطه وارد کنید",对您当前的订阅进行续费:"با اشتراک فعلی خود خرید کنید",对您当前的订阅进行购买:"با اشتراک فعلی خود خرید کنید",捷径:"میانبر","不会使用,查看使用教程":"استفاده نمی شود، به آموزش مراجعه کنید",使用支持扫码的客户端进行订阅:"برای اشتراک از کلاینتی استفاده کنید که از کد اسکن پشتیبانی می کند",扫描二维码订阅:"برای اشتراک، کد QR را اسکن کنید",续费:"تمدید",购买:"خرید",查看教程:"مشاهده آموزش",注意:"یادداشت!","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"هنوز سفارشات ناتمام دارید. قبل از خرید باید آن را لغو کنید. آیا مطمئن هستید که می‌خواهید سفارش قبلی را لغو کنید؟",确定取消:"تایید لغو",返回我的订单:"بازگشت به سفارش من","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"اگر قبلاً پرداخت کرده‌اید، لغو سفارش ممکن است باعث عدم موفقیت در پرداخت شود. آیا مطمئن هستید که می‌خواهید سفارش را لغو کنید؟",选择最适合你的计划:"طرحی را انتخاب کنید که مناسب شما باشد",全部:"تمام",按周期:"توسط چرخه",遇到问题:"ما یک مشکل داریم",遇到问题可以通过工单与我们沟通:"در صورت بروز مشکل می توانید از طریق تیکت با ما در ارتباط باشید",按流量:"با جریان",搜索文档:"جستجوی اسناد",技术支持:"دریافت پشتیبانی",当前剩余佣金:"کمیسیون فعلی باقی مانده",三级分销比例:"نسبت توزیع سه لایه",累计获得佣金:"کمیسیون انباشته شده","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"کاربرانی که برای دعوت مجدد از کاربران دعوت می کنید بر اساس نسبت مقدار سفارش ضرب در سطح توزیع تقسیم می شوند.",发放时间:"زمان پرداخت","{number} 人":"{number} نفر","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"در صورت انتشار آدرس یا حساب اشتراک شما و سوء استفاده از آن توسط دیگران، می‌توانید اطلاعات اشتراک خود را در اینجا بازنشانی کنید تا از زیان‌های غیرضروری جلوگیری شود.",再次输入密码:"ورود مجدد رمز عبور",返回登陆:"بازگشت به ورود",选填:"اختیاری",必填:"الزامی",最后回复时间:"زمان آخرین پاسخ",请选项工单等级:"لطفاً اولویت تیکت را انتخاب کنید",回复:"پاسخ",输入内容回复工单:"محتوا را برای پاسخ به تیکت وارد کنید",已生成:"تولید شده",选择协议:"انتخاب پروتکل",自动:"خودکار",流量重置包:"بسته بازنشانی داده",复制失败:"کپی ناموفق بود",提示:"اطلاع","确认退出?":"تأیید خروج?",已退出登录:"با موفقیت خارج شده",请输入邮箱地址:"آدرس ایمیل را وارد کنید","{second}秒后可重新发送":"{second} ثانیه دیگر می‌توانید مجدداً ارسال کنید",发送成功:"با موفقیت ارسال شد",请输入账号密码:"نام کاربری و رمز عبور را وارد کنید",请确保两次密码输入一致:"اطمینان حاصل کنید که ورودهای رمز عبور مطابقت دارند",注册成功:"ثبت نام با موفقیت انجام شد","重置密码成功,正在返回登录":"با موفقیت رمز عبور بازنشانی شد، در حال بازگشت به صفحه ورود",确认取消:"تایید لغو","请注意,变更订阅会导致当前订阅被覆盖。":"لطفاً توجه داشته باشید که تغییر اشتراک موجب ایجاد اشتراک فعلی می‌شود.","订单提交成功,正在跳转支付":"سفارش با موفقیت ثبت شد، به پرداخت هدایت می‌شود.",回复成功:"پاسخ با موفقیت ارسال شد",工单详情:"جزئیات تیکت",登录成功:"ورود موفقیت‌آمیز","确定退出?":"آیا مطمئن هستید که می‌خواهید خارج شوید؟",支付成功:"پرداخت موفق",正在前往收银台:"در حال رفتن به صندوق پرداخت",请输入正确的划转金额:"لطفا مبلغ انتقال صحیح را وارد کنید",划转成功:"انتقال موفق",提现方式不能为空:"روش برداشت نمی‌تواند خالی باشد",提现账号不能为空:"حساب برداشت نمی‌تواند خالی باشد",已绑定:"قبلاً متصل شده",创建成功:"ایجاد موفقیت‌آمیز",关闭成功:"خاموش کردن موفق"},Fk=Object.freeze(Object.defineProperty({__proto__:null,default:cNe},Symbol.toStringTag,{value:"Module"})),uNe={请求失败:"リクエストエラー",月付:"月間プラン",季付:"3か月プラン",半年付:"半年プラン",年付:"年間プラン",两年付:"2年プラン",三年付:"3年プラン",一次性:"一括払い",重置流量包:"使用済みデータをリセット",待支付:"お支払い待ち",开通中:"開通中",已取消:"キャンセル済み",已完成:"済み",已折抵:"控除済み",待确认:"承認待ち",发放中:"処理中",已发放:"処理済み",无效:"無効",个人中心:"会員メニュー",登出:"ログアウト",搜索:"検索",仪表盘:"ダッシュボード",订阅:"サブスクリプションプラン",我的订阅:"マイプラン",购买订阅:"プランの購入",财务:"ファイナンス",我的订单:"注文履歴",我的邀请:"招待リスト",用户:"ユーザー",我的工单:"お問い合わせ",流量明细:"データ通信明細",使用文档:"ナレッジベース",绑定Telegram获取更多服务:"Telegramと連携し各種便利な通知を受け取ろう",点击这里进行绑定:"こちらをクリックして連携開始",公告:"お知らせ",总览:"概要",该订阅长期有效:"時間制限なし",已过期:"期限切れ","已用 {used} / 总计 {total}":"使用済み {used} / 合計 {total}",查看订阅:"プランを表示",邮箱:"E-mail アドレス",邮箱验证码:"確認コード",发送:"送信",重置密码:"パスワードを変更",返回登入:"ログインページへ戻る",邀请码:"招待コード",复制链接:"URLをコピー",完成时间:"完了日時",佣金:"コミッション金額",已注册用户数:"登録済みユーザー数",佣金比例:"コミッションレート",确认中的佣金:"承認待ちのコミッション","佣金将会在确认后会到达你的佣金账户。":"コミッションは承認処理完了後にカウントされます",邀请码管理:"招待コードの管理",生成邀请码:"招待コードを生成",佣金发放记录:"コミッション履歴",复制成功:"クリップボードにコピーされました",密码:"パスワード",登入:"ログイン",注册:"新規登録",忘记密码:"パスワードをお忘れの方","# 订单号":"受注番号",周期:"サイクル",订单金额:"ご注文金額",订单状态:"ご注文状況",创建时间:"作成日時",操作:"アクション",查看详情:"詳細を表示",请选择支付方式:"支払い方法をお選びください",请检查信用卡支付信息:"クレジットカード決済情報をご確認ください",订单详情:"ご注文詳細",折扣:"割引",折抵:"控除",退款:"払い戻し",支付方式:"お支払い方法",填写信用卡支付信息:"クレジットカード決済情報をご入力ください。","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"お客様のカード情報は今回限りリクエストされ、記録に残ることはございません",订单总额:"ご注文の合計金額",总计:"合計金額",结账:"チェックアウト",等待支付中:"お支払い待ち","订单系统正在进行处理,请稍等1-3分钟。":"システム処理中です、しばらくお待ちください","订单由于超时支付已被取消。":"ご注文はキャンセルされました","订单已支付并开通。":"お支払いが完了しました、プランはご利用可能です",选择订阅:"プランをお選びください",立即订阅:"今すぐ購入",配置订阅:"プランの内訳",付款周期:"お支払いサイクル","有优惠券?":"キャンペーンコード",验证:"確定",下单:"チェックアウト","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"プランを変更なされます場合は、既存のプランが新規プランによって上書きされます、ご注意下さい",该订阅无法续费:"該当プランは継続利用できません",选择其他订阅:"その他のプランを選択",我的钱包:"マイウォレット","账户余额(仅消费)":"残高(サービスの購入のみ)","推广佣金(可提现)":"招待によるコミッション(出金可)",钱包组成部分:"ウォレットの内訳",划转:"お振替",推广佣金提现:"コミッションのお引き出し",修改密码:"パスワードの変更",保存:"変更を保存",旧密码:"現在のパスワード",新密码:"新しいパスワード",请输入旧密码:"現在のパスワードをご入力ください",请输入新密码:"新しいパスワードをご入力ください",通知:"お知らせ",到期邮件提醒:"期限切れ前にメールで通知",流量邮件提醒:"データ量不足時にメールで通知",绑定Telegram:"Telegramと連携",立即开始:"今すぐ連携開始",重置订阅信息:"サブスクリプションURLの変更",重置:"変更","确定要重置订阅信息?":"サブスクリプションURLをご変更なされますか?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"サブスクリプションのURL及び情報が外部に漏れた場合にご操作ください。操作後はUUIDやURLが変更され、再度サブスクリプションのインポートが必要になります。",重置成功:"変更完了",两次新密码输入不同:"ご入力されました新しいパスワードが一致しません",两次密码输入不同:"ご入力されましたパスワードが一致しません","邀请码(选填)":"招待コード (オプション)",'我已阅读并同意 服务条款':"ご利用規約に同意します",请同意服务条款:"ご利用規約に同意してください",名称:"名称",标签:"ラベル",状态:"ステータス",节点五分钟内节点在线情况:"5分間のオンラインステータス",倍率:"適応レート",使用的流量将乘以倍率进行扣除:"通信量は該当レートに基き計算されます",更多操作:"アクション","没有可用节点,如果您未订阅或已过期请":"ご利用可能なサーバーがありません,プランの期限切れまたは購入なされていない場合は","确定重置当前已用流量?":"利用済みデータ量をリセットしますか?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"「確定」をクリックし次のページへ移動,お支払い後に当月分のデータ通信量は即時リセットされます",确定:"確定",低:"低",中:"中",高:"高",主题:"タイトル",工单级别:"プライオリティ",工单状态:"進捗状況",最后回复:"最終回答日時",已关闭:"終了",待回复:"対応待ち",已回复:"回答済み",查看:"閲覧",关闭:"終了",新的工单:"新規お問い合わせ",确认:"確定",请输入工单主题:"お問い合わせタイトルをご入力ください",工单等级:"ご希望のプライオリティ",请选择工单等级:"ご希望のプライオリティをお選びください",消息:"メッセージ",请描述你遇到的问题:"お問い合わせ内容をご入力ください",记录时间:"記録日時",实际上行:"アップロード",实际下行:"ダウンロード",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"計算式:(アップロード + ダウンロード) x 適応レート = 使用済みデータ通信量",复制订阅地址:"サブスクリプションのURLをコピー",导入到:"インポート先:",一键订阅:"ワンクリックインポート",复制订阅:"サブスクリプションのURLをコピー",推广佣金划转至余额:"コミッションを残高へ振替","划转后的余额仅用于{title}消费使用":"振替済みの残高は{title}でのみご利用可能です",当前推广佣金余额:"現在のコミッション金額",划转金额:"振替金額",请输入需要划转到余额的金额:"振替金額をご入力ください","输入内容回复工单...":"お問い合わせ内容をご入力ください...",申请提现:"出金申請",取消:"キャンセル",提现方式:"お振込み先",请选择提现方式:"お振込み先をお選びください",提现账号:"お振り込み先口座",请输入提现账号:"お振込み先口座をご入力ください",我知道了:"了解",第一步:"ステップその1",第二步:"ステップその2",打开Telegram搜索:"Telegramを起動後に右記内容を入力し検索",向机器人发送你的:"テレグラムボットへ下記内容を送信","最后更新: {date}":"最終更新日: {date}",还有没支付的订单:"未払いのご注文があります",立即支付:"チェックアウト",条工单正在处理中:"件のお問い合わせ",立即查看:"閲覧",节点状态:"サーバーステータス",商品信息:"プラン詳細",产品名称:"プラン名","类型/周期":"サイクル",产品流量:"ご利用可能データ量",订单信息:"オーダー情報",关闭订单:"注文をキャンセル",订单号:"受注番号",优惠金额:"'割引額",旧订阅折抵金额:"既存プラン控除額",退款金额:"返金額",余额支付:"残高ご利用分",工单历史:"お問い合わせ履歴","已用流量将在 {reset_day} 日后重置":"利用済みデータ量は {reset_day} 日後にリセットします",已用流量已在今日重置:"利用済みデータ量は本日リセットされました",重置已用流量:"利用済みデータ量をリセット",查看节点状态:"接続先サーバのステータス","当前已使用流量达{rate}%":"データ使用量が{rate}%になりました",节点名称:"サーバー名","于 {date} 到期,距离到期还有 {day} 天。":"ご利用期限は {date} まで,期限まであと {day} 日","Telegram 讨论组":"Telegramグループ",立即加入:"今すぐ参加","该订阅无法续费,仅允许新用户购买":"該当プランは継続利用できません、新規ユーザーのみが購入可能です",重置当月流量:"使用済みデータ量のカウントリセット","流量明细仅保留近月数据以供查询。":"データ通信明細は当月分のみ表示されます",扣费倍率:"適応レート",支付手续费:"お支払い手数料",续费订阅:"購読更新",学习如何使用:"ご利用ガイド",快速将节点导入对应客户端进行使用:"最短ルートでサーバー情報をアプリにインポートして使用する",对您当前的订阅进行续费:"ご利用中のサブスクの継続料金を支払う",对您当前的订阅进行购买:"ご利用中のサブスクを再度購入する",捷径:"ショートカット","不会使用,查看使用教程":"ご利用方法がわからない方はナレッジベースをご閲覧ください",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"QRコードをスキャンしてサブスクを設定",续费:"更新",购买:"購入",查看教程:"チュートリアルを表示",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"まだ購入が完了していないオーダーがあります。購入前にそちらをキャンセルする必要がありますが、キャンセルしてよろしいですか?",确定取消:"キャンセル",返回我的订单:"注文履歴に戻る","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"もし既にお支払いが完了していると、注文をキャンセルすると支払いが失敗となる可能性があります。キャンセルしてもよろしいですか?",选择最适合你的计划:"あなたにピッタリのプランをお選びください",全部:"全て",按周期:"期間順",遇到问题:"何かお困りですか?",遇到问题可以通过工单与我们沟通:"何かお困りでしたら、お問い合わせからご連絡ください。",按流量:"データ通信量順",搜索文档:"ドキュメント内を検索",技术支持:"テクニカルサポート",当前剩余佣金:"コミッション残高",三级分销比例:"3ティア比率",累计获得佣金:"累計獲得コミッション金額","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"お客様に招待された方が更に別の方を招待された場合、お客様は支払われるオーダーからティア分配分の比率分を受け取ることができます。",发放时间:"手数料支払時間","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"購読アドレスまたはアカウントが漏れて他者に悪用された場合、不必要な損失を防ぐためにここで購読情報をリセットできます。",再次输入密码:"パスワードを再入力してください",返回登陆:"ログインに戻る",选填:"任意",必填:"必須",最后回复时间:"最終返信時刻",请选项工单等级:"チケットの優先度を選択してください",回复:"返信",输入内容回复工单:"チケットへの返信内容を入力",已生成:"生成済み",选择协议:"プロトコルの選択",自动:"自動",流量重置包:"データリセットパッケージ",复制失败:"コピーに失敗しました",提示:"通知","确认退出?":"ログアウトを確認?",已退出登录:"正常にログアウトしました",请输入邮箱地址:"メールアドレスを入力してください","{second}秒后可重新发送":"{second} 秒後に再送信可能",发送成功:"送信成功",请输入账号密码:"アカウントとパスワードを入力してください",请确保两次密码输入一致:"パスワードの入力が一致していることを確認してください",注册成功:"登録が成功しました","重置密码成功,正在返回登录":"パスワードのリセットが成功しました。ログインに戻っています",确认取消:"キャンセルの確認","请注意,变更订阅会导致当前订阅被覆盖。":"購読の変更は現在の購読を上書きします。","订单提交成功,正在跳转支付":"注文が成功裏に送信されました。支払いにリダイレクトしています。",回复成功:"返信が成功しました",工单详情:"チケットの詳細",登录成功:"ログイン成功","确定退出?":"本当に退出しますか?",支付成功:"支払い成功",正在前往收银台:"チェックアウトに進行中",请输入正确的划转金额:"正しい振替金額を入力してください",划转成功:"振替成功",提现方式不能为空:"出金方法は空にできません",提现账号不能为空:"出金口座を空にすることはできません",已绑定:"既にバインドされています",创建成功:"作成成功",关闭成功:"閉鎖成功"},Bk=Object.freeze(Object.defineProperty({__proto__:null,default:uNe},Symbol.toStringTag,{value:"Module"})),dNe={请求失败:"요청실패",月付:"월간",季付:"3개월간",半年付:"반년간",年付:"1년간",两年付:"2년마다",三年付:"3년마다",一次性:"한 번",重置流量包:"데이터 재설정 패키지",待支付:"지불 보류중",开通中:"보류 활성화",已取消:"취소 됨",已完成:"완료",已折抵:"변환",待确认:"보류중",发放中:"확인중",已发放:"완료",无效:"유효하지 않음",个人中心:"사용자 센터",登出:"로그아웃",搜索:"검색",仪表盘:"대시보드",订阅:"구독",我的订阅:"나의 구독",购买订阅:"구독 구매 내역",财务:"청구",我的订单:"나의 주문",我的邀请:"나의 초청",用户:"사용자 센터",我的工单:"나의 티켓",流量明细:"데이터 세부 정보 전송",使用文档:"사용 설명서",绑定Telegram获取更多服务:"텔레그램에 아직 연결되지 않았습니다",点击这里进行绑定:"텔레그램에 연결되도록 여기를 눌러주세요",公告:"발표",总览:"개요",该订阅长期有效:"구독은 무제한으로 유효합니다",已过期:"만료","已用 {used} / 总计 {total}":"{date}에 만료됩니다, 만료 {day}이 전, {reset_day}후 데이터 전송 재설정",查看订阅:"구독 보기",邮箱:"이메일",邮箱验证码:"이메일 확인 코드",发送:"보내기",重置密码:"비밀번호 재설정",返回登入:"로그인 다시하기",邀请码:"초청 코드",复制链接:"링크 복사",完成时间:"완료 시간",佣金:"수수료",已注册用户数:"등록 된 사용자들",佣金比例:"수수료율",确认中的佣金:"수수료 상태","佣金将会在确认后会到达你的佣金账户。":"수수료는 검토 후 수수료 계정에서 확인할 수 있습니다",邀请码管理:"초청 코드 관리",生成邀请码:"초청 코드 생성하기",佣金发放记录:"수수료 지불 기록",复制成功:"복사 성공",密码:"비밀번호",登入:"로그인",注册:"등록하기",忘记密码:"비밀번호를 잊으셨나요","# 订单号":"주문 번호 #",周期:"유형/기간",订单金额:"주문량",订单状态:"주문 상태",创建时间:"생성 시간",操作:"설정",查看详情:"세부사항 보기",请选择支付方式:"지불 방식을 선택 해주세요",请检查信用卡支付信息:"신용카드 지불 정보를 확인 해주세요",订单详情:"주문 세부사항",折扣:"할인",折抵:"변환",退款:"환불",支付方式:"지불 방식",填写信用卡支付信息:"신용카드 지불 정보를 적으세요","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"현재 거래를 확인하는 데 사용하는 귀하의 신용 카드 정보, 신용 카드 번호 및 기타 세부 정보를 수집하지 않습니다.",订单总额:"전체주문",总计:"전체",结账:"결제하기",等待支付中:"결제 대기 중","订单系统正在进行处理,请稍等1-3分钟。":"주문 시스템이 처리 중입니다. 1-3분 정도 기다려 주십시오.","订单由于超时支付已被取消。":"결제 시간 초과로 인해 주문이 취소되었습니다.","订单已支付并开通。":"주문이 결제되고 개통되었습니다.",选择订阅:"구독 선택하기",立即订阅:"지금 구독하기",配置订阅:"구독 환경 설정하기",付款周期:"지불 기간","有优惠券?":"쿠폰을 가지고 있나요?",验证:"확인",下单:"주문","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"주의하십시오. 구독을 변경하면 현재 구독을 덮어씁니다",该订阅无法续费:"이 구독은 갱신할 수 없습니다.",选择其他订阅:"다른 구독 선택",我的钱包:"나의 지갑","账户余额(仅消费)":"계정 잔액(결제 전용)","推广佣金(可提现)":"초청수수료(인출하는 데 사용할 수 있습니다)",钱包组成部分:"지갑 세부사항",划转:"이체하기",推广佣金提现:"초청 수수료 인출",修改密码:"비밀번호 변경",保存:"저장하기",旧密码:"이전 비밀번호",新密码:"새로운 비밀번호",请输入旧密码:"이전 비밀번호를 입력해주세요",请输入新密码:"새로운 비밀번호를 입력해주세요",通知:"공고",到期邮件提醒:"구독 만료 이메일 알림",流量邮件提醒:"불충분한 데이터 이메일 전송 알림",绑定Telegram:"탤레그램으로 연결",立即开始:"지금 시작하기",重置订阅信息:"구독 재설정하기",重置:"재설정","确定要重置订阅信息?":"구독을 재설정하시겠습니까?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"계정 정보나 구독이 누출된 경우 이 옵션은 UUID를 재설정하는 데 사용되며 재설정 후에 구독이 변경되므로 다시 구독해야 합니다.",重置成功:"재설정 성공",两次新密码输入不同:"입력한 두 개의 새 비밀번호가 일치하지 않습니다.",两次密码输入不同:"입력한 비밀번호가 일치하지 않습니다.","邀请码(选填)":"초청 코드(선택 사항)",'我已阅读并同意 服务条款':"을 읽었으며 이에 동의합니다 서비스 약관",请同意服务条款:"서비스 약관에 동의해주세요",名称:"이름",标签:"태그",状态:"설정",节点五分钟内节点在线情况:"지난 5분 동안의 액세스 포인트 온라인 상태",倍率:"요금",使用的流量将乘以倍率进行扣除:"사용된 전송 데이터에 전송 데이터 요금을 뺀 값을 곱합니다.",更多操作:"설정","没有可用节点,如果您未订阅或已过期请":"사용 가능한 액세스 포인트가 없습니다. 구독을 신청하지 않았거나 구독이 만료된 경우","确定重置当前已用流量?":"현재 사용 중인 데이터를 재설정 하시겠습니까?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'확인"을 클릭하면 결제 페이지로 이동됩니다. 주문이 완료되면 시스템에서 해당 월의 사용 데이터를 삭제합니다.',确定:"확인",低:"낮음",中:"중간",高:"높음",主题:"주제",工单级别:"티켓 우선 순위",工单状态:"티켓 상태",最后回复:"생성 시간",已关闭:"마지막 답장",待回复:"설정",已回复:"닫힘",查看:"보기",关闭:"닫기",新的工单:"새로운 티켓",确认:"확인",请输入工单主题:"제목을 입력하세요",工单等级:"티켓 우선순위",请选择工单等级:"티켓 우선순위를 선택해주세요",消息:"메세지",请描述你遇到的问题:"문제를 설명하십시오 발생한",记录时间:"기록 시간",实际上行:"실제 업로드",实际下行:"실제 다운로드",合计:"전체","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"공식: (실제 업로드 + 실제 다운로드) x 공제율 = 전송 데이터 공제",复制订阅地址:"구독 URL 복사",导入到:"내보내기",一键订阅:"빠른 구독",复制订阅:"구독 URL 복사",推广佣金划转至余额:"초청 수수료를 계좌 잔액으로 이체","划转后的余额仅用于{title}消费使用":"이체된 잔액은 {title} 소비에만 사용됩니다.",当前推广佣金余额:"현재 홍보 수수료 잔액",请输入需要划转到余额的金额:"잔액으로 이체할 금액을 입력하세요.",取消:"취소",提现方式:"인출 방법",请选择提现方式:"인출 방법을 선택해주세요",提现账号:"인출 계좌",请输入提现账号:"인출 계좌를 입력해주세요",我知道了:"알겠습니다.",第一步:"첫번째 단계",第二步:"두번째 단계",打开Telegram搜索:"텔레그램 열기 및 탐색",向机器人发送你的:"봇에 다음 명령을 보냅니다","最后更新: {date}":"마지막 업데이트{date}",还有没支付的订单:"미결제 주문이 있습니다",立即支付:"즉시 지불",条工单正在处理中:"티켓이 처리 중입니다",立即查看:"제목을 입력하세요",节点状态:"노드 상태",商品信息:"제품 정보",产品名称:"제품 명칭","类型/周期":"종류/기간",产品流量:"제품 데이터 용량",订单信息:"주문 정보",关闭订单:"주문 취소",订单号:"주문 번호",优惠金额:"할인 가격",旧订阅折抵金额:"기존 패키지 공제 금액",退款金额:"환불 금액",余额支付:"잔액 지불",工单历史:"티켓 기록","已用流量将在 {reset_day} 日后重置":"{reset_day}일 후에 사용한 데이터가 재설정됩니다",已用流量已在今日重置:"오늘 이미 사용한 데이터가 재설정되었습니다",重置已用流量:"사용한 데이터 재설정",查看节点状态:"노드 상태 확인","当前已使用流量达{rate}%":"현재 사용한 데이터 비율이 {rate}%에 도달했습니다",节点名称:"환불 금액","于 {date} 到期,距离到期还有 {day} 天。":"{day}까지, 만료 {day}일 전.","Telegram 讨论组":"텔레그램으로 문의하세요",立即加入:"지금 가입하세요","该订阅无法续费,仅允许新用户购买":"이 구독은 갱신할 수 없습니다. 신규 사용자만 구매할 수 있습니다.",重置当月流量:"이번 달 트래픽 초기화","流量明细仅保留近月数据以供查询。":"귀하의 트래픽 세부 정보는 최근 몇 달 동안만 유지됩니다",扣费倍率:"수수료 공제율",支付手续费:"수수료 지불",续费订阅:"구독 갱신",学习如何使用:"사용 방법 배우기",快速将节点导入对应客户端进行使用:"빠르게 노드를 해당 클라이언트로 가져와 사용하기",对您当前的订阅进行续费:"현재 구독 갱신",对您当前的订阅进行购买:"현재 구독 구매",捷径:"단축키","不会使用,查看使用教程":"사용 방법을 모르겠다면 사용 설명서 확인",使用支持扫码的客户端进行订阅:"스캔 가능한 클라이언트로 구독하기",扫描二维码订阅:"QR 코드 스캔하여 구독",续费:"갱신",购买:"구매",查看教程:"사용 설명서 보기",注意:"주의","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"미완료된 주문이 있습니다. 구매 전에 취소해야 합니다. 이전 주문을 취소하시겠습니까?",确定取消:"취소 확인",返回我的订单:"내 주문으로 돌아가기","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"이미 결제를 했을 경우 주문 취소는 결제 실패로 이어질 수 있습니다. 주문을 취소하시겠습니까?",选择最适合你的计划:"가장 적합한 요금제 선택",全部:"전체",按周期:"주기별",遇到问题:"문제 발생",遇到问题可以通过工单与我们沟通:"문제가 발생하면 서포트 티켓을 통해 문의하세요",按流量:"트래픽별",搜索文档:"문서 검색",技术支持:"기술 지원",当前剩余佣金:"현재 잔여 수수료",三级分销比例:"삼수준 분배 비율",累计获得佣金:"누적 수수료 획득","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"초대한 사용자가 다시 초대하면 주문 금액에 분배 비율을 곱하여 분배됩니다.",发放时间:"수수료 지급 시간","{number} 人":"{number} 명","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"구독 주소 또는 계정이 유출되어 다른 사람에게 남용되는 경우 여기에서 구독 정보를 재설정하여 불필요한 손실을 방지할 수 있습니다.",再次输入密码:"비밀번호를 다시 입력하세요",返回登陆:"로그인으로 돌아가기",选填:"선택 사항",必填:"필수",最后回复时间:"최근 답장 시간",请选项工单等级:"티켓 우선 순위 선택",回复:"답장",输入内容回复工单:"티켓에 대한 내용 입력",已生成:"생성됨",选择协议:"프로토콜 선택",自动:"자동",流量重置包:"데이터 리셋 패키지",复制失败:"복사 실패",提示:"알림","确认退出?":"로그아웃 확인?",已退出登录:"로그아웃 완료",请输入邮箱地址:"이메일 주소를 입력하세요","{second}秒后可重新发送":"{second} 초 후에 다시 전송 가능",发送成功:"전송 성공",请输入账号密码:"계정과 비밀번호를 입력하세요",请确保两次密码输入一致:"비밀번호 입력이 일치하는지 확인하세요",注册成功:"등록 성공","重置密码成功,正在返回登录":"비밀번호 재설정 성공, 로그인 페이지로 돌아가는 중",确认取消:"취소 확인","请注意,变更订阅会导致当前订阅被覆盖。":"구독 변경은 현재 구독을 덮어씁니다.","订单提交成功,正在跳转支付":"주문이 성공적으로 제출되었습니다. 지불로 이동 중입니다.",回复成功:"답장 성공",工单详情:"티켓 상세 정보",登录成功:"로그인 성공","确定退出?":"확실히 종료하시겠습니까?",支付成功:"결제 성공",正在前往收银台:"결제 진행 중",请输入正确的划转金额:"정확한 이체 금액을 입력하세요",划转成功:"이체 성공",提现方式不能为空:"출금 방식은 비워 둘 수 없습니다",提现账号不能为空:"출금 계좌는 비워 둘 수 없습니다",已绑定:"이미 연결됨",创建成功:"생성 성공",关闭成功:"종료 성공"},Nk=Object.freeze(Object.defineProperty({__proto__:null,default:dNe},Symbol.toStringTag,{value:"Module"})),fNe={请求失败:"Yêu Cầu Thất Bại",月付:"Tháng",季付:"Hàng Quý",半年付:"6 Tháng",年付:"Năm",两年付:"Hai Năm",三年付:"Ba Năm",一次性:"Dài Hạn",重置流量包:"Cập Nhật Dung Lượng",待支付:"Đợi Thanh Toán",开通中:"Đang xử lý",已取消:"Đã Hủy",已完成:"Thực Hiện",已折抵:"Quy Đổi",待确认:"Đợi Xác Nhận",发放中:"Đang Xác Nhận",已发放:"Hoàn Thành",无效:"Không Hợp Lệ",个人中心:"Trung Tâm Kiểm Soát",登出:"Đăng Xuất",搜索:"Tìm Kiếm",仪表盘:"Trang Chủ",订阅:"Gói Dịch Vụ",我的订阅:"Gói Dịch Vụ Của Tôi",购买订阅:"Mua Gói Dịch Vụ",财务:"Tài Chính",我的订单:"Đơn Hàng Của Tôi",我的邀请:"Lời Mời Của Tôi",用户:"Người Dùng",我的工单:"Liên Hệ Với Chúng Tôi",流量明细:"Chi Tiết Dung Lượng",使用文档:"Tài liệu sử dụng",绑定Telegram获取更多服务:"Liên kết Telegram thêm dịch vụ",点击这里进行绑定:"Ấn vào để liên kết",公告:"Thông Báo",总览:"Tổng Quat",该订阅长期有效:"Gói này có thời hạn dài",已过期:"Tài khoản hết hạn","已用 {used} / 总计 {total}":"Đã sử dụng {used} / Tổng dung lượng {total}",查看订阅:"Xem Dịch Vụ",邮箱:"E-mail",邮箱验证码:"Mã xác minh mail",发送:"Gửi",重置密码:"Đặt Lại Mật Khẩu",返回登入:"Về đăng nhập",邀请码:"Mã mời",复制链接:"Sao chép đường dẫn",完成时间:"Thời gian hoàn thành",佣金:"Tiền hoa hồng",已注册用户数:"Số người dùng đã đăng ký",佣金比例:"Tỷ lệ hoa hồng",确认中的佣金:"Hoa hồng đang xác nhận","佣金将会在确认后会到达你的佣金账户。":"Sau khi xác nhận tiền hoa hồng sẽ gửi đến tài khoản hoa hồng của bạn.",邀请码管理:"Quản lý mã mời",生成邀请码:"Tạo mã mời",佣金发放记录:"Hồ sơ hoa hồng",复制成功:"Sao chép thành công",密码:"Mật khẩu",登入:"Đăng nhập",注册:"Đăng ký",忘记密码:"Quên mật khẩu","# 订单号":"# Mã đơn hàng",周期:"Chu Kỳ",订单金额:"Tiền đơn hàng",订单状态:"Trạng thái đơn",创建时间:"Thời gian tạo",操作:"Thao tác",查看详情:"Xem chi tiết",请选择支付方式:"Chọn phương thức thanh toán",请检查信用卡支付信息:"Hãy kiểm tra thông tin thẻ thanh toán",订单详情:"Chi tiết đơn hàng",折扣:"Chiết khấu",折抵:"Giảm giá",退款:"Hoàn lại",支付方式:"Phương thức thanh toán",填写信用卡支付信息:"Điền thông tin Thẻ Tín Dụng","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"Thông tin thẻ tín dụng của bạn sẽ chỉ được sử dụng cho lần thanh toán này, hệ thống sẽ không lưu thông tin đó, chúng tôi nghĩ đây à cách an toàn nhất.",订单总额:"Tổng tiền đơn hàng",总计:"Tổng",结账:"Kết toán",等待支付中:"Đang chờ thanh toán","订单系统正在进行处理,请稍等1-3分钟。":"Hệ thống đang xử lý đơn hàng, vui lòng đợi 1-3p.","订单由于超时支付已被取消。":"Do quá giờ nên đã hủy đơn hàng.","订单已支付并开通。":"Đơn hàng đã thanh toán và mở.",选择订阅:"Chọn gói",立即订阅:"Mua gói ngay",配置订阅:"Thiết lập gói",付款周期:"Chu kỳ thanh toán","有优惠券?":"Có phiếu giảm giá?",验证:"Xác minh",下单:"Đặt hàng","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Việc thay đổi gói dịch vụ sẽ thay thế gói hiện tại bằng gói mới, xin lưu ý.",该订阅无法续费:"Gói này không thể gia hạn",选择其他订阅:"Chọn gói dịch vụ khác",我的钱包:"Ví tiền của tôi","账户余额(仅消费)":"Số dư tài khoản (Chỉ tiêu dùng)","推广佣金(可提现)":"Tiền hoa hồng giới thiệu (Được rút)",钱包组成部分:"Thành phần ví tiền",划转:"Chuyển khoản",推广佣金提现:"Rút tiền hoa hồng giới thiệu",修改密码:"Đổi mật khẩu",保存:"Lưu",旧密码:"Mật khẩu cũ",新密码:"Mật khẩu mới",请输入旧密码:"Hãy nhập mật khẩu cũ",请输入新密码:"Hãy nhập mật khẩu mới",通知:"Thông Báo",到期邮件提醒:"Mail nhắc đến hạn",流量邮件提醒:"Mail nhắc dung lượng",绑定Telegram:"Liên kết Telegram",立即开始:"Bắt Đầu",重置订阅信息:"Reset thông tin gói",重置:"Reset","确定要重置订阅信息?":"Xác nhận reset thông tin gói?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"Nếu địa chỉ hoặc thông tin gói dịch vụ của bạn bị tiết lộ có thể tiến hành thao tác này. Sau khi reset UUID sẽ thay đổi.",重置成功:"Reset thành công",两次新密码输入不同:"Mật khẩu mới xác nhận không khớp",两次密码输入不同:"Mật khẩu xác nhận không khớp","邀请码(选填)":"Mã mời(Điền)",'我已阅读并同意 服务条款':"Tôi đã đọc và đồng ý điều khoản dịch vụ",请同意服务条款:"Hãy đồng ý điều khoản dịch vụ",名称:"Tên",标签:"Nhãn",状态:"Trạng thái",节点五分钟内节点在线情况:"Node trạng thái online trong vòng 5 phút",倍率:"Bội số",使用的流量将乘以倍率进行扣除:"Dung lượng sử dụng nhân với bội số rồi khấu trừ",更多操作:"Thêm thao tác","没有可用节点,如果您未订阅或已过期请":"Chưa có node khả dụng, nếu bạn chưa mua gói hoặc đã hết hạn hãy","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"Ấn 「OK」 sẽ chuyển đến trang thanh toán, sau khi thanh toán đơn hàng hệ thống sẽ xóa dung lượng đã dùng tháng này của bạn.",确定:"OK",低:"Thấp",中:"Vừa",高:"Cao",主题:"Chủ Đề",工单级别:"Cấp độ",工单状态:"Trạng thái",最后回复:"Trả lời gần đây",已关闭:"Đã đóng",待回复:"Chờ trả lời",已回复:"Đã trả lời",查看:"Xem",关闭:"Đóng",新的工单:"Việc mới",确认:"OK",请输入工单主题:"Hãy nhập chủ đề công việc",工单等级:"Cấp độ công việc",请选择工单等级:"Hãy chọn cấp độ công việc",消息:"Thông tin",请描述你遇到的问题:"Hãy mô tả vấn đề gặp phải",记录时间:"Thời gian ghi",实际上行:"Upload thực tế",实际下行:"Download thực tế",合计:"Cộng","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Công thức: (upload thực tế + download thực tế) x bội số trừ phí = Dung lượng khấu trừ",复制订阅地址:"Sao chép liên kết",导入到:"Nhập vào",一键订阅:"Nhấp chuột để đồng bộ máy chủ",复制订阅:"Sao chép liên kết",推广佣金划转至余额:"Chuyển khoản hoa hồng giới thiệu đến số dư","划转后的余额仅用于{title}消费使用":"Số dư sau khi chuyển khoản chỉ dùng để tiêu dùng {title}",当前推广佣金余额:"Số dư hoa hồng giới thiệu hiện tại",划转金额:"Chuyển tiền",请输入需要划转到余额的金额:"Hãy nhậo số tiền muốn chuyển đến số dư","输入内容回复工单...":"Nhập nội dung trả lời công việc...",申请提现:"Yêu cầu rút tiền",取消:"Hủy",提现方式:"Phương thức rút tiền",请选择提现方式:"Hãy chọn phương thức rút tiền",提现账号:"Rút về tào khoản",请输入提现账号:"Hãy chọn tài khoản rút tiền",我知道了:"OK",第一步:"Bước 1",第二步:"Bước 2",打开Telegram搜索:"Mở Telegram tìm kiếm",向机器人发送你的:"Gửi cho bot","最后更新: {date}":"Cập nhật gần đây: {date}",还有没支付的订单:"Có đơn hàng chưa thanh toán",立即支付:"Thanh toán ngay",条工单正在处理中:" công việc đang xử lý",立即查看:"Xem Ngay",节点状态:"Trạng thái node",商品信息:"Thông tin",产品名称:"Tên sản phẩm","类型/周期":"Loại/Chu kỳ",产品流量:"Dung Lượng",订单信息:"Thông tin đơn hàng",关闭订单:"Đóng đơn hàng",订单号:"Mã đơn hàng",优惠金额:"Tiền ưu đãi",旧订阅折抵金额:"Tiền giảm giá gói cũ",退款金额:"Số tiền hoàn lại",余额支付:"Thanh toán số dư",工单历史:"Lịch sử đơn hàng","已用流量将在 {reset_day} 日后重置":"Dữ liệu đã sử dụng sẽ được đặt lại sau {reset_day} ngày",已用流量已在今日重置:"Dữ liệu đã sử dụng đã được đặt lại trong ngày hôm nay",重置已用流量:"Đặt lại dữ liệu đã sử dụng",查看节点状态:"Xem trạng thái nút","当前已使用流量达{rate}%":"Dữ liệu đã sử dụng hiện tại đạt {rate}%",节点名称:"Tên node","于 {date} 到期,距离到期还有 {day} 天。":"Hết hạn vào {date}, còn {day} ngày.","Telegram 讨论组":"Nhóm Telegram",立即加入:"Vào ngay","该订阅无法续费,仅允许新用户购买":"Đăng ký này không thể gia hạn, chỉ người dùng mới được phép mua",重置当月流量:"Đặt lại dung lượng tháng hiện tại","流量明细仅保留近月数据以供查询。":"Chi tiết dung lượng chỉ lưu dữ liệu của những tháng gần đây để truy vấn.",扣费倍率:"Tỷ lệ khấu trừ",支付手续费:"Phí thủ tục",续费订阅:"Gia hạn đăng ký",学习如何使用:"Hướng dẫn sử dụng",快速将节点导入对应客户端进行使用:"Bạn cần phải mua gói này",对您当前的订阅进行续费:"Gia hạn gói hiện tại",对您当前的订阅进行购买:"Mua gói bạn đã chọn",捷径:"Phím tắt","不会使用,查看使用教程":"Mua gói này nếu bạn đăng ký",使用支持扫码的客户端进行订阅:"Sử dụng ứng dụng quét mã để đăng ký",扫描二维码订阅:"Quét mã QR để đăng ký",续费:"Gia hạn",购买:"Mua",查看教程:"Xem hướng dẫn",注意:"Chú Ý","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"Bạn vẫn còn đơn đặt hàng chưa hoàn thành. Bạn cần hủy trước khi mua. Bạn có chắc chắn muốn hủy đơn đặt hàng trước đó không ?",确定取消:"Đúng/không",返回我的订单:"Quay lại đơn đặt hàng của tôi","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"Nếu bạn đã thanh toán, việc hủy đơn hàng có thể khiến việc thanh toán không thành công. Bạn có chắc chắn muốn hủy đơn hàng không ?",选择最适合你的计划:"Chọn kế hoạch phù hợp với bạn nhất",全部:"Tất cả",按周期:"Chu kỳ",遇到问题:"Chúng tôi có một vấn đề",遇到问题可以通过工单与我们沟通:"Nếu bạn gặp sự cố, bạn có thể liên lạc với chúng tôi thông qua ",按流量:"Theo lưu lượng",搜索文档:"Tìm kiếm tài liệu",技术支持:"Hỗ trợ kỹ thuật",当前剩余佣金:"Số dư hoa hồng hiện tại",三级分销比例:"Tỷ lệ phân phối cấp 3",累计获得佣金:"Tổng hoa hồng đã nhận","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"Người dùng bạn mời lại mời người dùng sẽ được chia theo tỷ lệ của số tiền đơn hàng nhân với cấp độ phân phối.",发放时间:"Thời gian thanh toán hoa hồng","{number} 人":"{number} người","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"Nếu địa chỉ đăng ký hoặc tài khoản của bạn bị rò rỉ và bị người khác lạm dụng, bạn có thể đặt lại thông tin đăng ký tại đây để tránh mất mát không cần thiết.",再次输入密码:"Nhập lại mật khẩu",返回登陆:"Quay lại Đăng nhập",选填:"Tùy chọn",必填:"Bắt buộc",最后回复时间:"Thời gian Trả lời Cuối cùng",请选项工单等级:"Vui lòng Chọn Mức độ Ưu tiên Công việc",回复:"Trả lời",输入内容回复工单:"Nhập Nội dung để Trả lời Công việc",已生成:"Đã tạo",选择协议:"Chọn Giao thức",自动:"Tự động",流量重置包:"Gói Reset Dữ liệu",复制失败:"Sao chép thất bại",提示:"Thông báo","确认退出?":"Xác nhận Đăng xuất?",已退出登录:"Đã đăng xuất thành công",请输入邮箱地址:"Nhập địa chỉ email","{second}秒后可重新发送":"Gửi lại sau {second} giây",发送成功:"Gửi thành công",请输入账号密码:"Nhập tên đăng nhập và mật khẩu",请确保两次密码输入一致:"Đảm bảo hai lần nhập mật khẩu giống nhau",注册成功:"Đăng ký thành công","重置密码成功,正在返回登录":"Đặt lại mật khẩu thành công, đang quay trở lại trang đăng nhập",确认取消:"Xác nhận Hủy","请注意,变更订阅会导致当前订阅被覆盖。":"Vui lòng lưu ý rằng thay đổi đăng ký sẽ ghi đè lên đăng ký hiện tại.","订单提交成功,正在跳转支付":"Đơn hàng đã được gửi thành công, đang chuyển hướng đến thanh toán.",回复成功:"Trả lời thành công",工单详情:"Chi tiết Ticket",登录成功:"Đăng nhập thành công","确定退出?":"Xác nhận thoát?",支付成功:"Thanh toán thành công",正在前往收银台:"Đang tiến hành thanh toán",请输入正确的划转金额:"Vui lòng nhập số tiền chuyển đúng",划转成功:"Chuyển khoản thành công",提现方式不能为空:"Phương thức rút tiền không được để trống",提现账号不能为空:"Tài khoản rút tiền không được để trống",已绑定:"Đã liên kết",创建成功:"Tạo thành công",关闭成功:"Đóng thành công"},Hk=Object.freeze(Object.defineProperty({__proto__:null,default:fNe},Symbol.toStringTag,{value:"Module"})),hNe={请求失败:"请求失败",月付:"月付",季付:"季付",半年付:"半年付",年付:"年付",两年付:"两年付",三年付:"三年付",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"开通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待确认",发放中:"发放中",已发放:"已发放",无效:"无效",个人中心:"个人中心",登出:"登出",搜索:"搜索",仪表盘:"仪表盘",订阅:"订阅",我的订阅:"我的订阅",购买订阅:"购买订阅",财务:"财务",我的订单:"我的订单",我的邀请:"我的邀请",用户:"用户",我的工单:"我的工单",流量明细:"流量明细",使用文档:"使用文档",绑定Telegram获取更多服务:"绑定 Telegram 获取更多服务",点击这里进行绑定:"点击这里进行绑定",公告:"公告",总览:"总览",该订阅长期有效:"该订阅长期有效",已过期:"已过期","已用 {used} / 总计 {total}":"已用 {used} / 总计 {total}",查看订阅:"查看订阅",邮箱:"邮箱",邮箱验证码:"邮箱验证码",发送:"发送",重置密码:"重置密码",返回登入:"返回登入",邀请码:"邀请码",复制链接:"复制链接",完成时间:"完成时间",佣金:"佣金",已注册用户数:"已注册用户数",佣金比例:"佣金比例",确认中的佣金:"确认中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金将会在确认后到达您的佣金账户。",邀请码管理:"邀请码管理",生成邀请码:"生成邀请码",佣金发放记录:"佣金发放记录",复制成功:"复制成功",密码:"密码",登入:"登入",注册:"注册",忘记密码:"忘记密码","# 订单号":"# 订单号",周期:"周期",订单金额:"订单金额",订单状态:"订单状态",创建时间:"创建时间",操作:"操作",查看详情:"查看详情",请选择支付方式:"请选择支付方式",请检查信用卡支付信息:"请检查信用卡支付信息",订单详情:"订单详情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填写信用卡支付信息","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡信息只会用于当次扣款,系统并不会保存,我们认为这是最安全的。",订单总额:"订单总额",总计:"总计",结账:"结账",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"订单系统正在进行处理,请等候 1-3 分钟。","订单由于超时支付已被取消。":"订单由于超时支付已被取消。","订单已支付并开通。":"订单已支付并开通。",选择订阅:"选择订阅",立即订阅:"立即订阅",配置订阅:"配置订阅",付款周期:"付款周期","有优惠券?":"有优惠券?",验证:"验证",下单:"下单","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"请注意,变更订阅会导致当前订阅被新订阅覆盖。",该订阅无法续费:"该订阅无法续费",选择其他订阅:"选择其它订阅",我的钱包:"我的钱包","账户余额(仅消费)":"账户余额(仅消费)","推广佣金(可提现)":"推广佣金(可提现)",钱包组成部分:"钱包组成部分",划转:"划转",推广佣金提现:"推广佣金提现",修改密码:"修改密码",保存:"保存",旧密码:"旧密码",新密码:"新密码",请输入旧密码:"请输入旧密码",请输入新密码:"请输入新密码",通知:"通知",到期邮件提醒:"到期邮件提醒",流量邮件提醒:"流量邮件提醒",绑定Telegram:"绑定 Telegram",立即开始:"立即开始",重置订阅信息:"重置订阅信息",重置:"重置","确定要重置订阅信息?":"确定要重置订阅信息?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的订阅地址或信息发生泄露可以执行此操作。重置后您的 UUID 及订阅将会变更,需要重新导入订阅。",重置成功:"重置成功",两次新密码输入不同:"两次新密码输入不同",两次密码输入不同:"两次密码输入不同","邀请码(选填)":"邀请码(选填)",'我已阅读并同意 服务条款':'我已阅读并同意 服务条款',请同意服务条款:"请同意服务条款",名称:"名称",标签:"标签",状态:"状态",节点五分钟内节点在线情况:"五分钟内节点在线情况",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量将乘以倍率进行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"没有可用节点,如果您未订阅或已过期请","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。",确定:"确定",低:"低",中:"中",高:"高",主题:"主题",工单级别:"工单级别",工单状态:"工单状态",最后回复:"最后回复",已关闭:"已关闭",待回复:"待回复",已回复:"已回复",查看:"查看",关闭:"关闭",新的工单:"新的工单",确认:"确认",请输入工单主题:"请输入工单主题",工单等级:"工单等级",请选择工单等级:"请选择工单等级",消息:"消息",请描述你遇到的问题:"请描述您遇到的问题",记录时间:"记录时间",实际上行:"实际上行",实际下行:"实际下行",合计:"合计","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量",复制订阅地址:"复制订阅地址",导入到:"导入到",一键订阅:"一键订阅",复制订阅:"复制订阅",推广佣金划转至余额:"推广佣金划转至余额","划转后的余额仅用于{title}消费使用":"划转后的余额仅用于{title}消费使用",当前推广佣金余额:"当前推广佣金余额",划转金额:"划转金额",请输入需要划转到余额的金额:"请输入需要划转到余额的金额","输入内容回复工单...":"输入内容回复工单...",申请提现:"申请提现",取消:"取消",提现方式:"提现方式",请选择提现方式:"请选择提现方式",提现账号:"提现账号",请输入提现账号:"请输入提现账号",我知道了:"我知道了",第一步:"第一步",第二步:"第二步",打开Telegram搜索:"打开 Telegram 搜索",向机器人发送你的:"向机器人发送您的",最后更新:"{date}",还有没支付的订单:"还有没支付的订单",立即支付:"立即支付",条工单正在处理中:"条工单正在处理中",立即查看:"立即查看",节点状态:"节点状态",商品信息:"商品信息",产品名称:"产品名称","类型/周期":"类型/周期",产品流量:"产品流量",订单信息:"订单信息",关闭订单:"关闭订单",订单号:"订单号",优惠金额:"优惠金额",旧订阅折抵金额:"旧订阅折抵金额",退款金额:"退款金额",余额支付:"余额支付",工单历史:"工单历史","已用流量将在 {reset_day} 日后重置":"已用流量将在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看节点状态","当前已使用流量达{rate}%":"当前已使用流量达 {rate}%",节点名称:"节点名称","于 {date} 到期,距离到期还有 {day} 天。":"于 {date} 到期,距离到期还有 {day} 天。","Telegram 讨论组":"Telegram 讨论组",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"该订阅无法续费,仅允许新用户购买",重置当月流量:"重置当月流量","流量明细仅保留近月数据以供查询。":"流量明细仅保留近一个月数据以供查询。",扣费倍率:"扣费倍率",支付手续费:"支付手续费",续费订阅:"续费订阅",学习如何使用:"学习如何使用",快速将节点导入对应客户端进行使用:"快速将节点导入对应客户端进行使用",对您当前的订阅进行续费:"对您当前的订阅进行续费",对您当前的订阅进行购买:"对您当前的订阅进行购买",捷径:"捷径","不会使用,查看使用教程":"不会使用,查看使用教程",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"扫描二维码订阅",续费:"续费",购买:"购买",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"确定取消",返回我的订单:"返回我的订单","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?",选择最适合你的计划:"选择最适合您的计划",全部:"全部",按周期:"按周期",遇到问题:"遇到问题",遇到问题可以通过工单与我们沟通:"遇到问题可以通过工单与我们沟通",按流量:"按流量",搜索文档:"搜索文档",技术支持:"技术支持",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。",再次输入密码:"再次输入密码",返回登陆:"返回登录",选填:"选填",必填:"必填",最后回复时间:"最后回复时间",请选项工单等级:"请选择工单优先级",回复:"回复",输入内容回复工单:"输入内容回复工单",已生成:"已生成",选择协议:"选择协议",自动:"自动",流量重置包:"流量重置包",复制失败:"复制失败",提示:"提示","确认退出?":"确认退出?",已退出登录:"已成功退出登录",请输入邮箱地址:"请输入邮箱地址","{second}秒后可重新发送":"{second}秒后可重新发送",发送成功:"发送成功",请输入账号密码:"请输入账号密码",请确保两次密码输入一致:"请确保两次密码输入一致",注册成功:"注册成功","重置密码成功,正在返回登录":"重置密码成功,正在返回登录",确认取消:"确认取消","请注意,变更订阅会导致当前订阅被覆盖。":"请注意,变更订阅会导致当前订阅被覆盖。","订单提交成功,正在跳转支付":"订单提交成功,正在跳转支付",回复成功:"回复成功",工单详情:"工单详情",登录成功:"登录成功","确定退出?":"确定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收银台",请输入正确的划转金额:"请输入正确的划转金额",划转成功:"划转成功",提现方式不能为空:"提现方式不能为空",提现账号不能为空:"提现账号不能为空",已绑定:"已绑定",创建成功:"创建成功",关闭成功:"关闭成功"},jk=Object.freeze(Object.defineProperty({__proto__:null,default:hNe},Symbol.toStringTag,{value:"Module"})),pNe={请求失败:"請求失敗",月付:"月繳制",季付:"季繳",半年付:"半年缴",年付:"年繳",两年付:"兩年繳",三年付:"三年繳",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"開通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待確認",发放中:"發放中",已发放:"已發放",无效:"無效",个人中心:"您的帳戸",登出:"登出",搜索:"搜尋",仪表盘:"儀表板",订阅:"訂閱",我的订阅:"我的訂閱",购买订阅:"購買訂閱",财务:"財務",我的订单:"我的訂單",我的邀请:"我的邀請",用户:"使用者",我的工单:"我的工單",流量明细:"流量明細",使用文档:"說明文件",绑定Telegram获取更多服务:"綁定 Telegram 獲取更多服務",点击这里进行绑定:"點擊這裡進行綁定",公告:"公告",总览:"總覽",该订阅长期有效:"該訂閱長期有效",已过期:"已過期","已用 {used} / 总计 {total}":"已用 {used} / 總計 {total}",查看订阅:"查看訂閱",邮箱:"郵箱",邮箱验证码:"郵箱驗證碼",发送:"傳送",重置密码:"重設密碼",返回登入:"返回登錄",邀请码:"邀請碼",复制链接:"複製鏈接",完成时间:"完成時間",佣金:"佣金",已注册用户数:"已註冊用戶數",佣金比例:"佣金比例",确认中的佣金:"確認中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金將會在確認後到達您的佣金帳戶。",邀请码管理:"邀請碼管理",生成邀请码:"生成邀請碼",佣金发放记录:"佣金發放記錄",复制成功:"複製成功",密码:"密碼",登入:"登入",注册:"註冊",忘记密码:"忘記密碼","# 订单号":"# 訂單號",周期:"週期",订单金额:"訂單金額",订单状态:"訂單狀態",创建时间:"創建時間",操作:"操作",查看详情:"查看詳情",请选择支付方式:"請選擇支付方式",请检查信用卡支付信息:"請檢查信用卡支付資訊",订单详情:"訂單詳情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填寫信用卡支付資訊","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡資訊只會被用作當次扣款,系統並不會保存,我們認為這是最安全的。",订单总额:"訂單總額",总计:"總計",结账:"結賬",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"訂單系統正在進行處理,請稍等 1-3 分鐘。","订单由于超时支付已被取消。":"訂單由於支付超時已被取消","订单已支付并开通。":"訂單已支付並開通",选择订阅:"選擇訂閱",立即订阅:"立即訂閱",配置订阅:"配置訂閱",付款周期:"付款週期","有优惠券?":"有優惠券?",验证:"驗證",下单:"下單","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"請注意,變更訂閱會導致當前訂閱被新訂閱覆蓋。",该订阅无法续费:"該訂閱無法續費",选择其他订阅:"選擇其它訂閱",我的钱包:"我的錢包","账户余额(仅消费)":"賬戶餘額(僅消費)","推广佣金(可提现)":"推廣佣金(可提現)",钱包组成部分:"錢包組成部分",划转:"劃轉",推广佣金提现:"推廣佣金提現",修改密码:"修改密碼",保存:"儲存",旧密码:"舊密碼",新密码:"新密碼",请输入旧密码:"請輸入舊密碼",请输入新密码:"請輸入新密碼",通知:"通知",到期邮件提醒:"到期郵件提醒",流量邮件提醒:"流量郵件提醒",绑定Telegram:"綁定 Telegram",立即开始:"立即開始",重置订阅信息:"重置訂閲資訊",重置:"重置","确定要重置订阅信息?":"確定要重置訂閱資訊?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的訂閱位址或資訊發生洩露可以執行此操作。重置後您的 UUID 及訂閱將會變更,需要重新導入訂閱。",重置成功:"重置成功",两次新密码输入不同:"兩次新密碼輸入不同",两次密码输入不同:"兩次密碼輸入不同","邀请码(选填)":"邀請碼(選填)",'我已阅读并同意 服务条款':'我已閱讀並同意 服務條款',请同意服务条款:"請同意服務條款",名称:"名稱",标签:"標籤",状态:"狀態",节点五分钟内节点在线情况:"五分鐘內節點線上情況",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量將乘以倍率進行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"沒有可用節點,如果您未訂閱或已過期請","确定重置当前已用流量?":"確定重置當前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"點擊「確定」將會跳轉到收銀台,支付訂單後系統將會清空您當月已使用流量。",确定:"確定",低:"低",中:"中",高:"高",主题:"主題",工单级别:"工單級別",工单状态:"工單狀態",最后回复:"最新回復",已关闭:"已關閉",待回复:"待回復",已回复:"已回復",查看:"檢視",关闭:"關閉",新的工单:"新的工單",确认:"確認",请输入工单主题:"請輸入工單主題",工单等级:"工單等級",请选择工单等级:"請選擇工單等級",消息:"訊息",请描述你遇到的问题:"請描述您遇到的問題",记录时间:"記錄時間",实际上行:"實際上行",实际下行:"實際下行",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(實際上行 + 實際下行) x 扣費倍率 = 扣除流量",复制订阅地址:"複製訂閲位址",导入到:"导入到",一键订阅:"一鍵訂閲",复制订阅:"複製訂閲",推广佣金划转至余额:"推廣佣金劃轉至餘額","划转后的余额仅用于{title}消费使用":"劃轉后的餘額僅用於 {title} 消費使用",当前推广佣金余额:"當前推廣佣金餘額",划转金额:"劃轉金額",请输入需要划转到余额的金额:"請輸入需要劃轉到餘額的金額","输入内容回复工单...":"輸入内容回復工單…",申请提现:"申請提現",取消:"取消",提现方式:"提現方式",请选择提现方式:"請選擇提現方式",提现账号:"提現賬號",请输入提现账号:"請輸入提現賬號",我知道了:"我知道了",第一步:"步驟一",第二步:"步驟二",打开Telegram搜索:"打開 Telegram 並搜索",向机器人发送你的:"向機器人發送您的","最后更新: {date}":"最後更新: {date}",还有没支付的订单:"還有未支付的訂單",立即支付:"立即支付",条工单正在处理中:"條工單正在處理中",立即查看:"立即檢視",节点状态:"節點狀態",商品信息:"商品資訊",产品名称:"產品名稱","类型/周期":"類型/週期",产品流量:"產品流量",订单信息:"訂單信息",关闭订单:"關閉訂單",订单号:"訂單號",优惠金额:"優惠金額",旧订阅折抵金额:"舊訂閲折抵金額",退款金额:"退款金額",余额支付:"餘額支付",工单历史:"工單歷史","已用流量将在 {reset_day} 日后重置":"已用流量將在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看節點狀態","当前已使用流量达{rate}%":"當前已用流量達 {rate}%",节点名称:"節點名稱","于 {date} 到期,距离到期还有 {day} 天。":"於 {date} 到期,距離到期還有 {day} 天。","Telegram 讨论组":"Telegram 討論組",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"該訂閲無法續費,僅允許新用戶購買",重置当月流量:"重置當月流量","流量明细仅保留近月数据以供查询。":"流量明細僅保留近一個月資料以供查詢。",扣费倍率:"扣费倍率",支付手续费:"支付手續費",续费订阅:"續費訂閲",学习如何使用:"學習如何使用",快速将节点导入对应客户端进行使用:"快速將訂閲導入對應的客戶端進行使用",对您当前的订阅进行续费:"對您的當前訂閲進行續費",对您当前的订阅进行购买:"重新購買您的當前訂閲",捷径:"捷徑","不会使用,查看使用教程":"不會使用,檢視使用檔案",使用支持扫码的客户端进行订阅:"使用支持掃碼的客戶端進行訂閲",扫描二维码订阅:"掃描二維碼訂閲",续费:"續費",购买:"購買",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"確定取消",返回我的订单:"返回我的訂單","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已經付款,取消訂單可能會導致支付失敗,確定要取消訂單嗎?",选择最适合你的计划:"選擇最適合您的計劃",全部:"全部",按周期:"按週期",遇到问题:"遇到問題",遇到问题可以通过工单与我们沟通:"遇到問題您可以通過工單與我們溝通",按流量:"按流量",搜索文档:"搜尋文檔",技术支持:"技術支援",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"如果您的訂閱地址或帳戶洩漏並被他人濫用,您可以在此重置訂閱資訊,以避免不必要的損失。",再次输入密码:"請再次輸入密碼",返回登陆:"返回登入",选填:"選填",必填:"必填",最后回复时间:"最後回覆時間",请选项工单等级:"請選擇工單優先級",回复:"回覆",输入内容回复工单:"輸入內容回覆工單",已生成:"已生成",选择协议:"選擇協議",自动:"自動",流量重置包:"流量重置包",复制失败:"複製失敗",提示:"提示","确认退出?":"確認退出?",已退出登录:"已成功登出",请输入邮箱地址:"請輸入電子郵件地址","{second}秒后可重新发送":"{second} 秒後可重新發送",发送成功:"發送成功",请输入账号密码:"請輸入帳號和密碼",请确保两次密码输入一致:"請確保兩次密碼輸入一致",注册成功:"註冊成功","重置密码成功,正在返回登录":"重置密碼成功,正在返回登入",确认取消:"確認取消","请注意,变更订阅会导致当前订阅被覆盖。":"請注意,變更訂閱會導致目前的訂閱被覆蓋。","订单提交成功,正在跳转支付":"訂單提交成功,正在跳轉支付",回复成功:"回覆成功",工单详情:"工單詳情",登录成功:"登入成功","确定退出?":"確定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收銀台",请输入正确的划转金额:"請輸入正確的劃轉金額",划转成功:"劃轉成功",提现方式不能为空:"提現方式不能為空",提现账号不能为空:"提現帳號不能為空",已绑定:"已綁定",创建成功:"創建成功",关闭成功:"關閉成功"},Vk=Object.freeze(Object.defineProperty({__proto__:null,default:pNe},Symbol.toStringTag,{value:"Module"}))});export default mNe(); +`};Yo.text=function(e,t){return zi(e[t].content)};Yo.html_block=function(e,t){return e[t].content};Yo.html_inline=function(e,t){return e[t].content};function Xa(){this.rules=YOe({},Yo)}Xa.prototype.renderAttrs=function(t){var n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n +`:">",i)};Xa.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a\s]/i.test(e)}function aMe(e){return/^<\/a\s*>/i.test(e)}var sMe=function(t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w=t.tokens,C;if(t.md.options.linkify){for(o=0,r=w.length;o=0;n--){if(s=i[n],s.type==="link_close"){for(n--;i[n].level!==s.level&&i[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(iMe(s.content)&&p>0&&p--,aMe(s.content)&&p++),!(p>0)&&s.type==="text"&&t.md.linkify.test(s.content)){for(u=s.content,C=t.md.linkify.match(u),l=[],h=s.level,f=0,C.length>0&&C[0].index===0&&n>0&&i[n-1].type==="text_special"&&(C=C.slice(1)),c=0;cf&&(a=new t.Token("text","",0),a.content=u.slice(f,d),a.level=h,l.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",m]],a.level=h++,a.markup="linkify",a.info="auto",l.push(a),a=new t.Token("text","",0),a.content=b,a.level=h,l.push(a),a=new t.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",l.push(a),f=C[c].lastIndex);f=0;t--)n=e[t],n.type==="text"&&!o&&(n.content=n.content.replace(cMe,dMe)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function hMe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&pk.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var pMe=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(lMe.test(t.tokens[n].content)&&fMe(t.tokens[n].children),pk.test(t.tokens[n].content)&&hMe(t.tokens[n].children))},M1=Lt.isWhiteSpace,z1=Lt.isPunctChar,F1=Lt.isMdAsciiPunct,mMe=/['"]/,D1=/['"]/g,L1="’";function Yl(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function gMe(e,t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w,C,_,S,y;for(_=[],n=0;n=0&&!(_[w].level<=l);w--);if(_.length=w+1,o.type==="text"){r=o.content,a=0,s=r.length;e:for(;a=0)u=r.charCodeAt(i.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){u=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,a=48&&u<=57&&(b=m=!1),m&&b&&(m=f,b=h),!m&&!b){C&&(o.content=Yl(o.content,i.index,L1));continue}if(b){for(w=_.length-1;w>=0&&(c=_[w],!(_[w].level=0;n--)t.tokens[n].type!=="inline"||!mMe.test(t.tokens[n].content)||gMe(t.tokens[n].children,t)},bMe=function(t){var n,o,r,i,a,s,l=t.tokens;for(n=0,o=l.length;n=0&&(o=this.attrs[n][1]),o};Ya.prototype.attrJoin=function(t,n){var o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var jm=Ya,yMe=jm;function mk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}mk.prototype.Token=yMe;var xMe=mk,CMe=Hm,pf=[["normalize",tMe],["block",nMe],["inline",oMe],["linkify",sMe],["replacements",pMe],["smartquotes",vMe],["text_join",bMe]];function Um(){this.ruler=new CMe;for(var e=0;eo||(u=n+1,t.sCount[u]=4||(s=t.bMarks[u]+t.tShift[u],s>=t.eMarks[u])||(S=t.src.charCodeAt(s++),S!==124&&S!==45&&S!==58)||s>=t.eMarks[u]||(y=t.src.charCodeAt(s++),y!==124&&y!==45&&y!==58&&!mf(y))||S===45&&mf(y))return!1;for(;s=4||(d=B1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),f=d.length,f===0||f!==p.length))return!1;if(r)return!0;for(w=t.parentType,t.parentType="table",_=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),h.map=m=[n,0],h=t.push("thead_open","thead",1),h.map=[n,n+1],h=t.push("tr_open","tr",1),h.map=[n,n+1],l=0;l=4)break;for(d=B1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===n+2&&(h=t.push("tbody_open","tbody",1),h.map=b=[n+2,0]),h=t.push("tr_open","tr",1),h.map=[u,u+1],l=0;l=4){r++,i=r;continue}break}return t.line=i,a=t.push("code_block","code",0),a.content=t.getLines(n,i,4+t.blkIndent,!1)+` +`,a.map=[n,t.line],!0},kMe=function(t,n,o,r){var i,a,s,l,c,u,d,f=!1,h=t.bMarks[n]+t.tShift[n],p=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>p||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(c=h,h=t.skipChars(h,i),a=h-c,a<3)||(d=t.src.slice(c,h),s=t.src.slice(h,p),i===96&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(h=c=t.bMarks[l]+t.tShift[l],p=t.eMarks[l],h=4)&&(h=t.skipChars(h,i),!(h-c=4||t.src.charCodeAt(T)!==62)return!1;if(r)return!0;for(p=[],g=[],w=[],C=[],y=t.md.block.ruler.getRules("blockquote"),b=t.parentType,t.parentType="blockquote",f=n;f=R));f++){if(t.src.charCodeAt(T++)===62&&!P){for(l=t.sCount[f]+1,t.src.charCodeAt(T)===32?(T++,l++,i=!1,_=!0):t.src.charCodeAt(T)===9?(_=!0,(t.bsCount[f]+l)%4===3?(T++,l++,i=!1):i=!0):_=!1,h=l,p.push(t.bMarks[f]),t.bMarks[f]=T;T=R,g.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(_?1:0),w.push(t.sCount[f]),t.sCount[f]=h-l,C.push(t.tShift[f]),t.tShift[f]=T-t.bMarks[f];continue}if(u)break;for(S=!1,s=0,c=y.length;s",x.map=d=[n,0],t.md.block.tokenize(t,n,f),x=t.push("blockquote_close","blockquote",-1),x.markup=">",t.lineMax=k,t.parentType=b,d[1]=t.line,s=0;s=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r=4||t.listIndent>=0&&t.sCount[M]-t.listIndent>=4&&t.sCount[M]=t.blkIndent&&(K=!0),(T=H1(t,M))>=0){if(d=!0,E=t.bMarks[M]+t.tShift[M],b=Number(t.src.slice(E,T-1)),K&&b!==1)return!1}else if((T=N1(t,M))>=0)d=!1;else return!1;if(K&&t.skipSpaces(T)>=t.eMarks[M])return!1;if(r)return!0;for(m=t.src.charCodeAt(T-1),g=t.tokens.length,d?(B=t.push("ordered_list_open","ol",1),b!==1&&(B.attrs=[["start",b]])):B=t.push("bullet_list_open","ul",1),B.map=p=[M,0],B.markup=String.fromCharCode(m),R=!1,D=t.md.block.ruler.getRules("list"),S=t.parentType,t.parentType="list";M=w?c=1:c=C-u,c>4&&(c=1),l=u+c,B=t.push("list_item_open","li",1),B.markup=String.fromCharCode(m),B.map=f=[M,0],d&&(B.info=t.src.slice(E,T-1)),P=t.tight,x=t.tShift[M],y=t.sCount[M],_=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[M]=a-t.bMarks[M],t.sCount[M]=C,a>=w&&t.isEmpty(M+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,M,o,!0),(!t.tight||R)&&(V=!1),R=t.line-M>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=_,t.tShift[M]=x,t.sCount[M]=y,t.tight=P,B=t.push("list_item_close","li",-1),B.markup=String.fromCharCode(m),M=t.line,f[1]=M,M>=o||t.sCount[M]=4)break;for(q=!1,s=0,h=D.length;s=4||t.src.charCodeAt(y)!==91)return!1;for(;++y3)&&!(t.sCount[P]<0)){for(w=!1,u=0,d=C.length;u"u"&&(t.env.references={}),typeof t.env.references[f]>"u"&&(t.env.references[f]={title:_,href:c}),t.parentType=p,t.line=n+S+1),!0)},MMe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ku={},zMe="[a-zA-Z_:][a-zA-Z0-9:._-]*",FMe="[^\"'=<>`\\x00-\\x20]+",DMe="'[^']*'",LMe='"[^"]*"',BMe="(?:"+FMe+"|"+DMe+"|"+LMe+")",NMe="(?:\\s+"+zMe+"(?:\\s*=\\s*"+BMe+")?)",vk="<[A-Za-z][A-Za-z0-9\\-]*"+NMe+"*\\s*\\/?>",bk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",HMe="|",jMe="<[?][\\s\\S]*?[?]>",UMe="]*>",VMe="",WMe=new RegExp("^(?:"+vk+"|"+bk+"|"+HMe+"|"+jMe+"|"+UMe+"|"+VMe+")"),qMe=new RegExp("^(?:"+vk+"|"+bk+")");Ku.HTML_TAG_RE=WMe;Ku.HTML_OPEN_CLOSE_TAG_RE=qMe;var KMe=MMe,GMe=Ku.HTML_OPEN_CLOSE_TAG_RE,ra=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(GMe.source+"\\s*$"),/^$/,!1]],XMe=function(t,n,o,r){var i,a,s,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(c)!==60)return!1;for(l=t.src.slice(c,u),i=0;i=4||(i=t.src.charCodeAt(c),i!==35||c>=u))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&j1(t.src.charCodeAt(s-1))&&(u=s),t.line=n+1,l=t.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[n,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[n,t.line],l.children=[],l=t.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)},QMe=function(t,n,o){var r,i,a,s,l,c,u,d,f,h=n+1,p,g=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(p=t.parentType,t.parentType="paragraph";h3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c=u)))){d=f===61?1:2;break}if(!(t.sCount[h]<0)){for(i=!1,a=0,s=g.length;a3)&&!(t.sCount[u]<0)){for(i=!1,a=0,s=d.length;a0&&this.level++,this.tokens.push(o),o};Qo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Qo.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Gu(this.src.charCodeAt(--t)))return t+1;return t};Qo.prototype.skipChars=function(t,n){for(var o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Qo.prototype.getLines=function(t,n,o,r){var i,a,s,l,c,u,d,f=t;if(t>=n)return"";for(u=new Array(n-t),i=0;fo?u[i]=new Array(a-o+1).join(" ")+this.src.slice(l,c):u[i]=this.src.slice(l,c)}return u.join("")};Qo.prototype.Token=yk;var ZMe=Qo,e6e=Hm,Jl=[["table",_Me,["paragraph","reference"]],["code",SMe],["fence",kMe,["paragraph","reference","blockquote","list"]],["blockquote",TMe,["paragraph","reference","blockquote","list"]],["hr",RMe,["paragraph","reference","blockquote","list"]],["list",$Me,["paragraph","reference","blockquote"]],["reference",OMe],["html_block",XMe,["paragraph","reference","blockquote"]],["heading",YMe,["paragraph","reference","blockquote"]],["lheading",QMe],["paragraph",JMe]];function Xu(){this.ruler=new e6e;for(var e=0;e=n||e.sCount[l]=u){e.line=n;break}for(i=e.line,r=0;r=e.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),l=e.line,l0||(o=t.pos,r=t.posMax,o+3>r)||t.src.charCodeAt(o)!==58||t.src.charCodeAt(o+1)!==47||t.src.charCodeAt(o+2)!==47||(i=t.pending.match(r6e),!i)||(a=i[1],s=t.md.linkify.matchAtStart(t.src.slice(o-a.length)),!s)||(l=s.url,l.length<=a.length)||(l=l.replace(/\*+$/,""),c=t.md.normalizeLink(l),!t.md.validateLink(c))?!1:(n||(t.pending=t.pending.slice(0,-a.length),u=t.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=t.push("text","",0),u.content=t.md.normalizeLinkText(l),u=t.push("link_close","a",-1),u.markup="linkify",u.info="auto"),t.pos+=l.length-a.length,!0)},a6e=Lt.isSpace,s6e=function(t,n){var o,r,i,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(o=t.pending.length-1,r=t.posMax,!n)if(o>=0&&t.pending.charCodeAt(o)===32)if(o>=1&&t.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a?@[]^_`{|}~-".split("").forEach(function(e){Vm[e.charCodeAt(0)]=1});var c6e=function(t,n){var o,r,i,a,s,l=t.pos,c=t.posMax;if(t.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(o=t.src.charCodeAt(l),o===10){for(n||t.push("hardbreak","br",0),l++;l=55296&&o<=56319&&l+1=56320&&r<=57343&&(a+=t.src[l+1],l++)),i="\\"+a,n||(s=t.push("text_special","",0),o<256&&Vm[o]!==0?s.content=a:s.content=i,s.markup=i,s.info="escape"),t.pos=l+1,!0},u6e=function(t,n){var o,r,i,a,s,l,c,u,d=t.pos,f=t.src.charCodeAt(d);if(f!==96)return!1;for(o=d,d++,r=t.posMax;d=0;n--)o=t[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=t[o.end],s=n>0&&t[n-1].end===o.end+1&&t[n-1].marker===o.marker&&t[n-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token],i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",i=e.tokens[r.token],i.type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[o.end+1].token].content="",n--))}Qu.postProcess=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(W1(t,t.delimiters),n=0;n=g)return!1;if(m=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok){for(f=t.md.normalizeLink(c.str),t.md.validateLink(f)?l=c.pos:f="",m=l;l=g||t.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof t.env.references>"u")return!1;if(l=0?i=t.src.slice(m,l++):l=a+1):l=a+1,i||(i=t.src.slice(s,a)),u=t.env.references[d6e(i)],!u)return t.pos=p,!1;f=u.href,h=u.title}return n||(t.pos=s,t.posMax=a,d=t.push("link_open","a",1),d.attrs=o=[["href",f]],h&&o.push(["title",h]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,d=t.push("link_close","a",-1)),t.pos=l,t.posMax=g,!0},h6e=Lt.normalizeReference,bf=Lt.isSpace,p6e=function(t,n){var o,r,i,a,s,l,c,u,d,f,h,p,g,m="",b=t.pos,w=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(l=t.pos+2,s=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),s<0))return!1;if(c=s+1,c=w)return!1;for(g=c,d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),d.ok&&(m=t.md.normalizeLink(d.str),t.md.validateLink(m)?c=d.pos:m=""),g=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=b,!1;c++}else{if(typeof t.env.references>"u")return!1;if(c=0?a=t.src.slice(g,c++):c=s+1):c=s+1,a||(a=t.src.slice(l,s)),u=t.env.references[h6e(a)],!u)return t.pos=b,!1;m=u.href,f=u.title}return n||(i=t.src.slice(l,s),t.md.inline.parse(i,t.md,t.env,p=[]),h=t.push("image","img",0),h.attrs=o=[["src",m],["alt",""]],h.children=p,h.content=i,f&&o.push(["title",f])),t.pos=c,t.posMax=w,!0},m6e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,g6e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,v6e=function(t,n){var o,r,i,a,s,l,c=t.pos;if(t.src.charCodeAt(c)!==60)return!1;for(s=t.pos,l=t.posMax;;){if(++c>=l||(a=t.src.charCodeAt(c),a===60))return!1;if(a===62)break}return o=t.src.slice(s+1,c),g6e.test(o)?(r=t.md.normalizeLink(o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):m6e.test(o)?(r=t.md.normalizeLink("mailto:"+o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):!1},b6e=Ku.HTML_TAG_RE;function y6e(e){return/^\s]/i.test(e)}function x6e(e){return/^<\/a\s*>/i.test(e)}function C6e(e){var t=e|32;return t>=97&&t<=122}var w6e=function(t,n){var o,r,i,a,s=t.pos;return!t.md.options.html||(i=t.posMax,t.src.charCodeAt(s)!==60||s+2>=i)||(o=t.src.charCodeAt(s+1),o!==33&&o!==63&&o!==47&&!C6e(o))||(r=t.src.slice(s).match(b6e),!r)?!1:(n||(a=t.push("html_inline","",0),a.content=r[0],y6e(a.content)&&t.linkLevel++,x6e(a.content)&&t.linkLevel--),t.pos+=r[0].length,!0)},q1=uk,_6e=Lt.has,S6e=Lt.isValidEntityCode,K1=Lt.fromCodePoint,k6e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,P6e=/^&([a-z][a-z0-9]{1,31});/i,T6e=function(t,n){var o,r,i,a,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38||s+1>=l)return!1;if(o=t.src.charCodeAt(s+1),o===35){if(i=t.src.slice(s).match(k6e),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=t.push("text_special","",0),a.content=S6e(r)?K1(r):K1(65533),a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0}else if(i=t.src.slice(s).match(P6e),i&&_6e(q1,i[1]))return n||(a=t.push("text_special","",0),a.content=q1[i[1]],a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0;return!1};function G1(e){var t,n,o,r,i,a,s,l,c={},u=e.length;if(u){var d=0,f=-2,h=[];for(t=0;ti;n-=h[n]+1)if(r=e[n],r.marker===o.marker&&r.open&&r.end<0&&(s=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(s=!0),!s)){l=n>0&&!e[n-1].open?h[n-1]+1:0,h[t]=t-n+l,h[n]=l,o.open=!1,r.end=t,r.close=!1,a=-1,f=-2;break}a!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var E6e=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(G1(t.delimiters),n=0;n0&&r++,i[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};bl.prototype.scanDelims=function(e,t){var n=e,o,r,i,a,s,l,c,u,d,f=!0,h=!0,p=this.posMax,g=this.src.charCodeAt(e);for(o=e>0?this.src.charCodeAt(e-1):32;n=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,s[o]=e.pos};yl.prototype.tokenize=function(e){for(var t,n,o,r=this.ruler.getRules(""),i=r.length,a=e.posMax,s=e.md.options.maxNesting;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=a)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};yl.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),i=this.ruler2.getRules(""),a=i.length,r=0;r|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Cf}function jh(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function Ju(e){return Object.prototype.toString.call(e)}function O6e(e){return Ju(e)==="[object String]"}function M6e(e){return Ju(e)==="[object Object]"}function z6e(e){return Ju(e)==="[object RegExp]"}function ey(e){return Ju(e)==="[object Function]"}function F6e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function D6e(e){return Object.keys(e||{}).reduce(function(t,n){return t||xk.hasOwnProperty(n)},!1)}var L6e={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},B6e="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",N6e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function H6e(e){e.__index__=-1,e.__text_cache__=""}function j6e(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function ty(){return function(e,t){t.normalize(e)}}function Hc(e){var t=e.re=I6e()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(B6e),n.push(t.src_xn),t.src_tlds=n.join("|");function o(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var r=[];e.__compiled__={};function i(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){var l=e.__schemas__[s];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[s]=c,M6e(l)){z6e(l.validate)?c.validate=j6e(l.validate):ey(l.validate)?c.validate=l.validate:i(s,l),ey(l.normalize)?c.normalize=l.normalize:l.normalize?i(s,l):c.normalize=ty();return}if(O6e(l)){r.push(s);return}i(s,l)}}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ty()};var a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(F6e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),H6e(e)}function U6e(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function Uh(e,t){var n=new U6e(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function oo(e,t){if(!(this instanceof oo))return new oo(e,t);t||D6e(e)&&(t=e,e={}),this.__opts__=jh({},xk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=jh({},L6e,e),this.__compiled__={},this.__tlds__=N6e,this.__tlds_replaced__=!1,this.re={},Hc(this)}oo.prototype.add=function(t,n){return this.__schemas__[t]=n,Hc(this),this};oo.prototype.set=function(t){return this.__opts__=jh(this.__opts__,t),this};oo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,o,r,i,a,s,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};oo.prototype.pretest=function(t){return this.re.pretest.test(t)};oo.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};oo.prototype.match=function(t){var n=0,o=[];this.__index__>=0&&this.__text_cache__===t&&(o.push(Uh(this,n)),n=this.__last_index__);for(var r=n?t.slice(n):t;this.test(r);)o.push(Uh(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};oo.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var n=this.re.schema_at_start.exec(t);if(!n)return null;var o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Uh(this,0)):null};oo.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),Hc(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Hc(this),this)};oo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};oo.prototype.onCompile=function(){};var V6e=oo;const va=2147483647,jo=36,qm=1,nl=26,W6e=38,q6e=700,Ck=72,wk=128,_k="-",K6e=/^xn--/,G6e=/[^\0-\x7F]/,X6e=/[\x2E\u3002\uFF0E\uFF61]/g,Y6e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wf=jo-qm,Uo=Math.floor,_f=String.fromCharCode;function Mr(e){throw new RangeError(Y6e[e])}function Q6e(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function Sk(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(X6e,".");const r=e.split("."),i=Q6e(r,t).join(".");return o+i}function Km(e){const t=[];let n=0;const o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),J6e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jo},ny=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Pk=function(e,t,n){let o=0;for(e=n?Uo(e/q6e):e>>1,e+=Uo(e/t);e>wf*nl>>1;o+=jo)e=Uo(e/wf);return Uo(o+(wf+1)*e/(e+W6e))},Gm=function(e){const t=[],n=e.length;let o=0,r=wk,i=Ck,a=e.lastIndexOf(_k);a<0&&(a=0);for(let s=0;s=128&&Mr("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Mr("invalid-input");const f=J6e(e.charCodeAt(s++));f>=jo&&Mr("invalid-input"),f>Uo((va-o)/u)&&Mr("overflow"),o+=f*u;const h=d<=i?qm:d>=i+nl?nl:d-i;if(fUo(va/p)&&Mr("overflow"),u*=p}const c=t.length+1;i=Pk(o-l,c,l==0),Uo(o/c)>va-r&&Mr("overflow"),r+=Uo(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},Xm=function(e){const t=[];e=Km(e);const n=e.length;let o=wk,r=0,i=Ck;for(const l of e)l<128&&t.push(_f(l));const a=t.length;let s=a;for(a&&t.push(_k);s=o&&uUo((va-r)/c)&&Mr("overflow"),r+=(l-o)*c,o=l;for(const u of e)if(uva&&Mr("overflow"),u===o){let d=r;for(let f=jo;;f+=jo){const h=f<=i?qm:f>=i+nl?nl:f-i;if(d=0))try{t.hostname=Rk.toASCII(t.hostname)}catch{}return yi.encode(yi.format(t))}function gze(e){var t=yi.parse(e,!0);if(t.hostname&&(!t.protocol||Ak.indexOf(t.protocol)>=0))try{t.hostname=Rk.toUnicode(t.hostname)}catch{}return yi.decode(yi.format(t),yi.decode.defaultChars+"%")}function po(e,t){if(!(this instanceof po))return new po(e,t);t||Is.isString(e)||(t=e||{},e="default"),this.inline=new cze,this.block=new lze,this.core=new sze,this.renderer=new aze,this.linkify=new uze,this.validateLink=pze,this.normalizeLink=mze,this.normalizeLinkText=gze,this.utils=Is,this.helpers=Is.assign({},ize),this.options={},this.configure(e),t&&this.set(t)}po.prototype.set=function(e){return Is.assign(this.options,e),this};po.prototype.configure=function(e){var t=this,n;if(Is.isString(e)&&(n=e,e=dze[n],!e))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&t[o].ruler.enableOnly(e.components[o].rules),e.components[o].rules2&&t[o].ruler2.enableOnly(e.components[o].rules2)}),this};po.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};po.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};po.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};po.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};po.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};po.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};po.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var vze=po,bze=vze;const Zu=kp(bze),yze={xmlns:"http://www.w3.org/2000/svg",id:"Layer_1",viewBox:"0 0 442.19 323.31"},xze=Y("path",{d:"m72.8 140.45-12.7 145.1h42.41l8.99-102.69h.04l3.67-42.41zM124.16 37.75h-42.4l-5.57 63.61h42.4zM318.36 285.56h42.08l5.57-63.61H323.9z",class:"cls-2"},null,-1),Cze=Y("path",{d:"M382.09 37.76H340l-10.84 123.9H221.09l-14.14 161.65 85.83-121.47h145.89l3.52-40.18h-70.94z",class:"cls-2"},null,-1),wze=Y("path",{d:"M149.41 121.47H3.52L0 161.66h221.09L235.23 0z",style:{fill:"#ffbc00"}},null,-1);function _ze(e,t){return ge(),ze("svg",yze,[Y("defs",null,[(ge(),We(xa("style"),null,{default:me(()=>[nt(".cls-2{fill:#000}@media (prefers-color-scheme:dark){.cls-2{fill:#fff}}")]),_:1}))]),xze,Cze,wze])}const Sze={render:_ze};var Os=(e=>(e[e.PENDING=0]="PENDING",e[e.PROCESSING=1]="PROCESSING",e[e.CANCELLED=2]="CANCELLED",e[e.COMPLETED=3]="COMPLETED",e[e.DISCOUNTED=4]="DISCOUNTED",e))(Os||{});const kze={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},$k={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"},Pze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEVGpf9Do/8AZ+VIp/83m/1Lqf8AZeQmkfkymPs7nf4Cg/L1+f48n/80mvwtlfrx9/4cjPcZivX3+v4BaeQBgPEAbeg+oP/v9v4BauYBfvDn8f3u9f1Bov8/of8AZeMqlPr4+/4Oh/Qjj/ggjvcAXsoAcOnt8/0BcusIhfM4nf7l8PwSh/QAe+4AduwAee3k7/zz+P/6/P4BYMwBfO/i7vwvlvsAdevp8f3h7Prk7vsAYtLp8/0Wivb9/v7g7P0BZ+Dd6/zc6vwAYM77/f6Ns9yUuOAAZNXr9P7a6PmcvuIBaOKXu+CPtt+RtNva6fzS4vYAZdnV5fjA1++20OvY5/re6vzX5vjI3fS50u0AZdzU4/euyuixy+elxOWXudzL3vK91e2dvN+Ut9sAYdCzzemoxube6vnG2/HF2e+qyOmgweTW5vrK3/XC2fGsyOeMstvs8vvS5PnP4fXM4PXO3/PH3PPE2/O20e6zzuywzOoAcObC2O+jw+agwOGbu91AfdGmxugHYa3z9/zQ4/fN4faiweMAbuKaveEAZt4CX63Y6Py50+/B1usBdun////o8Png6ve91vG71PC80+qty+oAeOoAc+fY5PTS4fPJ2+8Bf+260ekAbeWsx+QAad4AbNjf7P3i7Pjd6PbA1/MAe+yyzesAduYwlPcZiPErkvYmj/WoxeOkwuJDn/wijPMNhPAXhO4AfOm3z+iFrNkAadIvdNBWqP1ztfwuiOoAcd44edElbs/W5PakyfVdo/IrjvF+sO1QmOtTkOC32f1OpP2Cu/q51veu0PeKuvI4kfCbwO6Su+4hie4KgOwGdeITZ80caLKgzP7C3v1erP3L4/xyrvNHmPGvzu5yqOw8kesQf+kggehGjuaBrOIeeeFnmdpXjdcCaNYQZK+TxfzB2vc6l/Vnp/GkxvBjouxbmumIsuhknOQ4g+Iuf+J6pNdzoNIcas5omMwmbbSax/hGnPVTn/MRd+d1pOF9qOBDht4NZc0yfNgYc9hfkcg4d7owc7j13NKGAAAKFElEQVRo3uzUP2gTURzA8RMjJlzj6RsM5BRPhQPjkGQIyXFGBIdzURDESRzEQVDw/LOJQw6XiFwEBwUR/DPkjyQGhMSliZI/rRohSRvBNbXipNjW0T+/e7kber73ajNkEL+06aP58fvwrn+4TRNoMsjGCTQhhIMPy1rHgRsdOPcBPvGQ68D9b31tmED/ELJjAnE7JxC3fa2mnMP4U9zUFEzAy5TrAOHDxrkNo4P9HvEAUzsIbzkbAWHm6wUaFd9aQ5VGosoY4nzsmodMc76yjz20oYFQjzGzBuKpItM0+xxT2bdgIKlfZCD7WPn8C2YS6vkYQ565gxJChyoe6gTnYbbYsBBTqPrpM8WGhCQkVr3UCTbiXzkGCCg3m1TFXxWRJCFjYVzEWxMBsepRjWIfWQiaWaQjflbZajQ5Sq56ySPeloEQGOjGCkyQYyLe7LJ9kcPJfpE8UpxHOD7xPUtFvKyybRMTEN+KkSZiLYPHhqEPsrQ1HNNYvGQCMep8MxaL+X3FZrMyV6k0i0WPF74BF+ERDxnGbH485HsYiFFRaXmu1WvM33wYDgaD4YPH5vszC9VKKwDACJnOxmhIjFH+k5C0CUhQUdRKghB+QUIozttFjI+LWcoebgu9bKEVdQic5IRG8fhJOcjxlTxlEROpLyejQDi5CAw4REQQHtXGQfL1djJKINyCELGMgD4o7KIgu+jlX99Irn0LEMAARHxbz5MXcQyj8D7xtwRGZqjIZmr5Uk12EVQBIx9fF8ibGEihNOAlN0EGgAgExOPvx0A6sy6BQYAh366VxkCmo/TnJKwiMJIZlApkZA+1Ur0dRSQBWg2AAMn6bKdA3MRCXl+SkGPAfVyCQwgRARuarE93SmRkL7Xc+4RzCySeO3VVIF5CPvfgWhyuAenteom4iY5szdV0+zmhzNfucOmo+IcgBjLPl4ZLXxRR1jRVv/JhGxnZSq08MOx/gOh0KpVKd+/zf/wghKfDdCo1vB6QVVXPHHmV20vaREdK5VneTvyRtpTnEZtwDOgrfuebCsVDjz7ltq4PyZWnkY0EHMRFyLKDxMGIh5SX5W1EZButXKeN7N8n/vownU4v3YqsEiBNPNWFd7pPtXg8GAxl3pRzpFUM5MUFAKyEiP78V/fnddEWbEDTZFUOnvnZ/XVRAQIQZaazTqT84YRhCTjx3q27LkKWVav41TtXg6PCypMXZOQApdyzV4rghP/kRMgW4BMD1kNSNdW6BRRWLn94tp+wi9tP691n3RZwWNDsxyQ7Ai5kpyROvnpGWsXtJgfIS9FFiJiAr2dPgeQmwmEl8fjTu/2EZb8pJ3uYJsIADDu7uJgY4+RijLE41JC7mJB20glT6A8pxmpCTgyotaD8NHFA4oC59DBcr1w00uPayaQ2cShJUWBQgcBosVQmI/g3OKiDDr7f992f7d3AE0rb5Xnu/e564DhK9OX8gP+ljfWJI4eaCyfO55/03fvx43LvM8EunKGc5TlpacOaAg+DRDwo1RcnzAKw7gT/5Na9ePXqrZscEo4CgZPW6iW3JSc9KG2/njhmjmDgPoDz53BS5HfhmEATHR2cUNsuubg8I2pl0DnC9V6zBCuAuYgwXVHdIgc9UN+HmkZYBccGu4AGIrH3qovLK3JYXeao3n5e3RPUTl5zgUDkwsVl9fA+IuW9DBJGAdin5NzAcfB3BCKRABKB4IXqXnlfka1k0jqm1gKPAMAOYgdBQlhZco0cdkctv00CFByHxJ/BH8/ziLAAJpj+zmBn51Q4ul5WW2Xekd2k85QAj4ZVmHNOQIIwNTUQ3a3vI6LX3yTNDQB65rdOiWyIBFmDBqbC4fBAfGRbP9oaOeqOvj2ftBNWo8OxIUhhE5AgjYH4fKXcKmuK+J+vvnuFd1WuTJ6yn1ZWMCawDdBTTD/ldvxOo6x6R1ji5ZuQEPvpP+qXG1HehD2qSESApYfZkkMfCt0G9xOfZZeI38HqIpfJZKRPfr8uLmt5nucMcPGCEAwKFyhEHo1GB0KAuOPETpicHEpsFXV/M87Iu4+ZDJ9JbdV1v17ck/IcEAhBAXoK7IDZnXIwBAZjiSW3yGmL1Y+ZfD5fa2wWZV0vbkmSACy9KY8D2C8CyFOGnBADd66tb+qnm7EjzxfRkNZ3ni6gIhffSpqmWXrTDjXk91Op1GSKuWPUDe4SbqTXdmTdM9L2UstL0trfFy+eLiCyuaZFTb9lh97DDv2NeULX9e9iW0ukzWBjF42uP2iQiPhrV6tGq9WqqU+BoWGqTxj2a8wN4J8mPAJj38S2ZsyIrxLD+XxgDVEu7owoDv/w8NDwYCJB9JDbdly5ZX9I6RltZGWvSPtyVdOUFaPhy36fzgHoCQkCuXZA3Ol0ugtQOVOPmHR3r2R9LREfI/tZUZQcIgtZ0eeTs9/6c7h8pocc9Pf3Q0/tV64we08Ps48SarXRQq1Q6Ps6DsH/GBFxnESUr6yBr41ZGjD1adBF/QBy2LsBkRcKhbGZsRmD3r7fXpF28cFKTskpXxbGxXby9fHKbGKW+W096CEYesgJvTO9121uXvqwmW1vjvyjjIx5EwXjOPwp+g007gwdHI2YWDXpeMkBF6AmvQ52adKEVHQpLm42jQSkH0AnPZOLLk3Hu4H1kosFx7NXz6lVr0N/7ytCQBz6DCR/As/z8ueQcquR/bQvnxVvfNJ9f6C/DOlvNvZ6mMoMkQh+5O1r++LLxezFG191+JtU3wpOf0L1n73Dl8v1Os9fheDLxUdlJ5KiKNrdsq3r+un971TqEOPktAl9CwGD+E8A0YNKpVIGPE/812dR+MKjkorgR6b/P+lkRT/+fH/BOGu2jEDPcdQe6GGHPx9DtfGs3O6L3H1zdL1JuPl5/+vpyuhTP+f5ff01qFar+XwDFHYRxb9mMjaSRCRnTxBpUQyj7/tB4D+DHn6qZ2MpiCttJ5LcoFlTebFEBP4+LWzP34W+B7+v9/zFeFh1pSnJMNuIaU3TmbVbRgUNDo1Op9Pt8r0eAsF2BJaViD675fw8G6IoqQ9H+yKKZuVkhhk7LGcY6HAcjXTRwB8QRbGhqoIgSKBUIu6ALO3gbglIgvhgmfsipnVMKow9cp3XyUDkQAeQTg8ZgAwgmQgSQQAqkFa7kQMPU8PCSCWRSOA6rrnOfDnIFllBFX1UQEtezQviwwaDwXz+z3Hd2nBqmQdhENlWjqzjtJxhNiRoa23bi/F4PASj0agWYQSGAE8sFra93rwm5+IjQSWXluVMxs98HIZ5724OkRgIYSgMdyp6gRhUD4LJDAIRFRu9l8mx+8os7LAMSMR+/r0fEZpGUCF2zTlGlErqsv69pHREXUcCCbuZolRSkHrdHzRHgVHOJkMk9IhEmNm9pE5xKTeqauZC4QaRAQFS4H/W6I1VXjCIEIVpZOyAVDwnFZ3CGKENXu8NHhT5bLAn8t3gB5tRcTnQFMqEAAAAAElFTkSuQmCC",Tze="data:image/png;base64,UklGRiYGAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSJ4CAAABkAVJsmlb8847eLZt27Zt27Zt27ZtG9e2bdv39tNZe++17vNPREwA/dOZo6hWhOxFssnRaNra4w+M3CJNqvLX1D7cxeDukVWTazDpXKDXrxFvXaOg9x1TDg99iOzM17Ak6Ddgc2dA0hCeZoL1k2zImMbPGvABrORlP7jBHi40l8ARzquVy/MEXOFhLqWKGYAzfCqiTGV7cAfbCko09IUA8KonX8cICIGwdnINToQgiO8vz9QMCIP0iXKsgNx8AEuk7YZg2C5BfQ7C4ZSKJdcDZAK4UyR7iSq1a1Uuri3+EZkCgt0jk1JTE8OdfJFJ8PoTsW7ZP5APx45dffiYRFTTlQfjkkQb+RhJRKXNlXuej4iW8TGaiKjAa6Wu6oiIVnBE2W8qc4h+yBVlOa7EehKBaLN8s0kQWiBT8ggShsak6ktL1xfdjQSiXhEIfLFzUrdm9es37zlt37sw+DQjoahCu0LEXLxDCRJM6f84fDIDYybV/XTx0o4xkab6sL0fQwRY+aOA19v6V8rK9sPCrRccPHhoT2meah08ePDArKYFiP+ClSqUlEXc0h5J8fGDuWozdpTE0YNys5WKAjCSLfeg0aMkjm3DVAsybmCjdYCxmm0tZKzFUtQg0E+iv98gCfm90YPY+/v6+0kMNCjKQup8eaXmJKm1e5DUnHml5lPTL7y21f4PrZVq9WF/Ky0n6qbb7AFsVWorAPttTdWKqRpusAYAx+1FlSq63REArDc0VClRZ5VZOgC3/W11xKGu7X43AOlmq+rIVGOJYSoAr6OdchC3OTod9QKQarikhqTi8z8kA/A70yM3cZ67xxk/AMkf5hdnUhkBCLrULx8Jma/fpSAARioWuhR+c0ghErjQkJvhl4hZXYCEL6Bm+5cSVlA4IGIDAAAwGQCdASpQAFAAPkEaikOioaEa2ed8KAQEtgBbJur/YPxm64bFPaPyH5r3ezvr+QGYz+G/on+Z/p35Z9rD8o+wB+lvmZ+p3+Af3D+5ewD9b/2v94D0Af9X1AP8H/uvVU/zfsMfsV7AH7O+mR7Gn7ifuB7V2Yn/RLToBFaF49vT657i4FNhTFMPtqGBnLHb4B0mdEFIcp89CJvbbCPD4/QeZhwQQzZ8BxgBYJstiZqMBJD6z585YDHszJsSre6r3yMDyPrDGOzaYTcIIILf8uoSangA/uHNmzlTvvlp4WxismwIwhrpTbKk5HA99Zt/tjf//B1f/wjF//4Oz7Ro8qdwrGruK80gZGdfcjEjVmeAY3UNq/bKHbPJeZyPGePUJYsf1pTxUT+M/1yY9sp5QEaUI/nWbM+hrV4Wv2GCz8YHB1EU6uczvWjFJmo/ILHBjfR2dpCGtC7aaJrcU2802eJTgxsCLzPMTBp+iLQAcf1z34AZndAHu/MsTUnzhvX5iBLRl0rcsyt8px9H3DpVdPqz9F30dKwOAKELHB71muyZVCqSi6Ijvf/Z3WEYi+Jy9gg4gwMX75I/kfFsZTr7B6AUO5g/bTvaEq7oh9QTCrGVLPJY2tIyTiFf6+rnBPHuJQFG2ntz1V2ZE3kFqOf1JYkNtmTx5bM42JZLzDv8lK+cZlqBMuGj5tTqsUlkszMA9vYVj/+YQXiow3o8IGtvSD8Z9yp7r5vAB/RBYfyMXHGCD2/Vj9Krhqkp9w11usppHaLv4fZw8b3KwrMeg4xklboK6/9Fk8fH9jbQr2Gh3gBR1O00KEtl0DoRpGMbFooOH7dbaaubWVWnZJSKjwKIyP/s2PwjLOOynzDVSVfh9QzyYBAtiUl2qfMRoRAekN+1zwxjUnBZz1zVVnum4pxFz4O/ytYWZA4AKd06/BG2+/aqSmflFZELL5IvsKadrnEUwQiAtJkrfXIu0S5ATyAZ8U7ztY9txpPVO65FVvH6NJPkeoxN4DJMkkeJyGkxeZyTOKOXTYLyG410M+lef83/R1x+Fufa2JlrS4UJj9uQp/8XdI+6n2yYec5INem5wZ3l+51bAhgdYqwdZhQ4nrP/8zviDM+SQAmVegbwNZIXMtlySH9p0fzgvNUc4nPYjSzoYgAAAA==",Eze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAB7FBMVEVFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lHcExr5uSJAAAApHRSTlP/9/1D/u1CWC8ucnhZ6/xaRFdxb+p5Avtw6Ol3+AT65ezz5w8VgE0G9dkeJgvM1u/uUj16FyqyydO529+RLX0QU4ufvOCS+ZfkxWJnKGsJNxwrDDA1OgHy16j0W0UWNMPm44Gv2Jrd4qmP9rjHjtGYg4i2u6HKz10+JDMZXBh/HUEiSyxQX0Buc1QgSU4aoMTxq7UFbHtRMjwDCA0SShHOtCc2AIfjeMgAAAAJcEhZcwAALiMAAC4jAXilP3YAAALsSURBVGje7dnnUxpBFADwBwgYMIaIgEhTukiJAmqMMfYWW4w9lvTeeze9996b/2gYFO7EW7LIvsuY8L4ww+7jd+yyFZgXISCH5JBVi3xT6mQWXEQ/1WqAkBoVudkQglhMIiL+niDEoxAPGdhjBWTkmssIgIt4qmqBCykKsq3FC8jIlpJNALiIXtYqBWTk0aEQpEYeW6T/bh0AMjLzsgOQkS9hGwAy4pgAQEdGJkVAqgxADGbIemkO+fvIR8drdGSmJTDxHhdx6rpi2d1ORMTifh7P9n5IvqVkjfTuK1/Ilsi4wVjIFHH01SeyJQpuzbWTCHvmyOi9I9wz8xC91mY2myWpYZbU3ckY8TXLeQ/JQ+b1vZopjUYWD8XCiyYWN3yZbrj7rx5f0hJ8hNWu/vJBMyAjznBXap+yRiy3Zpf/cBgjlZ1jkB7xv9OFdTp1LEwmdSJMalU17SHo89YKwSHAQz61W4WHidxEh0RrCGsrD6kuJw3GMSpk6BUpn4esyyNVojs6RIspkB1ExECFbN8gApIvF6G5ckgOISMFRIRwZvQ8bnBVIiP5Z2Pz0NE5TMSp2xUvu5AhIqVHLO7uxTItGlJ5IjljZ4goaZEh/tpUgoOMLFmbUJArJ0uXlBWxQrjTr+fhuZQy9sjtZ97UMhVjZNkVFXtkVHFGqAJTZLBZeAlniOi/BghlHLImW+Qt8QOoEBkVQtxSsUTKxEDW/gdI0apCIA1SIgai/WeQ+2IgpmT+8As05LQ/ka8CNMTaHo1Epqcjvh4bHgJg3DseDI63WQET+XNQIsU5hBFyoLPx+m5X46lA1kgpsaStejF9cCMNUrAi5Fgy/0kHGpLhBEk+zsUGHKtFa2UI1Q6SDiFefsMDdt/ETrNbKcsS2UmBbM4WsVF0PCKiorkelFFc4KRrrj6Kjj98MVmpKc1grCGO0gHuXxnivHL+abLSpQpSpe/w84fwwmd8o+dO38O1wm1R7+bdAjTtFz7Fz/76DY+rJdzy4R8QAAAAAElFTkSuQmCC",Rze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABdCAYAAABTl8MxAAAAAXNSR0IArs4c6QAAEtRJREFUeF7tXXlwlOd9flZ7n1rtSisJ3UIcuk8kGSHMZYNjY+PaLq3bSYbU6djTdNKZpjOdNq2dmU4zjRN3WjexY5ohxsZxjF2gNGDuUwgE4j5tjO77lvaSVrtb/16xqgwrfceeYvr7B2b0fd97PO/z/s73XYnX6/UiisXtdqOlswcH687h5t0m9A8Ng3ocZ9AjJyMVjy8rRXHuIsik0igeBf+uSaIVEFonYzY7dh44iqP1jZhwuWYd1eLMNLz6R88j2RI/74GJSkBo8ls6uvHeJ3vQ3NHFa3mplUo8/+QqPLF8GTRqFWIkEl7vRdtDUQUIsWJkzIaDdWex91gdnOMTguZLGhODjJQk/MWfvIhEswlKhVzQ+9HwcNQAQqxoau/CB3v2405Tq+i5kUgkiNVpsXHNCtSWlyBWr0VMTIzo74X7xagAZHBkFKcbr2DPkVMYtdqCMgfEjsWZ6Xhpwxpkp6XMG7ZEFBCXaxJ329rx2YFjuHm3Ga7JyaCA4fsI6RGT0YAnaqqwuqoMRr0OxKBologBMjJmxdGzjThY1wBiiMfjCdk8qZQKLMlMx+an1yEzJRlymSxkbQX64bADMj7hQmtXN3buP4rbTS1wOMcDHQOv94ktcbEGrKkux7cefww6jYbXe+F+KGyAEAOGx2y43dSOzt4+HDh1BsOjY+EeL4gt6cmJ+PPNm5CxICns7XM1GBZAJt1uNHX0YGLSDY1KBbfHg+7+Afz34eNo7ewGeePhFNIjeq0GT69ajm89vhwqhSKczc/ZVsgBsdqd+KqtCwa9HjExkmml6vF6MT4+jrrGKzjRcAF2hzPsk0K6JH1BEl7dvAmZqclhb99fgyEFpHtgGCNWB1QqJWazbWgr6xkYxKf7D6GlowvhDq0RWzQqJV54cjXW11ZBIY+sMxkSQMicbe8bYmzg65TRtnbiXCMO1dWD3g+3UD+XZKXjlRc3Ii05CZGyjoMKCG1DI6M2tPYMsJWu12kgk8oEDa6rdwA79x9Ee3dP2HULLYJYvQ6b1q3E2uoKZgCE228JCiA0+bTC23oGMDJmBwHjExqUVqMWFOybcE2irvEyjp87z3RLKH0Uf0yUSqUoWJSN72x6CkkJ5rD6LQED4vF4YXeOo6W7D+PjLvhLrkilMcyqoZwF3xXHdEv/ID77/DAzk8cnhAUag7HlmWINLPRSVZwPnUbNu++BtC0aECIBsaJ/aBS9Q6Ps/3MJAUFsUauUoKgsX7E5nGi4ch1nGi9jZGyMmczhFLlMirycbPzps+uRmmQJeb5FFCC0JZGH3dE7BJqwmVsU12TJZFJo1Sq2DfBlC4Hd0d2Lw3XncK+tHc7x8Hj3M8eSYDLiubUrsby0kLE9VCIYENekG/faOtDS1QejwQDab4UKhTGUAtlCjLTabGi8cZuxZWg0tPEvf2OiRVSWv4QBk522QBDT+c6RIEAopXqorgGH6y+wyOyyogLk5Sxk25BQIbOSwNSqVJDL+bOF2u3o6cOx+vP4oql5ztSu0D7xfd5ijsP6FRRBLg86W3gDQqzYsfcgvmhqhfO+giWdkJmagtplZYiLjRVkSfkGT2xRKORsG+Prs5BVZ7U7cP2Luzh0+izTLeEWGnvewiy8vPFJpCVZePedq5+cgFAa9fCZ8/j9iToMDI8+5EnTKifbfVVVBbLSUkWZiMQWAoMsGSGe8uSkG32DQ9h/4jRufdUUfvM4JoblWzbUVmNNdQXrf6AyJyAdvX147+PduNfWOc0Kfw2SclYqFMjJSMPqxyqhVYvr2NR35IL8FjKzHU4nY8u+Y6cxZgtOxpHvxPr6vCgjDVteeAYplgQWsxMrfgGhfbr+0nXs2HsAw2NW3iuP/A2DTodnVq/EgkQLbyvqwc4TW/RaYWxxuz0YGhnF7kNHcaephXefxU7cg++RKW/QafHSU2uxorwIVAUjRh4CpHdgCO/v2ofLt7+Ey+Xf0Zvb3wALl1QU5jPdwlcvPPjNKb9FDo2av5dPltiEawIXb9zGgZNnws4WGgP5Lfk52XjlpWdByp+vae8b/zQg5HA1XL2J7bv3s+rAYEhivBnPrl0Fc5xR9Odo5ekEsoWUfv/gMHYfPo4795rCHkGmwVJt2JY/eBq1FSWCzGOJx+Px0rb0u32HcfL85aAXGpBJu7KiHKUFuczMFbO7+rx8oQVwlC5uuHoDR+rOwmq3hx0YGmtp3hK89vLziNXpeQVZJR09fd63tv0WLZ3dolcx14u0bWWkLMCGlTXQaTWCVszMb1MsjCwZ8vb5bgXEFoqF7T1yAs0dnZh0TfqNt3GNIZC/xxtj8eMffA8WUxznZyR/99a73i+axRemcbYw4wFSequrK5GdnsrMW76TOrONaUtMgN9C71O4hdhy/Ox5VjMc7ghyTVkR/uo7mzmnS/LyX/+jl8Ld4RICYnF2JmrKS5hFJiTQ+BBbtGpBEeQptvRjz6FjaOvqDquXTxWU77z+N5BzZCQlL3z/b70SAdHXYABHqzw+zojaZeVsKxNbgysmJkb9p8DomYtXcPbyVQwOjwRjSJzfUMqk+Ke//C7S09PntDwlG1/5gVep0XJ+MBQPqFUqFC1djPKCXOi1WlFbGPWLdItWIyyCTGyhipdDdWfxVUtbSNlCbXnGHfiHV7+NoqKiOQOykhXP/qHXlJQCuVIlekICAYssL4vZhJqKUmSlpojewhhbFPfzLVIB+Ra7Axeu3cSpCxeZYxls8bjdcNptkHrdeP37f4aSkpK5AanesMkrlcmhizNBazAiRkQ4PRiDoErCgsU5qCopBDFHrIhhiy/fcvB0Pe61tgeFLcQKt2uCgeGenGTb8ht8AKla/xzLusbESKHUaGBMSIIsQoVjNJnElrU11UhJtIjFhEWdKYJMfgtfo4GSbDa7A1du3cHR+gZQ7bFY8Xo8DAjXxDjo/ySCAaGXSNlKZTIYLclQabQIt7L3TQAVRVQWFaA0L5dNrBghp4y2Q6F+C8Xx+gaGsOvgUbR2dnGmph/sm3vSBYd1DLRVzawxEwWI7+PkyKl0esYWAigSIpPJmCP11KpaJPBwqGbr47SXr6J8C784AbHF6aSqyss4ef4i7A4H5xTQ5E847Bh3OqZZMfOlgABhH5JIQJNCCj9SVhirKlSrmHlM+iWQk7YUiSY9xbKTnNM79QDVHFOw9ROqE+vqBlXY+BNiA7FictIFdkTYjwQOiO+jVJhsNMGYkMhAioSQHsjJTMeax6pYMiwQoWJvjVopyKKkRNj+k3U41dD4zaoXYsW4E06blTNOFjxA7o+ezGJTcgoUSvEWUCATSe8aDXqsrq5i59PFFFf42qd3Kd8i9OBOa0cXduzdh4GhEaYjHDYrXOP8isSDDohP6RvMFujjTBFT+LSN5i9ayHItlJkUEw/zAUNMIcYI+cbk5CQrDD964hQ8Hv7HKEICiA8UhUrNdItUZIAwUKbQ+wkmE9avrEFivEnwSp/ZPuklqkGmbZELGFIPbo+bVVS+/i8/EzSMkAEyTXuZDLHxiVDr9BFzJskzLyvIY6GXQI6o+Y4kUCXJbBlOUuhUzkqFgRQL+/GbP48uQBhbYmKg1uphMCcwZ5JrhQkagYCH6fjA41UVSEoQf7UGmSu0HZIPJJN+ky1kbVHZkS8qTpU4UQmIb84IjFizhfkuYnPoAubf76NUrFddUsz0CyXBxAr1nw7wsAi0RIKJCRerwJ9ZUxz1gNDgKQamMcRCHxcPWYROIZH1RAHK6tJiJCfEg3wPoeJzCmnSqeaKWP/gqa55AYhP4csUSsTGW6DWkb8Qfr9l6kCnFsuK8pG/KIc5lnyFtqbB4VF0DwyyVK/JGIvUZMtD8bB5A4hv4DFSGTQGA2LNCaD/R0JI4VPya0VFKUuGzbWVsrCHy4W2rl5WDEE1XiSUcs5KXcBy+DNl3gHiYwuZxeakVChEVjIGCuRU8ZoONRVlWJSZ7jczSWDQ/SqtnT2s4mbm9vRIATKTLXqTCTqjOSIKn7Ywil8tycrEiooytup91iDlQVo7ujFqs02zYuYieCQBmalbzMmpkIsssQwGW3RaLdbX1rAz6XanE/daO1l4fbaj2I8sIP/HFikzj7VG4SWWgQIy7dBKpVhVtQxSqYwzIDgbIONfX6z2RjQ6hmImieUntDrEWZJZ6CW84oXTZmPZyNLiEk5HdlZAvj4f88ZPo9BTD2QyCYw4SxIDRyIR7i8IbdvjnpzKWbhcyMrIRFlJAIB8fcbxjTffEtSFkMeyBPVmlodZ6IVlJhPvZyaD77eQfnA5HXA67NOZvEABGRoZwU/f/qWgKZgXgPhGRM6kOXkB5ApVUMP6UzmLMbjpWMWMTF6ggJy9cBF7Pj/w6AJCI6PQizY2juVaqCwpEGE3S1AJjs3KEkkPSiCAjIyOYusHH2FgaEhQF+cVQ2aOTKnWsNCLQq3hVLr+ZoQAGHfYWSZvNnNWDCD0rb7+AfzPoSP48t49QWDQw/MWkCm2yKAzxkFnJLbwD70QCAQGFabNJUIBoczgV80tOHDsOHr6+gWDMe8B8TmTVBtmiLdwlrlSMRoBQQUHvsK0YABCmUSzQY/TDQ24euMWO1wq9j6vec2Q6cmkwj0KVOoNLAnmr8x1qjDNCvqXr3AxhAp57HY72tvbMDg0yFhBufRA5NEA5P4MUH4lPiXDb9iFtin7mLAi6ayMDJSWlPq96IAmvrevDzdu3WRXeQTrPshHChCyuuJT0/2WILmcTtitwgBZkJSM6srKbwQ7aSuyO+y4fuMmunt7GCPEbk/+mPT/gMyxv1DufMO6J6C6X2VPLOjo7MTVG9cxMTERkuNuvAGh4wjBXAmB7LOzvRtshlA7xlgjMjPSGRNa29phJZ8lhHdxqRRyfudDap950TvXj6WEYoKFfjMUgAjtQ6DPU6Xkj17bwn2C6pmXt3j7BgYDbS+k7z8KgKRazPjh976NpUuXzn3G8LUf/r334rXrIZ3QQD/+KABSU5yL7/7xS0hNTZ0zAiE5Wd/g/dFPfsZumY5Wme+AKOQybHluPZ5ctxZ6vX7OaZYMjYx4//lf/wNnL1wKytm6UIA6nwGRS6Uoz8vB5o1Pse2Kq2qf3XVCnui7v9mBhouXMRyBuwy5QJyPgNA5R51GhdysNGxYuZydvtVquY+fT98GZLPbcenqDXzw6S7c/vIuKG8cLTLfAFHK5chISsDy0gIU5C5BVlYWdDp+v+7zjfuyyA7v7R/A7n0HsOfzQxgeefhKv0iANF8AoXqBWJ0G5UtzUF1WjKVLFsNkMnFepzFzTv3eKEeHHK/duoN3tn2AL+81By2eIxbM+QCIQiZDRnICakoLUVpUgLS0NGg0GsG1aLPeuUhsIf+E2PLx7r1wROD3PXwARjMgxAqdWoXK/MWoLClEbu5SmE0mdrRBzPEMzltJKQdALPnJv/0CTS1tYhd5QO9FKyBUXb8g3oR1VaUoLixERkY61HQlYQCX+XACQjNJbBm1WvGb3+7Ef/3+AAvAhVOiERC1UoGqgsXs6ENeXm5ArODUIbNNNsW8rt24jTd/+Ss0t7aHDZNoAyQlYYoVpcVFyMzMZKwQsz35m0BeDHnwxTGrFe9t/wi79x0M+h2N/joZLYCQk1dZsBgrK8uQn5cHs9nM6egJXbWiAKFGKGxdf+ES3t667f4tB6H7GYlIA0JOXqIpFmurSlFeUsz8imCyQvSW5Q/t7t4+bP3wYxw/fYadxQtFbiVSgLD7HeUylC9dyK4kzM/Pg8ViCTorggoIfYyOC1M139v/+T4IoEALAh4EPhKA0Pn1BKMBq5YVoby4CNnZ2Sz0ESxdMdtWJnrL8vfBzu4e/PvWbWi8cg1WW/DuyQ0nILQ9qVUKFC7MxPLyIhTm5zNWcF1eKVRXhAUQaoSuNTpWV4/tn3yGlraOoKRFwwUIsSLRbMSKknyUFRUiOzuLhcsD8SuEAhVUhsxsvLm1De9//BlOnWtgbAlEQg0Iu8mBfg8kOx015cUoyMtFYmIiFBG4DCFkgBAA5OUfO12PD3fuQnNb26z3TXGBFUpAaPUvMMfhsZI8lBcXIjtrihVceQuuPov9e0gB8Xn55ER++OkunDhzDhTmFyqhAoQqQYoXZaG6tBCF9y0opVLYXVpCx8L1fMgBoQ6wnyiy2dBw6Qre3fYh81uEmMfBBoS2KPIraksLUF5SFHFWBN3s5ULd93f6jdvu3l68+/4OnGloZFsaHwkmIORXFOZkoKasGEWFBcyCioSuCJuVxTXB7DcQHQ6crG/Ar7Z/hJ7ePk62BAMQOiwXbzRgTWUxSgoLsCgnh2XxwmlBcc0N/T0sW5a/jrAf9OofwM/f2YpzjZfmjIkFCghd5VeQnYbaZSUoKihAUlIS8ytC7eTxAeDBZyIGiE+3UF3t3oNH8Itfb2d6xp8EAojZoMPKskJUlhUjJycn7H6FUFD+F99EwWJISrZpAAAAAElFTkSuQmCC",Aze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEX///////7+//79//+ZfOn//v+UfumXe+f9/f9crPCZe+n7/P5Lu/Fmo+/8/v6cd+b5+f339/1ooO32+v16lOuYfeqgduqZeedQuPFVs/Bfqe92q+1xme10l+1+j+yOg+qdd+n6/v7x9/318PxStfJJvO9Qte93l+uQf+nq9PzX0PRiqu5vnO2Bje2IiOv8+v719f3y9P3y7ftPtvJNt/BVsu9Lue6Hiu2RgOubfeqbeeqXgOideuigd+f69/7w+v3z+f3n6/vf8Prp4vnH6fjp3/jA5/fXyfRZr/JHvvFXr/FrwO9Rve/Due9fsu9lpu9fvu5Yse61o+xum+uLheqJkemgdOmnkuiUe+j3/P71/P75+/7u8/318vvj7/rc6/jb1/VXsvLHwPFzye5ipu2Mhu2ymux7kOyEjOmeg+emieagfuXo9/zk9fvn8Pvt6frw6PrY7/nV7Pnr5vnJ5Pfm3PfE1/a72PTO0fSz0/NKvfJeru+Twu5roO66su1osO3Eru2Nq+1qq+yMpetyoOuCm+utneqajOipjeehiOeihOeLhualfebx8Pvp7vrN7Pni5fnV5/fQ5vfg3vfV4/bD4Pa54vXPy/OCz/KnyfK0xvLTw/K+x/GzvvGHyfCpwfB6xu+guu/Kue+Mte97ku9pue7ItO68qe5ztO2ur+1Yu+yXsuxuseuKmOuqpOqWouqtk+mWk+iKjObs9/3n5fm55fa+3vbX3Pbk1/a02/Xg1PWv3/Oc3POt1/PWwPOS1vKj1PKd0fKtyvLPw/GcyPCKw/B7ve9Cve+Hue9pxO6Cwu5zwe6Dt+62sO6Zr+6ese1/r+2Eoe2Truyfq+yapuyCpuy6n+uOnuuZm+uYleuwlepypumhkeiSi+iRhefQ1/XR3PTay/SWy/O60PKZz/KPyvLIxvCVuu9bt++Lve13ue2zt+2msO2Ro+2ms+ysqux6luzDp+t5oOqmmuqNhuqxoumkn+m1nemviufl+fqo2/S6v/Cuue2yuOxBqZCiAAAHmUlEQVRo3u2ZZ1ATQRSAd+9ISALpxJgASYBAAoGIIEW6ShdRpAjYBQTF3nvvYu+9995777333nvvbcbNJSjqDBIu+0u/yeQ2JHnfvvf2lpsLsAG4QYr/4IYkAW6aNcPrQNEz1x3Kis4AWGm+I+FAXMKOZgAf5Igs17i4uC5xWW0gwITT+BquXbrEoYfroUgewILTlsW2trauroaHbY1oLO1HjrJIkjBxYoK/ra0/BgsJWeMXVyhbtkKNz+GZ46v6+6NRpMUlILKGwVE10glCRuuZboZxa0tbKlet4FvW7UgbBoQkAzSf7qb29Z3pbtk1Fj5dplarj7SG0HTaI4vabVeGJS2MbX5qtaxofZrPlKllD6MJyzlgm3kymWxeJFnkT63n+TWUHWluOUnmPRQwcROrSGoQjkv0S0ra6WSpPMC4xIYNG94W/3be7Eryi59nsf3F+TA7Nv5xZfhbA9z3x8fG3raxUCbru7LZXddDgvh11qhgsbE921ho+T5is9n7wiEC/IK4G7sre69lutJOx2b3bAf/lIDRPbuyl1a2yFXTXpRIN7FJQqKVxSjcazK7yeXybZZofb2Fcrmu3c9FlZHBKpSA0X3k8qPOgD4ddTr5QWdIUmGbj98xceLW6GYkMqBHxMFsXZ/R9B21u2XrsjsTVD8ytxzy93f1t03IWpdhmkF29exJBKRdLXtudfv6VD/C7/q5VfB1c/NVuz3cmQmh8V2uBeo1jlud+4g62XnbusbGJx7edXd/YlLDxE3U/DO6GaZA10FMQpLOhKEj9ZfK2Y/bRRC8NZ2XstkLK0OqXlyuqCNNB4yYw+VeGWUYEbuzq9uPIiCDALzOOl31zkiMzPbdRXt5NCUt7Lmik+5GnUg0iSBIBlpVa46KuA+oGkbM6S46GEFTMrZfd9GD2tR+eM6zXwdIFY7kzUj27E31m5wkEtm3oCnpkOyZvJsqTItTjpqbJonTDEfH3uWNi1jUvd9YQI/dyZ6eHahR+Wdz7aYaJUB83G7uceP/F5Rqvw40N65ZDp6vxxqHT728ztYBFBtSvRTTWNTyGn7O02EypCURL0GSesZxp9UBAYuGoQFrzMWAnNQNxl3ZubeDwwweSrDUUCHOuQNqpt7LlTlD399v4NFjYEqO8piAcgDBEgeHWTa0UqnTF3XYGRrjrb2qZWqZwcHMwEDtm5bwR0EdlohpSYafcnQ8LTZJQNSAYGsOh2PFCX7XFpggZ6BPeNOSVDqlcTwuAIXUndJ4SH5+0/Mx3uAH0zSavuUBLUl/jeZEbVAIhGGtoqJahRWd+GQ7+hI7uxPFXvUgiV3fOnQluSiTv0gu0JQsU+SeKV4yLdfuGb1yDV+mUJwVg2IgvubOXUFPUueCQrHCu9iN5zmahpDeEr7gpSh+noIzXl4rhtGRlF+U57WsU7Gri9cp1Svvm7D0DsGTvIDUTiwGo7ie8Cak5uV9KfXFPby/Wh8wlQeRpNhcpq4OWD2htJIxq/T6F8K/XrpB4SJ9wKWRsFR9ES4fOnTVyJJ8de2qgJRFAkiWQuIxNGVoNaIkEkajnJxrDUAp8H6fknKpEigRLS+9TVkuKIWkwXWl8hgLlAhWD+Xba2PMd7COKQOve5gzo2rm92TY1cDAgS1BCWk5UKt9421+tYIDtQOEJT5tl2sDB1YxW9KIydT2MLUEAlDOpe1vxnJ1yxVtipbJjIHmtmQBk8lsZIzmUsWjWs1aAz0A/CXVWjWreVRxMZogmlN6NbO3rQFMCXMCyxi/SbB1OpM5oMg1CQTCd+np6RUHF5omMCWcBSwzJXVrSSTMxii+dXq6tbVVRYlEEtyI8VNC7Am2tkJYI5rUqjl7AfpAYzPPFOgzGMXgSK2tJFYca4MFvWoSw4KF73sMNhnQgcORSjkVKwatNHfDbzVEKg0JCUHf5+cPvrxgT0xTDidoyOxhpjxnD+FU5Kyc0qtx0yZ8qTQoKCgESQa5mClpiyR8fn7Txr2mbGwZRkA4n68KUfFXzt8cFbV59kopPyjIKgYwwnzax/T6MKhJiJSvUpkvaUrFbxWG+gARwOcyP0RVRsUPLcjn81VIqDqP3jMABcg0/8Og/EE+ZvZEGOUj4KEj9YJ6rnKZH1pGFVqmTCg/DT2FnvcpXNIkOjLQQt8sBLRp9aoARUeElklLK5jvQsktTrmNrz4WpKWlhRZ87BVlQxBIggOWT/tb27ffau/CMpURG7AwPE6HUQLx5QE/rdu6NTocp4R0isxyPXAgIWsEga9UZHQNf1uEa9UR+IpVuSr6eWNxgm9Z6lcNPPB2+smS7o2InI4OmwAm1uyPj98XDqD74aT4fWKAh/o9DTehAQnX62IXugM8oLvAC1tQvekjRze28TCqD/cklQC6nWdfD+Chnr3oSn3KdkV0sg7AQ8Qcz+Q7EEBwJzl5lg3AxFSNZokzAM6nHTUdAC5G9rfrfxOAGy9f9h0OcFH7uSL3aZj3mdy503gEwAW695h6o1OeYtlIiE0CBS/0+osX9fonNgQ+CRhzLUefoly1FiAJNmx6aAOVykYsAqcEtL0qYQ6oC5EDJ3usBrcHuBHW3M4A2KkrBNiBEAL8QPAP8x0ZyfbHp+5ubwAAAABJRU5ErkJggg==",$ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAClFBMVEUaI1MeJVcdJ1geKFscJVQfKV0eKVkbJFYbJVUeKFoZI1EfJlgcJVcaJFIdJlcCgeoAdeQeKVseJlUAcOIAZt0Ae+gdJFUBU9MCh+4ATtEcI1IBlPMDjO4Aat8BVtUBbeMAWNYAQ8wAZNsAWtgAUNEAfegAeecdKFkaI1QBf+cBXdkdJFQBjvEAd+YAc+QAP8kDiewAZd0BYNoATdEASs8ARcwAhOwAbOEAYtwCWNcCSc0BmvYCgusBZ94BUdIEkfECiu4BgOgZJVcAYNwAlvUCj+8Ehe0AfOobKV0BhuwBXdoBW9gATM8CkvIAkPEBVNQAR80BQsoAQcoZKFwYJVUCnfcFj/EAaN8ZLGUYK2EcI1MCceQAauEYL2cAmPcCX9sBXdcAR8sWO3sWL3kCnvoAmfUAdOIAV9QXKW0cKWEYKl0YJVsaJ1oDYdQCStAPfc0BPcUEQL8WVZgYPHcZN3EZM2sFl/UClfUBfuoGadcBSc8HY84FO7cPVK4SOpEVLnMBi/AAcOQJiuESYrITXK8MQqoLOqcOQKQOMY0XN3sYP3oXNXUXJl8Bh/AEle4IkOYJgN8EctwPgNEMYL4Sc70RTaoQRqQSUZ8LNJ0URYEWPYETNX0WOHkWJ2MCmvgJhOQAcuIHfOEIed4LhtoLgNkGbdgKX8cESccRd8YNasMSbsIJVL8QZ74CObwNW7kTZ7YUaa4KRK4QWasQS6cSWKUUWaAOQJ0SP5YQN5YWRIkSOIcSLIEXMncVKWgXMWMKiugEddgCVNAFW88EWM0GVskGUMUFTMMFQsIMU7cIP7IHOa8UYKkNM6QPOp4QTZ0USJUYTpMRM4UUK3gVMW0AeukPhNEPdNAET8UCSL8IRroKTbkOMJjfGjaeAAAJHklEQVRo3u2Z91/TQBjGA1ZoC01pkFIDyhBoS5GNokVGWUVxtihDUBmCgKAMle3ee++999577739Z3wvZ5u2pLVq+M2Hz901b+7yzfNeEjIIWW9u9QJZrZOxrV3JuFtOiEyGIdCysX+B9HbgpDc/AoiVA6chMhtXMoeQXqwgPb2cE/S06e9wJEB6XBgiElmGuCOO1+OYiHtJRKDKzc12AEQcQ9xEjmPsEvxy4MQxxXEML7FOnBZOwd+IE8LtSzatqqpKjyM8Q9gZyv/Rfqr9aj4i8grBLnCZtnVGVNS4qKu9e/EOYY+zslPAGBc0s+wvnOA9ZfcZ1bYFajACjLFBQQmv9G4ii75Ma1nYsLkQaATeW6ihoJotrJ+ymYBISEiY8rXMDUbgYVDjM4ItoG5RAkJoCAj/wjVbsNymLR6LGGOGxucu0Zt64fVKaNzMRenq6qqEqOUGAOKUyp4gxJj43Ny4I2UO+gEEZF7Cjm0gSu6RYCQIuYjPjevbN3mJzMNZCHJpgih/hTghSsYIMOoYRHLIo5uU0g5ByUIstke4OiE3USfYqIuL6xuSnOw7uv9mPdqY83IOol9SVwcuQkJ8fSsrAwc83Em5ufIOmXYOu0CIwAEjwi/oPXoCkgwuIFGVlYAIH35/mYeI/3Qt8kVzEcjYGB4bm7hJxr8Tt07f0cAYghCTgBEzfRnFO8S161F/YECmYtMBEdNnQkc1yTcEDq/AQOwiODimz7AJE6eXuor4hICUHjcfTEYuMKLfxIDBHdVKXiEgSnYhfVJ6IsPo129wgPe8Q6Uk3xCSXHY/0WQDGEWRXh3VFMkrBGS4EBwMCHAR4O3tHenlta6UcuUbQq1o6zOByVRR0dSpXgPDfBbKeHfi0WsTQmAXXmE+Ptl3l1N8Q0TUshbIFHYR5pMdGipdoCfJv4E4uu7pO8AF2BgINkLT1Oq0fdvllHMQD0uRLghkJbSMW5edLV4mF3OkUumgVQtrSYvutkMhQpJMS7g4KXSAdQxkXGSHpkmlSYOyVn0uJl1JJ8b+AURE7jwU5hMKk5EGiByFYu7aJiHPEFDteR+fNOwiJzo1NWJPqdw+hCT/HOIB0jTeVacxCEV0qn/EqD2NjiB/7gTLcP5XpqL9/SMyUw42e/KZLixSWLo/K0uhSAUb40eN8juuJ/mHUFSvBatQpiBVKSNHprx1cekJiKZxrb8/sjHSz8+vvhhml28IiKxdEBEBNvz8ZmesbsAxniEg4fI9kClAzNKuv01BgH8IqHYBZCpjVkXFrAZPNsozhG6cPzujQqvNW18sxxHeISDRmZKKCm2eljXSAxB503pteXnexgLSAwf4h4Co5hf1RxsK4CpPOnfcuxCetoI4rjkFqwQqo95g9LQ+RX4NNQ82b8qFcvEk3LtJIEC1RX6w0PErMPUQMq2c2RaKy5llTwq2CK2QWc+2BG6whLYQudBTX1Dc3NTUuLxJCc5tBmN5ujDLQgSBXYcWL1tAUIsK1CDUsrWu+e3Zo/XrD8yfv3r1mrPFGnCAB7L7ai9itYZgfgvQb2iETItrgaag4WAmnHglJSXa3XnleWd19L9CULHyISw+Ex3BXApnZ5RUaHeXr2kibAaDWIADEAtB67ERDMk/mZqKLrgp6DKCzvHV2/4G4o4h3V1AkRsuwv9Y/N8JY7RrGmmBzQYwio2gJc50CbAT3F+Ia6FAdW0fuluIBgrGzC7ZqEfr8UY0co1GI5SjP7lAIIfKMYRTdPExaVJS0iCFQgE5Qxi/+aUAwHInapubi/MLDLU6IxygEgldqNEIgCxHDAySC1jZgRi3ZKvTkqSAyVJgN5kN7i7m1cs3HjhwsP7o8ZMLFl7c8uba9tIVTQg6zaAkSUpDCQQURf0Wotq+Ljt7jpS5xcrJUaTOnRtxvMA8jlg+P09bkuGXMn5uqiIpTb1v/7pDLW2HD5942rFp8+Yr17sMABH8DkLnb/AK+5idrVbjOzl0s9hYaB6n21iep62YPTLTPzo6S5qm9gnzivQOmDghJjFx0vABgfceLyqrFfwWInztDbfWA9Gt9RyEycnJueRpTrKm+hNAMvwQRJElVYcCZK/34H7D+iROCh8wpL9vSNyRTsPvIMTOlnlFpmcEdRpgco7ly9mZrK4HyCy/UTaQPmZI37qhrwyOIXTB6YCAefC4gzEwN0n7S1WWPS7lIUhKpr/CChITHDsZQfr2jatLWKqjHUGMb1r6BaDHz0jmoQoo6i06tMLkRXO7vlybYQWJtIbktrbO7HLgxL1wRdsweOUwGNwUIQxQTuZrrPqIt63ZXQIQSNcgBBmIJh5DcLpyh04JWrzSPkS162kMPK4Pw4/rRYiybjubLGxF8GJWRndIHzMkvjUhKGqpu12I8crkdPatAPOsC8myESTMxgme+PTwXxBwEtTeZQ9Cr3gIr4JiLTCRG/LZ1WzC7nBChrOQsVEvV5oglhIINdWbJqNXc+nYDUzNvJZSmugu46XMkbbpYiG5DGTGDZWk+0hIVuc906szRIGZ6ffakwtCV58ZP747JNwSErXVnRPSdYJ5Qcdg0hPRAXC6QCVUcVAk+QvvRKSuYtOFJ94K8pITYljEvmpElGB4DyjmhhAq3bZja3OykqRzsuE8KQpAl5XY8AGB5jkZF7VU0h1SKLmemxyS7Is4KGnD0xMTN+tQPy4nhERcu+Jaw8XzC09v2HC4ra1tOmhyYCC+rIxJCBr3/JaYA1L1LY55UQ6U/phyIl8CccKOJIU0sHQ1huqCguIPH27u2HG9s/PK5ctLFp171t6+tUrFMaRmcSt8uWBeM2MzIx7sEAPCvlRCdNJoCAlILJbQYjFNqFRGXU3Nyl0rdVy7Rb8bmzAFvizEMxRfMFN52VhY6BDS/TzAQlRouIwEwfcL5jsMwoweXfn9FsGzJLva4bsY4oAblDPfLzuMvENWPodPY+jDFcaEPH7nTvAu4dIZUfgL3JjW1vgji7pUEv4hkpqlp2aAZoKeXS2roWkI8k/RVd248f59VdWtXTUSGkT0iGgNHHnokKfFNG3UqYgekUBl5tE6gPS4VCriv/7rvxiJf4krbmq5fkvEEmhx0LblDcLVsgEeIBLkxA5EYr0xCer7E/a5ifsRqUkJAAAAAElFTkSuQmCC",Ize="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC8VBMVEX///////7+//+2afRfle+yavNhlO9yjPBrj/Cic/CYefC3aPP9+/2ncPGWevD8/f5kk/CfdfCqb/Bdlu6vbfNvjfBbmO7+//79/P53ifB/hfBpkO+5aPRYmPCTe/B8hvB0ivClc/COffGxa/OcdvBnkvBclO58hO7+/f+tvPOKf/Cmb+78+P/BsfN6h/GFgvCRfPB5iO9nju5ziO6Ree6/1PaAgu+xau9Ylu52h+7fw/isbfOwafK0yvHRuvGad/FjlPBsjvCddfBvju+Xeu+fce+Ifu5lkO36/v71+v2vuvPJrfO3ZvOsb/GCg/CqbfC4Z/DMme9nke+ic++/oe5wi+6Gg+5tjO2VeO25ZPS8tPO7xfGBhPB2iu6adO6kcO5qje3z6PrEr/Oua/OwbfG0aPF5iPCgdPDInO/Fju9+hu+Oe++MfO6QuO2Wt+2cs+1XmO34+/74+Pzk7vqyufS1t/TatvO4tfPNvPF3he/Dnu6DgO6Xd+6hsO1dlOygc+z38Py3tvTbs/SpvvOrb/OxzPG4x/G+w/HXt/FflPHHi/CHgfC2afCBsO+Ere6Xte2qbu12m+z5/f719/3v9f359P3K3fe6tfPHrvOkcvGdc++6o+5xiu6Ofe6ubO5gku1gmuz9/f3W5/jozvfa2/bH2Pbdu/W10/PLrPPJv/K/s/LMq/KtzPGgvPHVufHLpfFkkPGpb/FbmPBdlvDNkfC6jO+Hse6kru6wfu6enO2HqOx0qOvy8fzp8fvn5fry4Prv2frq1frl4vnq2vnR4PjW4ffW0/fk0vfkyPbhy/XUwvXev/W9zvPGr/PBw/JVmvK9a/HRnfDAdPCLtu+rr+9tjO+Tve7AfO6Cou1mou1mle2ciu2ocu23be2ml+y0e+yJjuq0hOrd6/vb6/ng2ffYpvS4aPS6v/PIuPPNq/PIzPKixPGWsPG5qvFpkPHCgfHEmvDEhPCZg/Coy++4pu9rpe+8ie+pmu5tlex8oOuVkusvF8k2AAAGQklEQVRo3u3ZZVhTURzH8XOvTKcwhpswVFKHTKc4EAGdioJiMUBULERRFAWDsDGwAwu7u7u7u7u7u1tf+T/n7t5d1MdHONvz+GLfl7zgw7mX83sIZM2aNWv/VwzDIEsHiF1ZjYUdNn7Qpk2P92mQJdv3vhl04ZgllcyOUS4uLk/Cr+5FlmvhbUCgqEHIci0ZHeVia+vi0uy8M7JYg9pF2RKkgXkR58mT5SYkcLQtzryI5uDazZvXHtSwJiQfFG5GhGGOb9Pq9ZHbjiOuHoGj85kdib+vHa8wGAz343kkMJ9EYl4EndDekikMQwzjl+RE2uVEWCpkWSutbMh6hUL7XEAkOBOiyty/cG9ZKqR+K0+ZTKaQaVcakTkJORDG7uTbc+cunI+nQhp6egIjICPmJJQsWVIiqcIjJ2+H4wHomEmD1AIFEpDxhiIE6cAh8VfD4W6CsoQOaViwYEHPVst4JLIIjkcWcnfTpdkmO3MiCj1G2hqRyu1s82EkahTFu59Wq3AiIA0b1kcsQbQKvV4vQiRwM4GhQk7P4JBaRmSNVjFErx+iF5CSHBJOg7SZURiXKEYUCoWhbQc7hiBV4CgQIGzekbiQEKwAggjSSrZeAUX2ERCJhBrpW1ONlRnTEKnaHxAyMx0pkHJ9axYKVhcOiTMhkBjBt0ZCjxRSh5iQAb8j5HJSIU1rghKsjjvNI54ynIAEJpAFCKRGoLg2PFJwOl4zLY/MSShSBBi6k/i7YaRmXxECA+CpbcQhR28ZEvgFoED83ezt7QnCCgjMDCD4A5mbI4mScAzRIDqM2DfFCIuRxIJ4A6YDwmL16LZIfdu2c9ZOzt2PDvKJaRrEIK4VyTqdGzD+5YyPK04NtwbOYnxcrGb/u7t3v/SYnKtfKOYvurR9+9Q9yFjzTrNBsXcDhOWQ4BCM1Gpkp0JcafHxmfBVQf96Ds2LewEBGRk/FiGWYTgkuYTOTUB6xQXDrUlMNCEsy336XBzlwD3v2NiIiIDtu/DXRpASJUok6wSkabBaDU+MIHntaW+fYsViI2JjjiDyXqaGAYIZAYGbCWs2gwKZfwkQKCLgDHf8nmFhZTDSaQWP2BcKxoehQORbe/skJbm7F/sbglPPzDviDIivLyDew3kkpgyuU3OExEgwHdIeI+4CkhGThZEwI7Lc3x6iQ+T9KrVs7+ODEUSQgRkxMVlZYsSNKH1n2jF5Ryq0LFq0vQgJiClfvnxWlgiBgPlEiYDiI0agmLCpiHREpyNK02cMFeKBlUotOKR7QGwERjKMyK47ZMz8bx6gQWYV8MCKgHgnxUYAk9HTOJ+LbnZK1iV/OCFX5ebFs5PSd6cyKgFpDIqHgHTzToIFgJ0xIirVnuZf77x+5Ixyg0ysei07+9VhOSI5d23cuADkUUGMABMwEPFp0tJy+dLTVt9wcFi3LnsKjzQJ/QVxJ4qAkGem0uQKWXyjenUHBy+vHZO4xwWIo6MIqVcJriYg3t1RXmPkXUrlJ8i3QwhXp2trqSNWGpsQXx/3YkkUCErbAggo0dEVjScBBMqJwALQIHXHlhoJCMQjflJpjRqOjk2G8UhLsyD5cWJEKkJKk5lp79u7GzUCGZFxfsWxUqO1CIF8K1EiNhCP1AEEJxUhHngCqJAxgOAEpHZ0TmRWgQIEqUeDBG1UKm2UNjYmxMsLI1WNCF4AOEsFMyBKZU6kuB+PkAXwKECLODk5mZAutaPx3RQjoXA3aZENThCPyLvMdcCIV20xAsosCiT1omuKqysg86bwCFkAARncWhpKFqA0yntLgzakABK0M53hkFI2eMwcBMQPX03HUCpk0hZX1w0pKfOWskhAIIwggnAzc7kJDYLSr1x3mrdzaSqH1CEINFdAyAKE0iEo9eGUQ7s1jIpDOpci91+MEOUyHcIwoj9UTjAiNv2HItIpWABAirc+hSgDQ4zA/ReQ9O+1i7+RSv2upSPqxIhSjKgWZ0evi/bLXsyaEwlSwq3hEUizYPWOHasPs2ZE5J2DnDCi7L9KeGfzJ06UI8isCCyAEiMMI3xnMGZF6lwhCBxmqMX+18cwq1LOuuJgy8CwUA8+c8jYSchisaqK112DUlJ2LkCWTLXg5ZaLH9NVlv6faGqqcWwsH4usWbNm7f/pJ40LCPiotLN6AAAAAElFTkSuQmCC",Oze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEX////9/f38+/v5+fj6+vr09fT29vb49/f8/Pz3+Pju7u7y8vIHWenx8fDt7ewJZOvw8PAVfvH08/MUe/EGYOkPcO4HXekmsfwWgfILZ+wJbu4kpfsQc+7m5uYJae0hmvcJWuspuP4ekvYbkPQLa+zq6ukjxf8nwv8hl/fr6+smyP8kvf8LXukotf4oz/8HZusJYerh4eAjofkMa+8Mcu4Zh/URde8ag/Po6OgUePHd3d0s1v8djvYObu4HV+fW1tcq0/4nqfwknfgelvYfivQWw/8mrv4hqPsDgO0mq/0Nee8iyv8drPsnp/sNr/ohovoBnvUClPIjwP8jrf0Fh+nj5OM94P8z2P8jzf843f4Uyf4GqPkcifUOgfAEiO8MYusG2f0Dg/AOfe8v0f4C0/0Muvwgn/kXhPQCjvARdvAD3/4Ds/IWr/gCeesD1vcUh/Dk6e6gwOza2toA2f0Tv/0Fo/gBmfMYjPIGjunx+PvW4OoDgePS09MJ5f8W0P9C4f7x8/SHr+sgeOrg5ughZ+LP0NAx2/8i0/8Mzv8E0fcfnffr8/Y2pfXV5fTp7vCTuOs0gOkLZuZ0oeU4eeNK5v8T1//l9fsQtfvZ7/hPv/MumvLP4vDD3O+pzu/K3e7d4+zH1ehUiOLO1twj2P4ou/y53vdMsPV+wvMQsfOV2fK20O9truy71+p8r+o/m+lmlOIg4/9FyfmE3/VuyvXh6/TF6PRZzvMxsvGTw+8tjuwFcOoVcOlNkOhEgeYxcuOAqd/FztEywfkEufnK7fih3PSVzfIMu/Lb5/C35O+Fuu4jcegVYeTHx8kw5P142fe91fGr1/APnvACqu9Moe6sxuofgul70uilvti6y9Y76f8P3v4Gxfhauvfm8PZq4vaP4vVBuPWAzPFxvPFAqu5moexfreq1xuDZ3d+Uu9ubtMhC5v8MyP5P2vtW4vkem/ir5vWe5PWr3vU1zvM7ku9s0uhboeas0t04id2xwtNI1/OUz+Bsrd96odS6wcVzvuN1vNeI7X81AAAQf0lEQVRo3uzXfUzMcRwHcNzd7552t5/zBxvNaB1p2mo7TtfmyMOMPJRKedhZp4idJk9nyNaUW/FXcSGsRwlTuS7/6QFnUwtj8tCDh6EHkZiYh/f3+z1dHqbu5D9vf/in/V69P5/vt9/dsP/5nwEz/Mf8G2DYj/+GmmLAz2HUkBH9BMkIFsnQDq6PoA8XCqQCRMgYZ8UhqoECQrPVVlCLFNis6Rwg6jBoKGrAMNcUl2dXTcjP9/OrqiotL7Y94sRSIRiWoRiVuaC8ZfTUqRMm+Pn5hU0KU6vVpeWORxwHhhKeKzDYtIQ15XYQMAgyaZJ6klo9ZUp3vU0h4gRCCVP+7nJIzLUt4aNHQ6FI2Hdk4cLS14dUKCNhP/dXTQ632heFE+UXZEVs2UWm0HhcBEZRaHj4vHn9EAQGlBX+/vVWucjjLqwGM2YtAPJTExDE8I+tv9ineIQgEvOV0PmzZi1gCBQgMICwIrH62OZDcg6KZ1XYHXyTMTYUSPgCF8JWAoMi+t43vGv7Hm3EWrhkbCibF0Py/cLCnAg1kI4ahUgsYIon19BcFDiWIlBolan5SJjahej0uqiyRCjkVqK9B9MqyABC5wUEyW690tBQ3Fo6Rf29iE4XFdXrkPUt3/1pmR/HBQYyhKy+pfV4itbHxzfxWHGp2oWkptZfVABxvwq96gUZcYFLnFXmLShsSNH6KpUymYz3dVRQREeKREd3OHgV2YoHTSTSoldAoNDVPzzrpfWV8QqVSqRS8LYKen5hpEZHR5cdYlXcVMg7yvrkVVzcEraV8MKzXj5KXi7ixGIxx4nkUPTOIpGRncdkck5AEHdXIsmZ/CpudiDdSmhGjpeWGuS9KJWKOXlXqZ4Z0cmRyV1K3rl6t9ceMn72bChkLUUniYEH4T0lIe9gLr0slhooEplclsiTU+z+uKy3Q8aPBxMHpvA49gFDwF6FVKnpAMKM5KZjMhWZF+LeSgqOhkyGQssURfjAELPHMEW8rxlLZ0Zyp0Op4DyY14hK78kIYeIysHVehSJ4ikup6UhlRmZm5msfnpwvd5uYS7xDnMjsZ7u8lAoVfaOzkLVw6U1OAylLlKncWgoMKIdve0+c6FQqI7RKBU6vVNAXHLB9r6MjwbS1AWm6ppRzbiL4XQ++BcKYo2ci2PntH5FIYUuuq6trbGxra2vstOG3ELjZBHu/5O1NEOT2qQDcRNx2Bc/LeB7/K3hEebDzAkKcxkyHVqaSCt1sMiJnjjcUJCTk2fOggJRdNseb2tpiktoGx4ldKVptSlPCHhpIXdgaJ5C4hYwQVq4KJiFMyfuPd3squvV6vNRXxMTMnRtW1ZJd3ppzFghLQkKzly/uoztVhksE0uub58wJDqZt7N0Wi9FozMpKS/P3XxgT0z5369Z11dWj7fb2pARnygJ8eHaRBl9EwJ3bPAfZEQxoo4UgSTDS9KiCLkRZd2Tx4k2Lqx9YTAaDIenu8whfBTvkg96IdF9JvGYVFNTxvmqxmJKSDAaC6Mm8gKyjyOKVSPUDo8nYkxvkpZRTZLCXRChOfxo/XaNZBWhV8FWLyQQjKy9PFxu792dk29JtGx9YKi7PDPCRiQTC4cggatBpPXo3Zjqi0WiAwHAiev3eAxTZyhAY25Yit7I/70cVFdkKMpBBj5bY2nyUIvHxGs0OiiTdvw9ER5CYX5Dty0I+fUAVnv6VxCMGMjAsc1en5ebIMTTx0zcTxJBw/0JeXpRO1w9xGduXLdt5/kVuhBJ/4Ab6MOn8WmVtTk0y3hxJQqWrOD8ESU2NitLtZfNyIcxYtn79jk+ncO05bIXmT99HJMKapiyDgSIsQGAQBEnbazzQ3u5C2LAosmb5+RzcSOkfv3yxT7/mro68LAOajOrLaZMJRl1vRc9dBJc/u7Rqa3U1EGcRQgBZs/xSZaLij1++2Lk63Byly8PlsjiRGchNU3dvz8f39y7v3717JpKbe+/9xy/Z9k20CBsWDGTtnXPXVBw7YmB+u3MY+HigS8vKMhpP0+dPm7Zhw7hLX19+vrF/98wtW4KCAmiCtmyZefnDVztBmEEEZPXmkoP4SAOF5vfGt17NNabNKozjSunAt6Ut0FZa24LSGqs1LbbY2gjEMUWJZlFG4ochEZcRsi1QPshkC4HSxQUGpW2iDhgXo9uEAVGJjruXIAGMqIOwxJnoNnGLiVGXOeMt/p9zerUx0S/+tyVLOO/7e//n8pznebZPkHpyyL6a+yEdpAoRo6TRXVCp17uY9PrKAnfJ+a/2fQ4jMQYgVVWXuyTMC7eSvB4vfULF03Mvthzds+ejGgI4VNDKVTDcuFPMLEnFpSLIZK5K98/vfrBv3+fPxxiPPgpIJiixmzrRCPOBDJfU0rJnzxf1Dh0A2qKiIuPvHx9pLHDJhAyJmAuZqmCq/PX0y4xCEIbgkMzLSxJxhPJ3Iy+8RVUHCqinW44ePfrFQZVDVVRkhwzDHx926ynxitzylEIK7Rf373/5NCifPwkGCFBNTU1mTfYYKhYRp8QxSKk/vH831ZvgtLQA8tl0ERhGu0Fjnf+lBIEJSbUoNTXSxhEr+k4+vn8/IMA8uQuAAwcOgJGN315/tyQtkcKNpH/4JpWbxMG9dPS7n0ZX7HajQaORy+WrCwSR8BNASk8ViRWfPlQBCsOcvn7jAKkcwq6s6xlRiEGJnzBer799J4mBQHnz5/Mhg1GjsYKhVA+z20Icl9yJxN0Xyx4HBJTT+y5dvQoKh2Df15XPLkUTzngjP7yPehN9AMLc+fA7Z9wlE1bGqLYp83ybblx8YchNHNJ/qawMGGbmtz8+3rwxzSA4Wdj5M35Kz+OtsDr3OLoAJAI9/E4/TtyVGY0cDItSLS2eKClwCQhLMSetpzp23gYIYR6/grO6NTftgHR85/cM8GoVijJS30DxDHHS8TOVOHdDIbJhYxDflhtxHNlIdE36Lu3duRNWSJd+OXK4sWC9hygqrpmx7oiVOCP3kAh0z1Pvf6pHAWpqD9rkNqXaYpFKmRUTRdiokeXcDlC4lz/fA0Pv8ni1Wi0RsC21sEL3ZBwk9Ud05CJ67et2HApBZl732ZRKtToPEKwKv13TuZFb+sfv4hQszLHNwyUUDyaD01qS3Uh//ArKXqIQxPe30W3guuf24wOoeCgTHRwmBmxI89TYYEgUMM3pxEibHL0DkDDlm/dKGispjx3oMRiNeD/JMNsQl+2R+w+/4gTqbNy7qDcJGWKxRCJ4VtU0VcV5UotldYFlVpgBpADixd7S0u87OjqoOj52BUEHj2RJMtoChqhW1li1GoP8iLffG9bxAZS5WUjbs2AFJjBXeRabzTq/VaCX0e5HKdc/np9fWprLvcAIiwd4pC9k1YRlDfgFKryjENEi+ibQraRTDWaBytw0sUThWWUMtdImt1qHkdwLrIBYul7fRPkryorvO3qvHG6sNOOzUHq3Tiix661M8qBMwaY3UlW9fWtMJ1xUVeGDEQQHh6URiMZgnKBlkWSJJ0dzagubgMkvhZgRqlrxRJonYKuulpOqlcPtAnZKFNJ5gXqMj0AVj7x7xsTCbSqqQrGw7gPEYoERQGaCoMiEhrGNnBxnIWGg3k0yQt+MJ0RrPqUFstkQjOYGsSgxyEsXKgBgkIqTWBJcOoihoEgagsXwoayWazTYlzML2Krtbd5ySpVqkVwC8xs3QsETT3TNq9VqJWSzKUPN8ZCULy9UVDyG9hxUdrLZRDU5QjpOg1gYmGOThdkCxOFdePXVBa+jLptRnKCMny9xV5p4awVndHI+T81ksahDzbJESBkQD1HLqQxOqOeDSwPPpElk6z4lLbuBToDK4Q1OzGgduvvLaximduoKnXX2Vawo7pqX0tkFRP13SOcFdDMBKYOOYU0ieTOsKBoWVpVyBilSqXR1RissgfJANrlxLhxhNw0/pHjT2qqUC3FibjABIr4ICBC3kc668DPe30intW+esMgDNFsUlKxKq5VwDl15OW7a65gsimmornm4aStmwo7Mk2J3xSB41+ITEADQzpPN/KJNZ8XQtgzz0JxSrrHbYUSDqYYrWh6ilM/+wiYrnJyk35wyOQeAlGOKg6YESOrrx8IQdJ62nzULbAunh62YtkJWgmiUiC9qzJ0mTLmxySYLFwfbJ2jDtVmkzAShVj0yIStuulJeOclM7CRGxyWkzfw5FqYyZPr1kMFu1CgpkLGtZqDJc4SuUoR3CQwCpYjWfbTghIGd+SFzwolPaT11H9PevXu35+aOexqokyIiIbgI5nb/isEQsFHQpzBms1phxYtsjIwIEgoPmN9O/wodEYs6j1Q80SBLiF3pIjRnibGdGLmlvaMjk9RLgQBZWhubm7Frqm2YCwR9Cz8204du/L756rd6mSKDtQy/HJnw4QMA4W5WPWYBX5oSg6R2XtwOABFy0ecoze/9ZvlEf1dXV9+aZ2zWq9NqjRq5DXdkMZsxRKfpQ9DGbNB/or+vr6//RNvsipUiVjW80CkpHm42K/hRiGaosLI9xkAXIr9px9S1a9emNjay6+7XqbR2jbyaFoVBlGCQKKHz9kDeGY0B0Z3nNpDF4vOY2WylxyDpos5TuQmMBx/cXVhYW5tTVYMaRacqsmsCcnwjD8qBA4cO7dq1i+WlSIIcDi2sGjUGRqm2kJmJQbMirsPK86htXefCCMbIf3D37t2FtTk5yGwfqGMQPl8UNAJE4BD6BDh1IDE3UrrJKHATGjIxI/GJBLb4tk+PAcEZ6HXsAKPQSZDyB+4niAHzhSAOyPSug5xR9WxVGAJKEZIHg4FTbD4PMeK73rysFrUu9tJUkQ8OYYzMbOSEBMHKy202tSVw6CBEkHpWJ2Rn1xFFBQpSZ547+9pwu0bbifFJvajzLLKDCGMHJotDsnW6MASLMv/7wvhB0jP1z9RX0c8zuRVUMlQCMIpvYdAsk/DQlJgMI4J0Lvbm35EPEYMg/B1YWLwCkMB8cOvwkfNjhKmHnDlEoeKVVoUVMzBjXWkbNAmsLwUG9LeGSuvIuXzqcYGBBeFG8KG0rlprIBTc+tbtdjd+e2ZsvKm+sN5JI6owIhsQjAEGkMCcp4GlO9xHohOipGV1LV9ramoiSHS2UAFji64M+4cq9UiRSZVDZ69P1dc6a8kKUSiRBwSrMh8cMrOaTJRUNeKvnCLu7F8e3+EsZAwnN+LQeWfHRppNZrPZROkrZDYNri2fm3JWVRGEBsEucoCe4Eg7hmQkMTgF4pSs7j7P6LmpHc4c2jqZGz2zl/0jzS4Tb6dKWrOy8FsikSi6l9bOjs72bGDVYFbn9c5d9gy4ZDKFohU3BTGSK9OoF1S23Uv9JzzLy21tfs/IUHODWSYDQSHJopjJhfySGrfdgwMjHn8b5F8/0+wym1Eh0yhRMoMU7cGjsEVSmyEI3QIkY++XSAiwjbW4UyFW/m6jz5EgL2ejumUCxD+E8ilO4IxkLyhs6XG8N4OLAGSBAOwCZKMgkFDRhwdSR7pVzAlAJPpI9oIX3ML/TYkEQLhJDwAfETeQOcLUkTCOIzAuyUeymZTwlECgiSIOksQregzkIqv/4j80xD/OUfQUFCNgTKLww5SIooSkbleymX8Q/1lsWPLAf4Ug0Zh/9SSn/ncElPihyR6SvyjpFwb+//oLYHj/LyqNdWsAAAAASUVORK5CYII=",Mze="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFwAXAMBIgACEQEDEQH/xAAbAAACAgMBAAAAAAAAAAAAAAAABgQFAgMHAf/EAEAQAAEDAwIDBAUJBAsAAAAAAAEAAgMEBRESIQYxURNBYXEigZGhwQcUFSMkkrHC0TI1UvAWQkNiY3J0orKz4f/EABkBAAMBAQEAAAAAAAAAAAAAAAACBAMBBf/EACQRAAICAQIFBQAAAAAAAAAAAAABAhEDEjETITJBUQQUIiMz/9oADAMBAAIRAxEAPwDuKEIQAKPHXUctVJSR1cD6mLHaQtkBezIyMt5jYqQuAfKXTPj45rJImuMk0jCzTnVq0tG3q0rqVgd/QuY8HniqkhY2turuyxnsJgJXNHi87jyyUydtcnHP0jL91g/Kn4UjJ5ooakJZZd7hSnM2iqjHMEBr/URt6setSqbi/h+cY+laaJ42dHO8RuaehDsJXBrcaOSMti8QodPdbdUuDaavpZnHkI5muJ9hUxKOCEIQAIQhAAkS822E8WVNdLpdoa1zHfwEsAd/ta37xT2UlXU9pPWu73zaDnpqDT7gVpj6rM8rajS7mAlw+GAbOly946NGPjgepWGsDRnm7l7MqipnOkuUs2fQDQxu3QnPwU+onDaiJo/s2F59mB/PiqE01aI5RcXTN1PIJJaiM7gP29g/Vcy+USkNHeY5Ym7VTMkDveDg+4tXQbUXmaR7xjtJHOH+UgYUHiC1S3O70HYQ9o+HtHAZGxIbvulk/jaNMUfsSYqcD8Jurr/QOrgfqnCqdGP6rWEEZPUu0jHn0XdUr8D2qS3w1ktc0MrppcOYDnRE3IYM9+fSd5uI7k0KW7LZVfx2BCEIOAhCEACQ65xllcRqx28kp08yGh5/HSnKouNDTP0VNZTwv56ZJWtPsJXPpL5aKZ9LV1dRE5gB1BkrS5pc7ngHfHRMr0uheWuOrYvG2csL2Ubi9sEun03Z15jaSQfPO3LcjZaJbTUR656naJoc+TS7LnAD9kePTyVtbrrZ5aRj6K4URgI9HRK0AeruWVbXUUtO+NtdS4cMHEzf1WGuSN+HGTK6UTNuPZyRRsMQDD2ZOnIaDgZ6BwHq8cDGC40lFd/tNRHFJ2ZLBIcBwzvvy7lFdc4hWfaK2l0mQ+mZAMkjJPPHIAexVf0hb5uI6jtqmkfFoY0apGlp5k/iqsVOFEmZaMtjZaby2634imb9njp3gyA+i92pnLrj4pjStaLla2Vxd8/o2hsJA+uaAMkePgmhrg5oc0gg7gjvSSSTpD423G2eoQhKOC1VM8dLTy1E7tMUTC97ugAyVtSn8ode6ntUdIzI+cP+sdjYMbgnfxOkeWUsnpTZ1K3RTWCrkuD7lVzjEktXqI56fq2YHqGB6la6W9B7FQ8HkOo6xzSCDVHcH/DYr9eRNty5lVIx0MPNjfYsTHHjJjZ90LYsJTiN58Cks6VNJUht/qKfYRSsbob3BzQDt4kE/dVxgdEtVYdG19fG0l9PVB3ojJIDGZA826h61cm7W8HHzuP3p2r2AmFocMEDCsuF6smKW3SHMlMRo8Yzy9nLy09UuS323xjaVzz0ZG4/BRrfdKgXSG40tHWvjDtLhHSyODmHZwyG+GfMBbencoz25CTScTpSF4F6vTJgXhXqCgBNd+9ruetWP+qMLNYP/e93b3irHvhjPxWa8fN+jKo9KBRbjKIqV3V2wW+WWOFmuV7WN6kpcuNf87m9DIjbs0H8VmOkWdoayakn1tDmumO3kAPgpLqamGQ2Fod1I2UTh1wdRPHf2r/xKnuJaSzSXuJyOi69wCOnjG5hYD3eir7hhwdb5C3l28g96U7jcexYYm7Snng50j9UxcDHNhaes8v/ADKq9H1syzdIwoQheiTghCEAUlbw82orJ6qKuqKd85a57WNYWlwaG53GeQHf3KDNwtXPyGXtzR40/wCjgmlCzeKEnbQynJdxGm4Hr3nUbrDIer4HD85Wh3BN1b+xPRu83ub+UroCEvt8fgbiz8iRRcK3imiAE1G14c47SOI3JP8ACpEvDl6mbg3CljH9xjv/ABN6Fz22LwHFkIv9Bq487nTg/wCncfzpn4etbrPa2Uck7Z3Ne9xe1mgHU4nlk9eqs0J44oQdxQrm5bghCFoKf//Z",zze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAw1BMVEUD2sUAAAAC3McA2sUI28YBBAMA3cgCCAcDCwoGtaMFExIB1MAHIx8C18IDzroEwK0Nd2sGFxUB0LwGxLEKn5ADx7MLSEELQDoJNTAIJiIGHxsJ3cgLkoQNZlwMXVQI1cEJsaAKo5QKnI0LjoAMhnkLc2cMYFcKRj8JMSwILSgHGxkEEA4CzLgHuqcLin0LfXEMbGELTUYH0r4CyrcDvqsHrZwKqJgNWVELv6wNgnYMVU4Cwq8Mb2QKOzUJOTMIKiYMl4iTAtRRAAAC2ElEQVRo3u2Y6W7qMBCFkxnjQGmahUDZoQtQUgqUQgvd6Ps/1a10E0ImNdK1fX9U8vl7pDOx83k8iWVkZGRkZGRk9JsFvNPh8LPV+baYegmGXtf3u55VzAK3MvcXUR1QdRn1Xrtk26X2sgbUqrwG35Yz3a2YWo31pZ3oYw1566qVOKX+hUoVDBv2QZPZcRRs9wenNFLZMN51bFHU0s50fw3yRdxH+0hnURbF6vtja+qBNFn1ln2suyyKb+5z1ktVdsfAi+2c+oeozrWTc5xbUFxJFjVPo/hzOW+1h7JVBg07r/MKJPVrLWJdzpgkXTcOiWocjkSPONIcY/hIo/zDMd0T60yWY6ic06grSKyvjK8MPinBTZlENdMm5mbHUZFjdHs0qj/4G8Wekr6mzjHUmySqnHLMN7GtiWN+dSbiGBclXRxbfknAMa4edXHMLhpCjh9aFL6I6+OYJ1a3TDl+08dxPeW4CJ8sx4MxjRoPMIHvo8Axk1xK7Y5yfAOJ9Rzo4hj+ieMnjRyjiON3S5bjCY26BSHHG239eFK1RBwvJYtglR7JzxDTUYDW76PkSuYObexpklsAfMcld6tNN/4ZRLs1rTFN731E+pf6PIkjYScujgFLV+5OiYRn0fI1nUXwhF2F6+oqWH0p9EcXk6bWVL7nKb10YkF3rGligWG7eP0J6fVAE73+CXq5pv47ofRmWqL+iUgPvRSf03divJGkty++3T813e5sXpy3hXPKqyS9D+Ivh+t7PfRa7F1EL64munpvSLe9EbJ0jQGdHlB23DoX9d5O5Gia5+GtXaBXUCQecun/N036jZVdxwGlV1bYEw3sGF6q0ps9b0z+32RW1zmidw2WgnaHw+gscgausl4QREo10N0FSdCC7AibjZMHaH1ZakJr2GvGwV1vYyGx2CB6nQbxx2jNLFUBXnjbGcIPFsen7TYEsDQIAfCUZWRkZGRkZGT0f/UHAS86LuyGKlcAAAAASUVORK5CYII=",Fze=["innerHTML"],Dze={class:"w-16 flex justify-center"},Lze={class:"text-gray-500"},Bze={class:"w-16 flex justify-center"},Nze={class:"text-gray-500"},Hze=["onClick"],jze={class:"w-16 flex justify-center"},Uze=["src"],Vze={class:"text-gray-500"},Wze={class:"p-2.5 text-center"},qze={class:"font-bold mb-3"},Kze={class:"mb-5 space-x-4"},Gze={class:"text-center"},Xze={class:"mt-2.5 text-center"},Yze={class:"mb-1 md:mb-10"},Qze={key:0,class:"mb-2.5"},Jze={class:"font-bold"},Zze=["onClick"],eFe={class:"carousel-img flex flex-col justify-between p-5",style:{background:"rgba(0, 0, 0, 0.5) !important"}},tFe={class:"text-xl"},nFe={class:"text-base font-semibold color-[hsla(0,0%,100%,.75)]"},oFe={class:"text-block mb-4 pt-5 text-xl font-semibold"},rFe={key:0,class:"mb-4 text-sm text-gray-500"},iFe={key:1,class:"mb-4 text-sm font-semibold text-red-500"},aFe={key:2,class:"mb-4 text-sm text-gray-500"},sFe={class:"text-gray-500"},lFe={class:"flex items-center justify-between"},cFe={class:""},uFe={class:"text-base"},dFe={class:"text-sm text-gray-500"},fFe={class:"flex items-center justify-between"},hFe={class:"text-base"},pFe={class:"text-sm text-gray-500"},mFe={class:"flex items-center justify-between"},gFe={class:"text-base"},vFe={class:"text-sm text-gray-500"},bFe={class:"flex items-center justify-between"},yFe={class:"text-base"},xFe={class:"text-sm text-gray-500"},CFe=xe({__name:"index",setup(e){const t=G=>mn.global.t(G),n=TQ(),o=new Zu({html:!0}),r=G=>o.render(G),i=Tn(),a=Ji(),s=navigator.userAgent.toLowerCase();let l="unknown";s.includes("windows")?l="windows":s.includes("iphone")||s.includes("ipad")?l="ios":s.includes("macintosh")?l="mac":s.includes("android")&&(l="android");const c=U(!1),u=U();jt(()=>{});const d=U(!1),f=U(!1),h=U(""),p=U(["auto"]),g=[{label:"自动",type:"auto"},{label:"全部",type:"all"},{label:"Anytls",type:"anytls"},{label:"Vless",type:"vless"},{label:"Hy1",type:"hysteria"},{label:"Hy2",type:"hysteria2"},{label:"Shadowsocks",type:"shadowsocks"},{label:"Vmess",type:"vmess"},{label:"Trojan",type:"trojan"}],m=U([]);function b(G){if(G==="auto"||G==="all"&&p.value.includes("all"))p.value=["auto"];else if(G==="all"&&!p.value.includes("all"))p.value=m.value.map(ne=>ne.type).filter(ne=>ne!=="auto");else{const ne=p.value.includes(G);p.value=ne?p.value.filter(ce=>ce!==G):[...p.value.filter(ce=>ce!=="auto"),G],_$(m.value.map(ce=>ce.type).filter(ce=>ce!=="auto"&&ce!=="all"),p.value)?p.value.push("all"):p.value=p.value.filter(ce=>ce!=="all")}p.value.length===0&&(p.value=["auto"]),C()}const w=(G,ne)=>{if(!G)return"";const X=new URL(G);return Object.entries(ne).forEach(([ce,L])=>{X.searchParams.set(ce,L)}),X.toString()},C=()=>{var ce;const G=(ce=y.value)==null?void 0:ce.subscribe_url;if(!G)return;const ne=p.value;let X="auto";ne.includes("all")?X="all":ne.includes("auto")||(X=ne.join(",")),h.value=w(G,{types:X})};function _(G){console.log(G),window.location.href=G}function S(G){return btoa(unescape(encodeURIComponent(G)))}const y=I(()=>a.subscribe),x=I(()=>{var be;const G=(be=y.value)==null?void 0:be.subscribe_url,ne=encodeURIComponent(i.title||"");if(!G)return[];const X=encodeURIComponent(G),ce=S(G).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[{name:"复制订阅链接",icon:"icon-fluent:copy-24-filled",iconType:"component",platforms:["windows","mac","ios","android","unknown"],url:"copy"},{name:"Clash",icon:Pze,iconType:"img",platforms:["windows"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Clash Meta",icon:Tze,iconType:"img",platforms:["mac","android"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Hiddify",icon:Eze,iconType:"img",platforms:["mac","android","windows","ios"],url:`hiddify://import/${G}#${ne}`},{name:"SingBox",icon:Rze,iconType:"img",platforms:["android","mac","ios"],url:`sing-box://import-remote-profile?url=${X}#${ne}`},{name:"Shadowrocket",icon:Aze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`shadowrocket://add/sub://${ce}?remark=${ne}`},{name:"QuantumultX",icon:$ze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`quantumult-x://add-resource?remote-resource=${X}&opt=policy`},{name:"Surge",icon:Ize,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`surge:///install-config?url=${X}&name=${ne}`},{name:"Stash",icon:Oze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`stash://install-config?url=${X}&name=${ne}`},{name:"NekoBox",icon:Mze,iconType:"img",platforms:["android"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Surfboard",icon:zze,iconType:"img",platforms:["android"],url:`surfboard:///install-config?url=${X}&name=${ne}`}].filter(Oe=>Oe.platforms.includes(l)||l==="unknown")}),P=G=>{var ne;(ne=y.value)!=null&&ne.subscribe_url&&(G.url==="copy"?qs(y.value.subscribe_url):_(G.url))},k=()=>{var G;h.value=((G=y.value)==null?void 0:G.subscribe_url)||"",f.value=!0},T=I(()=>{var ce,L,be;const G=(ce=y.value)==null?void 0:ce.transfer_enable,ne=((L=y.value)==null?void 0:L.u)||0,X=((be=y.value)==null?void 0:be.d)||0;return G?Math.floor((ne+X)/G*100):0}),{errorColor:R,warningColor:E,successColor:q,primaryColor:D}=n.value,B=I(()=>{const G=T.value;return G>=100?R:G>=70?E:q});async function M(){var be,Oe;if(!await window.$dialog.confirm({title:t("确定重置当前已用流量?"),type:"info",content:t("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。"),showIcon:!1}))return;const ne=(be=await Bm())==null?void 0:be.data,X=ne==null?void 0:ne.find(je=>je.status===Os.PENDING);if(X)if(await window.$dialog.confirm({title:t("注意"),type:"info",content:t("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:t("确认取消"),negativeText:t("返回我的订单"),showIcon:!1})){const F=X.trade_no;if(!await Hu(F))return}else{Gt.push("order");return}const ce=(Oe=y.value)==null?void 0:Oe.plan_id;if(!ce)return;const{data:L}=await ak(ce,"reset_price");L&&Gt.push("order/"+L)}const K=U([]),V=U([0,0,0]),ae=U(),pe=U(),Z=async()=>{const{data:G}=await PJ();K.value=G;const ne=G.find(X=>{var ce;return(ce=X.tags)==null?void 0:ce.includes("弹窗")});ne&&(c.value=!0,u.value=ne)},N=async()=>{const{data:G}=await SJ();G&&(V.value=G)},O=async()=>{const{data:G}=await ik();if(!G)return;ae.value=G;const ne=[...new Set(G.map(X=>X.type==="hysteria"&&X.version===2?"hysteria2":X.type))];pe.value=ne,m.value=g.filter(X=>ne.includes(X.type)||["auto","all"].includes(X.type))},ee=async()=>{await Promise.all([Z(),a.getUserSubscribe(),N(),O()])};return hn(()=>{ee()}),(G,ne)=>{const X=ni,ce=$m,L=ute,be=ite,Oe=Am,je=Yi,F=zt,A=vo,re=ml,we=X2,oe=pl,ve=Ti,ke=qU,$=vl,H=Qi,te=UY,Ce=ete,de=Xee,ue=Vee,ie=Bee,fe=Mee,Fe=bo;return ge(),We(Fe,{"show-footer":!1},{default:me(()=>{var De,Me,Ne,et;return[se(X,{show:c.value,"onUpdate:show":ne[0]||(ne[0]=$e=>c.value=$e),class:"mx-2.5 max-w-full w-150 md:mx-auto",preset:"card",title:(De=u.value)==null?void 0:De.title,size:"huge",bordered:!1,"content-style":"padding-top:0",segmented:{content:!1}},{default:me(()=>{var $e;return[Y("div",{innerHTML:r((($e=u.value)==null?void 0:$e.content)||""),class:"markdown-body custom-html-style"},null,8,Fze)]}),_:1},8,["show","title"]),se(X,{show:d.value,"onUpdate:show":ne[3]||(ne[3]=$e=>d.value=$e),"transform-origin":"center","auto-focus":!1,"display-directive":"show","trap-focus":!1},{default:me(()=>[se(A,{class:"max-w-full w-75",bordered:!1,size:"huge","content-style":"padding:0"},{default:me(()=>[se(Oe,{hoverable:""},{default:me(()=>{var $e;return[($e=pe.value)!=null&&$e.includes("hysteria2")?(ge(),We(ce,{key:0,class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:ne[1]||(ne[1]=Xe=>{var gt;return Se(qs)(((gt=y.value)==null?void 0:gt.subscribe_url)+"&types=hysteria2")})},[Y("div",Dze,[se(Se(Xo),{size:"30"},{default:me(()=>[(ge(),We(xa(Se(Sze))))]),_:1})]),Y("div",Lze,he(G.$t("复制HY2订阅地址")),1)])]),_:1})):Ct("",!0),se(ce,{class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:k},[Y("div",Bze,[se(L,{class:"text-3xl text-gray-600"})]),Y("div",Nze,he(G.$t("扫描二维码订阅")),1)])]),_:1}),(ge(!0),ze(rt,null,Fn(x.value,Xe=>(ge(),ze(rt,{key:Xe.name},[Xe.platforms.includes(Se(l))?(ge(),We(ce,{key:0,class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:gt=>P(Xe)},[Y("div",jze,[Xe.iconType==="img"?(ge(),ze("img",{key:0,src:Xe.icon,class:qn(["h-8 w-8",Xe.iconClass])},null,10,Uze)):(ge(),We(Se(Xo),{key:1,size:"30",class:"text-gray-600"},{default:me(()=>[Xe.icon==="icon-fluent:copy-24-filled"?(ge(),We(be,{key:0})):(ge(),We(xa(Xe.icon),{key:1}))]),_:2},1024))]),Y("div",Vze,he(Xe.name==="复制订阅链接"?G.$t("复制订阅地址"):G.$t("导入到")+" "+Xe.name),1)],8,Hze)]),_:2},1024)):Ct("",!0)],64))),128))]}),_:1}),se(je,{class:"m-0!"}),Y("div",Wze,[se(F,{type:"primary",class:"w-full",size:"large",onClick:ne[2]||(ne[2]=$e=>G.$router.push("/knowledge"))},{default:me(()=>[nt(he(G.$t("不会使用,查看使用教程")),1)]),_:1})])]),_:1})]),_:1},8,["show"]),se(X,{show:f.value,"onUpdate:show":ne[4]||(ne[4]=$e=>f.value=$e)},{default:me(()=>[se(A,{class:"w-75"},{default:me(()=>[Y("div",qze,he(G.$t("选择协议"))+":",1),Y("div",Kze,[(ge(!0),ze(rt,null,Fn(m.value,$e=>(ge(),We(re,{key:$e.type,value:$e.type,checked:p.value.includes($e.type),onClick:Xe=>b($e.type)},{default:me(()=>[nt(he(G.$t($e.label)),1)]),_:2},1032,["value","checked","onClick"]))),128))]),Y("div",Gze,[se(we,{value:h.value,"icon-src":Se(i).logo,size:140,color:Se(D),style:{"box-sizing":"content-box"}},null,8,["value","icon-src","color"])]),Y("div",Xze,he(G.$t("使用支持扫码的客户端进行订阅")),1)]),_:1})]),_:1},8,["show"]),Y("div",Yze,[V.value[1]&&V.value[1]>0||V.value[0]&&V.value[0]>0?(ge(),ze("div",Qze,[V.value[1]&&V.value[1]>0?(ge(),We(oe,{key:0,type:"warning","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(V.value[1])+" "+he(G.$t("条工单正在处理中"))+" ",1),se(F,{strong:"",text:"",onClick:ne[5]||(ne[5]=$e=>Se(Gt).push("/ticket"))},{default:me(()=>[nt(he(G.$t("立即查看")),1)]),_:1})]),_:1})):Ct("",!0),V.value[0]&&V.value[0]>0?(ge(),We(oe,{key:1,type:"error","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(G.$t("还有没支付的订单"))+" ",1),se(F,{text:"",strong:"",onClick:ne[6]||(ne[6]=$e=>Se(Gt).push("/order"))},{default:me(()=>[nt(he(G.$t("立即支付")),1)]),_:1})]),_:1})):Ct("",!0),!((Me=y.value)!=null&&Me.expired_at&&(((Ne=y.value)==null?void 0:Ne.expired_at)||0)>Date.now()/1e3)&&T.value>=70?(ge(),We(oe,{key:2,type:"info","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(G.$tc("当前已使用流量达{rate}%",{rate:T.value}))+" ",1),se(F,{text:"",onClick:ne[7]||(ne[7]=$e=>M())},{default:me(()=>[Y("span",Jze,he(G.$t("重置已用流量")),1)]),_:1})]),_:1})):Ct("",!0)])):Ct("",!0),dn(se(A,{class:"w-full cursor-pointer overflow-hidden rounded-md text-white transition hover:opacity-75",bordered:!1,"content-style":"padding: 0"},{default:me(()=>[se(ke,{autoplay:""},{default:me(()=>[(ge(!0),ze(rt,null,Fn(K.value,$e=>(ge(),ze("div",{key:$e.id,class:"",style:Fi($e.img_url?`background:url(${$e.img_url}) no-repeat;background-size: cover `:`background:url(${Se(i).$state.assets_path}/images/background.svg)`),onClick:Xe=>(c.value=!0,u.value=$e)},[Y("div",eFe,[Y("div",null,[se(ve,{bordered:!1,class:"bg-orange-600 text-xs text-white"},{default:me(()=>[nt(he(G.$t("公告")),1)]),_:1})]),Y("div",null,[Y("p",tFe,he($e.title),1),Y("p",nFe,he(Se(Wo)($e.created_at)),1)])])],12,Zze))),128))]),_:1})]),_:1},512),[[Mn,((et=K.value)==null?void 0:et.length)>0]]),se(A,{title:G.$t("我的订阅"),class:"mt-1 rounded-md md:mt-5"},{default:me(()=>{var $e,Xe,gt,Q,ye,Ae,qe,Qe,Je,tt,it,vt,an,Ft,_e,Be;return[y.value?($e=y.value)!=null&&$e.plan_id?(ge(),ze(rt,{key:1},[Y("div",oFe,he((gt=(Xe=y.value)==null?void 0:Xe.plan)==null?void 0:gt.name),1),((Q=y.value)==null?void 0:Q.expired_at)===null?(ge(),ze("div",rFe,he(G.$t("该订阅长期有效")),1)):(ye=y.value)!=null&&ye.expired_at&&(((Ae=y.value)==null?void 0:Ae.expired_at)??0)(((tt=y.value)==null?void 0:tt.reset_day)||0)?(ge(),ze(rt,{key:0},[nt(he(G.$tc("已用流量将在 {reset_day} 日后重置",{reset_day:(it=y.value)==null?void 0:it.reset_day})),1)],64)):Ct("",!0)])),se(te,{type:"line",percentage:T.value,processing:"",color:B.value},null,8,["percentage","color"]),Y("div",null,he(G.$tc("已用 {used} / 总计 {total}",{used:Se(ua)(((((vt=y.value)==null?void 0:vt.u)||0)+(((an=y.value)==null?void 0:an.d)||0))/1024/1024/1024)+" GB",total:Se(ua)((((Ft=y.value)==null?void 0:Ft.transfer_enable)||0)/1024/1024/1024)+" GB"})),1),(_e=y.value)!=null&&_e.expired_at&&(((Be=y.value)==null?void 0:Be.expired_at)||0)Se(Gt).push("/plan/"+Se(a).plan_id))},{default:me(()=>[nt(he(G.$t("续费订阅")),1)]),_:1})):T.value>=70?(ge(),We(F,{key:4,type:"primary",class:"mt-5",onClick:ne[9]||(ne[9]=Ze=>M())},{default:me(()=>[nt(he(G.$t("重置已用流量")),1)]),_:1})):Ct("",!0)],64)):(ge(),ze("div",{key:2,class:"cursor-pointer pt-5 text-center",onClick:ne[10]||(ne[10]=Ze=>Se(Gt).push("/plan"))},[se(Ce,{class:"text-4xl"}),Y("div",sFe,he(G.$t("购买订阅")),1)])):(ge(),We(H,{key:0},{default:me(()=>[se($,{height:"20px",width:"33%"}),se($,{height:"20px",width:"66%"}),se($,{height:"20px"})]),_:1}))]}),_:1},8,["title"]),se(A,{title:G.$t("捷径"),class:"mt-5 rounded-md","content-style":"padding: 0"},{default:me(()=>[se(Oe,{hoverable:"",clickable:""},{default:me(()=>[se(ce,{class:"flex flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:ne[11]||(ne[11]=$e=>Se(Gt).push("/knowledge"))},{default:me(()=>[Y("div",lFe,[Y("div",cFe,[Y("div",uFe,he(G.$t("查看教程")),1),Y("div",dFe,he(G.$t("学习如何使用"))+" "+he(Se(i).title),1)]),Y("div",null,[se(de,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:ne[12]||(ne[12]=$e=>d.value=!0)},{default:me(()=>[Y("div",fFe,[Y("div",null,[Y("div",hFe,he(G.$t("一键订阅")),1),Y("div",pFe,he(G.$t("快速将节点导入对应客户端进行使用")),1)]),Y("div",null,[se(ue,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5",onClick:ne[13]||(ne[13]=$e=>Se(a).plan_id?Se(Gt).push("/plan/"+Se(a).plan_id):Se(Gt).push("/plan"))},{default:me(()=>{var $e;return[Y("div",mFe,[Y("div",null,[Y("div",gFe,he(($e=y.value)!=null&&$e.plan_id?G.$t("续费订阅"):G.$t("购买订阅")),1),Y("div",vFe,he(G.$t("对您当前的订阅进行购买")),1)]),Y("div",null,[se(ie,{class:"text-3xl text-gray-500-500"})])])]}),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5",onClick:ne[14]||(ne[14]=$e=>G.$router.push("/ticket"))},{default:me(()=>[Y("div",bFe,[Y("div",null,[Y("div",yFe,he(G.$t("遇到问题")),1),Y("div",xFe,he(G.$t("遇到问题可以通过工单与我们沟通")),1)]),Y("div",null,[se(fe,{class:"text-3xl text-gray-500-500"})])])]),_:1})]),_:1})]),_:1},8,["title"])])]}),_:1})}}}),wFe=Uu(CFe,[["__scopeId","data-v-94f2350e"]]),_Fe=Object.freeze(Object.defineProperty({__proto__:null,default:wFe},Symbol.toStringTag,{value:"Module"})),SFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},kFe=Y("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372m159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8c-.1-4.4-3.7-8-8.1-8"},null,-1),PFe=[kFe];function TFe(e,t){return ge(),ze("svg",SFe,[...PFe])}const EFe={name:"ant-design-pay-circle-outlined",render:TFe},RFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},AFe=Y("path",{fill:"currentColor",d:"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7M157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9c43.6-18.4 89.9-27.8 137.6-27.8c47.8 0 94.1 9.3 137.6 27.8c42.1 17.8 79.9 43.4 112.4 75.9c10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82C277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8M934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4a352.6 352.6 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.6 352.6 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942C747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2"},null,-1),$Fe=[AFe];function IFe(e,t){return ge(),ze("svg",RFe,[...$Fe])}const OFe={name:"ant-design-transaction-outlined",render:IFe},MFe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},zFe=Y("path",{fill:"currentColor",d:"M19 17v2H7v-2s0-4 6-4s6 4 6 4m-3-9a3 3 0 1 0-3 3a3 3 0 0 0 3-3m3.2 5.06A5.6 5.6 0 0 1 21 17v2h3v-2s0-3.45-4.8-3.94M18 5a2.9 2.9 0 0 0-.89.14a5 5 0 0 1 0 5.72A2.9 2.9 0 0 0 18 11a3 3 0 0 0 0-6M8 10H5V7H3v3H0v2h3v3h2v-3h3Z"},null,-1),FFe=[zFe];function DFe(e,t){return ge(),ze("svg",MFe,[...FFe])}const LFe={name:"mdi-invite",render:DFe},BFe={class:"text-5xl font-normal"},NFe={class:"ml-2.5 text-xl text-gray-500 md:ml-5"},HFe={class:"text-gray-500"},jFe={class:"flex justify-between pb-1 pt-1"},UFe={class:"flex justify-between pb-1 pt-1"},VFe={key:0},WFe={key:1},qFe={class:"flex justify-between pb-1 pt-1"},KFe={class:"flex justify-between pb-1 pt-1"},GFe={class:"mt-2.5"},XFe={class:"mb-1"},YFe={class:"mt-2.5"},QFe={class:"mb-1"},JFe={class:"flex justify-end"},ZFe={class:"mt-2.5"},eDe={class:"mb-1"},tDe={class:"mt-2.5"},nDe={class:"mb-1"},oDe={class:"flex justify-end"},rDe=xe({__name:"index",setup(e){const t=Tn(),n=y=>mn.global.t(y),o=[{title:n("邀请码"),key:"code",render(y){const x=`${window.location.protocol}//${window.location.host}/#/register?code=${y.code}`;return v("div",[v("span",y.code),v(zt,{size:"small",onClick:()=>qs(x),quaternary:!0,type:"info"},{default:()=>n("复制链接")})])}},{title:n("创建时间"),key:"created_at",fixed:"right",align:"right",render(y){return Wo(y.created_at)}}],r=[{title:n("发放时间"),key:"created_at",render(y){return Wo(y.created_at)}},{title:n("佣金"),key:"get_amount",fixed:"right",align:"right",render(y){return sn(y.get_amount)}}],i=U(),a=U([]);async function s(){const y=await AJ(),{data:x}=y;i.value=x.codes,a.value=x.stat}const l=U([]),c=to({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,50,100,150],onChange:y=>{c.page=y,u()},onUpdatePageSize:y=>{c.pageSize=y,c.page=1,u()}});async function u(){const y=await $J(c.page,c.pageSize),{data:x}=y;l.value=x}const d=U(!1);async function f(){d.value=!0;const{data:y}=await IJ();y===!0&&(window.$message.success(n("已生成")),S()),d.value=!1}const h=U(!1),p=U(),g=U(!1);async function m(){g.value=!0;const y=p.value;if(typeof y!="number"){window.$message.error(n("请输入正确的划转金额")),g.value=!1;return}const{data:x}=await OJ(y*100);x===!0&&(window.$message.success(n("划转成功")),h.value=!1,s()),g.value=!1}const b=U(!1),w=to({method:null,account:null}),C=U(!1);async function _(){if(C.value=!0,!w.method){window.$message.error(n("提现方式不能为空")),C.value=!1;return}if(!w.account){window.$message.error(n("提现账号不能为空")),C.value=!1;return}const y=w.method,x=w.account,{data:P}=await MJ({withdraw_method:y,withdraw_account:x});P===!0&&Gt.push("/ticket"),C.value=!1}function S(){s(),u()}return hn(()=>{S()}),(y,x)=>{const P=LFe,k=vV,T=OFe,R=EFe,E=Qi,q=vo,D=Du,B=pl,M=dr,K=DX,V=ni,ae=ck,pe=Ou,Z=bo;return ge(),We(Z,null,{default:me(()=>[se(q,{title:y.$t("我的邀请"),class:"rounded-md"},{"header-extra":me(()=>[se(P,{class:"text-4xl text-gray-500"})]),default:me(()=>{var N;return[Y("div",null,[Y("span",BFe,[se(k,{from:0,to:parseFloat(Se(sn)(a.value[4])),active:!0,precision:2,duration:500},null,8,["to"])]),Y("span",NFe,he((N=Se(t).appConfig)==null?void 0:N.currency),1)]),Y("div",HFe,he(y.$t("当前剩余佣金")),1),se(E,{class:"mt-2.5"},{default:me(()=>{var O;return[se(Se(zt),{size:"small",type:"primary",onClick:x[0]||(x[0]=ee=>h.value=!0)},{icon:me(()=>[se(T)]),default:me(()=>[nt(" "+he(y.$t("划转")),1)]),_:1}),(O=Se(t).appConfig)!=null&&O.withdraw_close?Ct("",!0):(ge(),We(Se(zt),{key:0,size:"small",type:"primary",onClick:x[1]||(x[1]=ee=>b.value=!0)},{icon:me(()=>[se(R)]),default:me(()=>[nt(" "+he(y.$t("推广佣金提现")),1)]),_:1}))]}),_:1})]}),_:1},8,["title"]),se(q,{class:"mt-4 rounded-md"},{default:me(()=>{var N,O,ee,G,ne,X;return[Y("div",jFe,[Y("div",null,he(y.$t("已注册用户数")),1),Y("div",null,he(y.$tc("{number} 人",{number:a.value[0]})),1)]),Y("div",UFe,[Y("div",null,he(y.$t("佣金比例")),1),(N=Se(t).appConfig)!=null&&N.commission_distribution_enable?(ge(),ze("div",VFe,he(`${Math.floor((((O=Se(t).appConfig)==null?void 0:O.commission_distribution_l1)||0)*a.value[3]/100)}%,${Math.floor((((ee=Se(t).appConfig)==null?void 0:ee.commission_distribution_l2)||0)*a.value[3]/100)}%,${Math.floor((((G=Se(t).appConfig)==null?void 0:G.commission_distribution_l3)||0)*a.value[3]/100)}%`),1)):(ge(),ze("div",WFe,he(a.value[3])+"%",1))]),Y("div",qFe,[Y("div",null,he(y.$t("确认中的佣金")),1),Y("div",null,he((ne=Se(t).appConfig)==null?void 0:ne.currency_symbol)+" "+he(Se(sn)(a.value[2])),1)]),Y("div",KFe,[Y("div",null,he(y.$t("累计获得佣金")),1),Y("div",null,he((X=Se(t).appConfig)==null?void 0:X.currency_symbol)+" "+he(Se(sn)(a.value[1])),1)])]}),_:1}),se(q,{title:y.$t("邀请码管理"),class:"mt-4 rounded-md"},{"header-extra":me(()=>[se(Se(zt),{size:"small",type:"primary",round:"",loading:d.value,onClick:f},{default:me(()=>[nt(he(y.$t("生成邀请码")),1)]),_:1},8,["loading"])]),default:me(()=>[se(D,{columns:o,data:i.value,bordered:!0},null,8,["data"])]),_:1},8,["title"]),se(q,{title:y.$t("佣金发放记录"),class:"mt-4 rounded-md"},{default:me(()=>[se(D,{columns:r,data:l.value,pagination:c},null,8,["data","pagination"])]),_:1},8,["title"]),se(V,{show:h.value,"onUpdate:show":x[6]||(x[6]=N=>h.value=N)},{default:me(()=>[se(q,{title:y.$t("划转"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto",closable:"",onClose:x[5]||(x[5]=N=>h.value=!1)},{footer:me(()=>[Y("div",JFe,[Y("div",null,[se(Se(zt),{onClick:x[3]||(x[3]=N=>h.value=!1)},{default:me(()=>[nt(he(y.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",class:"ml-2.5",onClick:x[4]||(x[4]=N=>m()),loading:g.value,disabled:g.value},{default:me(()=>[nt(he(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:me(()=>[se(B,{type:"warning"},{default:me(()=>[nt(he(y.$tc("划转后的余额仅用于{title}消费使用",{title:Se(t).title})),1)]),_:1}),Y("div",GFe,[Y("div",XFe,he(y.$t("当前推广佣金余额")),1),se(M,{placeholder:Se(sn)(a.value[4]),type:"number",disabled:""},null,8,["placeholder"])]),Y("div",YFe,[Y("div",QFe,he(y.$t("划转金额")),1),se(K,{value:p.value,"onUpdate:value":x[2]||(x[2]=N=>p.value=N),min:0,placeholder:y.$t("请输入需要划转到余额的金额"),clearable:""},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(V,{show:b.value,"onUpdate:show":x[12]||(x[12]=N=>b.value=N)},{default:me(()=>[se(q,{title:y.$t("推广佣金划转至余额"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto"},{"header-extra":me(()=>[se(Se(zt),{class:"h-auto p-0.5",tertiary:"",size:"large",onClick:x[7]||(x[7]=N=>b.value=!1)},{icon:me(()=>[se(ae,{class:"cursor-pointer opacity-85"})]),_:1})]),footer:me(()=>[Y("div",oDe,[Y("div",null,[se(Se(zt),{onClick:x[10]||(x[10]=N=>b.value=!1)},{default:me(()=>[nt(he(y.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",class:"ml-2.5",onClick:x[11]||(x[11]=N=>_()),loading:C.value,disabled:C.value},{default:me(()=>[nt(he(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:me(()=>{var N;return[Y("div",ZFe,[Y("div",eDe,he(y.$t("提现方式")),1),se(pe,{value:w.method,"onUpdate:value":x[8]||(x[8]=O=>w.method=O),options:(N=Se(t).appConfig)==null?void 0:N.withdraw_methods.map(O=>({label:O,value:O})),placeholder:y.$t("请选择提现方式")},null,8,["value","options","placeholder"])]),Y("div",tDe,[Y("div",nDe,he(y.$t("提现账号")),1),se(M,{value:w.account,"onUpdate:value":x[9]||(x[9]=O=>w.account=O),placeholder:y.$t("请输入提现账号"),type:"string"},null,8,["value","placeholder"])])]}),_:1},8,["title"])]),_:1},8,["show"])]),_:1})}}}),iDe=Object.freeze(Object.defineProperty({__proto__:null,default:rDe},Symbol.toStringTag,{value:"Module"})),aDe={class:""},sDe={class:"mb-1 text-base font-semibold"},lDe={class:"text-xs text-gray-500"},cDe=["innerHTML"],uDe=xe({__name:"index",setup(e){const t=Tn(),n=new Zu({html:!0}),o=f=>n.render(f);window.copy=f=>qs(f),window.jump=f=>a(f);const r=U(!1),i=U();async function a(f){const{data:h}=await GJ(f,t.lang);h&&(i.value=h),r.value=!0}const s=U(""),l=U(!0),c=U();async function u(){l.value=!0;const f=s.value,{data:h}=await KJ(f,t.lang);c.value=h,l.value=!1}function d(){u()}return hn(()=>{d()}),(f,h)=>{const p=dr,g=zt,m=gm,b=vl,w=Qi,C=$m,_=Am,S=vo,y=iK,x=x2,P=bo;return ge(),We(P,{"show-footer":!1},{default:me(()=>[se(m,null,{default:me(()=>[se(p,{placeholder:f.$t("使用文档"),value:s.value,"onUpdate:value":h[0]||(h[0]=k=>s.value=k),onKeyup:h[1]||(h[1]=Cs(k=>d(),["enter"]))},null,8,["placeholder","value"]),se(g,{type:"primary",ghost:"",onClick:h[2]||(h[2]=k=>d())},{default:me(()=>[nt(he(f.$t("搜索")),1)]),_:1})]),_:1}),l.value?(ge(),We(w,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(b,{height:"20px",width:"33%"}),se(b,{height:"20px",width:"66%"}),se(b,{height:"20px"})]),_:1})):Ct("",!0),(ge(!0),ze(rt,null,Fn(c.value,(k,T)=>(ge(),We(S,{key:T,title:T,class:"mt-5 rounded-md",contentStyle:"padding:0"},{default:me(()=>[se(_,{clickable:"",hoverable:""},{default:me(()=>[(ge(!0),ze(rt,null,Fn(k,R=>(ge(),We(C,{key:R.id,onClick:E=>a(R.id)},{default:me(()=>[Y("div",aDe,[Y("div",sDe,he(R.title),1),Y("div",lDe,he(f.$t("最后更新"))+" "+he(Se(Op)(R.updated_at)),1)])]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)),se(x,{show:r.value,"onUpdate:show":h[3]||(h[3]=k=>r.value=k),width:"80%",placement:"right"},{default:me(()=>{var k;return[se(y,{title:(k=i.value)==null?void 0:k.title,closable:""},{default:me(()=>{var T;return[Y("div",{innerHTML:o(((T=i.value)==null?void 0:T.body)||""),class:"custom-html-style markdown-body"},null,8,cDe)]}),_:1},8,["title"])]}),_:1},8,["show"])]),_:1})}}}),dDe=Object.freeze(Object.defineProperty({__proto__:null,default:uDe},Symbol.toStringTag,{value:"Module"})),fDe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},hDe=Y("path",{fill:"currentColor",d:"M11 18h2v-2h-2zm1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-14a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2a2 2 0 0 1 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4"},null,-1),pDe=[hDe];function mDe(e,t){return ge(),ze("svg",fDe,[...pDe])}const gDe={name:"mdi-help-circle-outline",render:mDe},vDe={class:"flex"},bDe={class:"flex-[1]"},yDe={class:"flex flex-[2] flex-shrink-0 text-center"},xDe={class:"flex flex-1 items-center justify-center"},CDe={class:"flex flex-1 items-center justify-center"},wDe={class:"flex-1"},_De={class:"flex"},SDe={class:"flex-[1] break-anywhere"},kDe={class:"flex flex-[2] flex-shrink-0 items-center text-center"},PDe={class:"flex flex-[1] items-center justify-center"},TDe={class:"flex-[1]"},EDe={class:"flex-[1]"},RDe={key:0},ADe={key:1},$De=xe({__name:"index",setup(e){const t=U([]),n=U(!0);async function o(){n.value=!0;const r=await ik(),{data:i}=r;t.value=i,n.value=!1}return hn(()=>{o()}),(r,i)=>{const a=vl,s=Qi,l=gDe,c=zu,u=Ti,d=$m,f=Am,h=Qc("router-link"),p=pl,g=bo;return ge(),We(g,null,{default:me(()=>[n.value?(ge(),We(s,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(a,{height:"20px",width:"33%"}),se(a,{height:"20px",width:"66%"}),se(a,{height:"20px"})]),_:1})):t.value.length>0?(ge(),We(f,{key:1,clickable:"",hoverable:""},{header:me(()=>[Y("div",vDe,[Y("div",bDe,he(r.$t("名称")),1),Y("div",yDe,[Y("div",xDe,[nt(he(r.$t("状态"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:me(()=>[se(l,{class:"ml-1 text-base"})]),default:me(()=>[Y("span",null,he(r.$t("五分钟内节点在线情况")),1)]),_:1})]),Y("div",CDe,[nt(he(r.$t("倍率"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:me(()=>[se(l,{class:"ml-1 text-base"})]),default:me(()=>[Y("span",null,he(r.$t("使用的流量将乘以倍率进行扣除")),1)]),_:1})]),Y("div",wDe,he(r.$t("标签")),1)])])]),default:me(()=>[(ge(!0),ze(rt,null,Fn(t.value,m=>(ge(),We(d,{key:m.id},{default:me(()=>[Y("div",_De,[Y("div",SDe,he(m.name),1),Y("div",kDe,[Y("div",PDe,[Y("div",{class:qn(["h-1.5 w-1.5 rounded-full",m.is_online?"bg-blue-500":"bg-red-500"])},null,2)]),Y("div",TDe,[se(u,{size:"small",round:"",class:""},{default:me(()=>[nt(he(m.rate)+" x ",1)]),_:2},1024)]),Y("div",EDe,[m.tags&&m.tags.length>0?(ge(),ze("div",RDe,[(ge(!0),ze(rt,null,Fn(m.tags,b=>(ge(),We(u,{size:"small",round:"",key:b},{default:me(()=>[nt(he(b),1)]),_:2},1024))),128))])):(ge(),ze("span",ADe,"-"))])])])]),_:2},1024))),128))]),_:1})):(ge(),We(p,{key:2,type:"info"},{default:me(()=>[Y("div",null,[nt(he(r.$t("没有可用节点,如果您未订阅或已过期请"))+" ",1),se(h,{class:"font-semibold",to:"/plan"},{default:me(()=>[nt(he(r.$t("订阅")),1)]),_:1}),nt("。 ")])]),_:1}))]),_:1})}}}),IDe=Object.freeze(Object.defineProperty({__proto__:null,default:$De},Symbol.toStringTag,{value:"Module"})),ODe=xe({__name:"index",setup(e){const t=s=>mn.global.t(s),n=[{title:t("# 订单号"),key:"trade_no",render(s){return v(zt,{text:!0,class:"color-primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>s.trade_no})}},{title:t("周期"),key:"period",render(s){return v(Ti,{round:!0,size:"small"},{default:()=>t($k[s.period])})}},{title:t("订单金额"),key:"total_amount",render(s){return sn(s.total_amount)}},{title:t("订单状态"),key:"status",render(s){const l=t(kze[s.status]),c=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.2",s.status===3?"bg-green-500":"bg-red-500"]});return v("div",{class:"flex items-center"},[c,l])}},{title:t("创建时间"),key:"created_at",render(s){return Wo(s.created_at)}},{title:t("操作"),key:"actions",fixed:"right",render(s){const l=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>t("查看详情")}),c=v(zt,{text:!0,type:"primary",disabled:s.status!==0,onClick:()=>o(s.trade_no)},{default:()=>t("取消")}),u=v(Yi,{vertical:!0});return v("div",[l,u,c])}}];async function o(s){window.$dialog.confirm({title:t("注意"),type:"info",content:t("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:l}=await Hu(s);l===!0&&(window.$message.success(t("取消成功")),a())}})}const r=U([]);async function i(){const s=await Bm(),{data:l}=s;r.value=l}async function a(){i()}return hn(()=>{a()}),(s,l)=>{const c=Du,u=bo;return ge(),We(u,null,{default:me(()=>[se(c,{columns:n,data:r.value,bordered:!1,"scroll-x":800},null,8,["data"])]),_:1})}}}),MDe=Object.freeze(Object.defineProperty({__proto__:null,default:ODe},Symbol.toStringTag,{value:"Module"})),zDe={class:"inline-block",viewBox:"0 0 48 48",width:"1em",height:"1em"},FDe=Y("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[Y("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6S6 14.059 6 24s8.059 18 18 18m0 2c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20"}),Y("path",{d:"M34.67 16.259a1 1 0 0 1 .072 1.412L21.386 32.432l-8.076-7.709a1 1 0 0 1 1.38-1.446l6.59 6.29L33.259 16.33a1 1 0 0 1 1.413-.07"})],-1),DDe=[FDe];function LDe(e,t){return ge(),ze("svg",zDe,[...DDe])}const Ik={name:"healthicons-yes-outline",render:LDe},BDe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},NDe=Y("path",{fill:"currentColor",d:"M952.08 1.552L529.039 116.144c-10.752 2.88-34.096 2.848-44.815-.16L72.08 1.776C35.295-8.352-.336 18.176-.336 56.048V834.16c0 32.096 24.335 62.785 55.311 71.409l412.16 114.224c11.025 3.055 25.217 4.751 39.937 4.751c10.095 0 25.007-.784 38.72-4.528l423.023-114.592c31.056-8.4 55.504-39.024 55.504-71.248V56.048c.016-37.84-35.616-64.464-72.24-54.496zM479.999 956.943L71.071 843.887c-3.088-.847-7.408-6.496-7.408-9.712V66.143L467.135 177.68c3.904 1.088 8.288 1.936 12.864 2.656zm480.336-122.767c0 3.152-5.184 8.655-8.256 9.503L544 954.207v-775.92c.592-.144 1.2-.224 1.792-.384L960.32 65.775v768.4h.016zM641.999 366.303c2.88 0 5.81-.367 8.69-1.184l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.128 16.815 23.344 30.783 23.344m.002 192.001c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473c-4.783-17.008-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.457c3.968 14.127 16.815 23.36 30.783 23.36m.002 192c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16L633.38 687.487c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.113 16.815 23.345 30.783 23.345M394.629 303.487l-223.934-63.025c-16.912-4.72-34.688 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.937 63.024a31.8 31.8 0 0 0 8.687 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999l-223.934-63.025c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999L170.699 624.46c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-17.008-5.12-34.657-22.16-39.473"},null,-1),HDe=[NDe];function jDe(e,t){return ge(),ze("svg",BDe,[...HDe])}const UDe={name:"simple-line-icons-book-open",render:jDe},VDe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},WDe=Y("path",{fill:"currentColor",d:"M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8m-.615 12.66h-1.34l-3.24-4.54l1.341-1.25l2.569 2.4l5.141-5.931l1.34.94z"},null,-1),qDe=[WDe];function KDe(e,t){return ge(),ze("svg",VDe,[...qDe])}const GDe={name:"dashicons-yes-alt",render:KDe},XDe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},YDe=Y("path",{fill:"currentColor",d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8s3.58-8 8-8m1.13 9.38l.35-6.46H8.52l.35 6.46zm-.09 3.36c.24-.23.37-.55.37-.96c0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35s-.82.12-1.07.35s-.37.55-.37.97c0 .41.13.73.38.96c.26.23.61.34 1.06.34s.8-.11 1.05-.34"},null,-1),QDe=[YDe];function JDe(e,t){return ge(),ze("svg",XDe,[...QDe])}const ZDe={name:"dashicons-warning",render:JDe},eLe={class:"relative max-w-full w-75",style:{"padding-bottom":"100%"}},tLe={class:"p-2.5 text-center"},nLe={key:1,class:"flex flex-wrap"},oLe={class:"w-full md:flex-[2]"},rLe={key:2,class:"mt-2.5 text-xl"},iLe={key:3,class:"text-sm text-[rgba(0,0,0,0.45)]"},aLe={class:"flex"},sLe={class:"flex-[1] text-gray-400"},lLe={class:"flex-[2]"},cLe={class:"flex"},uLe={class:"mt-1 flex-[1] text-gray-400"},dLe={class:"flex-[2]"},fLe={class:"flex"},hLe={class:"mb-1 mt-1 flex-[1] text-gray-400"},pLe={class:"flex-[2]"},mLe={class:"flex"},gLe={class:"flex-[1] text-gray-400"},vLe={class:"flex-[2]"},bLe={key:0,class:"flex"},yLe={class:"flex-[1] text-gray-400"},xLe={class:"flex-[2]"},CLe={key:1,class:"flex"},wLe={class:"flex-[1] text-gray-400"},_Le={class:"flex-[2]"},SLe={key:2,class:"flex"},kLe={class:"flex-[1] text-gray-400"},PLe={class:"flex-[2]"},TLe={key:3,class:"flex"},ELe={class:"flex-[1] text-gray-400"},RLe={class:"flex-[2]"},ALe={key:4,class:"flex"},$Le={class:"flex-[1] text-gray-400"},ILe={class:"flex-[2]"},OLe={class:"flex"},MLe={class:"mt-1 flex-[1] text-gray-400"},zLe={class:"flex-[2]"},FLe=["onClick"],DLe={class:"flex-[1] whitespace-nowrap"},LLe={class:"flex-[1]"},BLe=["src"],NLe={key:0,class:"w-full md:flex-[1] md:pl-5"},HLe={class:"mt-5 rounded-md bg-gray-800 p-5 text-white"},jLe={class:"text-lg font-semibold"},ULe={class:"flex border-gray-600 border-b pb-4 pt-4"},VLe={class:"flex-[2]"},WLe={class:"flex-[1] text-right color-#f8f9fa"},qLe={key:0,class:"border-[#646669] border-b pb-4 pt-4"},KLe={class:"color-#f8f9fa41"},GLe={class:"pt-4 text-right"},XLe={key:1,class:"border-[#646669] border-b pb-4 pt-4"},YLe={class:"color-#f8f9fa41"},QLe={class:"pt-4 text-right"},JLe={key:2,class:"border-[#646669] border-b pb-4 pt-4"},ZLe={class:"color-#f8f9fa41"},eBe={class:"pt-4 text-right"},tBe={key:3,class:"border-[#646669] border-b pb-4 pt-4"},nBe={class:"color-#f8f9fa41"},oBe={class:"pt-4 text-right"},rBe={key:4,class:"border-[#646669] border-b pb-4 pt-4"},iBe={class:"color-#f8f9fa41"},aBe={class:"pt-4 text-right"},sBe={class:"pb-4 pt-4"},lBe={class:"color-#f8f9fa41"},cBe={class:"text-4xl font-semibold"},uBe=xe({__name:"detail",setup(e){const t=Tn(),n=Ji(),o=za(),r=x=>mn.global.t(x);function i(x){switch(x){case 1:return{icon:"info",title:r("开通中"),subTitle:r("订单系统正在进行处理,请稍等1-3分钟。")};case 2:return{icon:"info",title:r("已取消"),subTitle:r("订单由于超时支付已被取消。")};case 3:case 4:return{icon:"info",title:r("已完成"),subTitle:r("订单已支付并开通。")}}return{icon:"error",title:r("意料之外"),subTitle:r("意料之外的状态")}}async function a(){window.$dialog.confirm({title:r("注意"),type:"info",content:r("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:x}=await Hu(s.value);x===!0&&(window.$message.success(r("取消成功")),y())}})}const s=U(""),l=U(),c=U(),u=U(!0);async function d(){u.value=!0;const{data:x}=await EJ(s.value);l.value=x,clearInterval(c.value),x.status===Os.PENDING&&p(),[Os.PENDING,Os.PROCESSING].includes(x.status)&&(c.value=setInterval(_,1500)),u.value=!1}const f=U([]),h=U(0);async function p(){const{data:x}=await LJ();f.value=x}function g(){var P,k,T,R,E;return(((P=l.value)==null?void 0:P.plan[l.value.period])||0)-(((k=l.value)==null?void 0:k.balance_amount)||0)-(((T=l.value)==null?void 0:T.surplus_amount)||0)+(((R=l.value)==null?void 0:R.refund_amount)||0)-(((E=l.value)==null?void 0:E.discount_amount)||0)}function m(){const x=f.value[h.value];return(x!=null&&x.handling_fee_percent||x!=null&&x.handling_fee_fixed)&&g()?g()*parseFloat(x.handling_fee_percent||"0")/100+((x==null?void 0:x.handling_fee_fixed)||0):0}async function b(){const x=f.value[h.value],{data:P,type:k}=await BJ(s.value,x==null?void 0:x.id);P&&(P===!0?(window.$message.info(r("支付成功")),setTimeout(()=>{S()},500)):k===0?(w.value=!0,C.value=P):k===1&&(window.$message.info(r("正在前往收银台")),setTimeout(()=>{window.location.href=P},500)))}const w=U(!1),C=U("");async function _(){var P;const{data:x}=await RJ(s.value);x!==((P=l.value)==null?void 0:P.status)&&S()}async function S(){y(),n.getUserInfo()}async function y(){d(),w.value=!1}return hn(()=>{typeof o.params.trade_no=="string"&&(s.value=o.params.trade_no),y()}),Oa(()=>{clearInterval(c.value)}),(x,P)=>{const k=X2,T=Yi,R=vo,E=ni,q=vl,D=Qi,B=ZDe,M=GDe,K=UDe,V=zt,ae=Ik,pe=bo;return ge(),We(pe,null,{default:me(()=>{var Z,N,O,ee,G,ne,X,ce,L,be,Oe,je,F,A,re,we,oe,ve,ke,$,H,te,Ce,de,ue,ie;return[se(E,{show:w.value,"onUpdate:show":P[0]||(P[0]=fe=>w.value=fe),onOnAfterLeave:P[1]||(P[1]=fe=>C.value="")},{default:me(()=>[se(R,{"content-style":"padding:10px",class:"w-auto",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:me(()=>[Y("div",eLe,[C.value?(ge(),We(k,{key:0,value:C.value,class:"pay-qrcode absolute h-full! w-full!",size:"400"},null,8,["value"])):Ct("",!0)]),se(T,{class:"m-0!"}),Y("div",tLe,he(x.$t("等待支付中")),1)]),_:1})]),_:1},8,["show"]),u.value?(ge(),We(D,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(q,{height:"20px",width:"33%"}),se(q,{height:"20px",width:"66%"}),se(q,{height:"20px"})]),_:1})):(ge(),ze("div",nLe,[Y("div",oLe,[((Z=l.value)==null?void 0:Z.status)!==0?(ge(),We(R,{key:0,class:"flex text-center","items-center":"","border-rounded-5":""},{default:me(()=>{var fe,Fe,De,Me,Ne,et;return[((fe=l.value)==null?void 0:fe.status)===2?(ge(),We(B,{key:0,class:"text-9xl color-#f9a314"})):Ct("",!0),((Fe=l.value)==null?void 0:Fe.status)===3||((De=l.value)==null?void 0:De.status)==4?(ge(),We(M,{key:1,class:"text-9xl color-#48bc19"})):Ct("",!0),(Me=l.value)!=null&&Me.status?(ge(),ze("div",rLe,he(i(l.value.status).title),1)):Ct("",!0),(Ne=l.value)!=null&&Ne.status?(ge(),ze("div",iLe,he(i(l.value.status).subTitle),1)):Ct("",!0),((et=l.value)==null?void 0:et.status)===3?(ge(),We(V,{key:4,"icon-placement":"left",strong:"",color:"#db4619",size:"small",round:"",class:"mt-8",onClick:P[2]||(P[2]=$e=>x.$router.push("/knowledge"))},{icon:me(()=>[se(K)]),default:me(()=>[nt(" "+he(x.$t("查看使用教程")),1)]),_:1})):Ct("",!0)]}),_:1})):Ct("",!0),se(R,{class:"mt-5 rounded-md",title:x.$t("商品信息")},{default:me(()=>{var fe,Fe,De;return[Y("div",aLe,[Y("div",sLe,he(x.$t("产品名称"))+":",1),Y("div",lLe,he((fe=l.value)==null?void 0:fe.plan.name),1)]),Y("div",cLe,[Y("div",uLe,he(x.$t("类型/周期"))+":",1),Y("div",dLe,he((Fe=l.value)!=null&&Fe.period?x.$t(Se($k)[l.value.period]):""),1)]),Y("div",fLe,[Y("div",hLe,he(x.$t("产品流量"))+":",1),Y("div",pLe,he((De=l.value)==null?void 0:De.plan.transfer_enable)+" GB",1)])]}),_:1},8,["title"]),se(R,{class:"mt-5 rounded-md",title:x.$t("订单信息")},{"header-extra":me(()=>{var fe;return[((fe=l.value)==null?void 0:fe.status)===0?(ge(),We(V,{key:0,color:"#db4619",size:"small",round:"",strong:"",onClick:P[3]||(P[3]=Fe=>a())},{default:me(()=>[nt(he(x.$t("关闭订单")),1)]),_:1})):Ct("",!0)]}),default:me(()=>{var fe,Fe,De,Me,Ne,et,$e,Xe,gt,Q,ye;return[Y("div",mLe,[Y("div",gLe,he(x.$t("订单号"))+":",1),Y("div",vLe,he((fe=l.value)==null?void 0:fe.trade_no),1)]),(Fe=l.value)!=null&&Fe.discount_amount&&((De=l.value)==null?void 0:De.discount_amount)>0?(ge(),ze("div",bLe,[Y("div",yLe,he(x.$t("优惠金额")),1),Y("div",xLe,he(Se(sn)(l.value.discount_amount)),1)])):Ct("",!0),(Me=l.value)!=null&&Me.surplus_amount&&((Ne=l.value)==null?void 0:Ne.surplus_amount)>0?(ge(),ze("div",CLe,[Y("div",wLe,he(x.$t("旧订阅折抵金额")),1),Y("div",_Le,he(Se(sn)(l.value.surplus_amount)),1)])):Ct("",!0),(et=l.value)!=null&&et.refund_amount&&(($e=l.value)==null?void 0:$e.refund_amount)>0?(ge(),ze("div",SLe,[Y("div",kLe,he(x.$t("退款金额")),1),Y("div",PLe,he(Se(sn)(l.value.refund_amount)),1)])):Ct("",!0),(Xe=l.value)!=null&&Xe.balance_amount&&((gt=l.value)==null?void 0:gt.balance_amount)>0?(ge(),ze("div",TLe,[Y("div",ELe,he(x.$t("余额支付 ")),1),Y("div",RLe,he(Se(sn)(l.value.balance_amount)),1)])):Ct("",!0),((Q=l.value)==null?void 0:Q.status)===0&&m()>0?(ge(),ze("div",ALe,[Y("div",$Le,he(x.$t("支付手续费"))+":",1),Y("div",ILe,he(Se(sn)(m())),1)])):Ct("",!0),Y("div",OLe,[Y("div",MLe,he(x.$t("创建时间"))+":",1),Y("div",zLe,he(Se(Wo)((ye=l.value)==null?void 0:ye.created_at)),1)])]}),_:1},8,["title"]),((N=l.value)==null?void 0:N.status)===0?(ge(),We(R,{key:1,title:x.$t("支付方式"),class:"mt-5","content-style":"padding:0"},{default:me(()=>[(ge(!0),ze(rt,null,Fn(f.value,(fe,Fe)=>(ge(),ze("div",{key:fe.id,class:qn(["border-2 rounded-md p-5 border-solid flex",h.value===Fe?"border-primary":"border-transparent"]),onClick:De=>h.value=Fe},[Y("div",DLe,he(fe.name),1),Y("div",LLe,[Y("img",{class:"max-h-8",src:fe.icon},null,8,BLe)])],10,FLe))),128))]),_:1},8,["title"])):Ct("",!0)]),((O=l.value)==null?void 0:O.status)===0?(ge(),ze("div",NLe,[Y("div",HLe,[Y("div",jLe,he(x.$t("订单总额")),1),Y("div",ULe,[Y("div",VLe,he((ee=l.value)==null?void 0:ee.plan.name),1),Y("div",WLe,he((G=Se(t).appConfig)==null?void 0:G.currency_symbol)+he(((ne=l.value)==null?void 0:ne.period)&&Se(sn)((X=l.value)==null?void 0:X.plan[l.value.period])),1)]),(ce=l.value)!=null&&ce.surplus_amount&&((L=l.value)==null?void 0:L.surplus_amount)>0?(ge(),ze("div",qLe,[Y("div",KLe,he(x.$t("折抵")),1),Y("div",GLe," - "+he((be=Se(t).appConfig)==null?void 0:be.currency_symbol)+he(Se(sn)((Oe=l.value)==null?void 0:Oe.surplus_amount)),1)])):Ct("",!0),(je=l.value)!=null&&je.discount_amount&&((F=l.value)==null?void 0:F.discount_amount)>0?(ge(),ze("div",XLe,[Y("div",YLe,he(x.$t("折扣")),1),Y("div",QLe," - "+he((A=Se(t).appConfig)==null?void 0:A.currency_symbol)+he(Se(sn)((re=l.value)==null?void 0:re.discount_amount)),1)])):Ct("",!0),(we=l.value)!=null&&we.refund_amount&&((oe=l.value)==null?void 0:oe.refund_amount)>0?(ge(),ze("div",JLe,[Y("div",ZLe,he(x.$t("退款")),1),Y("div",eBe," - "+he((ve=Se(t).appConfig)==null?void 0:ve.currency_symbol)+he(Se(sn)((ke=l.value)==null?void 0:ke.refund_amount)),1)])):Ct("",!0),($=l.value)!=null&&$.balance_amount&&((H=l.value)==null?void 0:H.balance_amount)>0?(ge(),ze("div",tBe,[Y("div",nBe,he(x.$t("余额支付")),1),Y("div",oBe," - "+he((te=Se(t).appConfig)==null?void 0:te.currency_symbol)+he(Se(sn)((Ce=l.value)==null?void 0:Ce.balance_amount)),1)])):Ct("",!0),m()>0?(ge(),ze("div",rBe,[Y("div",iBe,he(x.$t("支付手续费")),1),Y("div",aBe," + "+he((de=Se(t).appConfig)==null?void 0:de.currency_symbol)+he(Se(sn)(m())),1)])):Ct("",!0),Y("div",sBe,[Y("div",lBe,he(x.$t("总计")),1),Y("div",cBe,he((ue=Se(t).appConfig)==null?void 0:ue.currency_symbol)+" "+he(Se(sn)(g()+m()))+" "+he((ie=Se(t).appConfig)==null?void 0:ie.currency),1)]),se(V,{type:"primary",class:"w-full text-white","icon-placement":"left",strong:"",onClick:P[4]||(P[4]=fe=>b())},{icon:me(()=>[se(ae)]),default:me(()=>[nt(" "+he(x.$t("结账")),1)]),_:1})])])):Ct("",!0)]))]}),_:1})}}}),dBe=Object.freeze(Object.defineProperty({__proto__:null,default:uBe},Symbol.toStringTag,{value:"Module"})),fBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},hBe=Y("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),pBe=Y("path",{fill:"currentColor",d:"m32.283 16.302l1.414 1.415l-15.98 15.98l-1.414-1.414z"},null,-1),mBe=Y("path",{fill:"currentColor",d:"m17.717 16.302l15.98 15.98l-1.414 1.415l-15.98-15.98z"},null,-1),gBe=[hBe,pBe,mBe];function vBe(e,t){return ge(),ze("svg",fBe,[...gBe])}const Ok={name:"ei-close-o",render:vBe},bBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},yBe=Y("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),xBe=Y("path",{fill:"currentColor",d:"m23 32.4l-8.7-8.7l1.4-1.4l7.3 7.3l11.3-11.3l1.4 1.4z"},null,-1),CBe=[yBe,xBe];function wBe(e,t){return ge(),ze("svg",bBe,[...CBe])}const Mk={name:"ei-check",render:wBe},_Be={class:"ml-auto mr-auto max-w-1200 w-full"},SBe={class:"m-3 mb-1 mt-1 text-3xl font-normal"},kBe={class:"card-container mt-2.5 md:mt-10"},PBe=["onClick"],TBe={class:"vertical-bottom"},EBe={class:"text-3xl font-semibold"},RBe={class:"pl-1 text-base text-gray-500"},ABe={key:0},$Be=["innerHTML"],IBe=xe({__name:"index",setup(e){const t=Tn(),n=d=>mn.global.t(d),o=new Zu({html:!0}),r=d=>o.render(d),i=U(0),a=[{value:0,label:n("全部")},{value:1,label:n("按周期")},{value:2,label:n("按流量")}],s=U([]),l=U([]);ft([l,i],d=>{s.value=d[0].filter(f=>{if(d[1]===0)return 1;if(d[1]===1)return!((f.onetime_price||0)>0);if(d[1]===2)return(f.onetime_price||0)>0})});async function c(){const{data:d}=await TJ();d.forEach(f=>{const h=u(f);f.price=h.price,f.cycle=h.cycle}),l.value=d}hn(()=>{c()});function u(d){return d.onetime_price!==null?{price:d.onetime_price/100,cycle:n("一次性")}:d.month_price!==null?{price:d.month_price/100,cycle:n("月付")}:d.quarter_price!==null?{price:d.quarter_price/100,cycle:n("季付")}:d.half_year_price!==null?{price:d.half_year_price/100,cycle:n("半年付")}:d.year_price!==null?{price:d.year_price/100,cycle:n("年付")}:d.two_year_price!==null?{price:d.two_year_price/100,cycle:n("两年付")}:d.three_year_price!==null?{price:d.three_year_price/100,cycle:n("三年付")}:{price:0,cycle:n("错误")}}return(d,f)=>{const h=sW,p=XS,g=Mk,m=Ok,b=Xo,w=zt,C=vo,_=bo;return ge(),We(_,null,{default:me(()=>[Y("div",_Be,[Y("h2",SBe,he(d.$t("选择最适合你的计划")),1),se(p,{value:i.value,"onUpdate:value":f[0]||(f[0]=S=>i.value=S),name:"plan_select",class:""},{default:me(()=>[(ge(),ze(rt,null,Fn(a,S=>se(h,{key:S.value,value:S.value,label:S.label,style:{background:"--n-color"}},null,8,["value","label"])),64))]),_:1},8,["value"]),Y("section",kBe,[(ge(!0),ze(rt,null,Fn(s.value,S=>(ge(),ze("div",{class:"card-item min-w-75 cursor-pointer",key:S.id,onClick:y=>d.$router.push("/plan/"+S.id)},[se(C,{title:S.name,hoverable:"",class:"max-w-full w-375"},{"header-extra":me(()=>{var y;return[Y("div",TBe,[Y("span",EBe,he((y=Se(t).appConfig)==null?void 0:y.currency_symbol)+" "+he(S.price),1),Y("span",RBe," /"+he(S.cycle),1)])]}),action:me(()=>[se(w,{strong:"",secondary:"",type:"primary"},{default:me(()=>[nt(he(d.$t("立即订阅")),1)]),_:1})]),default:me(()=>[Se(fA)(S.content)?(ge(),ze("div",ABe,[(ge(!0),ze(rt,null,Fn(JSON.parse(S.content),(y,x)=>(ge(),ze("div",{key:x,class:qn(["vertical-center flex items-center",y.support?"":"opacity-30"])},[se(b,{size:"30",class:"flex items-center text-[--primary-color]"},{default:me(()=>[y.support?(ge(),We(g,{key:0})):(ge(),We(m,{key:1}))]),_:2},1024),Y("div",null,he(y.feature),1)],2))),128))])):(ge(),ze("div",{key:1,innerHTML:r(S.content||""),class:"markdown-body"},null,8,$Be))]),_:2},1032,["title"])],8,PBe))),128))])])]),_:1})}}}),OBe=Uu(IBe,[["__scopeId","data-v-16d7c058"]]),MBe=Object.freeze(Object.defineProperty({__proto__:null,default:OBe},Symbol.toStringTag,{value:"Module"})),zBe={class:"inline-block",viewBox:"0 0 576 512",width:"1em",height:"1em"},FBe=Y("path",{fill:"currentColor",d:"M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64v-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6v-64c0-35.3-28.7-64-64-64zm64 112v160c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16m-32-16c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32z"},null,-1),DBe=[FBe];function LBe(e,t){return ge(),ze("svg",zBe,[...DBe])}const BBe={name:"fa6-solid-ticket",render:LBe},NBe={key:1,class:"grid grid-cols-1 lg:grid-cols-2 gap-5 mt-5"},HBe={class:"space-y-5"},jBe={key:0},UBe=["innerHTML"],VBe=["onClick"],WBe={class:"space-y-5"},qBe={class:"bg-gray-800 rounded-lg p-5 text-white"},KBe={class:"flex items-center gap-3"},GBe=["placeholder"],XBe={class:"bg-gray-800 rounded-lg p-5 text-white space-y-4"},YBe={class:"text-lg font-semibold"},QBe={class:"flex justify-between items-center py-3 border-b border-gray-600"},JBe={class:"font-semibold"},ZBe={key:0,class:"flex justify-between items-center py-3 border-b border-gray-600"},e9e={class:"text-gray-300"},t9e={class:"text-sm text-gray-400"},n9e={class:"font-semibold text-green-400"},o9e={class:"py-3"},r9e={class:"text-gray-300 mb-2"},i9e={class:"text-3xl font-bold"},a9e=xe({__name:"detail",setup(e){const t=Tn(),n=Ji(),o=za(),r=V=>mn.global.t(V),i=U(Number(o.params.plan_id)),a=U(),s=U(!0),l=U(),c=U(0),u={month_price:r("月付"),quarter_price:r("季付"),half_year_price:r("半年付"),year_price:r("年付"),two_year_price:r("两年付"),three_year_price:r("三年付"),onetime_price:r("一次性"),reset_price:r("流量重置包")},d=U(""),f=U(!1),h=U(),p=U(!1),g=I(()=>a.value?Object.entries(u).filter(([V])=>a.value[V]!==null&&a.value[V]!==void 0).map(([V,ae])=>({name:ae,key:V})):[]),m=I(()=>{var V;return((V=t.appConfig)==null?void 0:V.currency_symbol)||"¥"}),b=I(()=>{var V;return(V=g.value[c.value])==null?void 0:V.key}),w=I(()=>!a.value||!b.value?0:a.value[b.value]||0),C=I(()=>{if(!h.value||!w.value)return 0;const{type:V,value:ae}=h.value;return V===1?ae:Math.floor(ae*w.value/100)}),_=I(()=>Math.max(0,w.value-C.value)),S=I(()=>{var ae;const V=(ae=a.value)==null?void 0:ae.content;if(!V)return!1;try{return JSON.parse(V),!0}catch{return!1}}),y=I(()=>{var V;if(!S.value)return[];try{return JSON.parse(((V=a.value)==null?void 0:V.content)||"[]")}catch{return[]}}),x=I(()=>{var ae;return S.value||!((ae=a.value)!=null&&ae.content)?"":new Zu({html:!0}).render(a.value.content)}),P=V=>{var ae;return sn(((ae=a.value)==null?void 0:ae[V])||0)},k=async()=>{if(d.value.trim()){f.value=!0;try{const{data:V}=await HJ(d.value,i.value);V&&(h.value=V,window.$message.success(r("优惠券验证成功")))}catch{h.value=void 0}finally{f.value=!1}}},T=async()=>{var ae;const V=(ae=l.value)==null?void 0:ae.find(pe=>pe.status===0);if(V)return R(V.trade_no);if(E())return q();await D()},R=V=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:r("确认取消"),negativeText:r("返回我的订单"),async confirm(){const{data:ae}=await Hu(V);ae&&await D()},cancel:()=>Gt.push("/order")})},E=()=>n.plan_id&&n.plan_id!=i.value&&(n.expired_at===null||n.expired_at>=Math.floor(Date.now()/1e3)),q=()=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("请注意,变更订阅会导致当前订阅被覆盖。"),confirm:()=>D()})},D=async()=>{var V;if(b.value){p.value=!0;try{const{data:ae}=await ak(i.value,b.value,(V=h.value)==null?void 0:V.code);ae&&(window.$message.success(r("订单提交成功,正在跳转支付")),setTimeout(()=>Gt.push("/order/"+ae),500))}finally{p.value=!1}}},B=async()=>{s.value=!0;try{const{data:V}=await NJ(i.value);V?a.value=V:Gt.push("/plan")}finally{s.value=!1}},M=async()=>{const{data:V}=await Bm();l.value=V};return hn(async()=>{await Promise.all([B(),M()])}),(V,ae)=>{const pe=vl,Z=Qi,N=Mk,O=Ok,ee=Xo,G=vo,ne=Yi,X=BBe,ce=zt,L=Ik,be=bo;return ge(),We(be,null,{default:me(()=>{var Oe,je,F;return[s.value?(ge(),We(Z,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(pe,{height:"20px",width:"33%"}),se(pe,{height:"20px",width:"66%"}),se(pe,{height:"20px"})]),_:1})):(ge(),ze("div",NBe,[Y("div",HBe,[se(G,{title:(Oe=a.value)==null?void 0:Oe.name,class:"rounded-lg"},{default:me(()=>[S.value?(ge(),ze("div",jBe,[(ge(!0),ze(rt,null,Fn(y.value,(A,re)=>(ge(),ze("div",{key:re,class:qn(["flex items-center gap-3 py-2",A.support?"":"opacity-50"])},[se(ee,{size:"20",class:qn(A.support?"text-green-500":"text-red-500")},{default:me(()=>[A.support?(ge(),We(N,{key:0})):(ge(),We(O,{key:1}))]),_:2},1032,["class"]),Y("span",null,he(A.feature),1)],2))),128))])):(ge(),ze("div",{key:1,innerHTML:x.value,class:"markdown-body"},null,8,UBe))]),_:1},8,["title"]),se(G,{title:V.$t("付款周期"),class:"rounded-lg","content-style":"padding:0"},{default:me(()=>[(ge(!0),ze(rt,null,Fn(g.value,(A,re)=>(ge(),ze("div",{key:A.key},[Y("div",{class:qn(["flex justify-between items-center p-5 text-base cursor-pointer border-2 transition-all duration-200 border-solid rounded-lg"," dark:hover:bg-primary/20",re===c.value?"border-primary dark:bg-primary/20":"border-transparent"]),onClick:we=>c.value=re},[Y("div",{class:qn(["font-medium transition-colors",re===c.value?" dark:text-primary-400":"text-gray-900 dark:text-gray-100"])},he(A.name),3),Y("div",{class:qn(["text-lg font-semibold transition-colors",re===c.value?"text-primary-600 dark:text-primary-400":"text-gray-700 dark:text-gray-300"])},he(m.value)+he(P(A.key)),3)],10,VBe),red.value=A),placeholder:r("有优惠券?"),class:"flex-1 bg-transparent border-none outline-none text-white placeholder-gray-400"},null,8,GBe),[[AT,d.value]]),se(ce,{type:"primary",loading:f.value,disabled:f.value||!d.value.trim(),onClick:k},{icon:me(()=>[se(X)]),default:me(()=>[nt(" "+he(V.$t("验证")),1)]),_:1},8,["loading","disabled"])])]),Y("div",XBe,[Y("h3",YBe,he(V.$t("订单总额")),1),Y("div",QBe,[Y("span",null,he((je=a.value)==null?void 0:je.name),1),Y("span",JBe,he(m.value)+he(P(b.value)),1)]),h.value&&C.value>0?(ge(),ze("div",ZBe,[Y("div",null,[Y("div",e9e,he(V.$t("折扣")),1),Y("div",t9e,he(h.value.name),1)]),Y("span",n9e,"-"+he(m.value)+he(Se(sn)(C.value)),1)])):Ct("",!0),Y("div",o9e,[Y("div",r9e,he(V.$t("总计")),1),Y("div",i9e,he(m.value)+he(Se(sn)(_.value))+" "+he((F=Se(t).appConfig)==null?void 0:F.currency),1)]),se(ce,{type:"primary",size:"large",class:"w-full",loading:p.value,disabled:p.value,onClick:T},{icon:me(()=>[se(L)]),default:me(()=>[nt(" "+he(V.$t("下单")),1)]),_:1},8,["loading","disabled"])])])]))]}),_:1})}}}),s9e=Object.freeze(Object.defineProperty({__proto__:null,default:a9e},Symbol.toStringTag,{value:"Module"})),l9e={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},c9e=Y("path",{fill:"currentColor",d:"M216 64H56a8 8 0 0 1 0-16h136a8 8 0 0 0 0-16H56a24 24 0 0 0-24 24v128a24 24 0 0 0 24 24h160a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16m-36 80a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),u9e=[c9e];function d9e(e,t){return ge(),ze("svg",l9e,[...u9e])}const f9e={name:"ph-wallet-fill",render:d9e},h9e={class:"text-5xl font-normal"},p9e={class:"ml-5 text-xl text-gray-500"},m9e={class:"text-gray-500"},g9e={class:"mt-2.5 max-w-125"},v9e={class:"mt-2.5 max-w-125"},b9e={class:"mt-2.5 max-w-125"},y9e={class:"mt-2.5 max-w-125"},x9e={class:"mb-1"},C9e={class:"mt-2.5 max-w-125"},w9e={class:"mb-1"},_9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},S9e={class:"mt-5"},k9e=["href"],P9e={class:"mt-5"},T9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},E9e={class:"mt-5"},R9e={class:"flex justify-end"},A9e=xe({__name:"index",setup(e){const t=Ji(),n=Tn(),o=C=>mn.global.t(C),r=U(""),i=U(""),a=U(""),s=U(!1);async function l(){if(s.value=!0,i.value!==a.value){window.$message.error(o("两次新密码输入不同"));return}const{data:C}=await zJ(r.value,i.value);C===!0&&window.$message.success(o("密码修改成功")),s.value=!1}const c=U(!1),u=U(!1);async function d(C){if(C==="expire"){const{data:_}=await y1({remind_expire:c.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),c.value=!c.value)}else if(C==="traffic"){const{data:_}=await y1({remind_traffic:u.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),u.value=!u.value)}}const f=U(),h=U(!1);async function p(){const{data:C}=await XJ();C&&(f.value=C)}function g(C){window.location.href=C}const m=U(!1);async function b(){const{data:C}=await FJ();C&&window.$message.success(o("重置成功"))}async function w(){t.getUserInfo(),c.value=!!t.remind_expire,u.value=!!t.remind_traffic}return hn(()=>{w()}),(C,_)=>{const S=f9e,y=vo,x=dr,P=zt,k=wQ,T=pl,R=Yi,E=vQ,q=ni,D=bo;return ge(),We(D,null,{default:me(()=>{var B,M,K,V;return[se(y,{title:C.$t("我的钱包"),class:"rounded-md"},{"header-extra":me(()=>[se(S,{class:"text-4xl text-gray-500"})]),default:me(()=>{var ae;return[Y("div",null,[Y("span",h9e,he(Se(sn)(Se(t).balance)),1),Y("span",p9e,he((ae=Se(n).appConfig)==null?void 0:ae.currency),1)]),Y("div",m9e,he(C.$t("账户余额(仅消费)")),1)]}),_:1},8,["title"]),se(y,{title:C.$t("修改密码"),class:"mt-5 rounded-md"},{default:me(()=>[Y("div",g9e,[Y("label",null,he(C.$t("旧密码")),1),se(x,{type:"password",value:r.value,"onUpdate:value":_[0]||(_[0]=ae=>r.value=ae),placeholder:C.$t("请输入旧密码"),maxlength:32},null,8,["value","placeholder"])]),Y("div",v9e,[Y("label",null,he(C.$t("新密码")),1),se(x,{type:"password",value:i.value,"onUpdate:value":_[1]||(_[1]=ae=>i.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),Y("div",b9e,[Y("label",null,he(C.$t("新密码")),1),se(x,{type:"password",value:a.value,"onUpdate:value":_[2]||(_[2]=ae=>a.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),se(P,{class:"mt-5",type:"primary",onClick:l,loading:s.value,disabled:s.value},{default:me(()=>[nt(he(C.$t("保存")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title"]),se(y,{title:C.$t("通知"),class:"mt-5 rounded-md"},{default:me(()=>[Y("div",y9e,[Y("div",x9e,he(C.$t("到期邮件提醒")),1),se(k,{value:c.value,"onUpdate:value":[_[3]||(_[3]=ae=>c.value=ae),_[4]||(_[4]=ae=>d("expire"))]},null,8,["value"])]),Y("div",C9e,[Y("div",w9e,he(C.$t("流量邮件提醒")),1),se(k,{value:u.value,"onUpdate:value":[_[5]||(_[5]=ae=>u.value=ae),_[6]||(_[6]=ae=>d("traffic"))]},null,8,["value"])])]),_:1},8,["title"]),(M=(B=Se(n))==null?void 0:B.appConfig)!=null&&M.is_telegram?(ge(),We(y,{key:0,title:C.$t("绑定Telegram"),class:"mt-5 rounded-md"},{"header-extra":me(()=>[se(P,{type:"primary",round:"",disabled:Se(t).userInfo.telegram_id,onClick:_[7]||(_[7]=ae=>(h.value=!0,p(),Se(t).getUserSubscribe()))},{default:me(()=>[nt(he(Se(t).userInfo.telegram_id?C.$t("已绑定"):C.$t("立即开始")),1)]),_:1},8,["disabled"])]),_:1},8,["title"])):Ct("",!0),(V=(K=Se(n))==null?void 0:K.appConfig)!=null&&V.telegram_discuss_link?(ge(),We(y,{key:1,title:C.$t("Telegram 讨论组"),class:"mt-5 rounded-md"},{"header-extra":me(()=>[se(P,{type:"primary",round:"",onClick:_[8]||(_[8]=ae=>{var pe,Z;return g((Z=(pe=Se(n))==null?void 0:pe.appConfig)==null?void 0:Z.telegram_discuss_link)})},{default:me(()=>[nt(he(C.$t("立即加入")),1)]),_:1})]),_:1},8,["title"])):Ct("",!0),se(y,{title:C.$t("重置订阅信息"),class:"mt-5 rounded-md"},{default:me(()=>[se(T,{type:"warning"},{default:me(()=>[nt(he(C.$t("当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。")),1)]),_:1}),se(P,{type:"error",size:"small",class:"mt-2.5",onClick:_[9]||(_[9]=ae=>m.value=!0)},{default:me(()=>[nt(he(C.$t("重置")),1)]),_:1})]),_:1},8,["title"]),se(q,{title:C.$t("绑定Telegram"),preset:"card",show:h.value,"onUpdate:show":_[12]||(_[12]=ae=>h.value=ae),class:"mx-2.5 max-w-full w-150 md:mx-auto",footerStyle:"padding: 10px 16px",segmented:{content:!0,footer:!0}},{footer:me(()=>[Y("div",R9e,[se(P,{type:"primary",onClick:_[11]||(_[11]=ae=>h.value=!1)},{default:me(()=>[nt(he(C.$t("我知道了")),1)]),_:1})])]),default:me(()=>{var ae,pe,Z;return[f.value&&Se(t).subscribe?(ge(),ze(rt,{key:0},[Y("div",null,[Y("h2",_9e,he(C.$t("第一步")),1),se(R,{class:"m-0!"}),Y("div",S9e,[nt(he(C.$t("打开Telegram搜索"))+" ",1),Y("a",{href:"https://t.me/"+((ae=f.value)==null?void 0:ae.username)},"@"+he((pe=f.value)==null?void 0:pe.username),9,k9e)])]),Y("div",P9e,[Y("h2",T9e,he(C.$t("第二步")),1),se(R,{class:"m-0!"}),Y("div",E9e,he(C.$t("向机器人发送你的")),1),Y("code",{class:"cursor-pointer",onClick:_[10]||(_[10]=N=>{var O;return Se(qs)("/bind "+((O=Se(t).subscribe)==null?void 0:O.subscribe_url))})},"/bind "+he((Z=Se(t).subscribe)==null?void 0:Z.subscribe_url),1)])],64)):(ge(),We(E,{key:1,size:"large"}))]}),_:1},8,["title","show"]),se(q,{show:m.value,"onUpdate:show":_[13]||(_[13]=ae=>m.value=ae),preset:"dialog",title:C.$t("确定要重置订阅信息?"),content:C.$t("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。"),"positive-text":C.$t("确认"),"negative-text":C.$t("取消"),onPositiveClick:b},null,8,["show","title","content","positive-text","negative-text"])]}),_:1})}}}),$9e=Object.freeze(Object.defineProperty({__proto__:null,default:A9e},Symbol.toStringTag,{value:"Module"})),I9e={class:"flex justify-end"},O9e=xe({__name:"index",setup(e){const t=h=>mn.global.t(h),n=[{label:t("低"),value:0},{label:t("中"),value:1},{label:t("高"),value:2}],o=[{title:t("主题"),key:"subject"},{title:t("工单级别"),key:"u",render(h){return n[h.level].label}},{title:t("工单状态"),key:"status",render(h){const p=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.3",h.status===1?"bg-green-500":h.reply_status===0?"bg-blue-500":"bg-red-500"]}),g=h.status===1?t("已关闭"):h.reply_status===0?t("已回复"):t("待回复");return v("div",{class:"flex items-center"},[p,g])}},{title:t("创建时间"),key:"created_at",render(h){return Wo(h.created_at)}},{title:t("最后回复时间"),key:"updated_at",render(h){return Wo(h.updated_at)}},{title:t("操作"),key:"actions",fixed:"right",render(h){const p=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/ticket/${h.id}`)},{default:()=>t("查看")}),g=v(zt,{text:!0,type:"primary",disabled:h.status===1,onClick:()=>c(h.id)},{default:()=>t("关闭")}),m=v(Yi,{vertical:!0});return v("div",[p,m,g])}}],r=U(!1),i=U(""),a=U(),s=U("");async function l(){const{data:h}=await UJ(i.value,a.value,s.value);h===!0&&(window.$message.success(t("创建成功")),f(),r.value=!1)}async function c(h){const{data:p}=await VJ(h);p&&(window.$message.success(t("关闭成功")),f())}const u=U([]);async function d(){const{data:h}=await jJ();u.value=h}function f(){d()}return hn(()=>{f()}),(h,p)=>{const g=dr,m=Ou,b=Qi,w=vo,C=ni,_=Du,S=bo;return ge(),We(S,null,{default:me(()=>[se(C,{show:r.value,"onUpdate:show":p[6]||(p[6]=y=>r.value=y)},{default:me(()=>[se(w,{title:h.$t("新的工单"),class:"mx-2.5 max-w-full w-150 md:mx-auto",segmented:{content:!0,footer:!0},closable:"",onClose:p[5]||(p[5]=y=>r.value=!1)},{footer:me(()=>[Y("div",I9e,[se(b,null,{default:me(()=>[se(Se(zt),{onClick:p[3]||(p[3]=y=>r.value=!1)},{default:me(()=>[nt(he(h.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",onClick:p[4]||(p[4]=y=>l())},{default:me(()=>[nt(he(h.$t("确认")),1)]),_:1})]),_:1})])]),default:me(()=>[Y("div",null,[Y("label",null,he(h.$t("主题")),1),se(g,{value:i.value,"onUpdate:value":p[0]||(p[0]=y=>i.value=y),class:"mt-1",placeholder:h.$t("请输入工单主题")},null,8,["value","placeholder"])]),Y("div",null,[Y("label",null,he(h.$t("工单级别")),1),se(m,{value:a.value,"onUpdate:value":p[1]||(p[1]=y=>a.value=y),options:n,placeholder:h.$t("请选项工单等级"),class:"mt-1"},null,8,["value","placeholder"])]),Y("div",null,[Y("label",null,he(h.$t("消息")),1),se(g,{value:s.value,"onUpdate:value":p[2]||(p[2]=y=>s.value=y),type:"textarea",placeholder:h.$t("请描述你遇到的问题"),round:"",class:"mt-1"},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(w,{class:"rounded-md",title:h.$t("工单历史")},{"header-extra":me(()=>[se(Se(zt),{type:"primary",round:"",onClick:p[7]||(p[7]=y=>r.value=!0)},{default:me(()=>[nt(he(h.$t("新的工单")),1)]),_:1})]),default:me(()=>[se(_,{columns:o,data:u.value,"scroll-x":800},null,8,["data"])]),_:1},8,["title"])]),_:1})}}}),M9e=Object.freeze(Object.defineProperty({__proto__:null,default:O9e},Symbol.toStringTag,{value:"Module"})),z9e={class:"relative",style:{height:"calc(100% - 70px)"}},F9e={class:"mb-2 mt-2 text-sm text-gray-500"},D9e={class:"mb-2 inline-block rounded-md bg-gray-50 pb-8 pl-4 pr-4 pt-2"},L9e=xe({__name:"detail",setup(e){const t=za(),n=h=>mn.global.t(h),o=U("");async function r(){const{data:h}=await qJ(i.value,o.value);h===!0&&(window.$message.success(n("回复成功")),o.value="",f())}const i=U(),a=U();async function s(){const{data:h}=await WJ(i.value);h&&(a.value=h)}const l=U(null),c=U(null),u=async()=>{const h=l.value,p=c.value;h&&p&&h.scrollBy({top:p.scrollHeight,behavior:"auto"})},d=U();async function f(){await s(),await Ht(),u(),d.value=setInterval(s,2e3)}return hn(()=>{i.value=t.params.ticket_id,f()}),(h,p)=>{const g=lQ,m=dr,b=zt,w=gm,C=vo,_=bo;return ge(),We(_,null,{default:me(()=>{var S;return[se(C,{title:(S=a.value)==null?void 0:S.subject,class:"h-full overflow-hidden"},{default:me(()=>[Y("div",z9e,[se(g,{class:"absolute right-0 h-full",ref_key:"scrollbarRef",ref:l},{default:me(()=>{var y;return[Y("div",{ref_key:"scrollContainerRef",ref:c},[(ge(!0),ze(rt,null,Fn((y=a.value)==null?void 0:y.message,x=>(ge(),ze("div",{key:x.id,class:qn([x.is_me?"text-right":"text-left"])},[Y("div",F9e,he(Se(Wo)(x.created_at)),1),Y("div",D9e,he(x.message),1)],2))),128))],512)]}),_:1},512)]),se(w,{size:"large",class:"mt-8"},{default:me(()=>[se(m,{type:"text",size:"large",placeholder:h.$t("输入内容回复工单"),autofocus:!0,value:o.value,"onUpdate:value":p[0]||(p[0]=y=>o.value=y),onKeyup:p[1]||(p[1]=Cs(y=>r(),["enter"]))},null,8,["placeholder","value"]),se(b,{type:"primary",size:"large",onClick:p[2]||(p[2]=y=>r())},{default:me(()=>[nt(he(h.$t("回复")),1)]),_:1})]),_:1})]),_:1},8,["title"])]}),_:1})}}}),B9e=Object.freeze(Object.defineProperty({__proto__:null,default:L9e},Symbol.toStringTag,{value:"Module"})),N9e=xe({__name:"index",setup(e){const t=i=>mn.global.t(i),n=[{title:t("记录时间"),key:"record_at",render(i){return Op(i.record_at)}},{title:t("实际上行"),key:"u",render(i){return ks(i.u/parseFloat(i.server_rate))}},{title:t("实际下行"),key:"d",render(i){return ks(i.d/parseFloat(i.server_rate))}},{title:t("扣费倍率"),key:"server_rate",render(i){return v(Ti,{size:"small",round:!0},{default:()=>i.server_rate+" x"})}},{title(){const i=v(zu,{placement:"bottom",trigger:"hover"},{trigger:()=>v(tl("mdi-help-circle-outline",{size:16})),default:()=>t("公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量")});return v("div",{class:"flex items-center"},[t("总计"),i])},key:"total",fixed:"right",render(i){return ks(i.d+i.u)}}],o=U([]);async function r(){const{data:i}=await DJ();o.value=i}return hn(()=>{r()}),(i,a)=>{const s=pl,l=Du,c=vo,u=bo;return ge(),We(u,null,{default:me(()=>[se(c,{class:"rounded-md"},{default:me(()=>[se(s,{type:"info",bordered:!1,class:"mb-5"},{default:me(()=>[nt(he(i.$t("流量明细仅保留近月数据以供查询。")),1)]),_:1}),se(l,{columns:n,data:o.value,"scroll-x":600},null,8,["data"])]),_:1})]),_:1})}}}),H9e=Object.freeze(Object.defineProperty({__proto__:null,default:N9e},Symbol.toStringTag,{value:"Module"})),j9e={name:"NOTFOUND"},U9e={"h-full":"",flex:""};function V9e(e,t,n,o,r,i){const a=zt,s=iQ;return ge(),ze("div",U9e,[se(s,{"m-auto":"",status:"404",title:"404 Not Found",description:""},{footer:me(()=>[se(a,null,{default:me(()=>[nt("Find some fun")]),_:1})]),_:1})])}const W9e=Uu(j9e,[["render",V9e]]),q9e=Object.freeze(Object.defineProperty({__proto__:null,default:W9e},Symbol.toStringTag,{value:"Module"})),K9e={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},G9e=Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[Y("path",{d:"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2S2 6.477 2 12"}),Y("path",{d:"M13 2.05S16 6 16 12s-3 9.95-3 9.95m-2 0S8 18 8 12s3-9.95 3-9.95M2.63 15.5h18.74m-18.74-7h18.74"})],-1),X9e=[G9e];function Y9e(e,t){return ge(),ze("svg",K9e,[...X9e])}const Q9e={name:"iconoir-language",render:Y9e},J9e={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},Z9e=Y("path",{fill:"currentColor",d:"M26 30H14a2 2 0 0 1-2-2v-3h2v3h12V4H14v3h-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2"},null,-1),e7e=Y("path",{fill:"currentColor",d:"M14.59 20.59L18.17 17H4v-2h14.17l-3.58-3.59L16 10l6 6l-6 6z"},null,-1),t7e=[Z9e,e7e];function n7e(e,t){return ge(),ze("svg",J9e,[...t7e])}const o7e={name:"carbon-login",render:n7e},r7e=xe({__name:"vueRecaptcha",props:{sitekey:{type:String,required:!0},size:{type:String,required:!1,default:"normal"},theme:{type:String,required:!1,default:"light"},hl:{type:String,required:!1},loadingTimeout:{type:Number,required:!1,default:0}},emits:{verify:e=>e!=null&&e!="",error:e=>e,expire:null,fail:null},setup(e,{expose:t,emit:n}){const o=e,r=U(null);let i=null;t({execute:function(){window.grecaptcha.execute(i)},reset:function(){window.grecaptcha.reset(i)}});function a(){i=window.grecaptcha.render(r.value,{sitekey:o.sitekey,theme:o.theme,size:o.size,callback:s=>n("verify",s),"expired-callback":()=>n("expire"),"error-callback":()=>n("fail")})}return jt(()=>{window.grecaptcha==null?new Promise((s,l)=>{let c,u=!1;window.recaptchaReady=function(){u||(u=!0,clearTimeout(c),s())};const d="recaptcha-script",f=g=>()=>{var m;u||(u=!0,clearTimeout(c),(m=document.getElementById(d))==null||m.remove(),l(g))};o.loadingTimeout>0&&(c=setTimeout(f("timeout"),o.loadingTimeout));const h=window.document,p=h.createElement("script");p.id=d,p.onerror=f("error"),p.onabort=f("aborted"),p.setAttribute("src",`https://www.recaptcha.net/recaptcha/api.js?onload=recaptchaReady&render=explicit&hl=${o.hl}&_=${+new Date}`),h.head.appendChild(p)}).then(()=>{a()}).catch(s=>{n("error",s)}):a()}),(s,l)=>(ge(),ze("div",{ref_key:"recaptchaDiv",ref:r},null,512))}}),i7e=e=>_t({url:"/passport/auth/login",method:"post",data:e}),a7e=e=>_t.get("/passport/auth/token2Login?verify="+encodeURIComponent(e.verify)+"&redirect="+encodeURIComponent(e.redirect)),s7e=e=>_t({url:"/passport/auth/register",method:"post",data:e});function l7e(){return _t.get("/guest/comm/config")}function c7e(e,t){return _t.post("/passport/comm/sendEmailVerify",{email:e,recaptcha_data:t})}function u7e(e,t,n){return _t.post("/passport/auth/forget",{email:e,password:t,email_code:n})}const d7e={class:"p-6"},f7e={key:0,class:"text-center"},h7e=["src"],p7e={key:1,class:"text-center text-4xl font-normal",color:"#343a40"},m7e={class:"text-muted text-center text-sm font-normal",color:"#6c757d"},g7e={class:"mt-5 w-full"},v7e={class:"mt-5 w-full"},b7e={class:"mt-5 w-full"},y7e={class:"mt-5 w-full"},x7e={class:"mt-5 w-full"},C7e={class:"mt-5 w-full"},w7e=["innerHTML"],_7e={class:"mt-5 w-full"},S7e={class:"flex justify-between bg-[--n-color-embedded] px-6 py-4 text-gray-500"},k7e=xe({__name:"login",setup(e){const t=Tn(),n=Ox(),o=za(),r=k=>mn.global.t(k),i=to({email:"",email_code:"",password:"",confirm_password:"",confirm:"",invite_code:"",lock_invite_code:!1,suffix:""}),a=U(!0),s=I(()=>{var T;const k=(T=C.value)==null?void 0:T.tos_url;return"
"+mn.global.tc('我已阅读并同意 服务条款',{url:k})+"
"}),l=U(),c=U(),u=U(!1),d=U();function f(k){l.value=k,setTimeout(()=>{u.value=!1,c.value&&c.value.reset,d.value==="register"?(y(),d.value=""):d.value==="sendEmailVerify"&&(w(),d.value="")},500)}function h(){c.value&&c.value.reset()}function p(){c.value&&c.value.reset()}function g(){c.value&&c.value.reset&&c.value.reset()}const m=U(!1),b=U(0);async function w(){var R,E;if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}if(m.value=!0,b.value>0){window.$message.warning(mn.global.tc("{second}秒后可重新发送",{second:b.value}));return}if((R=C.value)!=null&&R.is_recaptcha&&((E=C.value)!=null&&E.recaptcha_site_key)&&!l.value){u.value=!0,m.value=!1,d.value="sendEmailVerify";return}const k=i.suffix?`${i.email}${i.suffix}`:i.email,{data:T}=await c7e(k,l.value);if(T===!0){window.$message.success(r("发送成功")),b.value=60;const q=setInterval(()=>{b.value--,b.value===0&&clearInterval(q)},1e3);l.value=""}m.value=!1}const C=U();async function _(){var T,R;const{data:k}=await l7e();k&&(C.value=k,Zv(k.email_whitelist_suffix)&&(i.suffix=(T=k.email_whitelist_suffix)!=null&&T[0]?"@"+((R=k.email_whitelist_suffix)==null?void 0:R[0]):""),k.tos_url&&(a.value=!1))}const S=U(!1);async function y(){var q,D,B;const{email:k,password:T,confirm_password:R,email_code:E}=i;switch(x.value){case"login":{if(!k||!T){window.$message.warning(r("请输入用户名和密码"));return}S.value=!0;const{data:M}=await i7e({email:k,password:T.toString()});S.value=!1,M!=null&&M.auth_data&&(window.$message.success(r("登录成功")),cf(M==null?void 0:M.auth_data),n.push(((q=o.query.redirect)==null?void 0:q.toString())??"/dashboard"));break}case"register":{if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}const{password:M,confirm_password:K,invite_code:V,email_code:ae}=i,pe=i.suffix?`${i.email}${i.suffix}`:i.email;if(!pe||!M){window.$message.warning(r("请输入账号密码"));return}if(M!==K){window.$message.warning(r("请确保两次密码输入一致"));return}if((D=C.value)!=null&&D.is_recaptcha&&((B=C.value)!=null&&B.recaptcha_site_key)&&!l.value){l.value||(u.value=!0),d.value="register";return}S.value=!0;const{data:Z}=await s7e({email:pe,password:M,invite_code:V,email_code:ae,recaptcha_data:l.value});S.value=!1,Z!=null&&Z.auth_data&&(window.$message.success(r("注册成功")),cf(Z.auth_data),n.push("/")),l.value="";break}case"forgetpassword":{if(k===""){window.$message.error(r("请输入邮箱地址"));return}if(!k||!T){window.$message.warning(r("请输入账号密码"));return}if(T!==R){window.$message.warning(r("请确保两次密码输入一致"));return}S.value=!0;const M=i.suffix?`${i.email}${i.suffix}`:i.email,{data:K}=await u7e(M,T,E);S.value=!1,K&&(window.$message.success(r("重置密码成功,正在返回登录")),setTimeout(()=>{n.push("/login")},500))}}}const x=I(()=>{const k=o.path;return k.includes("login")?"login":k.includes("register")?"register":k.includes("forgetpassword")?"forgetpassword":""}),P=async()=>{["register","forgetpassword"].includes(x.value)&&_(),o.query.code&&(i.lock_invite_code=!0,i.invite_code=o.query.code);const{verify:k,redirect:T}=o.query;if(k&&T){const{data:R}=await a7e({verify:k,redirect:T});R!=null&&R.auth_data&&(window.$message.success(r("登录成功")),cf(R==null?void 0:R.auth_data),n.push(T.toString()))}};return Yt(()=>{P()}),(k,T)=>{const R=ni,E=dr,q=Ou,D=gm,B=zt,M=ml,K=o7e,V=Qc("router-link"),ae=Yi,pe=Q9e,Z=Cm,N=vo;return ge(),ze(rt,null,[se(R,{show:u.value,"onUpdate:show":T[0]||(T[0]=O=>u.value=O)},{default:me(()=>{var O,ee,G;return[(O=C.value)!=null&&O.is_recaptcha&&((ee=C.value)!=null&&ee.recaptcha_site_key)?(ge(),We(Se(r7e),{key:0,sitekey:(G=C.value)==null?void 0:G.recaptcha_site_key,size:"normal",theme:"light","loading-timeout":3e4,onVerify:f,onExpire:h,onFail:p,onError:g,ref_key:"vueRecaptchaRef",ref:c},null,8,["sitekey"])):Ct("",!0)]}),_:1},8,["show"]),Y("div",{class:"wh-full flex items-center justify-center",style:Fi(Se(t).background_url&&`background:url(${Se(t).background_url}) no-repeat center center / cover;`)},[se(N,{class:"mx-auto max-w-md rounded-md bg-[--n-color] shadow-black","content-style":"padding: 0;"},{default:me(()=>{var O,ee,G;return[Y("div",d7e,[Se(t).logo?(ge(),ze("div",f7e,[Y("img",{src:Se(t).logo,class:"mb-1em max-w-full"},null,8,h7e)])):(ge(),ze("h1",p7e,he(Se(t).title),1)),Y("h5",m7e,he(Se(t).description||" "),1),Y("div",g7e,[se(D,null,{default:me(()=>{var ne,X,ce;return[se(E,{value:i.email,"onUpdate:value":T[1]||(T[1]=L=>i.email=L),autofocus:"",placeholder:k.$t("邮箱"),maxlength:40},null,8,["value","placeholder"]),["register","forgetpassword"].includes(x.value)&&Se(Zv)((ne=C.value)==null?void 0:ne.email_whitelist_suffix)?(ge(),We(q,{key:0,value:i.suffix,"onUpdate:value":T[2]||(T[2]=L=>i.suffix=L),options:((ce=(X=C.value)==null?void 0:X.email_whitelist_suffix)==null?void 0:ce.map(L=>({value:`@${L}`,label:`@${L}`})))||[],class:"flex-[1]","consistent-menu-width":!1},null,8,["value","options"])):Ct("",!0)]}),_:1})]),dn(Y("div",v7e,[se(D,{class:"flex"},{default:me(()=>[se(E,{value:i.email_code,"onUpdate:value":T[3]||(T[3]=ne=>i.email_code=ne),placeholder:k.$t("邮箱验证码")},null,8,["value","placeholder"]),se(B,{type:"primary",onClick:T[4]||(T[4]=ne=>w()),loading:m.value,disabled:m.value||b.value>0},{default:me(()=>[nt(he(b.value||k.$t("发送")),1)]),_:1},8,["loading","disabled"])]),_:1})],512),[[Mn,["register"].includes(x.value)&&((O=C.value)==null?void 0:O.is_email_verify)||["forgetpassword"].includes(x.value)]]),Y("div",b7e,[se(E,{value:i.password,"onUpdate:value":T[5]||(T[5]=ne=>i.password=ne),class:"",type:"password","show-password-on":"click",placeholder:k.$t("密码"),maxlength:40,onKeydown:T[6]||(T[6]=Cs(ne=>["login"].includes(x.value)&&y(),["enter"]))},null,8,["value","placeholder"])]),dn(Y("div",y7e,[se(E,{value:i.confirm_password,"onUpdate:value":T[7]||(T[7]=ne=>i.confirm_password=ne),type:"password","show-password-on":"click",placeholder:k.$t("再次输入密码"),maxlength:40,onKeydown:T[8]||(T[8]=Cs(ne=>["forgetpassword"].includes(x.value)&&y(),["enter"]))},null,8,["value","placeholder"])],512),[[Mn,["register","forgetpassword"].includes(x.value)]]),dn(Y("div",x7e,[se(E,{value:i.invite_code,"onUpdate:value":T[9]||(T[9]=ne=>i.invite_code=ne),placeholder:[k.$t("邀请码"),(ee=C.value)!=null&&ee.is_invite_force?`(${k.$t("必填")})`:`(${k.$t("选填")})`],maxlength:20,disabled:i.lock_invite_code,onKeydown:T[10]||(T[10]=Cs(ne=>y(),["enter"]))},null,8,["value","placeholder","disabled"])],512),[[Mn,["register"].includes(x.value)]]),dn(Y("div",C7e,[se(M,{checked:a.value,"onUpdate:checked":T[11]||(T[11]=ne=>a.value=ne),class:"text-bold text-base"},{default:me(()=>[Y("div",{innerHTML:s.value},null,8,w7e)]),_:1},8,["checked"])],512),[[Mn,["register"].includes(x.value)&&((G=C.value)==null?void 0:G.tos_url)]]),Y("div",_7e,[se(B,{class:"h-9 w-full rounded-md text-base",type:"primary","icon-placement":"left",onClick:T[12]||(T[12]=ne=>y()),loading:S.value,disabled:S.value||!a.value&&["register"].includes(x.value)},{icon:me(()=>[se(K)]),default:me(()=>[nt(" "+he(["login"].includes(x.value)?k.$t("登入"):["register"].includes(x.value)?k.$t("注册"):k.$t("重置密码")),1)]),_:1},8,["loading","disabled"])])]),Y("div",S7e,[Y("div",null,[["login"].includes(x.value)?(ge(),ze(rt,{key:0},[se(V,{to:"/register",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("注册")),1)]),_:1}),se(ae,{vertical:""}),se(V,{to:"/forgetpassword",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("忘记密码")),1)]),_:1})],64)):(ge(),We(V,{key:1,to:"/login",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("返回登入")),1)]),_:1}))]),Y("div",null,[se(Z,{value:Se(t).lang,"onUpdate:value":T[13]||(T[13]=ne=>Se(t).lang=ne),options:Object.entries(Se(ih)).map(([ne,X])=>({label:X,value:ne})),trigger:"click","on-update:value":Se(t).switchLang},{default:me(()=>[se(B,{text:"","icon-placement":"left"},{icon:me(()=>[se(pe)]),default:me(()=>[nt(" "+he(Se(ih)[Se(t).lang]),1)]),_:1})]),_:1},8,["value","options","on-update:value"])])])]}),_:1})],4)],64)}}}),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:k7e},Symbol.toStringTag,{value:"Module"})),P7e={请求失败:"Request failed",月付:"Monthly",季付:"Quarterly",半年付:"Semi-Annually",年付:"Annually",两年付:"Biennially",三年付:"Triennially",一次性:"One Time",重置流量包:"Data Reset Package",待支付:"Pending Payment",开通中:"Pending Active",已取消:"Canceled",已完成:"Completed",已折抵:"Converted",待确认:"Pending",发放中:"Confirming",已发放:"Completed",无效:"Invalid",个人中心:"User Center",登出:"Logout",搜索:"Search",仪表盘:"Dashboard",订阅:"Subscription",我的订阅:"My Subscription",购买订阅:"Purchase Subscription",财务:"Billing",我的订单:"My Orders",我的邀请:"My Invitation",用户:"Account",我的工单:"My Tickets",流量明细:"Transfer Data Details",使用文档:"Knowledge Base",绑定Telegram获取更多服务:"Not link to Telegram yet",点击这里进行绑定:"Please click here to link to Telegram",公告:"Announcements",总览:"Overview",该订阅长期有效:"The subscription is valid for an unlimited time",已过期:"Expired","已用 {used} / 总计 {total}":"{used} Used / Total {total}",查看订阅:"View Subscription",邮箱:"Email",邮箱验证码:"Email verification code",发送:"Send",重置密码:"Reset Password",返回登入:"Back to Login",邀请码:"Invitation Code",复制链接:"Copy Link",完成时间:"Complete Time",佣金:"Commission",已注册用户数:"Registered users",佣金比例:"Commission rate",确认中的佣金:"Pending commission","佣金将会在确认后会到达你的佣金账户。":"The commission will reach your commission account after review.",邀请码管理:"Invitation Code Management",生成邀请码:"Generate invitation code",佣金发放记录:"Commission Income Record",复制成功:"Copied successfully",密码:"Password",登入:"Login",注册:"Register",忘记密码:"Forgot password","# 订单号":"Order Number #",周期:"Type / Cycle",订单金额:"Order Amount",订单状态:"Order Status",创建时间:"Creation Time",操作:"Action",查看详情:"View Details",请选择支付方式:"Please select a payment method",请检查信用卡支付信息:"Please check credit card payment information",订单详情:"Order Details",折扣:"Discount",折抵:"Converted",退款:"Refund",支付方式:"Payment Method",填写信用卡支付信息:"Please fill in credit card payment information","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"We will not collect your credit card information, credit card number and other details only use to verify the current transaction.",订单总额:"Order Total",总计:"Total",结账:"Checkout",等待支付中:"Waiting for payment","订单系统正在进行处理,请稍等1-3分钟。":"Order system is being processed, please wait 1 to 3 minutes.","订单由于超时支付已被取消。":"The order has been canceled due to overtime payment.","订单已支付并开通。":"The order has been paid and the service is activated.",选择订阅:"Select a Subscription",立即订阅:"Subscribe now",配置订阅:"Configure Subscription",付款周期:"Payment Cycle","有优惠券?":"Have coupons?",验证:"Verify",下单:"Order","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Attention please, change subscription will overwrite your current subscription.",该订阅无法续费:"This subscription cannot be renewed",选择其他订阅:"Choose another subscription",我的钱包:"My Wallet","账户余额(仅消费)":"Account Balance (For billing only)","推广佣金(可提现)":"Invitation Commission (Can be used to withdraw)",钱包组成部分:"Wallet Details",划转:"Transfer",推广佣金提现:"Invitation Commission Withdrawal",修改密码:"Change Password",保存:"Save",旧密码:"Old Password",新密码:"New Password",请输入旧密码:"Please enter the old password",请输入新密码:"Please enter the new password",通知:"Notification",到期邮件提醒:"Subscription expiration email reminder",流量邮件提醒:"Insufficient transfer data email alert",绑定Telegram:"Link to Telegram",立即开始:"Start Now",重置订阅信息:"Reset Subscription",重置:"Reset","确定要重置订阅信息?":"Do you want to reset subscription?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"In case of your account information or subscription leak, this option is for reset. After resetting your UUID and subscription will change, you need to re-subscribe.",重置成功:"Reset successfully",两次新密码输入不同:"Two new passwords entered do not match",两次密码输入不同:"The passwords entered do not match","邀请码(选填)":"Invitation code (Optional)",'我已阅读并同意 服务条款':'I have read and agree to the terms of service',请同意服务条款:"Please agree to the terms of service",名称:"Name",标签:"Tags",状态:"Status",节点五分钟内节点在线情况:"Access Point online status in the last 5 minutes",倍率:"Rate",使用的流量将乘以倍率进行扣除:"The transfer data usage will be multiplied by the transfer data rate deducted.",更多操作:"Action","没有可用节点,如果您未订阅或已过期请":"No access points are available. If you have not subscribed or the subscription has expired, please","确定重置当前已用流量?":"Are you sure to reset your current data usage?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'Click "Confirm" and you will be redirected to the payment page. The system will empty your current month"s usage after your purchase.',确定:"Confirm",低:"Low",中:"Medium",高:"High",主题:"Subject",工单级别:"Ticket Priority",工单状态:"Ticket Status",最后回复:"Last Reply",已关闭:"Closed",待回复:"Pending Reply",已回复:"Replied",查看:"View",关闭:"Cancel",新的工单:"My Tickets",确认:"Confirm",请输入工单主题:"Please enter a subject",工单等级:"Ticket Priority",请选择工单等级:"Please select the ticket priority",消息:"Message",请描述你遇到的问题:"Please describe the problem you encountered",记录时间:"Record Time",实际上行:"Actual Upload",实际下行:"Actual Download",合计:"Total","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Formula: (Actual Upload + Actual Download) x Deduction Rate = Deduct Transfer Data",复制订阅地址:"Copy Subscription URL",导入到:"Export to",一键订阅:"Quick Subscription",复制订阅:"Copy Subscription URL",推广佣金划转至余额:"Transfer Invitation Commission to Account Balance","划转后的余额仅用于{title}消费使用":"The transferred balance will be used for {title} payments only",当前推广佣金余额:"Current invitation balance",划转金额:"Transfer amount",请输入需要划转到余额的金额:"Please enter the amount to be transferred to the balance","输入内容回复工单...":"Please enter to reply to the ticket...",申请提现:"Apply For Withdrawal",取消:"Cancel",提现方式:"Withdrawal Method",请选择提现方式:"Please select a withdrawal method",提现账号:"Withdrawal Account",请输入提现账号:"Please enter the withdrawal account",我知道了:"I got it",第一步:"First Step",第二步:"Second Step",打开Telegram搜索:"Open Telegram and Search ",向机器人发送你的:"Send the following command to bot","最后更新: {date}":"Last Updated: {date}",还有没支付的订单:"There are still unpaid orders",立即支付:"Pay Now",条工单正在处理中:"tickets are in process",立即查看:"View Now",节点状态:"Access Point Status",商品信息:"Product Information",产品名称:"Product Name","类型/周期":"Type / Cycle",产品流量:"Product Transfer Data",订单信息:"Order Details",关闭订单:"Close order",订单号:"Order Number",优惠金额:"Discount amount",旧订阅折抵金额:"Old subscription converted amount",退款金额:"Refunded amount",余额支付:"Balance payment",工单历史:"Ticket History","已用流量将在 {reset_day} 日后重置":"Used data will reset after {reset_day} days",已用流量已在今日重置:"Data usage has been reset today",重置已用流量:"Reset used data",查看节点状态:"View Access Point status","当前已使用流量达{rate}%":"Currently used data up to {rate}%",节点名称:"Access Point Name","于 {date} 到期,距离到期还有 {day} 天。":"Will expire on {date}, {day} days before expiration.","Telegram 讨论组":"Telegram Discussion Group",立即加入:"Join Now","该订阅无法续费,仅允许新用户购买":"This subscription cannot be renewed and is only available to new users.",重置当月流量:"Reset current month usage","流量明细仅保留近月数据以供查询。":'Only keep the most recent month"s usage for checking the transfer data details.',扣费倍率:"Fee deduction rate",支付手续费:"Payment fee",续费订阅:"Renewal Subscription",学习如何使用:"Learn how to use",快速将节点导入对应客户端进行使用:"Quickly export subscription into the client app",对您当前的订阅进行续费:"Renew your current subscription",对您当前的订阅进行购买:"Purchase your current subscription",捷径:"Shortcut","不会使用,查看使用教程":"I am a newbie, view the tutorial",使用支持扫码的客户端进行订阅:"Use a client app that supports scanning QR code to subscribe",扫描二维码订阅:"Scan QR code to subscribe",续费:"Renewal",购买:"Purchase",查看教程:"View Tutorial",注意:"Attention","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"You still have an unpaid order. You need to cancel it before purchasing. Are you sure you want to cancel the previous order?",确定取消:"Confirm Cancel",返回我的订单:"Back to My Order","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"If you have already paid, canceling the order may cause the payment to fail. Are you sure you want to cancel the order?",选择最适合你的计划:"Choose the right plan for you",全部:"All",按周期:"By Cycle",遇到问题:"I have a problem",遇到问题可以通过工单与我们沟通:"If you have any problems, you can contact us via ticket",按流量:"Pay As You Go",搜索文档:"Search Documents",技术支持:"Technical Support",当前剩余佣金:"Current commission remaining",三级分销比例:"Three-level Distribution Ratio",累计获得佣金:"Cumulative commission earned","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"The users you invite to re-invite users will be divided according to the order amount multiplied by the distribution level.",发放时间:"Commission Time","{number} 人":"{number} people","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"If your subscription address or account is leaked and misused by others, you can reset your subscription information here to prevent unnecessary losses.",再次输入密码:"Enter password again",返回登陆:"Return to Login",选填:"Optional",必填:"Required",最后回复时间:"Last Reply Time",请选项工单等级:"Please Select Ticket Priority",回复:"Reply",输入内容回复工单:"Enter Content to Reply to Ticket",已生成:"Generated",选择协议:"Select Protocol",自动:"Automatic",流量重置包:"Data Reset Package",复制失败:"Copy failed",提示:"Notification","确认退出?":"Confirm Logout?",已退出登录:"Logged out successfully",请输入邮箱地址:"Enter email address","{second}秒后可重新发送":"Resend available in {second} seconds",发送成功:"Sent successfully",请输入账号密码:"Enter account and password",请确保两次密码输入一致:"Ensure password entries match",注册成功:"Registration successful","重置密码成功,正在返回登录":"Password reset successful, returning to login",确认取消:"Confirm Cancel","请注意,变更订阅会导致当前订阅被覆盖。":"Please note that changing the subscription will overwrite the current subscription.","订单提交成功,正在跳转支付":"Order submitted successfully, redirecting to payment.",回复成功:"Reply Successful",工单详情:"Ticket Details",登录成功:"Login Successful","确定退出?":"Are you sure you want to exit?",支付成功:"Payment Successful",正在前往收银台:"Proceeding to Checkout",请输入正确的划转金额:"Please enter the correct transfer amount",划转成功:"Transfer Successful",提现方式不能为空:"Withdrawal method cannot be empty",提现账号不能为空:"Withdrawal account cannot be empty",已绑定:"Already Bound",创建成功:"Creation successful",关闭成功:"Shutdown successful"},zk=Object.freeze(Object.defineProperty({__proto__:null,default:P7e},Symbol.toStringTag,{value:"Module"})),T7e={请求失败:"درخواست انجام نشد",月付:"ماهانه",季付:"سه ماهه",半年付:"نیم سال",年付:"سالانه",两年付:"دو سال",三年付:"سه سال",一次性:"یک‌باره",重置流量包:"بازنشانی بسته های داده",待支付:"در انتظار پرداخت",开通中:"ایجاید",已取消:"صرف نظر شد",已完成:"به پایان رسید",已折抵:"تخفیف داده شده است",待确认:"در حال بررسی",发放中:"صدور",已发放:"صادر شده",无效:"نامعتبر",个人中心:"پروفایل",登出:"خروج",搜索:"جستجو",仪表盘:"داشبرد",订阅:"اشتراک",我的订阅:"اشتراک من",购买订阅:"خرید اشتراک",财务:"امور مالی",我的订单:"درخواست های من",我的邀请:"دعوتنامه های من",用户:"کاربر",我的工单:"درخواست های من",流量明细:"جزئیات\\nعبورو مرور در\\nمحیط آموزشی",使用文档:"کار با مستندات",绑定Telegram获取更多服务:"برای خدمات بیشتر تلگرام را ببندید",点击这里进行绑定:"برای اتصال اینجا را کلیک کنید",公告:"هشدارها",总览:"بررسی کلی",该订阅长期有效:"این اشتراک برای مدت طولانی معتبر است",已过期:"منقضی شده","已用 {used} / 总计 {total}":"استفاده شده {used} / مجموع {total}",查看订阅:"مشاهده عضویت ها",邮箱:"ایمیل",邮箱验证码:"کد تایید ایمیل شما",发送:"ارسال",重置密码:"بازنشانی رمز عبور",返回登入:"بازگشت به صفحه ورود",邀请码:"کد دعوت شما",复制链接:"کپی‌کردن لینک",完成时间:"زمان پایان",佣金:"کمیسیون",已注册用户数:"تعداد کاربران ثبت نام شده",佣金比例:"نرخ کمیسیون",确认中的佣金:"کمیسیون تایید شده","佣金将会在确认后会到达你的佣金账户。":"کمیسیون پس از تایید به حساب کمیسیون شما واریز خواهد شد",邀请码管理:"مدیریت کد دعوت",生成邀请码:"یک کد دعوت ایجاد کنید",佣金发放记录:"سابقه پرداخت کمیسیون",复制成功:"آدرس URL با موفقیت کپی شد",密码:"رمز عبور",登入:"ورود",注册:"ثبت‌نام",忘记密码:"رمز عبور فراموش شده","# 订单号":"# شماره سفارش",周期:"چرخه",订单金额:"مقدار سفارش",订单状态:"وضعیت سفارش",创建时间:"ساختن",操作:"عملیات",查看详情:"مشاهده جزئیات",请选择支付方式:"لطفا نوع پرداخت را انتخاب کنید",请检查信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید",订单详情:"اطلاعات سفارش",折扣:"ذخیره",折抵:"折抵",退款:"بازگشت هزینه",支付方式:"روش پرداخت",填写信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"اطلاعات کارت اعتباری شما فقط برای بدهی فعلی استفاده می شود، سیستم آن را ذخیره نمی کند، که ما فکر می کنیم امن ترین است.",订单总额:"مجموع سفارش",总计:"مجموع",结账:"پرداخت",等待支付中:"در انتظار پرداخت","订单系统正在进行处理,请稍等1-3分钟。":"سیستم سفارش در حال پردازش است، لطفا 1-3 دقیقه صبر کنید.","订单由于超时支付已被取消。":"سفارش به دلیل پرداخت اضافه کاری لغو شده است","订单已支付并开通。":"سفارش پرداخت و باز شد.",选择订阅:"انتخاب اشتراک",立即订阅:"همین حالا مشترک شوید",配置订阅:"پیکربندی اشتراک",付款周期:"چرخه پرداخت","有优惠券?":"یک کوپن دارید؟",验证:"تأیید",下单:"ایجاد سفارش","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"لطفاً توجه داشته باشید، تغییر یک اشتراک باعث می‌شود که اشتراک فعلی توسط اشتراک جدید بازنویسی شود.",该订阅无法续费:"این اشتراک قابل تمدید نیست",选择其他订阅:"اشتراک دیگری را انتخاب کنید",我的钱包:"کیف پول من","账户余额(仅消费)":"موجودی حساب (فقط خرج کردن)","推广佣金(可提现)":"کمیسیون ارتقاء (قابل برداشت)",钱包组成部分:"اجزای کیف پول",划转:"منتقل کردن",推广佣金提现:"انصراف کمیسیون ارتقاء",修改密码:"تغییر کلمه عبور",保存:"ذخیره کردن",旧密码:"گذرواژه قدیمی",新密码:"رمز عبور جدید",请输入旧密码:", رمز عبور مورد نیاز است",请输入新密码:"گذاشتن گذرواژه",通知:"اعلانات",到期邮件提醒:"یادآوری ایمیل انقضا",流量邮件提醒:"یادآوری ایمیل ترافیک",绑定Telegram:"تلگرام را ببندید",立即开始:"امروز شروع کنید",重置订阅信息:"بازنشانی اطلاعات اشتراک",重置:"تغییر","确定要重置订阅信息?":"آیا مطمئن هستید که می خواهید اطلاعات اشتراک خود را بازنشانی کنید؟","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"اگر آدرس یا اطلاعات اشتراک شما لو رفته باشد، این کار را می توان انجام داد. پس از تنظیم مجدد، Uuid و اشتراک شما تغییر خواهد کرد و باید دوباره مشترک شوید.",重置成功:"بازنشانی با موفقیت انجام شد",两次新密码输入不同:"رمز جدید را دو بار وارد کنید",两次密码输入不同:"رمز جدید را دو بار وارد کنید","邀请码(选填)":"کد دعوت (اختیاری)",'我已阅读并同意 服务条款':"من شرایط خدمات را خوانده‌ام و با آن موافقم",请同意服务条款:"لطفاً با شرایط خدمات موافقت کنید",名称:"نام ویژگی محصول",标签:"برچسب‌ها",状态:"وضعیت",节点五分钟内节点在线情况:"وضعیت آنلاین گره را در عرض پنج دقیقه ثبت کنید",倍率:"بزرگنمایی",使用的流量将乘以倍率进行扣除:"جریان استفاده شده در ضریب برای کسر ضرب خواهد شد",更多操作:"اکشن های بیشتر","没有可用节点,如果您未订阅或已过期请":"هیچ گره ای در دسترس نیست، اگر مشترک نیستید یا منقضی شده اید، لطفاً","确定重置当前已用流量?":"آیا مطمئن هستید که می خواهید داده های استفاده شده فعلی را بازنشانی کنید؟","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"برای رفتن به صندوقدار روی 'OK' کلیک کنید. پس از پرداخت سفارش، سیستم اطلاعاتی را که برای ماه استفاده کرده اید پاک می کند.",确定:"تأیید",低:"پایین",中:"متوسط",高:"بالا",主题:"موضوع",工单级别:"سطح بلیط",工单状态:"وضعیت درخواست",最后回复:"آخرین پاسخ",已关闭:"پایان‌یافته",待回复:"در انتظار پاسخ",已回复:"پاسخ داده",查看:"بازدیدها",关闭:"بستن",新的工单:"سفارش کار جدید",确认:"تاييدات",请输入工单主题:"لطفا موضوع بلیط را وارد کنید",工单等级:"سطح سفارش کار",请选择工单等级:"لطفا سطح بلیط را انتخاب کنید",消息:"پیام ها",请描述你遇到的问题:"لطفا مشکلی که با آن مواجه شدید را شرح دهید",记录时间:"زمان ضبط",实际上行:"نقطه ضعف واقعی",实际下行:"نقطه ضعف واقعی",合计:"تعداد ارزش‌ها","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"فرمول: (خط واقعی + پایین دست واقعی) x نرخ کسر = ترافیک کسر شده",复制订阅地址:"آدرس اشتراک را کپی کنید",导入到:"واردات در:",一键订阅:"اشتراک با یک کلیک",复制订阅:"اشتراک را کپی کنید",推广佣金划转至余额:"کمیسیون ارتقاء به موجودی منتقل می شود","划转后的余额仅用于{title}消费使用":"موجودی منتقل شده فقط برای مصرف {title} استفاده می شود",当前推广佣金余额:"موجودی کمیسیون ترفیع فعلی",划转金额:"مقدار انتقال",请输入需要划转到余额的金额:"لطفا مبلغی را که باید به موجودی منتقل شود وارد کنید","输入内容回复工单...":"برای پاسخ به تیکت محتوا را وارد کنید...",申请提现:"برای انصراف اقدام کنید",取消:"انصراف",提现方式:"روش برداشت",请选择提现方式:"لطفاً یک روش برداشت را انتخاب کنید",提现账号:"حساب برداشت",请输入提现账号:"لطفا حساب برداشت را وارد کنید",我知道了:"می فهمم",第一步:"گام ۱",第二步:"گام ۲",打开Telegram搜索:"جستجوی تلگرام را باز کنید",向机器人发送你的:"ربات های خود را بفرستید","最后更新: {date}":"آخرین به روز رسانی: {date}",还有没支付的订单:"هنوز سفارشات پرداخت نشده وجود دارد",立即支付:"اکنون پرداخت کنید",条工单正在处理中:"بلیط در حال پردازش است",立即查看:"آن را در عمل ببینید",节点状态:"وضعیت گره",商品信息:"مشتریان ثبت نام شده",产品名称:"عنوان کالا","类型/周期":"نوع/چرخه",产品流量:"جریان محصول",订单信息:"اطلاعات سفارش",关闭订单:"سفارش بستن",订单号:"شماره سفارش",优惠金额:"قیمت با تخفیف",旧订阅折抵金额:"مبلغ تخفیف اشتراک قدیمی",退款金额:"کل مبلغ مسترد شده",余额支付:"پرداخت مانده",工单历史:"تاریخچه بلیط","已用流量将在 {reset_day} 日后重置":"داده‌های استفاده شده ظرف {reset_day} روز بازنشانی می‌شوند",已用流量已在今日重置:"امروز بازنشانی داده استفاده شده است",重置已用流量:"بازنشانی داده های استفاده شده",查看节点状态:"مشاهده وضعیت گره","当前已使用流量达{rate}%":"ترافیک استفاده شده در حال حاضر در {rate}%",节点名称:"نام گره","于 {date} 到期,距离到期还有 {day} 天。":"در {date} منقضی می‌شود که {day} روز دیگر است.","Telegram 讨论组":"گروه گفتگوی تلگرام",立即加入:"حالا پیوستن","该订阅无法续费,仅允许新用户购买":"این اشتراک قابل تمدید نیست، فقط کاربران جدید مجاز به خرید آن هستند",重置当月流量:"بازنشانی ترافیک ماه جاری","流量明细仅保留近月数据以供查询。":"جزئیات ترافیک فقط داده های ماه های اخیر را برای پرس و جو حفظ می کند.",扣费倍率:"نرخ کسر",支付手续费:"پرداخت هزینه های پردازش",续费订阅:"تمدید اشتراک",学习如何使用:"نحوه استفاده را یاد بگیرید",快速将节点导入对应客户端进行使用:"به سرعت گره ها را برای استفاده به مشتری مربوطه وارد کنید",对您当前的订阅进行续费:"با اشتراک فعلی خود خرید کنید",对您当前的订阅进行购买:"با اشتراک فعلی خود خرید کنید",捷径:"میانبر","不会使用,查看使用教程":"استفاده نمی شود، به آموزش مراجعه کنید",使用支持扫码的客户端进行订阅:"برای اشتراک از کلاینتی استفاده کنید که از کد اسکن پشتیبانی می کند",扫描二维码订阅:"برای اشتراک، کد QR را اسکن کنید",续费:"تمدید",购买:"خرید",查看教程:"مشاهده آموزش",注意:"یادداشت!","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"هنوز سفارشات ناتمام دارید. قبل از خرید باید آن را لغو کنید. آیا مطمئن هستید که می‌خواهید سفارش قبلی را لغو کنید؟",确定取消:"تایید لغو",返回我的订单:"بازگشت به سفارش من","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"اگر قبلاً پرداخت کرده‌اید، لغو سفارش ممکن است باعث عدم موفقیت در پرداخت شود. آیا مطمئن هستید که می‌خواهید سفارش را لغو کنید؟",选择最适合你的计划:"طرحی را انتخاب کنید که مناسب شما باشد",全部:"تمام",按周期:"توسط چرخه",遇到问题:"ما یک مشکل داریم",遇到问题可以通过工单与我们沟通:"در صورت بروز مشکل می توانید از طریق تیکت با ما در ارتباط باشید",按流量:"با جریان",搜索文档:"جستجوی اسناد",技术支持:"دریافت پشتیبانی",当前剩余佣金:"کمیسیون فعلی باقی مانده",三级分销比例:"نسبت توزیع سه لایه",累计获得佣金:"کمیسیون انباشته شده","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"کاربرانی که برای دعوت مجدد از کاربران دعوت می کنید بر اساس نسبت مقدار سفارش ضرب در سطح توزیع تقسیم می شوند.",发放时间:"زمان پرداخت","{number} 人":"{number} نفر","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"در صورت انتشار آدرس یا حساب اشتراک شما و سوء استفاده از آن توسط دیگران، می‌توانید اطلاعات اشتراک خود را در اینجا بازنشانی کنید تا از زیان‌های غیرضروری جلوگیری شود.",再次输入密码:"ورود مجدد رمز عبور",返回登陆:"بازگشت به ورود",选填:"اختیاری",必填:"الزامی",最后回复时间:"زمان آخرین پاسخ",请选项工单等级:"لطفاً اولویت تیکت را انتخاب کنید",回复:"پاسخ",输入内容回复工单:"محتوا را برای پاسخ به تیکت وارد کنید",已生成:"تولید شده",选择协议:"انتخاب پروتکل",自动:"خودکار",流量重置包:"بسته بازنشانی داده",复制失败:"کپی ناموفق بود",提示:"اطلاع","确认退出?":"تأیید خروج?",已退出登录:"با موفقیت خارج شده",请输入邮箱地址:"آدرس ایمیل را وارد کنید","{second}秒后可重新发送":"{second} ثانیه دیگر می‌توانید مجدداً ارسال کنید",发送成功:"با موفقیت ارسال شد",请输入账号密码:"نام کاربری و رمز عبور را وارد کنید",请确保两次密码输入一致:"اطمینان حاصل کنید که ورودهای رمز عبور مطابقت دارند",注册成功:"ثبت نام با موفقیت انجام شد","重置密码成功,正在返回登录":"با موفقیت رمز عبور بازنشانی شد، در حال بازگشت به صفحه ورود",确认取消:"تایید لغو","请注意,变更订阅会导致当前订阅被覆盖。":"لطفاً توجه داشته باشید که تغییر اشتراک موجب ایجاد اشتراک فعلی می‌شود.","订单提交成功,正在跳转支付":"سفارش با موفقیت ثبت شد، به پرداخت هدایت می‌شود.",回复成功:"پاسخ با موفقیت ارسال شد",工单详情:"جزئیات تیکت",登录成功:"ورود موفقیت‌آمیز","确定退出?":"آیا مطمئن هستید که می‌خواهید خارج شوید؟",支付成功:"پرداخت موفق",正在前往收银台:"در حال رفتن به صندوق پرداخت",请输入正确的划转金额:"لطفا مبلغ انتقال صحیح را وارد کنید",划转成功:"انتقال موفق",提现方式不能为空:"روش برداشت نمی‌تواند خالی باشد",提现账号不能为空:"حساب برداشت نمی‌تواند خالی باشد",已绑定:"قبلاً متصل شده",创建成功:"ایجاد موفقیت‌آمیز",关闭成功:"خاموش کردن موفق"},Fk=Object.freeze(Object.defineProperty({__proto__:null,default:T7e},Symbol.toStringTag,{value:"Module"})),E7e={请求失败:"リクエストエラー",月付:"月間プラン",季付:"3か月プラン",半年付:"半年プラン",年付:"年間プラン",两年付:"2年プラン",三年付:"3年プラン",一次性:"一括払い",重置流量包:"使用済みデータをリセット",待支付:"お支払い待ち",开通中:"開通中",已取消:"キャンセル済み",已完成:"済み",已折抵:"控除済み",待确认:"承認待ち",发放中:"処理中",已发放:"処理済み",无效:"無効",个人中心:"会員メニュー",登出:"ログアウト",搜索:"検索",仪表盘:"ダッシュボード",订阅:"サブスクリプションプラン",我的订阅:"マイプラン",购买订阅:"プランの購入",财务:"ファイナンス",我的订单:"注文履歴",我的邀请:"招待リスト",用户:"ユーザー",我的工单:"お問い合わせ",流量明细:"データ通信明細",使用文档:"ナレッジベース",绑定Telegram获取更多服务:"Telegramと連携し各種便利な通知を受け取ろう",点击这里进行绑定:"こちらをクリックして連携開始",公告:"お知らせ",总览:"概要",该订阅长期有效:"時間制限なし",已过期:"期限切れ","已用 {used} / 总计 {total}":"使用済み {used} / 合計 {total}",查看订阅:"プランを表示",邮箱:"E-mail アドレス",邮箱验证码:"確認コード",发送:"送信",重置密码:"パスワードを変更",返回登入:"ログインページへ戻る",邀请码:"招待コード",复制链接:"URLをコピー",完成时间:"完了日時",佣金:"コミッション金額",已注册用户数:"登録済みユーザー数",佣金比例:"コミッションレート",确认中的佣金:"承認待ちのコミッション","佣金将会在确认后会到达你的佣金账户。":"コミッションは承認処理完了後にカウントされます",邀请码管理:"招待コードの管理",生成邀请码:"招待コードを生成",佣金发放记录:"コミッション履歴",复制成功:"クリップボードにコピーされました",密码:"パスワード",登入:"ログイン",注册:"新規登録",忘记密码:"パスワードをお忘れの方","# 订单号":"受注番号",周期:"サイクル",订单金额:"ご注文金額",订单状态:"ご注文状況",创建时间:"作成日時",操作:"アクション",查看详情:"詳細を表示",请选择支付方式:"支払い方法をお選びください",请检查信用卡支付信息:"クレジットカード決済情報をご確認ください",订单详情:"ご注文詳細",折扣:"割引",折抵:"控除",退款:"払い戻し",支付方式:"お支払い方法",填写信用卡支付信息:"クレジットカード決済情報をご入力ください。","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"お客様のカード情報は今回限りリクエストされ、記録に残ることはございません",订单总额:"ご注文の合計金額",总计:"合計金額",结账:"チェックアウト",等待支付中:"お支払い待ち","订单系统正在进行处理,请稍等1-3分钟。":"システム処理中です、しばらくお待ちください","订单由于超时支付已被取消。":"ご注文はキャンセルされました","订单已支付并开通。":"お支払いが完了しました、プランはご利用可能です",选择订阅:"プランをお選びください",立即订阅:"今すぐ購入",配置订阅:"プランの内訳",付款周期:"お支払いサイクル","有优惠券?":"キャンペーンコード",验证:"確定",下单:"チェックアウト","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"プランを変更なされます場合は、既存のプランが新規プランによって上書きされます、ご注意下さい",该订阅无法续费:"該当プランは継続利用できません",选择其他订阅:"その他のプランを選択",我的钱包:"マイウォレット","账户余额(仅消费)":"残高(サービスの購入のみ)","推广佣金(可提现)":"招待によるコミッション(出金可)",钱包组成部分:"ウォレットの内訳",划转:"お振替",推广佣金提现:"コミッションのお引き出し",修改密码:"パスワードの変更",保存:"変更を保存",旧密码:"現在のパスワード",新密码:"新しいパスワード",请输入旧密码:"現在のパスワードをご入力ください",请输入新密码:"新しいパスワードをご入力ください",通知:"お知らせ",到期邮件提醒:"期限切れ前にメールで通知",流量邮件提醒:"データ量不足時にメールで通知",绑定Telegram:"Telegramと連携",立即开始:"今すぐ連携開始",重置订阅信息:"サブスクリプションURLの変更",重置:"変更","确定要重置订阅信息?":"サブスクリプションURLをご変更なされますか?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"サブスクリプションのURL及び情報が外部に漏れた場合にご操作ください。操作後はUUIDやURLが変更され、再度サブスクリプションのインポートが必要になります。",重置成功:"変更完了",两次新密码输入不同:"ご入力されました新しいパスワードが一致しません",两次密码输入不同:"ご入力されましたパスワードが一致しません","邀请码(选填)":"招待コード (オプション)",'我已阅读并同意 服务条款':"ご利用規約に同意します",请同意服务条款:"ご利用規約に同意してください",名称:"名称",标签:"ラベル",状态:"ステータス",节点五分钟内节点在线情况:"5分間のオンラインステータス",倍率:"適応レート",使用的流量将乘以倍率进行扣除:"通信量は該当レートに基き計算されます",更多操作:"アクション","没有可用节点,如果您未订阅或已过期请":"ご利用可能なサーバーがありません,プランの期限切れまたは購入なされていない場合は","确定重置当前已用流量?":"利用済みデータ量をリセットしますか?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"「確定」をクリックし次のページへ移動,お支払い後に当月分のデータ通信量は即時リセットされます",确定:"確定",低:"低",中:"中",高:"高",主题:"タイトル",工单级别:"プライオリティ",工单状态:"進捗状況",最后回复:"最終回答日時",已关闭:"終了",待回复:"対応待ち",已回复:"回答済み",查看:"閲覧",关闭:"終了",新的工单:"新規お問い合わせ",确认:"確定",请输入工单主题:"お問い合わせタイトルをご入力ください",工单等级:"ご希望のプライオリティ",请选择工单等级:"ご希望のプライオリティをお選びください",消息:"メッセージ",请描述你遇到的问题:"お問い合わせ内容をご入力ください",记录时间:"記録日時",实际上行:"アップロード",实际下行:"ダウンロード",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"計算式:(アップロード + ダウンロード) x 適応レート = 使用済みデータ通信量",复制订阅地址:"サブスクリプションのURLをコピー",导入到:"インポート先:",一键订阅:"ワンクリックインポート",复制订阅:"サブスクリプションのURLをコピー",推广佣金划转至余额:"コミッションを残高へ振替","划转后的余额仅用于{title}消费使用":"振替済みの残高は{title}でのみご利用可能です",当前推广佣金余额:"現在のコミッション金額",划转金额:"振替金額",请输入需要划转到余额的金额:"振替金額をご入力ください","输入内容回复工单...":"お問い合わせ内容をご入力ください...",申请提现:"出金申請",取消:"キャンセル",提现方式:"お振込み先",请选择提现方式:"お振込み先をお選びください",提现账号:"お振り込み先口座",请输入提现账号:"お振込み先口座をご入力ください",我知道了:"了解",第一步:"ステップその1",第二步:"ステップその2",打开Telegram搜索:"Telegramを起動後に右記内容を入力し検索",向机器人发送你的:"テレグラムボットへ下記内容を送信","最后更新: {date}":"最終更新日: {date}",还有没支付的订单:"未払いのご注文があります",立即支付:"チェックアウト",条工单正在处理中:"件のお問い合わせ",立即查看:"閲覧",节点状态:"サーバーステータス",商品信息:"プラン詳細",产品名称:"プラン名","类型/周期":"サイクル",产品流量:"ご利用可能データ量",订单信息:"オーダー情報",关闭订单:"注文をキャンセル",订单号:"受注番号",优惠金额:"'割引額",旧订阅折抵金额:"既存プラン控除額",退款金额:"返金額",余额支付:"残高ご利用分",工单历史:"お問い合わせ履歴","已用流量将在 {reset_day} 日后重置":"利用済みデータ量は {reset_day} 日後にリセットします",已用流量已在今日重置:"利用済みデータ量は本日リセットされました",重置已用流量:"利用済みデータ量をリセット",查看节点状态:"接続先サーバのステータス","当前已使用流量达{rate}%":"データ使用量が{rate}%になりました",节点名称:"サーバー名","于 {date} 到期,距离到期还有 {day} 天。":"ご利用期限は {date} まで,期限まであと {day} 日","Telegram 讨论组":"Telegramグループ",立即加入:"今すぐ参加","该订阅无法续费,仅允许新用户购买":"該当プランは継続利用できません、新規ユーザーのみが購入可能です",重置当月流量:"使用済みデータ量のカウントリセット","流量明细仅保留近月数据以供查询。":"データ通信明細は当月分のみ表示されます",扣费倍率:"適応レート",支付手续费:"お支払い手数料",续费订阅:"購読更新",学习如何使用:"ご利用ガイド",快速将节点导入对应客户端进行使用:"最短ルートでサーバー情報をアプリにインポートして使用する",对您当前的订阅进行续费:"ご利用中のサブスクの継続料金を支払う",对您当前的订阅进行购买:"ご利用中のサブスクを再度購入する",捷径:"ショートカット","不会使用,查看使用教程":"ご利用方法がわからない方はナレッジベースをご閲覧ください",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"QRコードをスキャンしてサブスクを設定",续费:"更新",购买:"購入",查看教程:"チュートリアルを表示",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"まだ購入が完了していないオーダーがあります。購入前にそちらをキャンセルする必要がありますが、キャンセルしてよろしいですか?",确定取消:"キャンセル",返回我的订单:"注文履歴に戻る","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"もし既にお支払いが完了していると、注文をキャンセルすると支払いが失敗となる可能性があります。キャンセルしてもよろしいですか?",选择最适合你的计划:"あなたにピッタリのプランをお選びください",全部:"全て",按周期:"期間順",遇到问题:"何かお困りですか?",遇到问题可以通过工单与我们沟通:"何かお困りでしたら、お問い合わせからご連絡ください。",按流量:"データ通信量順",搜索文档:"ドキュメント内を検索",技术支持:"テクニカルサポート",当前剩余佣金:"コミッション残高",三级分销比例:"3ティア比率",累计获得佣金:"累計獲得コミッション金額","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"お客様に招待された方が更に別の方を招待された場合、お客様は支払われるオーダーからティア分配分の比率分を受け取ることができます。",发放时间:"手数料支払時間","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"購読アドレスまたはアカウントが漏れて他者に悪用された場合、不必要な損失を防ぐためにここで購読情報をリセットできます。",再次输入密码:"パスワードを再入力してください",返回登陆:"ログインに戻る",选填:"任意",必填:"必須",最后回复时间:"最終返信時刻",请选项工单等级:"チケットの優先度を選択してください",回复:"返信",输入内容回复工单:"チケットへの返信内容を入力",已生成:"生成済み",选择协议:"プロトコルの選択",自动:"自動",流量重置包:"データリセットパッケージ",复制失败:"コピーに失敗しました",提示:"通知","确认退出?":"ログアウトを確認?",已退出登录:"正常にログアウトしました",请输入邮箱地址:"メールアドレスを入力してください","{second}秒后可重新发送":"{second} 秒後に再送信可能",发送成功:"送信成功",请输入账号密码:"アカウントとパスワードを入力してください",请确保两次密码输入一致:"パスワードの入力が一致していることを確認してください",注册成功:"登録が成功しました","重置密码成功,正在返回登录":"パスワードのリセットが成功しました。ログインに戻っています",确认取消:"キャンセルの確認","请注意,变更订阅会导致当前订阅被覆盖。":"購読の変更は現在の購読を上書きします。","订单提交成功,正在跳转支付":"注文が成功裏に送信されました。支払いにリダイレクトしています。",回复成功:"返信が成功しました",工单详情:"チケットの詳細",登录成功:"ログイン成功","确定退出?":"本当に退出しますか?",支付成功:"支払い成功",正在前往收银台:"チェックアウトに進行中",请输入正确的划转金额:"正しい振替金額を入力してください",划转成功:"振替成功",提现方式不能为空:"出金方法は空にできません",提现账号不能为空:"出金口座を空にすることはできません",已绑定:"既にバインドされています",创建成功:"作成成功",关闭成功:"閉鎖成功"},Dk=Object.freeze(Object.defineProperty({__proto__:null,default:E7e},Symbol.toStringTag,{value:"Module"})),R7e={请求失败:"요청실패",月付:"월간",季付:"3개월간",半年付:"반년간",年付:"1년간",两年付:"2년마다",三年付:"3년마다",一次性:"한 번",重置流量包:"데이터 재설정 패키지",待支付:"지불 보류중",开通中:"보류 활성화",已取消:"취소 됨",已完成:"완료",已折抵:"변환",待确认:"보류중",发放中:"확인중",已发放:"완료",无效:"유효하지 않음",个人中心:"사용자 센터",登出:"로그아웃",搜索:"검색",仪表盘:"대시보드",订阅:"구독",我的订阅:"나의 구독",购买订阅:"구독 구매 내역",财务:"청구",我的订单:"나의 주문",我的邀请:"나의 초청",用户:"사용자 센터",我的工单:"나의 티켓",流量明细:"데이터 세부 정보 전송",使用文档:"사용 설명서",绑定Telegram获取更多服务:"텔레그램에 아직 연결되지 않았습니다",点击这里进行绑定:"텔레그램에 연결되도록 여기를 눌러주세요",公告:"발표",总览:"개요",该订阅长期有效:"구독은 무제한으로 유효합니다",已过期:"만료","已用 {used} / 总计 {total}":"{date}에 만료됩니다, 만료 {day}이 전, {reset_day}후 데이터 전송 재설정",查看订阅:"구독 보기",邮箱:"이메일",邮箱验证码:"이메일 확인 코드",发送:"보내기",重置密码:"비밀번호 재설정",返回登入:"로그인 다시하기",邀请码:"초청 코드",复制链接:"링크 복사",完成时间:"완료 시간",佣金:"수수료",已注册用户数:"등록 된 사용자들",佣金比例:"수수료율",确认中的佣金:"수수료 상태","佣金将会在确认后会到达你的佣金账户。":"수수료는 검토 후 수수료 계정에서 확인할 수 있습니다",邀请码管理:"초청 코드 관리",生成邀请码:"초청 코드 생성하기",佣金发放记录:"수수료 지불 기록",复制成功:"복사 성공",密码:"비밀번호",登入:"로그인",注册:"등록하기",忘记密码:"비밀번호를 잊으셨나요","# 订单号":"주문 번호 #",周期:"유형/기간",订单金额:"주문량",订单状态:"주문 상태",创建时间:"생성 시간",操作:"설정",查看详情:"세부사항 보기",请选择支付方式:"지불 방식을 선택 해주세요",请检查信用卡支付信息:"신용카드 지불 정보를 확인 해주세요",订单详情:"주문 세부사항",折扣:"할인",折抵:"변환",退款:"환불",支付方式:"지불 방식",填写信用卡支付信息:"신용카드 지불 정보를 적으세요","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"현재 거래를 확인하는 데 사용하는 귀하의 신용 카드 정보, 신용 카드 번호 및 기타 세부 정보를 수집하지 않습니다.",订单总额:"전체주문",总计:"전체",结账:"결제하기",等待支付中:"결제 대기 중","订单系统正在进行处理,请稍等1-3分钟。":"주문 시스템이 처리 중입니다. 1-3분 정도 기다려 주십시오.","订单由于超时支付已被取消。":"결제 시간 초과로 인해 주문이 취소되었습니다.","订单已支付并开通。":"주문이 결제되고 개통되었습니다.",选择订阅:"구독 선택하기",立即订阅:"지금 구독하기",配置订阅:"구독 환경 설정하기",付款周期:"지불 기간","有优惠券?":"쿠폰을 가지고 있나요?",验证:"확인",下单:"주문","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"주의하십시오. 구독을 변경하면 현재 구독을 덮어씁니다",该订阅无法续费:"이 구독은 갱신할 수 없습니다.",选择其他订阅:"다른 구독 선택",我的钱包:"나의 지갑","账户余额(仅消费)":"계정 잔액(결제 전용)","推广佣金(可提现)":"초청수수료(인출하는 데 사용할 수 있습니다)",钱包组成部分:"지갑 세부사항",划转:"이체하기",推广佣金提现:"초청 수수료 인출",修改密码:"비밀번호 변경",保存:"저장하기",旧密码:"이전 비밀번호",新密码:"새로운 비밀번호",请输入旧密码:"이전 비밀번호를 입력해주세요",请输入新密码:"새로운 비밀번호를 입력해주세요",通知:"공고",到期邮件提醒:"구독 만료 이메일 알림",流量邮件提醒:"불충분한 데이터 이메일 전송 알림",绑定Telegram:"탤레그램으로 연결",立即开始:"지금 시작하기",重置订阅信息:"구독 재설정하기",重置:"재설정","确定要重置订阅信息?":"구독을 재설정하시겠습니까?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"계정 정보나 구독이 누출된 경우 이 옵션은 UUID를 재설정하는 데 사용되며 재설정 후에 구독이 변경되므로 다시 구독해야 합니다.",重置成功:"재설정 성공",两次新密码输入不同:"입력한 두 개의 새 비밀번호가 일치하지 않습니다.",两次密码输入不同:"입력한 비밀번호가 일치하지 않습니다.","邀请码(选填)":"초청 코드(선택 사항)",'我已阅读并同意 服务条款':"을 읽었으며 이에 동의합니다 서비스 약관",请同意服务条款:"서비스 약관에 동의해주세요",名称:"이름",标签:"태그",状态:"설정",节点五分钟内节点在线情况:"지난 5분 동안의 액세스 포인트 온라인 상태",倍率:"요금",使用的流量将乘以倍率进行扣除:"사용된 전송 데이터에 전송 데이터 요금을 뺀 값을 곱합니다.",更多操作:"설정","没有可用节点,如果您未订阅或已过期请":"사용 가능한 액세스 포인트가 없습니다. 구독을 신청하지 않았거나 구독이 만료된 경우","确定重置当前已用流量?":"현재 사용 중인 데이터를 재설정 하시겠습니까?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'확인"을 클릭하면 결제 페이지로 이동됩니다. 주문이 완료되면 시스템에서 해당 월의 사용 데이터를 삭제합니다.',确定:"확인",低:"낮음",中:"중간",高:"높음",主题:"주제",工单级别:"티켓 우선 순위",工单状态:"티켓 상태",最后回复:"생성 시간",已关闭:"마지막 답장",待回复:"설정",已回复:"닫힘",查看:"보기",关闭:"닫기",新的工单:"새로운 티켓",确认:"확인",请输入工单主题:"제목을 입력하세요",工单等级:"티켓 우선순위",请选择工单等级:"티켓 우선순위를 선택해주세요",消息:"메세지",请描述你遇到的问题:"문제를 설명하십시오 발생한",记录时间:"기록 시간",实际上行:"실제 업로드",实际下行:"실제 다운로드",合计:"전체","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"공식: (실제 업로드 + 실제 다운로드) x 공제율 = 전송 데이터 공제",复制订阅地址:"구독 URL 복사",导入到:"내보내기",一键订阅:"빠른 구독",复制订阅:"구독 URL 복사",推广佣金划转至余额:"초청 수수료를 계좌 잔액으로 이체","划转后的余额仅用于{title}消费使用":"이체된 잔액은 {title} 소비에만 사용됩니다.",当前推广佣金余额:"현재 홍보 수수료 잔액",请输入需要划转到余额的金额:"잔액으로 이체할 금액을 입력하세요.",取消:"취소",提现方式:"인출 방법",请选择提现方式:"인출 방법을 선택해주세요",提现账号:"인출 계좌",请输入提现账号:"인출 계좌를 입력해주세요",我知道了:"알겠습니다.",第一步:"첫번째 단계",第二步:"두번째 단계",打开Telegram搜索:"텔레그램 열기 및 탐색",向机器人发送你的:"봇에 다음 명령을 보냅니다","最后更新: {date}":"마지막 업데이트{date}",还有没支付的订单:"미결제 주문이 있습니다",立即支付:"즉시 지불",条工单正在处理中:"티켓이 처리 중입니다",立即查看:"제목을 입력하세요",节点状态:"노드 상태",商品信息:"제품 정보",产品名称:"제품 명칭","类型/周期":"종류/기간",产品流量:"제품 데이터 용량",订单信息:"주문 정보",关闭订单:"주문 취소",订单号:"주문 번호",优惠金额:"할인 가격",旧订阅折抵金额:"기존 패키지 공제 금액",退款金额:"환불 금액",余额支付:"잔액 지불",工单历史:"티켓 기록","已用流量将在 {reset_day} 日后重置":"{reset_day}일 후에 사용한 데이터가 재설정됩니다",已用流量已在今日重置:"오늘 이미 사용한 데이터가 재설정되었습니다",重置已用流量:"사용한 데이터 재설정",查看节点状态:"노드 상태 확인","当前已使用流量达{rate}%":"현재 사용한 데이터 비율이 {rate}%에 도달했습니다",节点名称:"환불 금액","于 {date} 到期,距离到期还有 {day} 天。":"{day}까지, 만료 {day}일 전.","Telegram 讨论组":"텔레그램으로 문의하세요",立即加入:"지금 가입하세요","该订阅无法续费,仅允许新用户购买":"이 구독은 갱신할 수 없습니다. 신규 사용자만 구매할 수 있습니다.",重置当月流量:"이번 달 트래픽 초기화","流量明细仅保留近月数据以供查询。":"귀하의 트래픽 세부 정보는 최근 몇 달 동안만 유지됩니다",扣费倍率:"수수료 공제율",支付手续费:"수수료 지불",续费订阅:"구독 갱신",学习如何使用:"사용 방법 배우기",快速将节点导入对应客户端进行使用:"빠르게 노드를 해당 클라이언트로 가져와 사용하기",对您当前的订阅进行续费:"현재 구독 갱신",对您当前的订阅进行购买:"현재 구독 구매",捷径:"단축키","不会使用,查看使用教程":"사용 방법을 모르겠다면 사용 설명서 확인",使用支持扫码的客户端进行订阅:"스캔 가능한 클라이언트로 구독하기",扫描二维码订阅:"QR 코드 스캔하여 구독",续费:"갱신",购买:"구매",查看教程:"사용 설명서 보기",注意:"주의","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"미완료된 주문이 있습니다. 구매 전에 취소해야 합니다. 이전 주문을 취소하시겠습니까?",确定取消:"취소 확인",返回我的订单:"내 주문으로 돌아가기","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"이미 결제를 했을 경우 주문 취소는 결제 실패로 이어질 수 있습니다. 주문을 취소하시겠습니까?",选择最适合你的计划:"가장 적합한 요금제 선택",全部:"전체",按周期:"주기별",遇到问题:"문제 발생",遇到问题可以通过工单与我们沟通:"문제가 발생하면 서포트 티켓을 통해 문의하세요",按流量:"트래픽별",搜索文档:"문서 검색",技术支持:"기술 지원",当前剩余佣金:"현재 잔여 수수료",三级分销比例:"삼수준 분배 비율",累计获得佣金:"누적 수수료 획득","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"초대한 사용자가 다시 초대하면 주문 금액에 분배 비율을 곱하여 분배됩니다.",发放时间:"수수료 지급 시간","{number} 人":"{number} 명","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"구독 주소 또는 계정이 유출되어 다른 사람에게 남용되는 경우 여기에서 구독 정보를 재설정하여 불필요한 손실을 방지할 수 있습니다.",再次输入密码:"비밀번호를 다시 입력하세요",返回登陆:"로그인으로 돌아가기",选填:"선택 사항",必填:"필수",最后回复时间:"최근 답장 시간",请选项工单等级:"티켓 우선 순위 선택",回复:"답장",输入内容回复工单:"티켓에 대한 내용 입력",已生成:"생성됨",选择协议:"프로토콜 선택",自动:"자동",流量重置包:"데이터 리셋 패키지",复制失败:"복사 실패",提示:"알림","确认退出?":"로그아웃 확인?",已退出登录:"로그아웃 완료",请输入邮箱地址:"이메일 주소를 입력하세요","{second}秒后可重新发送":"{second} 초 후에 다시 전송 가능",发送成功:"전송 성공",请输入账号密码:"계정과 비밀번호를 입력하세요",请确保两次密码输入一致:"비밀번호 입력이 일치하는지 확인하세요",注册成功:"등록 성공","重置密码成功,正在返回登录":"비밀번호 재설정 성공, 로그인 페이지로 돌아가는 중",确认取消:"취소 확인","请注意,变更订阅会导致当前订阅被覆盖。":"구독 변경은 현재 구독을 덮어씁니다.","订单提交成功,正在跳转支付":"주문이 성공적으로 제출되었습니다. 지불로 이동 중입니다.",回复成功:"답장 성공",工单详情:"티켓 상세 정보",登录成功:"로그인 성공","确定退出?":"확실히 종료하시겠습니까?",支付成功:"결제 성공",正在前往收银台:"결제 진행 중",请输入正确的划转金额:"정확한 이체 금액을 입력하세요",划转成功:"이체 성공",提现方式不能为空:"출금 방식은 비워 둘 수 없습니다",提现账号不能为空:"출금 계좌는 비워 둘 수 없습니다",已绑定:"이미 연결됨",创建成功:"생성 성공",关闭成功:"종료 성공"},Lk=Object.freeze(Object.defineProperty({__proto__:null,default:R7e},Symbol.toStringTag,{value:"Module"})),A7e={请求失败:"Yêu Cầu Thất Bại",月付:"Tháng",季付:"Hàng Quý",半年付:"6 Tháng",年付:"Năm",两年付:"Hai Năm",三年付:"Ba Năm",一次性:"Dài Hạn",重置流量包:"Cập Nhật Dung Lượng",待支付:"Đợi Thanh Toán",开通中:"Đang xử lý",已取消:"Đã Hủy",已完成:"Thực Hiện",已折抵:"Quy Đổi",待确认:"Đợi Xác Nhận",发放中:"Đang Xác Nhận",已发放:"Hoàn Thành",无效:"Không Hợp Lệ",个人中心:"Trung Tâm Kiểm Soát",登出:"Đăng Xuất",搜索:"Tìm Kiếm",仪表盘:"Trang Chủ",订阅:"Gói Dịch Vụ",我的订阅:"Gói Dịch Vụ Của Tôi",购买订阅:"Mua Gói Dịch Vụ",财务:"Tài Chính",我的订单:"Đơn Hàng Của Tôi",我的邀请:"Lời Mời Của Tôi",用户:"Người Dùng",我的工单:"Liên Hệ Với Chúng Tôi",流量明细:"Chi Tiết Dung Lượng",使用文档:"Tài liệu sử dụng",绑定Telegram获取更多服务:"Liên kết Telegram thêm dịch vụ",点击这里进行绑定:"Ấn vào để liên kết",公告:"Thông Báo",总览:"Tổng Quat",该订阅长期有效:"Gói này có thời hạn dài",已过期:"Tài khoản hết hạn","已用 {used} / 总计 {total}":"Đã sử dụng {used} / Tổng dung lượng {total}",查看订阅:"Xem Dịch Vụ",邮箱:"E-mail",邮箱验证码:"Mã xác minh mail",发送:"Gửi",重置密码:"Đặt Lại Mật Khẩu",返回登入:"Về đăng nhập",邀请码:"Mã mời",复制链接:"Sao chép đường dẫn",完成时间:"Thời gian hoàn thành",佣金:"Tiền hoa hồng",已注册用户数:"Số người dùng đã đăng ký",佣金比例:"Tỷ lệ hoa hồng",确认中的佣金:"Hoa hồng đang xác nhận","佣金将会在确认后会到达你的佣金账户。":"Sau khi xác nhận tiền hoa hồng sẽ gửi đến tài khoản hoa hồng của bạn.",邀请码管理:"Quản lý mã mời",生成邀请码:"Tạo mã mời",佣金发放记录:"Hồ sơ hoa hồng",复制成功:"Sao chép thành công",密码:"Mật khẩu",登入:"Đăng nhập",注册:"Đăng ký",忘记密码:"Quên mật khẩu","# 订单号":"# Mã đơn hàng",周期:"Chu Kỳ",订单金额:"Tiền đơn hàng",订单状态:"Trạng thái đơn",创建时间:"Thời gian tạo",操作:"Thao tác",查看详情:"Xem chi tiết",请选择支付方式:"Chọn phương thức thanh toán",请检查信用卡支付信息:"Hãy kiểm tra thông tin thẻ thanh toán",订单详情:"Chi tiết đơn hàng",折扣:"Chiết khấu",折抵:"Giảm giá",退款:"Hoàn lại",支付方式:"Phương thức thanh toán",填写信用卡支付信息:"Điền thông tin Thẻ Tín Dụng","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"Thông tin thẻ tín dụng của bạn sẽ chỉ được sử dụng cho lần thanh toán này, hệ thống sẽ không lưu thông tin đó, chúng tôi nghĩ đây à cách an toàn nhất.",订单总额:"Tổng tiền đơn hàng",总计:"Tổng",结账:"Kết toán",等待支付中:"Đang chờ thanh toán","订单系统正在进行处理,请稍等1-3分钟。":"Hệ thống đang xử lý đơn hàng, vui lòng đợi 1-3p.","订单由于超时支付已被取消。":"Do quá giờ nên đã hủy đơn hàng.","订单已支付并开通。":"Đơn hàng đã thanh toán và mở.",选择订阅:"Chọn gói",立即订阅:"Mua gói ngay",配置订阅:"Thiết lập gói",付款周期:"Chu kỳ thanh toán","有优惠券?":"Có phiếu giảm giá?",验证:"Xác minh",下单:"Đặt hàng","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Việc thay đổi gói dịch vụ sẽ thay thế gói hiện tại bằng gói mới, xin lưu ý.",该订阅无法续费:"Gói này không thể gia hạn",选择其他订阅:"Chọn gói dịch vụ khác",我的钱包:"Ví tiền của tôi","账户余额(仅消费)":"Số dư tài khoản (Chỉ tiêu dùng)","推广佣金(可提现)":"Tiền hoa hồng giới thiệu (Được rút)",钱包组成部分:"Thành phần ví tiền",划转:"Chuyển khoản",推广佣金提现:"Rút tiền hoa hồng giới thiệu",修改密码:"Đổi mật khẩu",保存:"Lưu",旧密码:"Mật khẩu cũ",新密码:"Mật khẩu mới",请输入旧密码:"Hãy nhập mật khẩu cũ",请输入新密码:"Hãy nhập mật khẩu mới",通知:"Thông Báo",到期邮件提醒:"Mail nhắc đến hạn",流量邮件提醒:"Mail nhắc dung lượng",绑定Telegram:"Liên kết Telegram",立即开始:"Bắt Đầu",重置订阅信息:"Reset thông tin gói",重置:"Reset","确定要重置订阅信息?":"Xác nhận reset thông tin gói?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"Nếu địa chỉ hoặc thông tin gói dịch vụ của bạn bị tiết lộ có thể tiến hành thao tác này. Sau khi reset UUID sẽ thay đổi.",重置成功:"Reset thành công",两次新密码输入不同:"Mật khẩu mới xác nhận không khớp",两次密码输入不同:"Mật khẩu xác nhận không khớp","邀请码(选填)":"Mã mời(Điền)",'我已阅读并同意 服务条款':"Tôi đã đọc và đồng ý điều khoản dịch vụ",请同意服务条款:"Hãy đồng ý điều khoản dịch vụ",名称:"Tên",标签:"Nhãn",状态:"Trạng thái",节点五分钟内节点在线情况:"Node trạng thái online trong vòng 5 phút",倍率:"Bội số",使用的流量将乘以倍率进行扣除:"Dung lượng sử dụng nhân với bội số rồi khấu trừ",更多操作:"Thêm thao tác","没有可用节点,如果您未订阅或已过期请":"Chưa có node khả dụng, nếu bạn chưa mua gói hoặc đã hết hạn hãy","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"Ấn 「OK」 sẽ chuyển đến trang thanh toán, sau khi thanh toán đơn hàng hệ thống sẽ xóa dung lượng đã dùng tháng này của bạn.",确定:"OK",低:"Thấp",中:"Vừa",高:"Cao",主题:"Chủ Đề",工单级别:"Cấp độ",工单状态:"Trạng thái",最后回复:"Trả lời gần đây",已关闭:"Đã đóng",待回复:"Chờ trả lời",已回复:"Đã trả lời",查看:"Xem",关闭:"Đóng",新的工单:"Việc mới",确认:"OK",请输入工单主题:"Hãy nhập chủ đề công việc",工单等级:"Cấp độ công việc",请选择工单等级:"Hãy chọn cấp độ công việc",消息:"Thông tin",请描述你遇到的问题:"Hãy mô tả vấn đề gặp phải",记录时间:"Thời gian ghi",实际上行:"Upload thực tế",实际下行:"Download thực tế",合计:"Cộng","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Công thức: (upload thực tế + download thực tế) x bội số trừ phí = Dung lượng khấu trừ",复制订阅地址:"Sao chép liên kết",导入到:"Nhập vào",一键订阅:"Nhấp chuột để đồng bộ máy chủ",复制订阅:"Sao chép liên kết",推广佣金划转至余额:"Chuyển khoản hoa hồng giới thiệu đến số dư","划转后的余额仅用于{title}消费使用":"Số dư sau khi chuyển khoản chỉ dùng để tiêu dùng {title}",当前推广佣金余额:"Số dư hoa hồng giới thiệu hiện tại",划转金额:"Chuyển tiền",请输入需要划转到余额的金额:"Hãy nhậo số tiền muốn chuyển đến số dư","输入内容回复工单...":"Nhập nội dung trả lời công việc...",申请提现:"Yêu cầu rút tiền",取消:"Hủy",提现方式:"Phương thức rút tiền",请选择提现方式:"Hãy chọn phương thức rút tiền",提现账号:"Rút về tào khoản",请输入提现账号:"Hãy chọn tài khoản rút tiền",我知道了:"OK",第一步:"Bước 1",第二步:"Bước 2",打开Telegram搜索:"Mở Telegram tìm kiếm",向机器人发送你的:"Gửi cho bot","最后更新: {date}":"Cập nhật gần đây: {date}",还有没支付的订单:"Có đơn hàng chưa thanh toán",立即支付:"Thanh toán ngay",条工单正在处理中:" công việc đang xử lý",立即查看:"Xem Ngay",节点状态:"Trạng thái node",商品信息:"Thông tin",产品名称:"Tên sản phẩm","类型/周期":"Loại/Chu kỳ",产品流量:"Dung Lượng",订单信息:"Thông tin đơn hàng",关闭订单:"Đóng đơn hàng",订单号:"Mã đơn hàng",优惠金额:"Tiền ưu đãi",旧订阅折抵金额:"Tiền giảm giá gói cũ",退款金额:"Số tiền hoàn lại",余额支付:"Thanh toán số dư",工单历史:"Lịch sử đơn hàng","已用流量将在 {reset_day} 日后重置":"Dữ liệu đã sử dụng sẽ được đặt lại sau {reset_day} ngày",已用流量已在今日重置:"Dữ liệu đã sử dụng đã được đặt lại trong ngày hôm nay",重置已用流量:"Đặt lại dữ liệu đã sử dụng",查看节点状态:"Xem trạng thái nút","当前已使用流量达{rate}%":"Dữ liệu đã sử dụng hiện tại đạt {rate}%",节点名称:"Tên node","于 {date} 到期,距离到期还有 {day} 天。":"Hết hạn vào {date}, còn {day} ngày.","Telegram 讨论组":"Nhóm Telegram",立即加入:"Vào ngay","该订阅无法续费,仅允许新用户购买":"Đăng ký này không thể gia hạn, chỉ người dùng mới được phép mua",重置当月流量:"Đặt lại dung lượng tháng hiện tại","流量明细仅保留近月数据以供查询。":"Chi tiết dung lượng chỉ lưu dữ liệu của những tháng gần đây để truy vấn.",扣费倍率:"Tỷ lệ khấu trừ",支付手续费:"Phí thủ tục",续费订阅:"Gia hạn đăng ký",学习如何使用:"Hướng dẫn sử dụng",快速将节点导入对应客户端进行使用:"Bạn cần phải mua gói này",对您当前的订阅进行续费:"Gia hạn gói hiện tại",对您当前的订阅进行购买:"Mua gói bạn đã chọn",捷径:"Phím tắt","不会使用,查看使用教程":"Mua gói này nếu bạn đăng ký",使用支持扫码的客户端进行订阅:"Sử dụng ứng dụng quét mã để đăng ký",扫描二维码订阅:"Quét mã QR để đăng ký",续费:"Gia hạn",购买:"Mua",查看教程:"Xem hướng dẫn",注意:"Chú Ý","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"Bạn vẫn còn đơn đặt hàng chưa hoàn thành. Bạn cần hủy trước khi mua. Bạn có chắc chắn muốn hủy đơn đặt hàng trước đó không ?",确定取消:"Đúng/không",返回我的订单:"Quay lại đơn đặt hàng của tôi","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"Nếu bạn đã thanh toán, việc hủy đơn hàng có thể khiến việc thanh toán không thành công. Bạn có chắc chắn muốn hủy đơn hàng không ?",选择最适合你的计划:"Chọn kế hoạch phù hợp với bạn nhất",全部:"Tất cả",按周期:"Chu kỳ",遇到问题:"Chúng tôi có một vấn đề",遇到问题可以通过工单与我们沟通:"Nếu bạn gặp sự cố, bạn có thể liên lạc với chúng tôi thông qua ",按流量:"Theo lưu lượng",搜索文档:"Tìm kiếm tài liệu",技术支持:"Hỗ trợ kỹ thuật",当前剩余佣金:"Số dư hoa hồng hiện tại",三级分销比例:"Tỷ lệ phân phối cấp 3",累计获得佣金:"Tổng hoa hồng đã nhận","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"Người dùng bạn mời lại mời người dùng sẽ được chia theo tỷ lệ của số tiền đơn hàng nhân với cấp độ phân phối.",发放时间:"Thời gian thanh toán hoa hồng","{number} 人":"{number} người","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"Nếu địa chỉ đăng ký hoặc tài khoản của bạn bị rò rỉ và bị người khác lạm dụng, bạn có thể đặt lại thông tin đăng ký tại đây để tránh mất mát không cần thiết.",再次输入密码:"Nhập lại mật khẩu",返回登陆:"Quay lại Đăng nhập",选填:"Tùy chọn",必填:"Bắt buộc",最后回复时间:"Thời gian Trả lời Cuối cùng",请选项工单等级:"Vui lòng Chọn Mức độ Ưu tiên Công việc",回复:"Trả lời",输入内容回复工单:"Nhập Nội dung để Trả lời Công việc",已生成:"Đã tạo",选择协议:"Chọn Giao thức",自动:"Tự động",流量重置包:"Gói Reset Dữ liệu",复制失败:"Sao chép thất bại",提示:"Thông báo","确认退出?":"Xác nhận Đăng xuất?",已退出登录:"Đã đăng xuất thành công",请输入邮箱地址:"Nhập địa chỉ email","{second}秒后可重新发送":"Gửi lại sau {second} giây",发送成功:"Gửi thành công",请输入账号密码:"Nhập tên đăng nhập và mật khẩu",请确保两次密码输入一致:"Đảm bảo hai lần nhập mật khẩu giống nhau",注册成功:"Đăng ký thành công","重置密码成功,正在返回登录":"Đặt lại mật khẩu thành công, đang quay trở lại trang đăng nhập",确认取消:"Xác nhận Hủy","请注意,变更订阅会导致当前订阅被覆盖。":"Vui lòng lưu ý rằng thay đổi đăng ký sẽ ghi đè lên đăng ký hiện tại.","订单提交成功,正在跳转支付":"Đơn hàng đã được gửi thành công, đang chuyển hướng đến thanh toán.",回复成功:"Trả lời thành công",工单详情:"Chi tiết Ticket",登录成功:"Đăng nhập thành công","确定退出?":"Xác nhận thoát?",支付成功:"Thanh toán thành công",正在前往收银台:"Đang tiến hành thanh toán",请输入正确的划转金额:"Vui lòng nhập số tiền chuyển đúng",划转成功:"Chuyển khoản thành công",提现方式不能为空:"Phương thức rút tiền không được để trống",提现账号不能为空:"Tài khoản rút tiền không được để trống",已绑定:"Đã liên kết",创建成功:"Tạo thành công",关闭成功:"Đóng thành công"},Bk=Object.freeze(Object.defineProperty({__proto__:null,default:A7e},Symbol.toStringTag,{value:"Module"})),$7e={请求失败:"请求失败",月付:"月付",季付:"季付",半年付:"半年付",年付:"年付",两年付:"两年付",三年付:"三年付",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"开通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待确认",发放中:"发放中",已发放:"已发放",无效:"无效",个人中心:"个人中心",登出:"登出",搜索:"搜索",仪表盘:"仪表盘",订阅:"订阅",我的订阅:"我的订阅",购买订阅:"购买订阅",财务:"财务",我的订单:"我的订单",我的邀请:"我的邀请",用户:"用户",我的工单:"我的工单",流量明细:"流量明细",使用文档:"使用文档",绑定Telegram获取更多服务:"绑定 Telegram 获取更多服务",点击这里进行绑定:"点击这里进行绑定",公告:"公告",总览:"总览",该订阅长期有效:"该订阅长期有效",已过期:"已过期","已用 {used} / 总计 {total}":"已用 {used} / 总计 {total}",查看订阅:"查看订阅",邮箱:"邮箱",邮箱验证码:"邮箱验证码",发送:"发送",重置密码:"重置密码",返回登入:"返回登入",邀请码:"邀请码",复制链接:"复制链接",完成时间:"完成时间",佣金:"佣金",已注册用户数:"已注册用户数",佣金比例:"佣金比例",确认中的佣金:"确认中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金将会在确认后到达您的佣金账户。",邀请码管理:"邀请码管理",生成邀请码:"生成邀请码",佣金发放记录:"佣金发放记录",复制成功:"复制成功",密码:"密码",登入:"登入",注册:"注册",忘记密码:"忘记密码","# 订单号":"# 订单号",周期:"周期",订单金额:"订单金额",订单状态:"订单状态",创建时间:"创建时间",操作:"操作",查看详情:"查看详情",请选择支付方式:"请选择支付方式",请检查信用卡支付信息:"请检查信用卡支付信息",订单详情:"订单详情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填写信用卡支付信息","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡信息只会用于当次扣款,系统并不会保存,我们认为这是最安全的。",订单总额:"订单总额",总计:"总计",结账:"结账",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"订单系统正在进行处理,请等候 1-3 分钟。","订单由于超时支付已被取消。":"订单由于超时支付已被取消。","订单已支付并开通。":"订单已支付并开通。",选择订阅:"选择订阅",立即订阅:"立即订阅",配置订阅:"配置订阅",付款周期:"付款周期","有优惠券?":"有优惠券?",验证:"验证",下单:"下单","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"请注意,变更订阅会导致当前订阅被新订阅覆盖。",该订阅无法续费:"该订阅无法续费",选择其他订阅:"选择其它订阅",我的钱包:"我的钱包","账户余额(仅消费)":"账户余额(仅消费)","推广佣金(可提现)":"推广佣金(可提现)",钱包组成部分:"钱包组成部分",划转:"划转",推广佣金提现:"推广佣金提现",修改密码:"修改密码",保存:"保存",旧密码:"旧密码",新密码:"新密码",请输入旧密码:"请输入旧密码",请输入新密码:"请输入新密码",通知:"通知",到期邮件提醒:"到期邮件提醒",流量邮件提醒:"流量邮件提醒",绑定Telegram:"绑定 Telegram",立即开始:"立即开始",重置订阅信息:"重置订阅信息",重置:"重置","确定要重置订阅信息?":"确定要重置订阅信息?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的订阅地址或信息发生泄露可以执行此操作。重置后您的 UUID 及订阅将会变更,需要重新导入订阅。",重置成功:"重置成功",两次新密码输入不同:"两次新密码输入不同",两次密码输入不同:"两次密码输入不同","邀请码(选填)":"邀请码(选填)",'我已阅读并同意 服务条款':'我已阅读并同意 服务条款',请同意服务条款:"请同意服务条款",名称:"名称",标签:"标签",状态:"状态",节点五分钟内节点在线情况:"五分钟内节点在线情况",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量将乘以倍率进行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"没有可用节点,如果您未订阅或已过期请","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。",确定:"确定",低:"低",中:"中",高:"高",主题:"主题",工单级别:"工单级别",工单状态:"工单状态",最后回复:"最后回复",已关闭:"已关闭",待回复:"待回复",已回复:"已回复",查看:"查看",关闭:"关闭",新的工单:"新的工单",确认:"确认",请输入工单主题:"请输入工单主题",工单等级:"工单等级",请选择工单等级:"请选择工单等级",消息:"消息",请描述你遇到的问题:"请描述您遇到的问题",记录时间:"记录时间",实际上行:"实际上行",实际下行:"实际下行",合计:"合计","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量",复制订阅地址:"复制订阅地址",导入到:"导入到",一键订阅:"一键订阅",复制订阅:"复制订阅",推广佣金划转至余额:"推广佣金划转至余额","划转后的余额仅用于{title}消费使用":"划转后的余额仅用于{title}消费使用",当前推广佣金余额:"当前推广佣金余额",划转金额:"划转金额",请输入需要划转到余额的金额:"请输入需要划转到余额的金额","输入内容回复工单...":"输入内容回复工单...",申请提现:"申请提现",取消:"取消",提现方式:"提现方式",请选择提现方式:"请选择提现方式",提现账号:"提现账号",请输入提现账号:"请输入提现账号",我知道了:"我知道了",第一步:"第一步",第二步:"第二步",打开Telegram搜索:"打开 Telegram 搜索",向机器人发送你的:"向机器人发送您的",最后更新:"{date}",还有没支付的订单:"还有没支付的订单",立即支付:"立即支付",条工单正在处理中:"条工单正在处理中",立即查看:"立即查看",节点状态:"节点状态",商品信息:"商品信息",产品名称:"产品名称","类型/周期":"类型/周期",产品流量:"产品流量",订单信息:"订单信息",关闭订单:"关闭订单",订单号:"订单号",优惠金额:"优惠金额",旧订阅折抵金额:"旧订阅折抵金额",退款金额:"退款金额",余额支付:"余额支付",工单历史:"工单历史","已用流量将在 {reset_day} 日后重置":"已用流量将在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看节点状态","当前已使用流量达{rate}%":"当前已使用流量达 {rate}%",节点名称:"节点名称","于 {date} 到期,距离到期还有 {day} 天。":"于 {date} 到期,距离到期还有 {day} 天。","Telegram 讨论组":"Telegram 讨论组",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"该订阅无法续费,仅允许新用户购买",重置当月流量:"重置当月流量","流量明细仅保留近月数据以供查询。":"流量明细仅保留近一个月数据以供查询。",扣费倍率:"扣费倍率",支付手续费:"支付手续费",续费订阅:"续费订阅",学习如何使用:"学习如何使用",快速将节点导入对应客户端进行使用:"快速将节点导入对应客户端进行使用",对您当前的订阅进行续费:"对您当前的订阅进行续费",对您当前的订阅进行购买:"对您当前的订阅进行购买",捷径:"捷径","不会使用,查看使用教程":"不会使用,查看使用教程",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"扫描二维码订阅",续费:"续费",购买:"购买",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"确定取消",返回我的订单:"返回我的订单","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?",选择最适合你的计划:"选择最适合您的计划",全部:"全部",按周期:"按周期",遇到问题:"遇到问题",遇到问题可以通过工单与我们沟通:"遇到问题可以通过工单与我们沟通",按流量:"按流量",搜索文档:"搜索文档",技术支持:"技术支持",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。",再次输入密码:"再次输入密码",返回登陆:"返回登录",选填:"选填",必填:"必填",最后回复时间:"最后回复时间",请选项工单等级:"请选择工单优先级",回复:"回复",输入内容回复工单:"输入内容回复工单",已生成:"已生成",选择协议:"选择协议",自动:"自动",流量重置包:"流量重置包",复制失败:"复制失败",提示:"提示","确认退出?":"确认退出?",已退出登录:"已成功退出登录",请输入邮箱地址:"请输入邮箱地址","{second}秒后可重新发送":"{second}秒后可重新发送",发送成功:"发送成功",请输入账号密码:"请输入账号密码",请确保两次密码输入一致:"请确保两次密码输入一致",注册成功:"注册成功","重置密码成功,正在返回登录":"重置密码成功,正在返回登录",确认取消:"确认取消","请注意,变更订阅会导致当前订阅被覆盖。":"请注意,变更订阅会导致当前订阅被覆盖。","订单提交成功,正在跳转支付":"订单提交成功,正在跳转支付",回复成功:"回复成功",工单详情:"工单详情",登录成功:"登录成功","确定退出?":"确定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收银台",请输入正确的划转金额:"请输入正确的划转金额",划转成功:"划转成功",提现方式不能为空:"提现方式不能为空",提现账号不能为空:"提现账号不能为空",已绑定:"已绑定",创建成功:"创建成功",关闭成功:"关闭成功"},Nk=Object.freeze(Object.defineProperty({__proto__:null,default:$7e},Symbol.toStringTag,{value:"Module"})),I7e={请求失败:"請求失敗",月付:"月繳制",季付:"季繳",半年付:"半年缴",年付:"年繳",两年付:"兩年繳",三年付:"三年繳",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"開通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待確認",发放中:"發放中",已发放:"已發放",无效:"無效",个人中心:"您的帳戸",登出:"登出",搜索:"搜尋",仪表盘:"儀表板",订阅:"訂閱",我的订阅:"我的訂閱",购买订阅:"購買訂閱",财务:"財務",我的订单:"我的訂單",我的邀请:"我的邀請",用户:"使用者",我的工单:"我的工單",流量明细:"流量明細",使用文档:"說明文件",绑定Telegram获取更多服务:"綁定 Telegram 獲取更多服務",点击这里进行绑定:"點擊這裡進行綁定",公告:"公告",总览:"總覽",该订阅长期有效:"該訂閱長期有效",已过期:"已過期","已用 {used} / 总计 {total}":"已用 {used} / 總計 {total}",查看订阅:"查看訂閱",邮箱:"郵箱",邮箱验证码:"郵箱驗證碼",发送:"傳送",重置密码:"重設密碼",返回登入:"返回登錄",邀请码:"邀請碼",复制链接:"複製鏈接",完成时间:"完成時間",佣金:"佣金",已注册用户数:"已註冊用戶數",佣金比例:"佣金比例",确认中的佣金:"確認中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金將會在確認後到達您的佣金帳戶。",邀请码管理:"邀請碼管理",生成邀请码:"生成邀請碼",佣金发放记录:"佣金發放記錄",复制成功:"複製成功",密码:"密碼",登入:"登入",注册:"註冊",忘记密码:"忘記密碼","# 订单号":"# 訂單號",周期:"週期",订单金额:"訂單金額",订单状态:"訂單狀態",创建时间:"創建時間",操作:"操作",查看详情:"查看詳情",请选择支付方式:"請選擇支付方式",请检查信用卡支付信息:"請檢查信用卡支付資訊",订单详情:"訂單詳情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填寫信用卡支付資訊","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡資訊只會被用作當次扣款,系統並不會保存,我們認為這是最安全的。",订单总额:"訂單總額",总计:"總計",结账:"結賬",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"訂單系統正在進行處理,請稍等 1-3 分鐘。","订单由于超时支付已被取消。":"訂單由於支付超時已被取消","订单已支付并开通。":"訂單已支付並開通",选择订阅:"選擇訂閱",立即订阅:"立即訂閱",配置订阅:"配置訂閱",付款周期:"付款週期","有优惠券?":"有優惠券?",验证:"驗證",下单:"下單","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"請注意,變更訂閱會導致當前訂閱被新訂閱覆蓋。",该订阅无法续费:"該訂閱無法續費",选择其他订阅:"選擇其它訂閱",我的钱包:"我的錢包","账户余额(仅消费)":"賬戶餘額(僅消費)","推广佣金(可提现)":"推廣佣金(可提現)",钱包组成部分:"錢包組成部分",划转:"劃轉",推广佣金提现:"推廣佣金提現",修改密码:"修改密碼",保存:"儲存",旧密码:"舊密碼",新密码:"新密碼",请输入旧密码:"請輸入舊密碼",请输入新密码:"請輸入新密碼",通知:"通知",到期邮件提醒:"到期郵件提醒",流量邮件提醒:"流量郵件提醒",绑定Telegram:"綁定 Telegram",立即开始:"立即開始",重置订阅信息:"重置訂閲資訊",重置:"重置","确定要重置订阅信息?":"確定要重置訂閱資訊?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的訂閱位址或資訊發生洩露可以執行此操作。重置後您的 UUID 及訂閱將會變更,需要重新導入訂閱。",重置成功:"重置成功",两次新密码输入不同:"兩次新密碼輸入不同",两次密码输入不同:"兩次密碼輸入不同","邀请码(选填)":"邀請碼(選填)",'我已阅读并同意 服务条款':'我已閱讀並同意 服務條款',请同意服务条款:"請同意服務條款",名称:"名稱",标签:"標籤",状态:"狀態",节点五分钟内节点在线情况:"五分鐘內節點線上情況",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量將乘以倍率進行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"沒有可用節點,如果您未訂閱或已過期請","确定重置当前已用流量?":"確定重置當前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"點擊「確定」將會跳轉到收銀台,支付訂單後系統將會清空您當月已使用流量。",确定:"確定",低:"低",中:"中",高:"高",主题:"主題",工单级别:"工單級別",工单状态:"工單狀態",最后回复:"最新回復",已关闭:"已關閉",待回复:"待回復",已回复:"已回復",查看:"檢視",关闭:"關閉",新的工单:"新的工單",确认:"確認",请输入工单主题:"請輸入工單主題",工单等级:"工單等級",请选择工单等级:"請選擇工單等級",消息:"訊息",请描述你遇到的问题:"請描述您遇到的問題",记录时间:"記錄時間",实际上行:"實際上行",实际下行:"實際下行",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(實際上行 + 實際下行) x 扣費倍率 = 扣除流量",复制订阅地址:"複製訂閲位址",导入到:"导入到",一键订阅:"一鍵訂閲",复制订阅:"複製訂閲",推广佣金划转至余额:"推廣佣金劃轉至餘額","划转后的余额仅用于{title}消费使用":"劃轉后的餘額僅用於 {title} 消費使用",当前推广佣金余额:"當前推廣佣金餘額",划转金额:"劃轉金額",请输入需要划转到余额的金额:"請輸入需要劃轉到餘額的金額","输入内容回复工单...":"輸入内容回復工單…",申请提现:"申請提現",取消:"取消",提现方式:"提現方式",请选择提现方式:"請選擇提現方式",提现账号:"提現賬號",请输入提现账号:"請輸入提現賬號",我知道了:"我知道了",第一步:"步驟一",第二步:"步驟二",打开Telegram搜索:"打開 Telegram 並搜索",向机器人发送你的:"向機器人發送您的","最后更新: {date}":"最後更新: {date}",还有没支付的订单:"還有未支付的訂單",立即支付:"立即支付",条工单正在处理中:"條工單正在處理中",立即查看:"立即檢視",节点状态:"節點狀態",商品信息:"商品資訊",产品名称:"產品名稱","类型/周期":"類型/週期",产品流量:"產品流量",订单信息:"訂單信息",关闭订单:"關閉訂單",订单号:"訂單號",优惠金额:"優惠金額",旧订阅折抵金额:"舊訂閲折抵金額",退款金额:"退款金額",余额支付:"餘額支付",工单历史:"工單歷史","已用流量将在 {reset_day} 日后重置":"已用流量將在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看節點狀態","当前已使用流量达{rate}%":"當前已用流量達 {rate}%",节点名称:"節點名稱","于 {date} 到期,距离到期还有 {day} 天。":"於 {date} 到期,距離到期還有 {day} 天。","Telegram 讨论组":"Telegram 討論組",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"該訂閲無法續費,僅允許新用戶購買",重置当月流量:"重置當月流量","流量明细仅保留近月数据以供查询。":"流量明細僅保留近一個月資料以供查詢。",扣费倍率:"扣费倍率",支付手续费:"支付手續費",续费订阅:"續費訂閲",学习如何使用:"學習如何使用",快速将节点导入对应客户端进行使用:"快速將訂閲導入對應的客戶端進行使用",对您当前的订阅进行续费:"對您的當前訂閲進行續費",对您当前的订阅进行购买:"重新購買您的當前訂閲",捷径:"捷徑","不会使用,查看使用教程":"不會使用,檢視使用檔案",使用支持扫码的客户端进行订阅:"使用支持掃碼的客戶端進行訂閲",扫描二维码订阅:"掃描二維碼訂閲",续费:"續費",购买:"購買",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"確定取消",返回我的订单:"返回我的訂單","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已經付款,取消訂單可能會導致支付失敗,確定要取消訂單嗎?",选择最适合你的计划:"選擇最適合您的計劃",全部:"全部",按周期:"按週期",遇到问题:"遇到問題",遇到问题可以通过工单与我们沟通:"遇到問題您可以通過工單與我們溝通",按流量:"按流量",搜索文档:"搜尋文檔",技术支持:"技術支援",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"如果您的訂閱地址或帳戶洩漏並被他人濫用,您可以在此重置訂閱資訊,以避免不必要的損失。",再次输入密码:"請再次輸入密碼",返回登陆:"返回登入",选填:"選填",必填:"必填",最后回复时间:"最後回覆時間",请选项工单等级:"請選擇工單優先級",回复:"回覆",输入内容回复工单:"輸入內容回覆工單",已生成:"已生成",选择协议:"選擇協議",自动:"自動",流量重置包:"流量重置包",复制失败:"複製失敗",提示:"提示","确认退出?":"確認退出?",已退出登录:"已成功登出",请输入邮箱地址:"請輸入電子郵件地址","{second}秒后可重新发送":"{second} 秒後可重新發送",发送成功:"發送成功",请输入账号密码:"請輸入帳號和密碼",请确保两次密码输入一致:"請確保兩次密碼輸入一致",注册成功:"註冊成功","重置密码成功,正在返回登录":"重置密碼成功,正在返回登入",确认取消:"確認取消","请注意,变更订阅会导致当前订阅被覆盖。":"請注意,變更訂閱會導致目前的訂閱被覆蓋。","订单提交成功,正在跳转支付":"訂單提交成功,正在跳轉支付",回复成功:"回覆成功",工单详情:"工單詳情",登录成功:"登入成功","确定退出?":"確定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收銀台",请输入正确的划转金额:"請輸入正確的劃轉金額",划转成功:"劃轉成功",提现方式不能为空:"提現方式不能為空",提现账号不能为空:"提現帳號不能為空",已绑定:"已綁定",创建成功:"創建成功",关闭成功:"關閉成功"},Hk=Object.freeze(Object.defineProperty({__proto__:null,default:I7e},Symbol.toStringTag,{value:"Module"}))});export default O7e(); diff --git a/theme/Xboard/assets/umi.js.br b/theme/Xboard/assets/umi.js.br index 488b499..644dffb 100644 Binary files a/theme/Xboard/assets/umi.js.br and b/theme/Xboard/assets/umi.js.br differ diff --git a/theme/Xboard/assets/umi.js.gz b/theme/Xboard/assets/umi.js.gz index 4db8b49..a3ced01 100644 Binary files a/theme/Xboard/assets/umi.js.gz and b/theme/Xboard/assets/umi.js.gz differ diff --git a/theme/Xboard/config.json b/theme/Xboard/config.json index f1524a2..4268ecd 100644 --- a/theme/Xboard/config.json +++ b/theme/Xboard/config.json @@ -1,35 +1,33 @@ { - "name": "Xboard", - "description": "Xboard", - "version": "1.0.0", - "images": [ - "https://raw.githubusercontent.com/cedar2025/Xboard/master/docs/images/user.png" - ], - "configs": [ - { - "label": "主题色", - "placeholder": "请选择主题颜色", - "field_name": "theme_color", - "field_type": "select", - "select_options": { - "default": "默认(绿色)", - "blue": "蓝色", - "black": "黑色", - "darkblue": "暗蓝色" - }, - "default_value": "default" - }, - { - "label": "背景", - "placeholder": "请输入背景图片URL", - "field_name": "background_url", - "field_type": "input" - }, - { - "label": "自定义页脚HTML", - "placeholder": "可以实现客服JS代码的加入等", - "field_name": "custom_html", - "field_type": "textarea" - } - ] + "name": "Xboard", + "description": "Xboard", + "version": "1.0.0", + "images": "", + "configs": [ + { + "label": "主题色", + "placeholder": "请选择主题颜色", + "field_name": "theme_color", + "field_type": "select", + "select_options": { + "default": "默认(绿色)", + "blue": "蓝色", + "black": "黑色", + "darkblue": "暗蓝色" + }, + "default_value": "default" + }, + { + "label": "背景", + "placeholder": "请输入背景图片URL", + "field_name": "background_url", + "field_type": "input" + }, + { + "label": "自定义页脚HTML", + "placeholder": "可以实现客服JS代码的加入等", + "field_name": "custom_html", + "field_type": "textarea" + } + ] } diff --git a/theme/Xboard/env.example.js b/theme/Xboard/env.example.js new file mode 100644 index 0000000..87c4464 --- /dev/null +++ b/theme/Xboard/env.example.js @@ -0,0 +1,19 @@ +// API地址 +window.routerBase = 'http://127.0.0.1:8000/' +window.settings = { + // 站点名称 + title: 'Xboard', + // 站点描述 + description: 'Xboard', + assets_path: '/assets', + // 主题色 + theme: { + color: 'default', //可选default、blue、black、、darkblue + }, + // 版本号 + version: '0.1.1-dev', + // 登陆背景 + background_url: '', + // 站点LOGO + logo: '', +} diff --git a/theme/Xboard/env.js b/theme/Xboard/env.js new file mode 100644 index 0000000..df2ff57 --- /dev/null +++ b/theme/Xboard/env.js @@ -0,0 +1,18 @@ +window.routerBase = 'http://127.0.0.1:8000/' +window.settings = { + // 站点名称 + title: 'Xboard', + // 主题色 + theme: { + color: 'anyway', //可选default、blue、black、、darkblue + }, + // 站点描述 + description: 'Xboard', + assets_path: '/assets', + // 版本号 + version: '0.1.1-dev', + // 登陆背景 + background_url: '', + // 站点LOGO + logo: '', +} diff --git a/theme/Xboard/index.html b/theme/Xboard/index.html new file mode 100644 index 0000000..edd75bf --- /dev/null +++ b/theme/Xboard/index.html @@ -0,0 +1 @@ +Xboard
\ No newline at end of file