from __future__ import annotations


ENDPOINT_ECS = "https://ctecs-global.ctapi.ctyun.cn"
ENDPOINT_VPC = "https://ctvpc-global.ctapi.ctyun.cn"
ENDPOINT_IMAGE = "https://ctimage-global.ctapi.ctyun.cn"
ENDPOINT_BILLING = "https://acct-global.ctapi.ctyun.cn"

# 默认地区属于 300M 分组，只能购买 300M EIP；60M 地区必须显式写入 REGION_EIP_BANDWIDTHS。
BANDWIDTH_CANDIDATES = [300]
REGION_EIP_BANDWIDTHS = {
    "杭州2": [60],
    "合肥2": [60],
    "南京3": [60],
    "福州25": [60],
    "福州4": [60],
    "西宁2": [60],
}
MIN_ACCOUNT_BALANCE = 100.0
EIP_MAX_NO_PROGRESS_BATCHES = 2
EIP_PARALLEL_WORKERS = 10
EIP_FALLBACK_WORKERS = 5
# EIP 下单后按固定节奏确认到账，满 10 条立即继续，最多等待 60 秒，避免误判也避免拖太久。
EIP_SYNC_CHECK_INTERVAL_SECONDS = 10
EIP_SYNC_CHECK_TOTAL_SECONDS = 60
MONTHLY_DEDICATED_EIP_BANDWIDTH = 1
MONTHLY_DEDICATED_EIP_CYCLE_COUNT = 1
DEFAULT_ECS_SPEC = "generic-2c4g"
PASSWORD = "cao2002."
ECS_PRIVATE_IP = "10.0.0.10"
HAVIP_RANGE = range(11, 20)
TARGET_EIP_COUNT = 10
TARGET_ECS_COUNT = 1
SECURITY_GROUP_RULES = [("TCP", "1-52"), ("TCP", "54-65535"), ("UDP", "1-52"), ("UDP", "54-65535"), ("ICMP", "Any")]

REGION_SLUGS = {
    "上海7": "shanghai7",
    "武汉4": "wuhan4",
    "合肥2": "hefei2",
    "贵州3": "guizhou3",
    "西安5": "xian5",
    "兰州2": "lanzhou2",
    "辽宁1": "liaoyang1",
    "辽阳1": "liaoyang1",
}

REGION_ALIASES = {
    "辽宁1": "辽阳1",
}
