Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
784ce61b18 | ||
|
|
4fcd41e45f | ||
|
|
f54df37433 | ||
|
|
013b3d83f8 | ||
|
|
5f9c854dd9 | ||
|
|
c4d6b527ab | ||
|
|
2b6a907d80 | ||
|
|
64d95a6613 | ||
|
|
b678d4434e | ||
|
|
1652ede4e2 | ||
|
|
18cebeda96 | ||
|
|
73f7750caf | ||
|
|
b4ac59a78f | ||
|
|
7a0e35f7cf | ||
|
|
2c79d48fc6 | ||
|
|
09aab23d01 | ||
|
|
486db6b863 |
No files matched your search
@@ -0,0 +1,250 @@
|
||||
// NS-3 MANET 仿真用户配置
|
||||
// 生成时间: 2026-05-18T01:34:27.310951
|
||||
|
||||
--- General [全局] ---
|
||||
// [全局] 节点数量:仿真中同时活跃的节点总数(2-100)
|
||||
nNodes = 5
|
||||
|
||||
// [全局] 仿真时长:单轮仿真的持续时间(秒)
|
||||
simulationTime = 300.0
|
||||
|
||||
// [全局] 随机种子:控制伪随机数生成器的初始状态
|
||||
seed = 1
|
||||
|
||||
// [全局] 运行编号:用于区分同一配置下的多次重复实验
|
||||
run = 1
|
||||
|
||||
// [全局] 日志组件:逗号分隔的 ns-3 LogComponent 名称
|
||||
logComponents = ""
|
||||
|
||||
--- PHY Model & Channel [全局] ---
|
||||
// [全局] 802.11 标准:决定调制方式和速率表
|
||||
standard = "80211n-2.4GHz"
|
||||
|
||||
// [全局] PHY 模型:yans(简化)或 spectrum(频谱级仿真)
|
||||
phyModel = "yans"
|
||||
|
||||
// [全局] 中心频率:工作频段的中心频率(MHz),默认 2412 MHz(WiFi 2.4GHz Channel 1)
|
||||
frequencyMhz = 2412
|
||||
|
||||
// [全局] 信道带宽:每个信道的带宽(MHz)
|
||||
channelWidthMhz = 20
|
||||
|
||||
// [全局] 数据速率:固定使用的 PHY 数据速率模式
|
||||
dataRate = "HtMcs7"
|
||||
|
||||
--- Propagation [全局] ---
|
||||
// [全局] 传播延迟模型:ConstantSpeed(光速)或 Random
|
||||
propagationDelay = "ConstantSpeed"
|
||||
|
||||
// [全局] 路径损耗模型:FreeSpace/LogDistance/TwoRayGround 等
|
||||
pathLossModel = "FreeSpace"
|
||||
|
||||
// [全局] 路径损耗指数:LogDistance 模型中的衰减指数
|
||||
pathLossExponent = 2.0
|
||||
|
||||
// [全局] 1m 参考损耗:参考距离 1 米处的路径损耗(dB)
|
||||
pathLossRefLoss = 46.6777
|
||||
|
||||
// [全局] 参考距离:计算参考损耗的距离(米)
|
||||
pathLossRefDistance = 1.0
|
||||
|
||||
// [全局] 启用衰落:是否叠加小尺度衰落模型
|
||||
enableFading = false
|
||||
|
||||
// [全局] 衰落模型:Nakagami(默认)或 Jakes
|
||||
fadingModel = "Nakagami"
|
||||
|
||||
// [全局] Nakagami M0:近距离(d < D1)的衰落参数
|
||||
nakagamiM0 = 1.5
|
||||
|
||||
// [全局] Nakagami M1:中距离(D1 <= d < D2)的衰落参数
|
||||
nakagamiM1 = 1.0
|
||||
|
||||
// [全局] Nakagami M2:远距离(d >= D2)的衰落参数
|
||||
nakagamiM2 = 0.75
|
||||
|
||||
// [全局] Nakagami 距离 D1:M0/M1 分界的距离阈值(米)
|
||||
nakagamiD1 = 50.0
|
||||
|
||||
// [全局] Nakagami 距离 D2:M1/M2 分界的距离阈值(米)
|
||||
nakagamiD2 = 100.0
|
||||
|
||||
// [全局] Rician K 因子:直射路径与散射路径的功率比(dB),仅 fadingModel=Rician 时生效
|
||||
ricianK = 9.0
|
||||
|
||||
--- Obstacles [全局] ---
|
||||
// [全局] 启用障碍物:是否叠加地形/障碍物模型(阴影 + 穿透 + 绕射)
|
||||
enableObstacles = false
|
||||
|
||||
// [全局] 阴影标准差:对数正态阴影衰落的标准差(dB)
|
||||
obstacleShadowingSigma = 4.0
|
||||
|
||||
// [全局] 穿透损耗:NLOS 路径的额外穿透损耗(dB)
|
||||
obstaclePenetrationLoss = 10.0
|
||||
|
||||
// [全局] 启用绕射:是否计算障碍物边缘的刀边绕射损耗
|
||||
obstacleDiffractionEnabled = true
|
||||
|
||||
// [全局] 障碍物配置:JSON 数组描述矩形障碍物 [{x,y,w,h,loss}]
|
||||
obstaclesJson = "[]"
|
||||
|
||||
--- Range [全局/动态可调] ---
|
||||
// [全局/动态可调] 目标覆盖范围:叠加在传播模型上的硬截断距离(米),运行时可通过 /api/env/range 修改
|
||||
rangeTargetM = 4000.0
|
||||
|
||||
--- MAC Network [全局] ---
|
||||
// [全局] SSID:网络标识符
|
||||
ssid = "adhoc-30ns3"
|
||||
|
||||
// [全局] BSSID:基本服务集标识符(MAC 格式)
|
||||
bssid = "00:00:00:00:AD:H0"
|
||||
|
||||
// [全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用
|
||||
macMode = "mesh"
|
||||
|
||||
// [全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel
|
||||
rateControl = "Constant"
|
||||
|
||||
--- Routing [全局] ---
|
||||
// [全局] 路由协议:aodv/olsr/dsdv/dsr/none
|
||||
routingProtocol = "aodv"
|
||||
|
||||
// [全局] AODV Hello 间隔:邻居发现广播间隔(秒)
|
||||
aodvHelloInterval = 1.0
|
||||
|
||||
// [全局] AODV RREQ 重试:路由请求的最大重传次数
|
||||
aodvRreqRetries = 2
|
||||
|
||||
// [全局] AODV 活跃路由超时:未使用路由的过期时间(秒)
|
||||
aodvActiveRouteTimeout = 10.0
|
||||
|
||||
// [全局] AODV 删除周期:路由表项的清理周期(秒)
|
||||
aodvDeletePeriod = 5.0
|
||||
|
||||
// [全局] AODV 网络直径:预估的网络最大跳数
|
||||
aodvNetDiameter = 35
|
||||
|
||||
// [全局] AODV 启用 Hello:是否使用 Hello 消息维护邻居关系
|
||||
aodvEnableHello = true
|
||||
|
||||
// [全局] OLSR Hello 间隔:拓扑发现广播间隔(秒)
|
||||
olsrHelloInterval = 2.0
|
||||
|
||||
// [全局] OLSR TC 间隔:拓扑控制消息发送间隔(秒)
|
||||
olsrTcInterval = 5.0
|
||||
|
||||
// [全局] OLSR 意愿值:节点转发 TC 消息的意愿(0-7)
|
||||
olsrWillingness = 7
|
||||
|
||||
// [全局] DSDV 定期更新间隔:路由表广播间隔(秒)
|
||||
dsdvPeriodicUpdateInterval = 15.0
|
||||
|
||||
// [全局] DSDV 稳定时间:等待路由收敛的最长时间(秒)
|
||||
dsdvSettlingTime = 6.0
|
||||
|
||||
--- Mobility [全局] ---
|
||||
// [全局] 移动模型:random-walk/gauss-markov/grid/constant
|
||||
mobilityModel = "random-walk"
|
||||
|
||||
// [全局] 区域最小 X:仿真区域的左边界(米)
|
||||
mobilityMinX = 0.0
|
||||
|
||||
// [全局] 区域最大 X:仿真区域的右边界(米)
|
||||
mobilityMaxX = 5000.0
|
||||
|
||||
// [全局] 区域最小 Y:仿真区域的下边界(米)
|
||||
mobilityMinY = 0.0
|
||||
|
||||
// [全局] 区域最大 Y:仿真区域的上边界(米)
|
||||
mobilityMaxY = 5000.0
|
||||
|
||||
// [全局] 随机游走最小速度:节点最小移动速度(m/s)
|
||||
rwMinSpeed = 0.5
|
||||
|
||||
// [全局] 随机游走最大速度:节点最大移动速度(m/s)
|
||||
rwMaxSpeed = 3.0
|
||||
|
||||
// [全局] 随机游走距离:Distance 模式下每次改变方向前移动的距离(米)
|
||||
rwDistance = 200.0
|
||||
|
||||
// [全局] 随机游走模式:Time(按时间)或 Distance(按距离)
|
||||
rwMode = "Time"
|
||||
|
||||
// [全局] 随机游走时间:Time 模式下每次改变方向前的时间(秒)
|
||||
rwTime = 1.0
|
||||
|
||||
// [全局] 网格起始 X:Grid 布局的左上角 X 坐标(米)
|
||||
gridMinX = 100.0
|
||||
|
||||
// [全局] 网格起始 Y:Grid 布局的左上角 Y 坐标(米)
|
||||
gridMinY = 100.0
|
||||
|
||||
// [全局] 网格 X 间距:Grid 布局中节点水平间距(米)
|
||||
gridDeltaX = 800.0
|
||||
|
||||
// [全局] 网格 Y 间距:Grid 布局中节点垂直间距(米)
|
||||
gridDeltaY = 800.0
|
||||
|
||||
// [全局] 网格每行节点数:Grid 布局每行的节点数量
|
||||
gridWidth = 6
|
||||
|
||||
// [全局] 网格布局:RowFirst(按行填充)或 ColumnFirst(按列填充)
|
||||
gridLayout = "RowFirst"
|
||||
|
||||
// [全局] 高斯-马尔可夫 Alpha:速度记忆系数(0=完全随机, 1=直线运动)
|
||||
gmAlpha = 0.85
|
||||
|
||||
--- Tracing [全局] ---
|
||||
// [全局] PCAP 跟踪:是否生成 PCAP 抓包文件
|
||||
pcap = true
|
||||
|
||||
// [全局] ASCII 跟踪:是否生成 ASCII 文本跟踪文件
|
||||
ascii = false
|
||||
|
||||
// [全局] 流监控:是否启用 ns-3 FlowMonitor 端到端统计
|
||||
flowMonitor = true
|
||||
|
||||
// [全局] PCAP 文件名前缀:跟踪文件的路径前缀
|
||||
pcapPrefix = "manet-30nodes-adhoc"
|
||||
|
||||
// [全局] 移动性跟踪:是否记录节点位置轨迹
|
||||
enableMobilityTrace = false
|
||||
|
||||
--- PHY Device [节点] ---
|
||||
// [节点] 发射功率起始:最小发射功率(dBm),支持运行时单节点调整
|
||||
txPowerStart = 30.0
|
||||
|
||||
// [节点] 发射功率结束:最大发射功率(dBm),支持运行时单节点调整
|
||||
txPowerEnd = 30.0
|
||||
|
||||
// [节点] 发射功率等级数:功率控制的分级数量
|
||||
txPowerLevels = 1
|
||||
|
||||
// [节点] 接收灵敏度:可解调信号的最小接收功率(dBm),支持运行时单节点调整
|
||||
rxSensitivity = -92.0
|
||||
|
||||
// [节点] CCA 阈值:信道评估的忙碌判定门限(dBm)
|
||||
ccaThreshold = -82.0
|
||||
|
||||
// [节点] 天线增益:全向天线增益(dBi)
|
||||
antennaGain = 3.0
|
||||
|
||||
--- MAC Device [预留] ---
|
||||
// [预留] RTS/CTS 阈值:当前代码未接入 ns-3
|
||||
rtsCtsThreshold = 2200
|
||||
|
||||
// [预留] 分片阈值:当前代码未接入 ns-3
|
||||
fragmentationThreshold = 2200
|
||||
|
||||
// [预留] 非单播模式:当前代码未接入 ns-3
|
||||
nonUnicastMode = false
|
||||
|
||||
// [预留] 信标间隔:当前代码未接入 ns-3
|
||||
beaconInterval = 100
|
||||
|
||||
// [预留] 最小竞争窗口:当前代码未接入 ns-3
|
||||
cwMin = 15
|
||||
|
||||
// [预留] 最大竞争窗口:当前代码未接入 ns-3
|
||||
cwMax = 1023
|
||||
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"ip": "100.100.100.9",
|
||||
"ssh_user": "binnary",
|
||||
"ssh_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn\nNhAAAAAwEAAQAAAYEA3R43jmsBj4MjiDTGoDraAntNDQDLJq0P7ecVj07NSiEJPyl2P1uD\ngPJfDB+VzNzcnHIyu4zmXvuqNF7FbWkZ58R8Q+PfZBMeNY5wQJ9eFYcl6gpGzwmxiCYKP+\ntRcFt2gAQwjym2Lr726SfJeSAMdnxuaP2x1RhwqBRpK7dB1D6QqUvbbhBOpDyuwR+Dco55\n+N7DmyF36uEqOU3KtEGsT57GcIbvJNexghKtS8AacUAjLWRR8J9BsB2LraDHKl16sUzXof\nlArJhNjlfkDTlH7gnEF3tQru6GRuYcL2BP+1FS9WGzGCL7LD6cbkHeS3ZlVlsWUncalCx9\nM0BM7CkBBIghISbALFTr2srC0xkzu9rTQYRhQtFL6/azRjK2266DNOnrSMGLKh3JRKK12x\n/CPmHYE/Ofb3woCJXymDzPCAMtXNuO3a6KTfqd9nlik4uBIHpJmmNgMWvFkMLY9IUS/7qK\njF9cbUFZ/wBVtsjRY8NA35us53NUdOAP0NsdSezZAAAFkBTQDhsU0A4bAAAAB3NzaC1yc2\nEAAAGBAN0eN45rAY+DI4g0xqA62gJ7TQ0AyyatD+3nFY9OzUohCT8pdj9bg4DyXwwflczc\n3JxyMruM5l77qjRexW1pGefEfEPj32QTHjWOcECfXhWHJeoKRs8JsYgmCj/rUXBbdoAEMI\n8pti6+9uknyXkgDHZ8bmj9sdUYcKgUaSu3QdQ+kKlL224QTqQ8rsEfg3KOefjew5shd+rh\nKjlNyrRBrE+exnCG7yTXsYISrUvAGnFAIy1kUfCfQbAdi62gxypderFM16H5QKyYTY5X5A\n05R+4JxBd7UK7uhkbmHC9gT/tRUvVhsxgi+yw+nG5B3kt2ZVZbFlJ3GpQsfTNATOwpAQSI\nISEmwCxU69rKwtMZM7va00GEYULRS+v2s0YyttuugzTp60jBiyodyUSitdsfwj5h2BPzn2\n98KAiV8pg8zwgDLVzbjt2uik36nfZ5YpOLgSB6SZpjYDFrxZDC2PSFEv+6ioxfXG1BWf8A\nVbbI0WPDQN+brOdzVHTgD9DbHUns2QAAAAMBAAEAAAGAZM/LhY+M2RjxgL6LFm9uiPYdVY\nHYnUwG+LDEOB+14ge41wa4xj8bcBVQt07JNes2W8+HCNI/D+wOmCzjNzRVXsFK5IsGhPJg\ncgt8a0Idm5QP+anwyaECQ3AQeT741NCmcMw4NXVPffWLzhZZOXOeqwClOBH+W4j2h/MyVf\n+JsFJMExumMgKWUDPoet06yWZi/s/Vf6tdKIW7AgBRHCja/jwF/jTO4E3EvOh2ARTXGW4j\n+6SC5UE+qiR2U9V7KHoQRrRY0CqC1BS9NceE0Z5rJhOjGu77nfv3dOpsHNHIzekOPO9z0T\n8Ed6ok0Fktabf87qioYdl0KIpR59/xOere1NreZVlV+e6R5sq91rKNMIm08UdV72/akmd6\nZmaUb0ZmRz2bGoxPRdxiO5Ps5efGZx8KqUk9ng7T8HIeIdSl+q01I+OjErB6iApScbUaUQ\nJMOwYWUQwFvboB1x5h5MKVnAt2PIetnz9YDVqKxK/nzISb4QT4O0NFaMOltrSqVB2HAAAA\nwQC5EN43Q4ZRG7q4g0yImQPB1Kp/I0YYDQn+NHd0dHhgrM5iL1KUB6Z9vD8ellF5vqjHb3\nWWbSy8eqfLuMMrS/J5SSB4072wrsE1nN4/KYzo2OL3O0ocY4larG0TSxrCE+GXdTsQvcFe\nnOCiMcFUkpMSw4pF3ndZmQmHBGmFlaMrgjwkQv33KyA/xgaY2z1pqQmstxN1cppA7ob/YL\n65RV13Psv/w2rztAEMHvbcWN9mLq5qoqGNjoqQkOZk71t9F94AAADBAPP9Z85oItFYK3kP\n9pvGqMTOi2uVsKbo5+f1Ah++pt9qG44wHlwwef3OOCntCcsKPck7P31IdGVhDDJpR5xPea\ncI13GlFwrdcaOQReV5MCApHZ2Jb7IhdWW16CazDUXrlF+Gi7aRp3kN2P/SqL1ol1p9IRdG\n6pVcrlg56NZcKmVuI6nywMikGpABn2GeZVE22SR7jUeQkmZSNwFkl0ynuNkasFpZn+mNC3\nAY7uD9FkcwVSFW2ixD00yf5ZAqi5pBPwAAAMEA6ACYpKAsq1bPOWryhLOj2zGful8V2dqa\n0g8gkgrDrQiQqo9r3lxuHMEWUU/DqaJaT0O0E96a2zU7bW/62P0Qzp2PUFRmFN8pUxS7rL\nVLBhxbUuJW6SV5G6plmtcTh92xn9YiphUFwoSILN+A3Q65FfFAUz+O95nK9dBAGCx6VVVy\nAqa9S5DCflZCQOmbDONtVMIr7h2A6+C+WqhR/BB7NnPlukfCFYpfrd3wBRr9wsJOQQxYwj\n23iVKewzC+BrPnAAAAFGJpbm5hcnlARFhQNDgwMC00MDVDAQIDBAUG\n-----END OPENSSH PRIVATE KEY-----\n",
|
||||
"capacity": 1,
|
||||
"labels": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"ip": "192.168.100.10",
|
||||
"role": "server",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"ip": "192.168.100.11",
|
||||
"role": "client",
|
||||
"host": "100.100.100.9",
|
||||
"hostType": "host-manet"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"ip": "192.168.100.12",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"ip": "192.168.100.13",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"ip": "192.168.100.14",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,250 @@
|
||||
// NS-3 MANET 仿真用户配置
|
||||
// 生成时间: 2026-05-18T01:40:52.427125
|
||||
|
||||
--- General [全局] ---
|
||||
// [全局] 节点数量:仿真中同时活跃的节点总数(2-100)
|
||||
nNodes = 5
|
||||
|
||||
// [全局] 仿真时长:单轮仿真的持续时间(秒)
|
||||
simulationTime = 180.0
|
||||
|
||||
// [全局] 随机种子:控制伪随机数生成器的初始状态
|
||||
seed = 1
|
||||
|
||||
// [全局] 运行编号:用于区分同一配置下的多次重复实验
|
||||
run = 1
|
||||
|
||||
// [全局] 日志组件:逗号分隔的 ns-3 LogComponent 名称
|
||||
logComponents = ""
|
||||
|
||||
--- PHY Model & Channel [全局] ---
|
||||
// [全局] 802.11 标准:决定调制方式和速率表
|
||||
standard = "80211n-2.4GHz"
|
||||
|
||||
// [全局] PHY 模型:yans(简化)或 spectrum(频谱级仿真)
|
||||
phyModel = "yans"
|
||||
|
||||
// [全局] 中心频率:工作频段的中心频率(MHz),默认 2412 MHz(WiFi 2.4GHz Channel 1)
|
||||
frequencyMhz = 2412
|
||||
|
||||
// [全局] 信道带宽:每个信道的带宽(MHz)
|
||||
channelWidthMhz = 20
|
||||
|
||||
// [全局] 数据速率:固定使用的 PHY 数据速率模式
|
||||
dataRate = "HtMcs7"
|
||||
|
||||
--- Propagation [全局] ---
|
||||
// [全局] 传播延迟模型:ConstantSpeed(光速)或 Random
|
||||
propagationDelay = "ConstantSpeed"
|
||||
|
||||
// [全局] 路径损耗模型:FreeSpace/LogDistance/TwoRayGround 等
|
||||
pathLossModel = "FreeSpace"
|
||||
|
||||
// [全局] 路径损耗指数:LogDistance 模型中的衰减指数
|
||||
pathLossExponent = 2.0
|
||||
|
||||
// [全局] 1m 参考损耗:参考距离 1 米处的路径损耗(dB)
|
||||
pathLossRefLoss = 46.6777
|
||||
|
||||
// [全局] 参考距离:计算参考损耗的距离(米)
|
||||
pathLossRefDistance = 1.0
|
||||
|
||||
// [全局] 启用衰落:是否叠加小尺度衰落模型
|
||||
enableFading = false
|
||||
|
||||
// [全局] 衰落模型:Nakagami(默认)或 Jakes
|
||||
fadingModel = "Nakagami"
|
||||
|
||||
// [全局] Nakagami M0:近距离(d < D1)的衰落参数
|
||||
nakagamiM0 = 1.5
|
||||
|
||||
// [全局] Nakagami M1:中距离(D1 <= d < D2)的衰落参数
|
||||
nakagamiM1 = 1.0
|
||||
|
||||
// [全局] Nakagami M2:远距离(d >= D2)的衰落参数
|
||||
nakagamiM2 = 0.75
|
||||
|
||||
// [全局] Nakagami 距离 D1:M0/M1 分界的距离阈值(米)
|
||||
nakagamiD1 = 50.0
|
||||
|
||||
// [全局] Nakagami 距离 D2:M1/M2 分界的距离阈值(米)
|
||||
nakagamiD2 = 100.0
|
||||
|
||||
// [全局] Rician K 因子:直射路径与散射路径的功率比(dB),仅 fadingModel=Rician 时生效
|
||||
ricianK = 9.0
|
||||
|
||||
--- Obstacles [全局] ---
|
||||
// [全局] 启用障碍物:是否叠加地形/障碍物模型(阴影 + 穿透 + 绕射)
|
||||
enableObstacles = false
|
||||
|
||||
// [全局] 阴影标准差:对数正态阴影衰落的标准差(dB)
|
||||
obstacleShadowingSigma = 4.0
|
||||
|
||||
// [全局] 穿透损耗:NLOS 路径的额外穿透损耗(dB)
|
||||
obstaclePenetrationLoss = 10.0
|
||||
|
||||
// [全局] 启用绕射:是否计算障碍物边缘的刀边绕射损耗
|
||||
obstacleDiffractionEnabled = true
|
||||
|
||||
// [全局] 障碍物配置:JSON 数组描述矩形障碍物 [{x,y,w,h,loss}]
|
||||
obstaclesJson = "[]"
|
||||
|
||||
--- Range [全局/动态可调] ---
|
||||
// [全局/动态可调] 目标覆盖范围:叠加在传播模型上的硬截断距离(米),运行时可通过 /api/env/range 修改
|
||||
rangeTargetM = 4000.0
|
||||
|
||||
--- MAC Network [全局] ---
|
||||
// [全局] SSID:网络标识符
|
||||
ssid = "adhoc-30ns3"
|
||||
|
||||
// [全局] BSSID:基本服务集标识符(MAC 格式)
|
||||
bssid = "00:00:00:00:AD:H0"
|
||||
|
||||
// [全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用
|
||||
macMode = "mesh"
|
||||
|
||||
// [全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel
|
||||
rateControl = "Constant"
|
||||
|
||||
--- Routing [全局] ---
|
||||
// [全局] 路由协议:aodv/olsr/dsdv/dsr/none
|
||||
routingProtocol = "aodv"
|
||||
|
||||
// [全局] AODV Hello 间隔:邻居发现广播间隔(秒)
|
||||
aodvHelloInterval = 1.0
|
||||
|
||||
// [全局] AODV RREQ 重试:路由请求的最大重传次数
|
||||
aodvRreqRetries = 2
|
||||
|
||||
// [全局] AODV 活跃路由超时:未使用路由的过期时间(秒)
|
||||
aodvActiveRouteTimeout = 10.0
|
||||
|
||||
// [全局] AODV 删除周期:路由表项的清理周期(秒)
|
||||
aodvDeletePeriod = 5.0
|
||||
|
||||
// [全局] AODV 网络直径:预估的网络最大跳数
|
||||
aodvNetDiameter = 35
|
||||
|
||||
// [全局] AODV 启用 Hello:是否使用 Hello 消息维护邻居关系
|
||||
aodvEnableHello = true
|
||||
|
||||
// [全局] OLSR Hello 间隔:拓扑发现广播间隔(秒)
|
||||
olsrHelloInterval = 2.0
|
||||
|
||||
// [全局] OLSR TC 间隔:拓扑控制消息发送间隔(秒)
|
||||
olsrTcInterval = 5.0
|
||||
|
||||
// [全局] OLSR 意愿值:节点转发 TC 消息的意愿(0-7)
|
||||
olsrWillingness = 7
|
||||
|
||||
// [全局] DSDV 定期更新间隔:路由表广播间隔(秒)
|
||||
dsdvPeriodicUpdateInterval = 15.0
|
||||
|
||||
// [全局] DSDV 稳定时间:等待路由收敛的最长时间(秒)
|
||||
dsdvSettlingTime = 6.0
|
||||
|
||||
--- Mobility [全局] ---
|
||||
// [全局] 移动模型:random-walk/gauss-markov/grid/constant
|
||||
mobilityModel = "grid"
|
||||
|
||||
// [全局] 区域最小 X:仿真区域的左边界(米)
|
||||
mobilityMinX = 0.0
|
||||
|
||||
// [全局] 区域最大 X:仿真区域的右边界(米)
|
||||
mobilityMaxX = 5000.0
|
||||
|
||||
// [全局] 区域最小 Y:仿真区域的下边界(米)
|
||||
mobilityMinY = 0.0
|
||||
|
||||
// [全局] 区域最大 Y:仿真区域的上边界(米)
|
||||
mobilityMaxY = 5000.0
|
||||
|
||||
// [全局] 随机游走最小速度:节点最小移动速度(m/s)
|
||||
rwMinSpeed = 0.5
|
||||
|
||||
// [全局] 随机游走最大速度:节点最大移动速度(m/s)
|
||||
rwMaxSpeed = 3.0
|
||||
|
||||
// [全局] 随机游走距离:Distance 模式下每次改变方向前移动的距离(米)
|
||||
rwDistance = 200.0
|
||||
|
||||
// [全局] 随机游走模式:Time(按时间)或 Distance(按距离)
|
||||
rwMode = "Time"
|
||||
|
||||
// [全局] 随机游走时间:Time 模式下每次改变方向前的时间(秒)
|
||||
rwTime = 1.0
|
||||
|
||||
// [全局] 网格起始 X:Grid 布局的左上角 X 坐标(米)
|
||||
gridMinX = 100.0
|
||||
|
||||
// [全局] 网格起始 Y:Grid 布局的左上角 Y 坐标(米)
|
||||
gridMinY = 100.0
|
||||
|
||||
// [全局] 网格 X 间距:Grid 布局中节点水平间距(米)
|
||||
gridDeltaX = 50.0
|
||||
|
||||
// [全局] 网格 Y 间距:Grid 布局中节点垂直间距(米)
|
||||
gridDeltaY = 800.0
|
||||
|
||||
// [全局] 网格每行节点数:Grid 布局每行的节点数量
|
||||
gridWidth = 5
|
||||
|
||||
// [全局] 网格布局:RowFirst(按行填充)或 ColumnFirst(按列填充)
|
||||
gridLayout = "RowFirst"
|
||||
|
||||
// [全局] 高斯-马尔可夫 Alpha:速度记忆系数(0=完全随机, 1=直线运动)
|
||||
gmAlpha = 0.85
|
||||
|
||||
--- Tracing [全局] ---
|
||||
// [全局] PCAP 跟踪:是否生成 PCAP 抓包文件
|
||||
pcap = true
|
||||
|
||||
// [全局] ASCII 跟踪:是否生成 ASCII 文本跟踪文件
|
||||
ascii = false
|
||||
|
||||
// [全局] 流监控:是否启用 ns-3 FlowMonitor 端到端统计
|
||||
flowMonitor = true
|
||||
|
||||
// [全局] PCAP 文件名前缀:跟踪文件的路径前缀
|
||||
pcapPrefix = "manet-30nodes-adhoc"
|
||||
|
||||
// [全局] 移动性跟踪:是否记录节点位置轨迹
|
||||
enableMobilityTrace = false
|
||||
|
||||
--- PHY Device [节点] ---
|
||||
// [节点] 发射功率起始:最小发射功率(dBm),支持运行时单节点调整
|
||||
txPowerStart = 20.0
|
||||
|
||||
// [节点] 发射功率结束:最大发射功率(dBm),支持运行时单节点调整
|
||||
txPowerEnd = 30.0
|
||||
|
||||
// [节点] 发射功率等级数:功率控制的分级数量
|
||||
txPowerLevels = 1
|
||||
|
||||
// [节点] 接收灵敏度:可解调信号的最小接收功率(dBm),支持运行时单节点调整
|
||||
rxSensitivity = -92.0
|
||||
|
||||
// [节点] CCA 阈值:信道评估的忙碌判定门限(dBm)
|
||||
ccaThreshold = -82.0
|
||||
|
||||
// [节点] 天线增益:全向天线增益(dBi)
|
||||
antennaGain = 3.0
|
||||
|
||||
--- MAC Device [预留] ---
|
||||
// [预留] RTS/CTS 阈值:当前代码未接入 ns-3
|
||||
rtsCtsThreshold = 2200
|
||||
|
||||
// [预留] 分片阈值:当前代码未接入 ns-3
|
||||
fragmentationThreshold = 2200
|
||||
|
||||
// [预留] 非单播模式:当前代码未接入 ns-3
|
||||
nonUnicastMode = false
|
||||
|
||||
// [预留] 信标间隔:当前代码未接入 ns-3
|
||||
beaconInterval = 100
|
||||
|
||||
// [预留] 最小竞争窗口:当前代码未接入 ns-3
|
||||
cwMin = 15
|
||||
|
||||
// [预留] 最大竞争窗口:当前代码未接入 ns-3
|
||||
cwMax = 1023
|
||||
@@ -7,7 +7,7 @@
|
||||
| 文档版本 | v2.0 |
|
||||
| 更新日期 | 2026-05-02 |
|
||||
| 适用范围 | manet-30ns3/web-manager/ + manet-30ns3/ 全栈 |
|
||||
| 状态 | 已实现并验证 |
|
||||
| 状态 | 需求基线;实际支持范围与验证边界见 manet-30ns3/README.md |
|
||||
|
||||
---
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| 子功能 | 状态 | 说明 |
|
||||
|--------|------|------|
|
||||
| R1.1 独立网络命名空间 | ✅ | 每个节点 `network_mode="none"`,通过 veth 注入 |
|
||||
| R1.2 Linux 网桥聚合 | ✅ | `br-ns3` 连接所有 veth 宿主端 + TAP 设备 |
|
||||
| R1.2 Linux 网桥聚合 | ✅ | 每节点独立网桥,仅连接本节点 veth 宿主端 + TAP,禁止共享桥绕过 ns-3 |
|
||||
| R1.3 强制 ns-3 转发 | ✅ | 节点间无直接路径,所有帧必经 ns-3 PHY/MAC |
|
||||
| R1.4 IP 地址分配 | ✅ | 子网 `192.168.100.0/24`,节点 i → `.10+i` |
|
||||
| R1.5 节点角色定义 | ✅ | server(0)、gateway(15)、client(其余) |
|
||||
@@ -186,7 +186,7 @@ def load_config(*, file_path=None, overrides=None, preset=None):
|
||||
| urban | 16 节点、LogDistance n=3.5、Nakagami 衰落、2 km、AARF |
|
||||
| rural | 16 节点、FreeSpace、Grid 8×8 km、33 dBm、OLSR |
|
||||
| debug | 5 节点、adhoc、无路由、Grid 300×300 m、ASCII trace |
|
||||
| tactical | 8 节点、Grid 5×5 km、UHF 590 MHz、6 Mbps、4 km |
|
||||
| tactical | 10 节点、Grid 5×5 km、UHF 590 MHz、6 Mbps、4 km |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,849 @@
|
||||
# MANET NS-3 容器化仿真系统 — 用户手册
|
||||
|
||||
## 目录
|
||||
|
||||
- [1. 概述](#1-概述)
|
||||
- [2. 系统要求](#2-系统要求)
|
||||
- [3. 安装与启动](#3-安装与启动)
|
||||
- [4. 快速开始:第一次仿真](#4-快速开始第一次仿真)
|
||||
- [5. Web 管理面板](#5-web-管理面板)
|
||||
- [6. 节点管理](#6-节点管理)
|
||||
- [7. 仿真配置详解](#7-仿真配置详解)
|
||||
- [8. 远端节点与 VXLAN](#8-远端节点与-vxlan)
|
||||
- [9. 测试](#9-测试)
|
||||
- [10. REST API 参考](#10-rest-api-参考)
|
||||
- [11. 架构原理](#11-架构原理)
|
||||
- [12. 故障排查](#12-故障排查)
|
||||
- [13. 常见问题](#13-常见问题)
|
||||
|
||||
---
|
||||
|
||||
## 1. 概述
|
||||
|
||||
本系统是一套**容器化 MANET(移动自组网)仿真平台**。核心能力是将每个 MANET 节点放入独立的 Docker 容器中,并强制所有节点间流量经过 NS-3 的 802.11 信道模型(PHY/MAC/传播/路由)。
|
||||
|
||||
### 核心特性
|
||||
|
||||
- **每节点独立容器**:`network_mode="none"`,通过 veth + TAP 接入 NS-3
|
||||
- **两种 MAC 模式**:802.11s Mesh(HWMP L2 多跳)和 802.11 AdHoc(IBSS 单跳)
|
||||
- **80+ 可配置参数**:频率、带宽、功率、路径损耗、移动模型、路由协议等
|
||||
- **实时遥测**:节点位置、邻居、吞吐量、延迟,通过 WebSocket 5Hz 推送
|
||||
- **Web 管理面板**:React 19 前端,实时查看操控
|
||||
- **远端节点支持**:通过 VXLAN 隧道将远端物理主机纳入仿真网络
|
||||
- **三种用户软件部署模式**:bind(挂载代码)、image(自定义镜像)、exec(运行时注入)
|
||||
|
||||
### 典型应用场景
|
||||
|
||||
| 场景 | 预设 | 说明 |
|
||||
|------|------|------|
|
||||
| 冒烟测试 | `debug` | 5 节点,Grid 50m,FreeSpace 路径损耗 |
|
||||
| 城市环境 | `urban` | 高密度,LogDistance n=3.5,Nakagami 衰落 |
|
||||
| 开阔野外 | `rural` | 大范围,FreeSpace,Grid 8km |
|
||||
| 战术通信 | `tactical` | UHF 590MHz,TwoRayGround,Tx=37dBm |
|
||||
| WiFi 频段测试 | `wifi-band-test-2.4g` / `wifi-band-test-5g` | 不同频段基准 |
|
||||
| 多跳测试 | `wifi-adhoc-multihop` | 大规模拓扑 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 系统要求
|
||||
|
||||
### 硬件要求
|
||||
|
||||
| 项目 | 最低 | 推荐 |
|
||||
|------|------|------|
|
||||
| 架构 | x86_64 (linux/amd64) | x86_64 |
|
||||
| CPU | 4 核 | 8 核+ |
|
||||
| 内存 | 4 GB | 16 GB |
|
||||
| 磁盘 | 10 GB | 50 GB(含 NS-3 构建)|
|
||||
|
||||
### 软件要求
|
||||
|
||||
- **操作系统**:Ubuntu 20.04 / 22.04(仅 Linux)
|
||||
- **Docker**:≥ 20.10
|
||||
- **内核模块**:`tun`、`tap`、`bridge`
|
||||
- **远端节点还需**:SSH 访问、远端主机 sudo 权限
|
||||
|
||||
### 内核模块加载
|
||||
|
||||
```bash
|
||||
sudo modprobe tun
|
||||
sudo modprobe tap
|
||||
sudo modprobe bridge
|
||||
lsmod | grep -E 'tun|tap|bridge'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 安装与启动
|
||||
|
||||
本系统提供四种启动方式,按推荐程度排列:
|
||||
|
||||
### 方式一:Docker — 本地构建(推荐开发)
|
||||
|
||||
克隆仓库并在项目目录内构建镜像:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/clawdbuddy/adhoc.git
|
||||
cd adhoc/manet-30ns3
|
||||
|
||||
# 构建节点镜像
|
||||
docker compose --profile build build node-image-builder
|
||||
|
||||
# 构建控制器镜像(NS-3.47 + cppyy,耗时约 30-60 分钟)
|
||||
docker compose build controller
|
||||
|
||||
# 启动控制器
|
||||
docker compose up -d controller
|
||||
|
||||
# 验证健康
|
||||
curl localhost:8000/api/health
|
||||
```
|
||||
|
||||
控制器将监听 `0.0.0.0:8000`,Web 面板可直接访问 http://localhost:8000。
|
||||
|
||||
### 方式二:Docker — 从 GHCR 拉取(无需源码/构建)
|
||||
|
||||
直接从 GitHub Container Registry 拉取预构建镜像:
|
||||
|
||||
```bash
|
||||
# 1. 拉取节点镜像
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
docker tag ghcr.io/clawdbuddy/manet-node:latest manet-node:latest
|
||||
|
||||
# 2. 启动控制器
|
||||
docker run -d --name controller \
|
||||
--privileged --network host --pid host \
|
||||
--cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_ADMIN \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/run/netns:/var/run/netns \
|
||||
-v $(pwd)/results:/results \
|
||||
-v $(pwd)/config:/app/config \
|
||||
ghcr.io/clawdbuddy/manet-controller:latest
|
||||
|
||||
# 3. 验证
|
||||
curl localhost:8000/api/health
|
||||
```
|
||||
|
||||
> **注意**:
|
||||
> - 首次启动需拉取镜像,取决于网络约 1-3 分钟
|
||||
> - 如需停止:`docker stop controller && docker rm controller`
|
||||
> - 远端主机使用 `host-manet-node` 时,远端也需提前拉取:`docker pull ghcr.io/clawdbuddy/host-manet-node:main`
|
||||
|
||||
### 方式三:Conda 物理主机部署
|
||||
|
||||
在有 Python 环境的物理主机上直接运行:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 首次安装(系统依赖 + conda 环境 + systemd 服务)
|
||||
sudo bash setup-controller.sh
|
||||
|
||||
# 手动启动
|
||||
conda activate manet-controller
|
||||
PYTHONPATH=./controller MANET_WEB_DIR=./web-manager/dist \
|
||||
python3 -m uvicorn controller.api.main:app --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
### 方式四:独立可执行程序
|
||||
|
||||
使用 PyInstaller 打包为独立二进制:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
bash build-controller.sh
|
||||
./dist/manet-controller/manet-controller
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 快速开始:第一次仿真
|
||||
|
||||
启动控制器后(任一种方式),按以下步骤运行第一次仿真:
|
||||
|
||||
### 4.1 启动仿真(5 节点冒烟测试)
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
```
|
||||
|
||||
预期返回:`{"ok":true, "running":true, "nNodes":5}`
|
||||
|
||||
### 4.2 查看仿真状态
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/sim/status | python3 -m json.tool
|
||||
```
|
||||
|
||||
输出示例:
|
||||
```json
|
||||
{
|
||||
"running": true,
|
||||
"elapsed": 12.34,
|
||||
"totalNodes": 5,
|
||||
"nodesOnline": 5,
|
||||
"preset": "debug",
|
||||
"macModeActual": "mesh"
|
||||
}
|
||||
```
|
||||
|
||||
### 4.3 查看节点列表
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/nodes | python3 -m json.tool
|
||||
```
|
||||
|
||||
每个节点显示:ID、IP、状态、角色、流量统计、邻居列表、坐标位置。
|
||||
|
||||
### 4.4 在节点中执行命令
|
||||
|
||||
```bash
|
||||
# 从节点 0 ping 节点 1
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 吞吐测试(需先在目标节点启动 iperf3 server)
|
||||
curl -s -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -D"}'
|
||||
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
```
|
||||
|
||||
### 4.5 查看日志
|
||||
|
||||
```bash
|
||||
# 查看节点 0 的最近 50 条日志
|
||||
curl 'localhost:8000/api/logs?node=0&tail=50'
|
||||
```
|
||||
|
||||
### 4.6 查看流量统计
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/flows | python3 -m json.tool
|
||||
```
|
||||
|
||||
### 4.7 停止仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
停止后自动清理:Docker 容器、Linux bridge、veth 对、TAP 接口、VXLAN 隧道。
|
||||
|
||||
---
|
||||
|
||||
## 5. Web 管理面板
|
||||
|
||||
控制器自带 React Web 面板,浏览器打开 http://localhost:8000。
|
||||
|
||||
### 面板结构
|
||||
|
||||
| 标签页 | 功能 |
|
||||
|--------|------|
|
||||
| **Dashboard** | 仿真概览:状态、运行时间、节点数量、预设 |
|
||||
| **Config** | 80+ 参数配置表单,支持预设加载、.conf 导入导出 |
|
||||
| **Control** | 启停仿真、预设选择 |
|
||||
| **Topology** | Canvas 实时拓扑,节点位置、邻居关系、链路质量 |
|
||||
| **Logs** | 实时日志流,可按节点筛选 |
|
||||
| **Dynamic** | 运行时动态调整:发射功率、接收灵敏度、通信范围 |
|
||||
| **Nodes** | 节点规格管理、远端主机注册 |
|
||||
|
||||
### 使用流程
|
||||
|
||||
1. 打开 http://localhost:8000
|
||||
2. 在 **Nodes** 页配置节点规格(可跳过,使用默认)
|
||||
3. 在 **Config** 页调整参数或选择预设
|
||||
4. 在 **Control** 页点击 Start
|
||||
5. 在 **Dashboard** 查看进展
|
||||
6. 在 **Topology** 查看实时拓扑
|
||||
7. 仿真结束后点击 Stop
|
||||
|
||||
---
|
||||
|
||||
## 6. 节点管理
|
||||
|
||||
### 6.1 节点规格(Node Specs)
|
||||
|
||||
节点规格定义每个节点的身份和部署方式:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 0,
|
||||
"ip": "192.168.100.10",
|
||||
"role": "server",
|
||||
"host": "local",
|
||||
"hostType": "container",
|
||||
"image": "manet-node:latest"
|
||||
}
|
||||
```
|
||||
|
||||
| 字段 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `id` | int | — | 节点 ID,从 0 开始 |
|
||||
| `ip` | string | — | MANET 网络 IP 地址 |
|
||||
| `role` | string | `"client"` | `"server"` 或 `"client"` |
|
||||
| `host` | string | `"local"` | `"local"` 或远端主机 IP |
|
||||
| `hostType` | string | `"container"` | `"container"` 或 `"host-manet"` |
|
||||
| `image` | string | `"manet-node:latest"` | Docker 镜像标签 |
|
||||
|
||||
> **重要**:当 `hostType` 不指定时,默认为 `"container"`。如果需要远端主机直接作为节点(而非容器),必须设置 `"hostType": "host-manet"`。
|
||||
|
||||
通过 API 查看/更新:
|
||||
|
||||
```bash
|
||||
# 查看
|
||||
curl -s localhost:8000/api/nodes/specs | jq
|
||||
|
||||
# 更新
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"specs": [{"id":0, "ip":"192.168.100.10", "host":"local", "role":"server"}]}'
|
||||
```
|
||||
|
||||
### 6.2 节点部署模式
|
||||
|
||||
| 模式 | host 值 | hostType | 说明 |
|
||||
|------|---------|----------|------|
|
||||
| **本地容器** | `"local"` | `"container"` | 默认。控制器所在主机的 Docker 容器 |
|
||||
| **远端主机节点** | `"<IP>"` | `"host-manet"` | 远端物理主机直接作为节点(`--net=host`) |
|
||||
| **远端容器** | `"<IP>"` | `"container"` | 远端主机的 Docker 容器 |
|
||||
|
||||
### 6.3 用户软件部署
|
||||
|
||||
节点容器支持三种用户软件部署模式:
|
||||
|
||||
| 模式 | 说明 | 配置方式 |
|
||||
|------|------|----------|
|
||||
| **bind** | 挂载本地目录到容器 | `nodeMode: "bind", nodePath: "/path/to/app"` |
|
||||
| **image** | 使用自定义镜像 | `image: "my-app:latest"` |
|
||||
| **exec** | 启动后通过 API 注入 | 默认模式,通过 `/api/nodes/{id}/exec` 执行命令 |
|
||||
|
||||
### 6.4 镜像版本管理
|
||||
|
||||
每个节点可指定独立镜像标签。在 NodeManager UI 或 API 中设置:
|
||||
|
||||
```json
|
||||
{"id": 0, "image": "ghcr.io/clawdbuddy/manet-node:1.1.4"}
|
||||
```
|
||||
|
||||
当镜像不存在时,系统自动执行 `docker pull`。
|
||||
|
||||
---
|
||||
|
||||
## 7. 仿真配置详解
|
||||
|
||||
### 7.1 配置结构与优先级
|
||||
|
||||
配置优先级(高 → 低):
|
||||
1. 启动请求中的显式 `config` 覆盖
|
||||
2. `.conf` 配置文件
|
||||
3. 选定的 `preset`
|
||||
4. 内置默认值
|
||||
|
||||
### 7.2 预设(Presets)
|
||||
|
||||
预设是一组预定义的参数集合,方便快速启动不同场景:
|
||||
|
||||
```bash
|
||||
# 查看所有预设
|
||||
curl -s localhost:8000/api/sim/presets | jq
|
||||
|
||||
# 使用预设启动
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
```
|
||||
|
||||
| 预设 | 节点数 | 场景 | 关键参数 |
|
||||
|------|--------|------|----------|
|
||||
| `debug` | 5 | 冒烟测试 | mesh, Grid 50m, FreeSpace, 20dBm, 60s |
|
||||
| `default` | 10 | 用户默认 | mesh, 5000x5000, FreeSpace, 30dBm, 300s |
|
||||
| `urban` | 16 | 城市高密度 | mesh, LogDistance n=3.5, Nakagami, 2km |
|
||||
| `rural` | 8 | 开阔野外 | mesh, FreeSpace, Grid 8km, 无衰落 |
|
||||
| `tactical` | 8 | 战术通信 | mesh, UHF 590MHz, TwoRayGround, 37dBm |
|
||||
|
||||
### 7.3 主要配置参数
|
||||
|
||||
#### 网络与拓扑
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `nNodes` | int | 10 | 节点数量 |
|
||||
| `macMode` | string | `"adhoc"` | `"mesh"` 或 `"adhoc"` |
|
||||
| `standard` | string | `"80211n-2.4GHz"` | WiFi 标准 |
|
||||
| `mobilityModel` | string | `"grid"` | `"grid"`, `"random-walk"`, `"random-waypoint"` |
|
||||
| `simulationTime` | int | 300 | 仿真时长(秒)|
|
||||
|
||||
#### 无线信道
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `txPowerStart` | float | 20 | 发射功率(dBm) |
|
||||
| `txPowerEnd` | float | 20 | 发射功率(结束值,动态变化用)|
|
||||
| `pathLossModel` | string | `"FreeSpace"` | 路径损耗模型 |
|
||||
| `frequency` | int | 2412 | 信道频率(MHz)|
|
||||
| `channelWidth` | int | 20 | 信道带宽(MHz)|
|
||||
| `rxSensitivity` | float | -82 | 接收灵敏度(dBm)|
|
||||
| `communicationRange` | float | 150 | 通信范围(米)|
|
||||
|
||||
#### 路由
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `routingProtocol` | string | `"AODV"` | 路由协议 |
|
||||
| `enableBroadcast` | bool | false | 是否启用广播风暴 |
|
||||
| `meshHwmpMaxHops` | int | 32 | HWMP 最大跳数 |
|
||||
|
||||
#### 传播模型
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `enableFading` | bool | false | 是否启用衰落 |
|
||||
| `fadingModel` | string | `"Nakagami"` | 衰落模型 |
|
||||
| `shadowingEnabled` | bool | false | 是否启用阴影效应 |
|
||||
|
||||
### 7.4 运行时动态调整
|
||||
|
||||
仿真运行中可动态调整部分参数(无需停止仿真):
|
||||
|
||||
```bash
|
||||
# 调整所有节点的发射功率
|
||||
curl -X POST localhost:8000/api/dynamic/tx-power \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"value": 25}'
|
||||
|
||||
# 调整所有节点的接收灵敏度
|
||||
curl -X POST localhost:8000/api/dynamic/rx-sensitivity \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"value": -90}'
|
||||
```
|
||||
|
||||
支持动态调整的参数:发射功率、接收灵敏度、通信范围、信道频率、信道带宽。
|
||||
|
||||
---
|
||||
|
||||
## 8. 远端节点与 VXLAN
|
||||
|
||||
### 8.1 概念
|
||||
|
||||
当仿真需要跨多台物理主机时,通过 VXLAN 隧道将远端主机上的节点接入同一仿真网络:
|
||||
|
||||
```
|
||||
远端主机 100.100.100.9 控制器主机
|
||||
┌─────────────────────┐ ┌─────────────────────┐
|
||||
│ host-manet-node-1 │ │ mesh-br-1 │
|
||||
│ └── vxlan-1 ──UDP/4789── vxlan-1 ── mesh-tap-1 ──→ NS-3
|
||||
│ IP: 192.168.100.11 │ │ │
|
||||
└─────────────────────┘ └─────────────────────┘
|
||||
```
|
||||
|
||||
### 8.2 完整流程
|
||||
|
||||
#### 步骤 1:注册远端主机
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/hosts/register \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"ip": "100.100.100.9",
|
||||
"sshUser": "binnary",
|
||||
"sshKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...",
|
||||
"capacity": 1
|
||||
}'
|
||||
```
|
||||
|
||||
SSH key 需为 OpenSSH 格式的私钥内容。容量(capacity)表示该主机可运行的最大节点数。
|
||||
|
||||
#### 步骤 2:配置节点规格
|
||||
|
||||
```bash
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"specs": [
|
||||
{"id": 0, "ip": "192.168.100.10", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "host": "100.100.100.9", "hostType": "host-manet"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
> **关键**:hostType 必须设置为 `"host-manet"`。默认值为 `"container"`,会导致 SSH 连接使用错误的用户身份。
|
||||
|
||||
#### 步骤 3:启动仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"preset": "debug",
|
||||
"nodes": [
|
||||
{"id": 0, "host": "local"},
|
||||
{"id": 1, "host": "100.100.100.9", "hostType": "host-manet"},
|
||||
{"id": 2, "host": "local"},
|
||||
{"id": 3, "host": "local"},
|
||||
{"id": 4, "host": "local"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
启动后自动执行:
|
||||
1. SSH 连接远端主机
|
||||
2. 拉取 `ghcr.io/clawdbuddy/host-manet-node:main` 镜像
|
||||
3. 在远端启动 `--net=host` 容器
|
||||
4. 检测两端 LAN IP(需在同一 L2 子网)
|
||||
5. 在两端创建 VXLAN 隧道(VNI=100+节点ID, MTU=1400)
|
||||
6. 将控制器端 VXLAN 接入对应 mesh bridge
|
||||
7. 注入所有节点的静态 ARP 条目
|
||||
|
||||
### 8.3 前提条件
|
||||
|
||||
| 条件 | 说明 |
|
||||
|------|------|
|
||||
| SSH 可达 | 控制器需能 SSH 到远端主机 |
|
||||
| sudo 权限 | 远端用户需有 sudo 权限(创建 VXLAN, Docker)|
|
||||
| 同一 L2 子网 | 两端 VXLAN 端点 IP 需在同一子网(避免 NAT)|
|
||||
| UDP/4789 开放 | 两端防火墙需允许 VXLAN 端口 |
|
||||
| Docker | 远端主机需安装 Docker |
|
||||
| 镜像预拉取 | 建议提前拉取:`docker pull ghcr.io/clawdbuddy/host-manet-node:main` |
|
||||
|
||||
### 8.4 验证远端节点
|
||||
|
||||
```bash
|
||||
# 查看 VXLAN 接口
|
||||
ip link show vxlan-1
|
||||
|
||||
# 在控制器端验证
|
||||
curl -s localhost:8000/api/nodes | jq '.[] | select(.id==1)'
|
||||
|
||||
# ping 测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 在远端主机验证
|
||||
ssh [email protected] "docker ps && ip link show vxlan-1 && ping -c 2 192.168.100.10"
|
||||
```
|
||||
|
||||
### 8.5 技术细节
|
||||
|
||||
- **隧道端点发现**:自动检测两端 LAN IP,保证在同一 L2 子网
|
||||
- **MTU 1400**:所有 VXLAN/TAP/veth 接口统一 MTU,避免分片
|
||||
- **静态 ARP**:由于 mesh + VXLAN 不转发广播,启动时注入所有节点对的静态 ARP
|
||||
- **自动清理**:仿真停止时,自动删除两端 VXLAN 和远端容器
|
||||
|
||||
---
|
||||
|
||||
## 9. 测试
|
||||
|
||||
### 9.1 WiFi 自动化测试套件
|
||||
|
||||
覆盖 8 个典型场景的端到端测试:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 运行全部测试
|
||||
python3 tests/wifi_test_suite.py
|
||||
|
||||
# 运行单个测试
|
||||
python3 tests/wifi_test_suite.py tc_frequency_2_4g
|
||||
|
||||
# 生成 HTML/Markdown 报告
|
||||
python3 tests/generate_report.py
|
||||
```
|
||||
|
||||
| 用例 | 验证目标 |
|
||||
|------|----------|
|
||||
| `tc_frequency_2_4g` | 2.4GHz 频段 5 节点连通性 |
|
||||
| `tc_frequency_5g` | 5GHz 频段 5 节点连通性 |
|
||||
| `tc_bandwidth_20m` | 20MHz 带宽吞吐量 |
|
||||
| `tc_bandwidth_40m` | 40MHz 带宽吞吐量 |
|
||||
| `tc_distance_attenuation` | 500-2000m 距离衰减 |
|
||||
| `tc_adhoc_multihop` | 10 节点多跳场景 |
|
||||
| `tc_broadcast` | 广播覆盖范围 |
|
||||
| `tc_frequency_sweep` | 多信道遍历测试 |
|
||||
|
||||
### 9.2 后端单元测试
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
python3 -m pytest controller/tests/ -v
|
||||
```
|
||||
|
||||
测试套件使用 Mock 模式,无需 Docker 或 NS-3 环境。
|
||||
|
||||
### 9.3 前端检查
|
||||
|
||||
```bash
|
||||
cd manet-30ns3/web-manager
|
||||
npm run lint # ESLint
|
||||
npm run build # TypeScript 类型检查 + Vite 构建
|
||||
```
|
||||
|
||||
### 9.4 手动端到端验证
|
||||
|
||||
```bash
|
||||
# 1. 启动仿真
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 2. 检查节点上线
|
||||
curl -s localhost:8000/api/nodes | jq '.[].status'
|
||||
|
||||
# 3. 连通性测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 4. 吞吐测试
|
||||
curl -s -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -D"}'
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
|
||||
# 5. 停止
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 6. 验证清理
|
||||
ip link | grep -E 'mesh-|vxlan-' || echo "clean"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 10. REST API 参考
|
||||
|
||||
### 10.1 仿真控制
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| POST | `/api/sim/start` | 启动仿真 |
|
||||
| POST | `/api/sim/stop` | 停止仿真 |
|
||||
| GET | `/api/sim/status` | 仿真状态 |
|
||||
| GET | `/api/sim/presets` | 预设列表 |
|
||||
|
||||
**`/api/sim/start` 请求体:**
|
||||
|
||||
```json
|
||||
{
|
||||
"preset": "debug",
|
||||
"config": {
|
||||
"nNodes": 5,
|
||||
"simulationTime": 180,
|
||||
"standard": "80211n-2.4GHz",
|
||||
"macMode": "mesh",
|
||||
"mobilityModel": "grid",
|
||||
"pathLossModel": "FreeSpace"
|
||||
},
|
||||
"nodes": [
|
||||
{"id": 0, "ip": "192.168.100.10", "host": "local"}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 10.2 节点管理
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/nodes` | 节点状态列表 |
|
||||
| GET | `/api/nodes/specs` | 节点规格列表 |
|
||||
| PUT | `/api/nodes/specs` | 更新节点规格 |
|
||||
| POST | `/api/nodes/{id}/exec` | 在节点中执行命令 |
|
||||
| GET | `/api/logs?node={id}` | 查看节点日志 |
|
||||
|
||||
### 10.3 远端主机管理
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| POST | `/api/hosts/register` | 注册远端主机 |
|
||||
| GET | `/api/hosts` | 主机列表 |
|
||||
| DELETE | `/api/hosts/{ip}` | 删除主机 |
|
||||
|
||||
### 10.4 配置
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/config` | 获取当前配置 |
|
||||
| PUT | `/api/config` | 更新配置 |
|
||||
| GET | `/api/health` | 健康检查 |
|
||||
|
||||
### 10.5 遥测
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| WS | `/ws/telemetry` | WebSocket 实时遥测(5Hz)|
|
||||
|
||||
---
|
||||
|
||||
## 11. 架构原理
|
||||
|
||||
### 11.1 网络架构
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ 控制器主机 │
|
||||
│ ┌──────────────┐ ┌──────────────────────────────────┐ │
|
||||
│ │ Docker Socket │ │ NS-3 Simulator │ │
|
||||
│ │ │ │ ┌──────────┐ ┌──────────┐ │ │
|
||||
│ │ manet-node-0 │ │ │ Tap 0 │ │ Tap 1 │ ... │ │
|
||||
│ │ eth0 ──────┼────┼──┤ │ │ │ │ │
|
||||
│ │ │ │ └────┬─────┘ └────┬─────┘ │ │
|
||||
│ └──────────────┘ │ │ │ │ │
|
||||
│ │ ┌────▼─────┐ ┌────▼─────┐ │ │
|
||||
│ ┌──────────────┐ │ │ mesh-br-0│ │ mesh-br-1│ ... │ │
|
||||
│ │ manet-node-1 │ │ │ ┌─┴──┐ │ │ ┌─┴──┐ │ │ │
|
||||
│ │ eth0 ──────┼────┼──┤veth│TAP │ │ │veth│TAP │ │ │
|
||||
│ │ │ │ └────┘ │ │ └────┘ │ │ │
|
||||
│ └──────────────┘ └──────────────┘ └──────────────┘ │
|
||||
│ (mesh-tap-) │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
每个节点独占一个 Linux bridge(`mesh-br-{id}`),桥接三个接口:
|
||||
- **mesh-veth{id}** ← 容器 eth0(通过 veth pair 连接)
|
||||
- **mesh-tap-{id}** → NS-3 TapBridge → MeshPointDevice → 802.11 信道
|
||||
- **vxlan-{id}** ← 远端 VXLAN 隧道(仅远端节点)
|
||||
|
||||
### 11.2 数据流
|
||||
|
||||
```
|
||||
容器 eth0 → mesh-veth → mesh-br → mesh-tap → NS-3 TapBridge
|
||||
→ MeshPointDevice → 802.11s MAC → SpectrumWifiPhy
|
||||
→ 信道模型(路径损耗/衰落/阴影)
|
||||
→ 接收端 802.11s MAC → TapBridge → mesh-tap
|
||||
→ mesh-br → mesh-veth → 目标容器 eth0
|
||||
```
|
||||
|
||||
### 11.3 线程模型
|
||||
|
||||
```
|
||||
┌─────────────────────────────────┐
|
||||
│ 主进程 (uvicorn) │
|
||||
│ ┌───────────┐ ┌────────────┐ │
|
||||
│ │ asyncio │ │ asyncio │ │
|
||||
│ │ FastAPI │ │ Telemetry │ │
|
||||
│ │ 路由处理 │ │ 5Hz 广播 │ │
|
||||
│ └───────────┘ └────────────┘ │
|
||||
│ │
|
||||
│ ┌───────────────────────────┐ │
|
||||
│ │ 守护线程: SimRunner │ │
|
||||
│ │ NS-3 Simulator::Run │ │
|
||||
│ │ (GIL 释放, 纯 C++ 执行) │ │
|
||||
│ └───────────────────────────┘ │
|
||||
└─────────────────────────────────┘
|
||||
```
|
||||
|
||||
### 11.4 网络隔离保证
|
||||
|
||||
- 每个节点容器 `network_mode="none"`,无 Docker 默认网桥
|
||||
- 每节点独占一个 Linux bridge,仅连接该节点的 veth 和 TAP
|
||||
- 容器间无共享 L2 广播域
|
||||
- 跨节点流量**只能**通过 NS-3 PHY/MAC 模型转发
|
||||
|
||||
---
|
||||
|
||||
## 12. 故障排查
|
||||
|
||||
### 常见问题
|
||||
|
||||
| 现象 | 可能原因 | 解决 |
|
||||
|------|----------|------|
|
||||
| `docker run` 后控制器未启动 | 镜像拉取中 | 等待 1-2 分钟,`docker logs controller` 查看进展 |
|
||||
| 远端容器未启动 | 节点规格中缺少 `hostType: "host-manet"` | 在 node specs 中添加此字段 |
|
||||
| SSH 连接失败 | host registry 中 key 格式错误 | 确保私钥为 OpenSSH 格式,换行为 `\n` |
|
||||
| VXLAN 不通 | 两端 LAN IP 不在同一子网 | 检查两端 `ip route get 8.8.8.8` |
|
||||
| ping 丢包 100% | ARP 未注入 | 检查 ARP 表 `arp -n`,确认有 CM 标志的条目 |
|
||||
| 容器创建失败 | 镜像不存在 | 检查 node image tag,确保已 pull |
|
||||
| docker pull 403 | daocloud 镜像代理限制 | 使用 GHCR 全路径:`ghcr.io/clawdbuddy/manet-node:latest` |
|
||||
| `--privileged` 缺失 | 控制器未以特权模式运行 | 确认容器启动参数含 `--privileged` |
|
||||
| 仿真启动返回 500 | 参数校验失败 | 检查请求体 JSON 格式,确保 preset 名称正确 |
|
||||
| 控制器反复重启 | NS-3 崩溃 | 检查 `docker logs controller`,减少节点数或简化配置 |
|
||||
|
||||
### 诊断命令
|
||||
|
||||
```bash
|
||||
# 控制器日志
|
||||
docker logs controller
|
||||
|
||||
# 网络接口
|
||||
ip link | grep -E 'mesh-|vxlan-|tap-'
|
||||
ip addr show
|
||||
bridge link show
|
||||
|
||||
# ARP 表
|
||||
arp -n
|
||||
|
||||
# 容器列表
|
||||
docker ps -a --filter name=manet-node
|
||||
|
||||
# netns
|
||||
ls /var/run/netns/
|
||||
|
||||
# 远端主机
|
||||
ssh user@host "docker ps; ip link show vxlan-; ping -c 2 <MANET_IP>"
|
||||
```
|
||||
|
||||
### 清理残留
|
||||
|
||||
```bash
|
||||
# 停止仿真
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 删除残留容器
|
||||
docker rm -f $(docker ps -aq --filter name=manet-node) 2>/dev/null
|
||||
|
||||
# 删除残留网络接口
|
||||
for iface in $(ip link | grep -oE 'mesh-(br|veth|tap)-[0-9]+|vxlan-[0-9]+'); do
|
||||
sudo ip link delete $iface 2>/dev/null
|
||||
done
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 13. 常见问题
|
||||
|
||||
### Q: 为什么需要 `--privileged --network host --pid host`?
|
||||
容器内部需要操作宿主机网络栈(创建 bridge、veth、TAP、netns),以及通过 Docker socket 管理其他容器。
|
||||
|
||||
### Q: 可以在 macOS 上运行吗?
|
||||
不能。本系统涉及 Linux 特有的内核网络操作(pyroute2、netns、TAP),仅在 Linux x86_64 上支持。
|
||||
|
||||
### Q: 仿真时间和真实时间的关系?
|
||||
NS-3 默认以仿真时间运行,速度取决于拓扑复杂度。典型场景:10 节点 mesh 约 1:20-1:30 倍速(300 秒仿真约需 10-15 秒真实时间)。
|
||||
|
||||
### Q: 如何持久化配置?
|
||||
主机注册信息和节点规格自动持久化到 `manet-30ns3/config/` 目录(JSON 文件),容器重启后自动恢复。
|
||||
|
||||
### Q: 哪些参数可以运行时动态调整?
|
||||
发射功率、接收灵敏度、通信范围、信道频率、信道带宽。其他参数需停止仿真后重新启动。
|
||||
|
||||
### Q: 最多支持多少个节点?
|
||||
取决于宿主机资源。典型限制:Docker 容器约 16-20 个,NS-3 仿真约 30-50 个。建议不超过 20 个节点。
|
||||
|
||||
### Q: 如何升级到新版本?
|
||||
```bash
|
||||
# Docker 方式:拉取新镜像,重建容器
|
||||
docker compose pull controller
|
||||
docker rm -f controller
|
||||
docker compose up -d controller
|
||||
|
||||
# GHCR 方式:拉取新镜像,删除旧容器,重新运行
|
||||
docker pull ghcr.io/clawdbuddy/manet-controller:latest
|
||||
docker stop controller && docker rm controller
|
||||
# 重新执行 docker run 命令
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
> 更多信息请参阅:
|
||||
> - `manet-30ns3/README.md` — 项目级文档
|
||||
> - `AGENTS.md` — 开发者笔记
|
||||
> - `docs/MANET-需求方案-v2.0.md` — 需求规格说明
|
||||
+21
-1
@@ -244,7 +244,7 @@ ip link | grep -E 'mesh-|vxlan-' || echo "clean"
|
||||
| `default` | 用户目标 | mesh, 5000x5000, FreeSpace, Tx=30dBm |
|
||||
| `urban` | 高密度城市 | mesh, LogDistance n=3.5, Nakagami, 2km |
|
||||
| `rural` | 开阔野外 | mesh, FreeSpace, Grid 8km, 无衰落 |
|
||||
| `tactical` | 战术通信 | mesh, UHF 590MHz, TwoRayGround, Tx=37dBm |
|
||||
| `tactical` | 战术通信 | 10 节点 mesh, UHF 590MHz, FreeSpace, Tx=30dBm, 6Mbps |
|
||||
|
||||
---
|
||||
|
||||
@@ -288,3 +288,23 @@ manet-30ns3/
|
||||
- 内核模块:`tun`, `tap`, `bridge`
|
||||
- CPU ≥ 4 核, 内存 ≥ 4 GB
|
||||
- 控制器需 `--privileged --network host --pid host`
|
||||
|
||||
|
||||
## 无线配置与统计的实现边界
|
||||
|
||||
- 标准、速率控制、RTS/CTS、分片阈值、竞争窗口和带宽作用于实际 WiFi 接口。MeshHelper 安装阶段使用合法的 5 GHz 代理频道,安装完成后设置目标频段与带宽。
|
||||
- `simulationTime` 按仿真时间自动结束;会话随后清理节点容器与网络设备。实时模式使用 BestEffort,主机过载或 cppyy 首次编译时可能落后于墙钟。
|
||||
- 动态命令与 ns-3 状态采样都在仿真线程执行;API 读取快照,不跨线程操作模型对象。队列满或等待超时会报告失败。
|
||||
- `PUT /api/config` 原子保存下次启动的配置;运行中的修改使用 `/api/env/*` 或 WebSocket 参数接口。前端读取初始配置成功后才允许自动保存。
|
||||
- 当前 cppyy 路线对 AdHoc + TAP 组合显式拒绝启动,以避免已知崩溃;AdHoc + onoff 与 Mesh 模式保留。完整容器 AdHoc 支持仍需后续绑定修复,不能视作已验收。
|
||||
- WiFi 动态频点须与当前标准、带宽匹配。UHF 仍是传播损耗预算模拟,实际调制使用 WiFi 代理载波;遥测 `env.phyFrequencyMhz` 返回实际载波,`env.frequencyMhz` 返回预算频率。
|
||||
- TAP 业务流量通过独立接口上的 AF_PACKET 被动采集,当前覆盖已知节点之间的单播 IPv4。延迟单位为毫秒,吞吐单位为 Mbps(自首次发送起累计平均),丢包为发送 10 秒后仍未观察到接收的包。`measurement.captureDrops` 标记采集器自身丢帧,出现丢帧时统计不完整。IPv6、广播端到端统计未实现。
|
||||
- 拓扑邻居来自实际已建立的 Mesh peer;`/api/sim/path` 是该 peer 图上的 BFS 路径,不代表 HWMP 实际选路或业务成功交付。
|
||||
|
||||
内部流量冒烟验证(不需要 Docker,不创建宿主网络接口):
|
||||
|
||||
```bash
|
||||
PYTHONPATH=. python3 tests/smoke_sim_runner.py
|
||||
```
|
||||
|
||||
此冒烟覆盖真实 ns-3 启动、位置/功率调整、20→40 MHz 切换、源目的流量统计和自然停止。容器 TAP/VXLAN 的端到端效果及目标平台 ns-3.47 仍需在部署环境运行集成测试。
|
||||
@@ -42,6 +42,7 @@ log "开始 PyInstaller 打包..."
|
||||
pyinstaller \
|
||||
--onedir \
|
||||
--name manet-controller \
|
||||
--add-data "${SCRIPT_DIR}/controller/orchestrator/sim_runtime.h:controller/orchestrator" \
|
||||
--add-data "${SCRIPT_DIR}/web-manager/dist:web-manager/dist" \
|
||||
--hidden-import=ns.core \
|
||||
--hidden-import=ns.network \
|
||||
|
||||
@@ -10,19 +10,40 @@
|
||||
"x": 50.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 100.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 2279.1363636363635,
|
||||
"y": 959.6363636363636,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 3118.8181818181815,
|
||||
"y": 175.3181818181818,
|
||||
"z": 0.0
|
||||
}
|
||||
],
|
||||
"txPower": [
|
||||
20.0,
|
||||
20.0,
|
||||
20.0,
|
||||
20.0,
|
||||
20.0
|
||||
],
|
||||
"rxSensitivity": [
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0
|
||||
],
|
||||
"pathLossExponent": 2.0,
|
||||
"frequencyMhz": 2412,
|
||||
"channelWidthMhz": 20,
|
||||
"rangeTargetM": 500.0,
|
||||
"rangeTargetM": 4200.0,
|
||||
"pathLossModel": "FreeSpace"
|
||||
}
|
||||
@@ -152,5 +152,11 @@ WEB_DIR = os.environ.get("MANET_WEB_DIR", "/app/dist")
|
||||
if os.path.isdir(WEB_DIR):
|
||||
app.mount("/", StaticFiles(directory=WEB_DIR, html=True), name="web")
|
||||
log.info("从 %s 提供 React UI", WEB_DIR)
|
||||
|
||||
# 独立电台控制页面
|
||||
radio_dir = os.path.join(os.path.dirname(WEB_DIR), "radio")
|
||||
if os.path.isdir(radio_dir):
|
||||
app.mount("/radio", StaticFiles(directory=radio_dir, html=True), name="radio")
|
||||
log.info("从 %s 提供电台控制页面", radio_dir)
|
||||
else:
|
||||
log.info("%s 处无 UI 目录;以纯 API 模式运行", WEB_DIR)
|
||||
@@ -4,6 +4,7 @@
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter
|
||||
@@ -34,10 +35,9 @@ async def put_config(cfg: SimConfig) -> dict[str, Any]:
|
||||
sess = get_session()
|
||||
store = sess.param_store
|
||||
if store is not None:
|
||||
data = cfg.model_dump(by_alias=True)
|
||||
results = store.batch_set(data, source="rest")
|
||||
ok = all(r.get("ok") for r in results)
|
||||
return {"ok": ok, "results": results}
|
||||
# 配置保存与运行时调参分开:整份配置原子替换,避免逐字段校验失败或
|
||||
# 保存文件时意外修改正在运行的无线环境。
|
||||
return await asyncio.to_thread(store.save_config, cfg, source="rest")
|
||||
|
||||
# fallback: 直接更新 SimConfig(兼容 ParamStore 未初始化时)
|
||||
from controller.orchestrator import save_config_to_file
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter, HTTPException
|
||||
@@ -67,7 +68,7 @@ def _param_store() -> Any:
|
||||
async def set_tx_power(body: TxPowerBody) -> dict[str, Any]:
|
||||
"""修改指定节点的发射功率。"""
|
||||
_check_running()
|
||||
result = _param_store().set("txPower", {body.nodeId: body.dbm}, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "txPower", {body.nodeId: body.dbm}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "dbm": body.dbm, **result}
|
||||
|
||||
|
||||
@@ -75,7 +76,7 @@ async def set_tx_power(body: TxPowerBody) -> dict[str, Any]:
|
||||
async def set_position(body: PositionBody) -> dict[str, Any]:
|
||||
"""将指定节点跃迁到指定坐标。"""
|
||||
_check_running()
|
||||
result = _param_store().set("positions", {body.nodeId: {"x": body.x, "y": body.y, "z": body.z}}, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "positions", {body.nodeId: {"x": body.x, "y": body.y, "z": body.z}}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "x": body.x, "y": body.y, "z": body.z, **result}
|
||||
|
||||
|
||||
@@ -83,7 +84,7 @@ async def set_position(body: PositionBody) -> dict[str, Any]:
|
||||
async def set_rx_sensitivity(body: RxSensBody) -> dict[str, Any]:
|
||||
"""修改指定节点的接收灵敏度。"""
|
||||
_check_running()
|
||||
result = _param_store().set("rxSensitivity", {body.nodeId: body.dbm}, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "rxSensitivity", {body.nodeId: body.dbm}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "dbm": body.dbm, **result}
|
||||
|
||||
|
||||
@@ -91,7 +92,7 @@ async def set_rx_sensitivity(body: RxSensBody) -> dict[str, Any]:
|
||||
async def set_path_loss_exponent(body: PathLossBody) -> dict[str, Any]:
|
||||
"""修改全局路径损耗指数(仅 LogDistance 模型生效)。"""
|
||||
_check_running()
|
||||
result = _param_store().set("pathLossExponent", body.exponent, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "pathLossExponent", body.exponent, source="rest")
|
||||
return {"ok": result.get("ok", False), "exponent": body.exponent, **result}
|
||||
|
||||
|
||||
@@ -99,7 +100,7 @@ async def set_path_loss_exponent(body: PathLossBody) -> dict[str, Any]:
|
||||
async def set_frequency(body: FrequencyBody) -> dict[str, Any]:
|
||||
"""修改全局中心频率(MHz)。"""
|
||||
_check_running()
|
||||
result = _param_store().set("frequencyMhz", body.mhz, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "frequencyMhz", body.mhz, source="rest")
|
||||
return {"ok": result.get("ok", False), "mhz": body.mhz, **result}
|
||||
|
||||
|
||||
@@ -107,7 +108,7 @@ async def set_frequency(body: FrequencyBody) -> dict[str, Any]:
|
||||
async def set_channel_width(body: ChannelWidthBody) -> dict[str, Any]:
|
||||
"""修改全局信道宽度(MHz)。"""
|
||||
_check_running()
|
||||
result = _param_store().set("channelWidthMhz", body.mhz, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "channelWidthMhz", body.mhz, source="rest")
|
||||
return {"ok": result.get("ok", False), "mhz": body.mhz, **result}
|
||||
|
||||
|
||||
@@ -115,7 +116,7 @@ async def set_channel_width(body: ChannelWidthBody) -> dict[str, Any]:
|
||||
async def set_range_target(body: RangeBody) -> dict[str, Any]:
|
||||
"""修改 Range 传播模型的最大通信距离(米)。"""
|
||||
_check_running()
|
||||
result = _param_store().set("rangeTargetM", body.meters, source="rest")
|
||||
result = await asyncio.to_thread(_param_store().set, "rangeTargetM", body.meters, source="rest")
|
||||
return {"ok": result.get("ok", False), "meters": body.meters, **result}
|
||||
|
||||
|
||||
@@ -134,6 +135,7 @@ async def get_current_env() -> dict[str, Any]:
|
||||
"positions": env.positions,
|
||||
"pathLossExponent": env.path_loss_exponent,
|
||||
"frequencyMhz": env.frequency_mhz,
|
||||
"phyFrequencyMhz": env.phy_frequency_mhz,
|
||||
"channelWidthMhz": env.channel_width_mhz,
|
||||
"rangeTargetM": env.range_target_m,
|
||||
"pathLossModel": env.path_loss_model,
|
||||
@@ -144,7 +146,18 @@ async def get_current_env() -> dict[str, Any]:
|
||||
@router.get("/api/env/capabilities")
|
||||
async def get_capabilities() -> dict[str, Any]:
|
||||
"""返回当前支持的动态调整能力列表。"""
|
||||
sess = get_session()
|
||||
config = sess.sim.config if sess.sim else sess.config
|
||||
if config.standard == "80211a":
|
||||
widths = [20]
|
||||
elif "2.4GHz" in config.standard or "80211n" in config.standard:
|
||||
widths = [20, 40]
|
||||
else:
|
||||
widths = [20, 40, 80, 160]
|
||||
return {
|
||||
"frequencyScope": "WiFi PHY and propagation-loss; UHF uses a WiFi proxy carrier",
|
||||
"channelWidths": widths,
|
||||
"pathLossAdjustable": config.path_loss_model == "LogDistance",
|
||||
"capabilities": [
|
||||
{"id": "txpower", "name": "发射功率", "unit": "dBm", "scope": "per-node"},
|
||||
{"id": "position", "name": "节点位置", "unit": "m", "scope": "per-node"},
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
"""REST 代理:将浏览器 HTTP 请求转为 UDP 帧发往外接电台设备。
|
||||
|
||||
POST /api/radio/raw
|
||||
Body: { host: string, port: number, frame: number[] }
|
||||
Response: { reply?: number[], reason?: string }
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import socket
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def _send_udp_async(frame_bytes: bytes, host: str, port: int) -> tuple[bytes | None, str | None]:
|
||||
"""Async wrapper over blocking socket send.
|
||||
|
||||
api_54 端口约束为 62450,设备响应永远回到 62450,所以 socket 必须显式 bind,
|
||||
否则 recvfrom 会等在系统分配的临时端口上,收不到回包。
|
||||
"""
|
||||
loop = asyncio.get_running_loop()
|
||||
|
||||
def _do() -> tuple[bytes | None, str | None]:
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("0.0.0.0", 62450))
|
||||
sock.settimeout(3.0)
|
||||
sock.sendto(frame_bytes, (host, port))
|
||||
reply, _ = sock.recvfrom(4096)
|
||||
sock.close()
|
||||
return reply, None
|
||||
except TimeoutError:
|
||||
return None, "UDP 接收超时"
|
||||
except Exception as e:
|
||||
return None, str(e)
|
||||
|
||||
return await loop.run_in_executor(None, _do)
|
||||
|
||||
|
||||
@router.post("/api/radio/raw")
|
||||
async def radio_raw(body: dict[str, Any]) -> dict[str, Any]:
|
||||
"""将 HTTP 请求中的二进制帧透传为 UDP,回复透传为 HTTP 响应。"""
|
||||
host: str = body.get("host", "192.0.3.1")
|
||||
port: int = int(body.get("port", 62450))
|
||||
frame_arr: list[int] = body.get("frame", [])
|
||||
|
||||
if not frame_arr:
|
||||
return {"reason": "frame 不能为空"}
|
||||
|
||||
try:
|
||||
frame_bytes = bytes(frame_arr)
|
||||
except Exception as e:
|
||||
return {"reason": f"frame 格式错误: {e}"}
|
||||
|
||||
log.debug("UDP -> %s:%d frame=%s", host, port, frame_bytes.hex())
|
||||
|
||||
try:
|
||||
reply, error = await asyncio.wait_for(
|
||||
_send_udp_async(frame_bytes, host, port),
|
||||
timeout=5.0,
|
||||
)
|
||||
except asyncio.TimeoutError:
|
||||
return {"reason": "UDP 超时"}
|
||||
|
||||
if error:
|
||||
return {"reason": error}
|
||||
|
||||
if reply is None:
|
||||
return {"msg": "发送成功(无回复)"}
|
||||
|
||||
return {"reply": list(reply)}
|
||||
@@ -29,7 +29,7 @@ async def start_sim(req: RunRequest | None = None) -> dict[str, Any]:
|
||||
overrides=req.overrides or {},
|
||||
nodes=req.nodes,
|
||||
)
|
||||
except KeyError as e:
|
||||
except (KeyError, ValueError) as e:
|
||||
raise HTTPException(400, str(e)) from e
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.exception("仿真启动失败")
|
||||
@@ -57,7 +57,7 @@ async def status() -> dict[str, Any]:
|
||||
return {
|
||||
"running": sess.running,
|
||||
"elapsed": sim.elapsed if sim else 0.0,
|
||||
"totalNodes": sess.config.n_nodes if sess.running else 0,
|
||||
"totalNodes": len(sess.specs) if sess.running else 0,
|
||||
"nodesOnline": sum(
|
||||
1 for s in sess.specs
|
||||
if (
|
||||
@@ -79,12 +79,7 @@ async def list_presets() -> dict[str, dict[str, Any]]:
|
||||
|
||||
@router.get("/path")
|
||||
async def find_path(src: int, dst: int) -> dict[str, Any]:
|
||||
"""基于当前邻居图的 BFS,返回 src→dst 的最少跳数路径。
|
||||
|
||||
路径反映"几何上谁能听到谁"——`_nodes_runtime[i].neighbors` 由 wall_pacer
|
||||
每 100ms 根据节点位置 + range_target_m 重算。在 mesh 模式下与 HWMP
|
||||
实际选择的多跳路径强相关,可作为前端拓扑可视化的近似。
|
||||
"""
|
||||
"""基于实际 Mesh peer 图返回最少跳数路径;不是 HWMP 转发表查询。"""
|
||||
sess = get_session()
|
||||
if not sess.sim or not sess.running:
|
||||
raise HTTPException(409, "没有正在运行的仿真")
|
||||
@@ -104,4 +99,5 @@ async def find_path(src: int, dst: int) -> dict[str, Any]:
|
||||
"ips": [ip_by_id.get(nid, "") for nid in path],
|
||||
"hops": len(path) - 1,
|
||||
"reachable": True,
|
||||
"pathSource": "mesh-peer-bfs",
|
||||
}
|
||||
@@ -158,6 +158,8 @@ class Session:
|
||||
preset: Optional[str] = None
|
||||
_lock: threading.Lock = field(default_factory=threading.Lock)
|
||||
|
||||
_watch_task: asyncio.Task | None = field(default=None, repr=False)
|
||||
|
||||
def __post_init__(self):
|
||||
# ParamStore 始终存活,支持无仿真时的参数读写
|
||||
if self.param_store is None:
|
||||
@@ -186,6 +188,8 @@ class Session:
|
||||
if overrides:
|
||||
cfg = cfg.merged_with(overrides)
|
||||
|
||||
if cfg.mac_mode == "adhoc" and cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定不支持安全运行 AdHoc + TAP;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
specs = nodes if nodes is not None else default_node_specs(cfg)
|
||||
|
||||
# 按 host 分组节点
|
||||
@@ -305,7 +309,7 @@ class Session:
|
||||
)
|
||||
|
||||
# 4. 启动 ns-3 仿真器(驱动所有 TAP)
|
||||
sim = SimRunner(cfg)
|
||||
sim = SimRunner(cfg, node_ips={s.ip: s.id for s in specs})
|
||||
try:
|
||||
await asyncio.to_thread(sim.start)
|
||||
except Exception:
|
||||
@@ -399,6 +403,14 @@ class Session:
|
||||
self.telemetry = tele
|
||||
self.specs = specs
|
||||
self.preset = preset
|
||||
self._watch_task = asyncio.create_task(self._watch_simulation(sim), name="simulation-cleanup")
|
||||
|
||||
async def _watch_simulation(self, sim: SimRunner) -> None:
|
||||
"""自然到期或异常退出后释放容器与网络资源。"""
|
||||
while self.sim is sim and sim.running:
|
||||
await asyncio.sleep(0.2)
|
||||
if self.sim is sim:
|
||||
await self.stop()
|
||||
|
||||
async def stop(self) -> None:
|
||||
"""best-effort 停止与清理。
|
||||
@@ -406,11 +418,18 @@ class Session:
|
||||
即使 sim 已崩溃 (sess.running == False),仍要走一遍下面的清理路径,
|
||||
把上一次仿真留下的 docker 容器/mesh-br/mesh-tap/mesh-veth 兜底删干净。
|
||||
"""
|
||||
watcher = self._watch_task
|
||||
self._watch_task = None
|
||||
if watcher is not None and watcher is not asyncio.current_task():
|
||||
watcher.cancel()
|
||||
# 仿真退出前不能拆除 TAP;停止超时向调用者报告并保留资源引用。
|
||||
if self.sim is not None:
|
||||
await asyncio.to_thread(self.sim.stop)
|
||||
with self._lock:
|
||||
sim, docker_mgr, remote_mgrs, host_mgrs, tele, specs = (
|
||||
self.sim, self.docker_mgr, self.remote_mgrs, self.host_mgrs, self.telemetry, self.specs
|
||||
)
|
||||
cfg = self.config
|
||||
cfg = sim.config if sim is not None else self.config
|
||||
last_preset = self.preset
|
||||
self.sim = self.docker_mgr = self.telemetry = None
|
||||
self.remote_mgrs = {}
|
||||
@@ -425,7 +444,7 @@ class Session:
|
||||
log.warning("telemetry.stop() 抛异常: %s", e)
|
||||
if sim is not None:
|
||||
try:
|
||||
sim.stop()
|
||||
await asyncio.to_thread(sim.stop)
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("sim.stop() 抛异常: %s", e)
|
||||
if docker_mgr is not None:
|
||||
|
||||
@@ -32,7 +32,8 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
param_queue = sess.param_store.subscribe()
|
||||
|
||||
# 遥测帧订阅队列(仅在仿真运行时有效)
|
||||
tele_queue = sess.telemetry.subscribe() if sess.telemetry else None
|
||||
tele_owner = sess.telemetry
|
||||
tele_queue = tele_owner.subscribe() if tele_owner else None
|
||||
|
||||
# 如果既没有 param_store 也没有 telemetry,直接关闭
|
||||
if param_queue is None and tele_queue is None:
|
||||
@@ -67,11 +68,26 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
await _send_safe(ws, {"type": "error", "reqId": req_id, "reason": f"unknown type: {msg_type}"})
|
||||
|
||||
async def _tele_loop() -> None:
|
||||
"""从 telemetry 泵接收帧并推送给客户端。"""
|
||||
if tele_queue is None:
|
||||
return
|
||||
"""跨启停重新订阅,已连接的页面无需刷新或重连。"""
|
||||
nonlocal tele_owner, tele_queue
|
||||
sent_idle = False
|
||||
while True:
|
||||
frame = await tele_queue.get()
|
||||
if sess.telemetry is not tele_owner:
|
||||
if tele_owner is not None and tele_queue is not None:
|
||||
tele_owner.unsubscribe(tele_queue)
|
||||
tele_owner = sess.telemetry
|
||||
tele_queue = tele_owner.subscribe() if tele_owner else None
|
||||
sent_idle = False
|
||||
if tele_queue is None:
|
||||
if not sent_idle:
|
||||
await _send_safe(ws, {"running": False, "nodes": [], "flows": [], "t": 0.0})
|
||||
sent_idle = True
|
||||
await asyncio.sleep(0.2)
|
||||
continue
|
||||
try:
|
||||
frame = await asyncio.wait_for(tele_queue.get(), timeout=0.5)
|
||||
except asyncio.TimeoutError:
|
||||
continue
|
||||
await _send_safe(ws, frame)
|
||||
|
||||
async def _param_broadcast_loop() -> None:
|
||||
@@ -91,9 +107,8 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
try:
|
||||
tasks = [
|
||||
asyncio.create_task(_recv_loop(), name="ws-recv"),
|
||||
asyncio.create_task(_tele_loop(), name="ws-tele"),
|
||||
]
|
||||
if tele_queue is not None:
|
||||
tasks.append(asyncio.create_task(_tele_loop(), name="ws-tele"))
|
||||
if param_queue is not None:
|
||||
tasks.append(asyncio.create_task(_param_broadcast_loop(), name="ws-param"))
|
||||
|
||||
@@ -116,8 +131,8 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
task.cancel()
|
||||
if param_queue is not None and sess.param_store is not None:
|
||||
sess.param_store.unsubscribe(param_queue)
|
||||
if tele_queue is not None and sess.telemetry is not None:
|
||||
sess.telemetry.unsubscribe(tele_queue)
|
||||
if tele_queue is not None and tele_owner is not None:
|
||||
tele_owner.unsubscribe(tele_queue)
|
||||
try:
|
||||
await ws.close()
|
||||
except Exception:
|
||||
@@ -149,7 +164,7 @@ async def _handle_param_set(ws: WebSocket, msg: dict[str, Any], req_id: str) ->
|
||||
if store is None:
|
||||
await _send_safe(ws, {"type": "param_response", "reqId": req_id, "ok": False, "reason": "param_store not ready"})
|
||||
return
|
||||
result = store.set(key, value, source="ws")
|
||||
result = await asyncio.to_thread(store.set, key, value, source="ws")
|
||||
await _send_safe(ws, {
|
||||
"type": "param_response",
|
||||
"reqId": req_id,
|
||||
@@ -163,7 +178,7 @@ async def _handle_param_batch_set(ws: WebSocket, msg: dict[str, Any], req_id: st
|
||||
if store is None:
|
||||
await _send_safe(ws, {"type": "param_batch_response", "reqId": req_id, "ok": False, "reason": "param_store not ready"})
|
||||
return
|
||||
results = store.batch_set(params, source="ws")
|
||||
results = await asyncio.to_thread(store.batch_set, params, source="ws")
|
||||
ok = all(r.get("ok") for r in results)
|
||||
await _send_safe(ws, {
|
||||
"type": "param_batch_response",
|
||||
|
||||
@@ -15,7 +15,7 @@ import re
|
||||
from pathlib import Path
|
||||
from typing import Any, Literal, Mapping
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
||||
from pydantic.alias_generators import to_camel
|
||||
|
||||
# ----- supported enums (mirror manet-30ns3/web-manager/src/types/config.ts) ----------------------
|
||||
@@ -48,6 +48,7 @@ class _CamelModel(BaseModel):
|
||||
alias_generator=to_camel,
|
||||
populate_by_name=True,
|
||||
extra="ignore",
|
||||
allow_inf_nan=False,
|
||||
)
|
||||
|
||||
|
||||
@@ -63,7 +64,7 @@ class SimConfig(_CamelModel):
|
||||
|
||||
# --- General [全局] ---
|
||||
n_nodes: int = Field(default=5, ge=2, le=16)
|
||||
simulation_time: float = 300
|
||||
simulation_time: float = Field(default=300, gt=0)
|
||||
seed: int = 1
|
||||
run: int = 1
|
||||
log_components: str = ""
|
||||
@@ -121,15 +122,7 @@ class SimConfig(_CamelModel):
|
||||
mac_mode: MacMode = "mesh"
|
||||
rate_control: RateControl = "Constant"
|
||||
|
||||
@field_validator("mac_mode", mode="after")
|
||||
@classmethod
|
||||
def _force_mesh(cls, v: str) -> str:
|
||||
"""NS-3.47 + cppyy 下 adhoc 模式会触发 Txop segfault,强制使用 mesh。"""
|
||||
if v != "mesh":
|
||||
return "mesh"
|
||||
return v
|
||||
|
||||
# --- MAC device [预留] — 当前代码未接入 ns-3,预留字段 ---
|
||||
# --- MAC device [全局] ---
|
||||
rts_cts_threshold: int = 2200
|
||||
fragmentation_threshold: int = 2200
|
||||
non_unicast_mode: bool = False
|
||||
@@ -213,6 +206,23 @@ class SimConfig(_CamelModel):
|
||||
"e.g. {\"1\": [\"02:00:00:ff:00:01\"]} for node 1 advertising an external MAC",
|
||||
)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_radio(self) -> "SimConfig":
|
||||
"""在创建 ns-3 对象前拒绝可能导致进程终止的非法无线配置。"""
|
||||
if self.standard == "80211a":
|
||||
widths = {20}
|
||||
elif "80211n" in self.standard or "2.4GHz" in self.standard:
|
||||
widths = {20, 40}
|
||||
else:
|
||||
widths = {20, 40, 80, 160}
|
||||
if self.channel_width_mhz not in widths:
|
||||
raise ValueError(f"{self.standard} 不支持 {self.channel_width_mhz} MHz,允许 {sorted(widths)}")
|
||||
if self.cw_min < 0 or self.cw_max < self.cw_min:
|
||||
raise ValueError("竞争窗口要求 0 <= cwMin <= cwMax")
|
||||
if self.grid_width <= 0 or self.beacon_interval <= 0:
|
||||
raise ValueError("gridWidth 和 beaconInterval 必须大于 0")
|
||||
return self
|
||||
|
||||
# ----- helpers -----------------------------------------------------------
|
||||
def merged_with(self, partial: Mapping[str, Any]) -> "SimConfig":
|
||||
"""Return a copy with `partial` overrides (accepts camelCase or snake_case)."""
|
||||
@@ -685,15 +695,15 @@ FIELD_DESCRIPTIONS: dict[str, str] = {
|
||||
# --- MAC network [全局] ---
|
||||
"ssid": "[全局] SSID:网络标识符",
|
||||
"bssid": "[全局] BSSID:基本服务集标识符(MAC 格式)",
|
||||
"macMode": "[全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用",
|
||||
"macMode": "[全局] MAC 模式:mesh(802.11s)或 adhoc(IBSS);已知不兼容的绑定组合在启动时拒绝",
|
||||
"rateControl": "[全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel",
|
||||
# --- MAC device [预留] ---
|
||||
"rtsCtsThreshold": "[预留] RTS/CTS 阈值:当前代码未接入 ns-3",
|
||||
"fragmentationThreshold": "[预留] 分片阈值:当前代码未接入 ns-3",
|
||||
"nonUnicastMode": "[预留] 非单播模式:当前代码未接入 ns-3",
|
||||
"beaconInterval": "[预留] 信标间隔:当前代码未接入 ns-3",
|
||||
"cwMin": "[预留] 最小竞争窗口:当前代码未接入 ns-3",
|
||||
"cwMax": "[预留] 最大竞争窗口:当前代码未接入 ns-3",
|
||||
"rtsCtsThreshold": "[全局] RTS/CTS 阈值:启动时应用到实际 WiFi 设备",
|
||||
"fragmentationThreshold": "[全局] 分片阈值:启动时应用到实际 WiFi 设备",
|
||||
"nonUnicastMode": "[全局] 非单播模式:启动时应用到实际 WiFi 设备",
|
||||
"beaconInterval": "[全局] 信标间隔:启动时应用到实际 WiFi 设备",
|
||||
"cwMin": "[全局] 最小竞争窗口:启动时应用到实际 WiFi 设备",
|
||||
"cwMax": "[全局] 最大竞争窗口:启动时应用到实际 WiFi 设备",
|
||||
# --- Routing [全局] ---
|
||||
"routingProtocol": "[全局] 路由协议:aodv/olsr/dsdv/dsr/none",
|
||||
"aodvHelloInterval": "[全局] AODV Hello 间隔:邻居发现广播间隔(秒)",
|
||||
|
||||
@@ -64,7 +64,8 @@ class ParamStore:
|
||||
def __init__(self, session: Any) -> None:
|
||||
self._session = session
|
||||
self._lock = threading.RLock()
|
||||
self._subscribers: list[asyncio.Queue] = []
|
||||
self._subscribers: dict[asyncio.Queue, asyncio.AbstractEventLoop] = {}
|
||||
self._subscriber_lock = threading.Lock()
|
||||
self._static_registry: dict[str, ParamMeta] = {}
|
||||
self._build_static_registry()
|
||||
|
||||
@@ -191,6 +192,20 @@ class ParamStore:
|
||||
self._broadcast(ParamChangeEvent(key, value, meta.scope, source))
|
||||
return results
|
||||
|
||||
def save_config(self, config: SimConfig, source: str = "api") -> dict[str, Any]:
|
||||
"""保存下次启动用的完整配置;写盘成功后再更新内存与通知。"""
|
||||
with self._lock:
|
||||
previous = self._session.config.model_dump(by_alias=True)
|
||||
try:
|
||||
save_config_to_file(config)
|
||||
except Exception as exc:
|
||||
return {"ok": False, "reason": str(exc)}
|
||||
self._session.config = config
|
||||
for key, value in config.model_dump(by_alias=True).items():
|
||||
if previous.get(key) != value:
|
||||
self._broadcast(ParamChangeEvent(key, value, "static", source))
|
||||
return {"ok": True, "config": config.model_dump(by_alias=True)}
|
||||
|
||||
def _set_locked(self, meta: ParamMeta, value: Any, source: str) -> dict[str, Any]:
|
||||
"""实际写入逻辑(必须在锁内调用)。"""
|
||||
sess = self._session
|
||||
@@ -379,26 +394,31 @@ class ParamStore:
|
||||
def subscribe(self) -> asyncio.Queue:
|
||||
"""订阅参数变更事件。返回 asyncio.Queue,事件到达时放入队列。"""
|
||||
q: asyncio.Queue = asyncio.Queue(maxsize=64)
|
||||
self._subscribers.append(q)
|
||||
with self._subscriber_lock:
|
||||
self._subscribers[q] = asyncio.get_running_loop()
|
||||
return q
|
||||
|
||||
def unsubscribe(self, q: asyncio.Queue) -> None:
|
||||
"""取消订阅。"""
|
||||
try:
|
||||
self._subscribers.remove(q)
|
||||
except ValueError:
|
||||
pass
|
||||
with self._subscriber_lock:
|
||||
self._subscribers.pop(q, None)
|
||||
|
||||
def _broadcast(self, event: ParamChangeEvent) -> None:
|
||||
"""广播参数变更事件到所有订阅者。"""
|
||||
dead: list[asyncio.Queue] = []
|
||||
for q in self._subscribers:
|
||||
with self._subscriber_lock:
|
||||
subscribers = list(self._subscribers.items())
|
||||
for q, loop in subscribers:
|
||||
try:
|
||||
q.put_nowait(event)
|
||||
except asyncio.QueueFull:
|
||||
dead.append(q)
|
||||
for q in dead:
|
||||
self.unsubscribe(q)
|
||||
loop.call_soon_threadsafe(self._enqueue_event, q, event)
|
||||
except RuntimeError:
|
||||
self.unsubscribe(q)
|
||||
|
||||
@staticmethod
|
||||
def _enqueue_event(q: asyncio.Queue, event: ParamChangeEvent) -> None:
|
||||
"""只在订阅者的事件循环中操作队列,慢客户端保留最新变更。"""
|
||||
if q.full():
|
||||
q.get_nowait()
|
||||
q.put_nowait(event)
|
||||
|
||||
# ------------------------------------------------------------------ 工具
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ NS-3.47 + cppyy 已知限制与可行配置:
|
||||
- MeshPointDevice(802.11s/HWMP)+ TapBridge + RealtimeSimulatorImpl 工作正常。
|
||||
- 容器 eth0 的 MAC 必须与 ns-3 mesh 设备的 MAC 一致(由 netns.mesh_mac 生成),
|
||||
否则 802.11s 会把容器视为"桥接客户端"而无法正确转发单播帧。
|
||||
- 因此当前 3.47 路线强制使用 mac_mode="mesh",adhoc 模式已禁用。
|
||||
- AdHoc + TAP 不安全组合显式拒绝;AdHoc + onoff 可用于内部基准。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -24,6 +24,8 @@ from dataclasses import dataclass, field
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from .config import SimConfig
|
||||
from pathlib import Path
|
||||
from .tap_telemetry import TapTelemetry
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -132,6 +134,7 @@ class EnvState:
|
||||
positions: list[dict[str, float]] = field(default_factory=list)
|
||||
path_loss_exponent: float = 2.0
|
||||
frequency_mhz: int = 590
|
||||
phy_frequency_mhz: float = 0.0
|
||||
channel_width_mhz: int = 20
|
||||
range_target_m: float = 4000.0
|
||||
path_loss_model: str = "FreeSpace"
|
||||
@@ -140,8 +143,9 @@ class EnvState:
|
||||
class SimRunner:
|
||||
"""封装一次 ns-3 仿真生命周期。"""
|
||||
|
||||
def __init__(self, config: SimConfig):
|
||||
def __init__(self, config: SimConfig, node_ips: dict[str, int] | None = None):
|
||||
self.config = config
|
||||
self._node_ips = node_ips
|
||||
self._thread: Optional[threading.Thread] = None
|
||||
self._wall_pacer_thread: Optional[threading.Thread] = None
|
||||
self._stop_event = threading.Event()
|
||||
@@ -150,6 +154,14 @@ class SimRunner:
|
||||
self._flows_runtime: dict[int, FlowRuntime] = {}
|
||||
self._ns: Any = None
|
||||
self._fm: Any = None
|
||||
self._fm_helper: Any = None
|
||||
self._classifier: Any = None
|
||||
self._bridge: Any = None
|
||||
# cppyy 的 std::function 转换只持有 callable 的弱引用。
|
||||
self._tick_callback = self._simulation_tick
|
||||
self._tap_telemetry: TapTelemetry | None = None
|
||||
self._ready = threading.Event()
|
||||
self._sim_elapsed = 0.0
|
||||
self._running = False
|
||||
self._start_time: float | None = None
|
||||
self._error: str | None = None
|
||||
@@ -161,7 +173,7 @@ class SimRunner:
|
||||
self._propagation_loss_model: Any = None
|
||||
self._range_model: Any = None
|
||||
self._phy_model_type: str = ""
|
||||
# 实际使用的 MAC 模式;当前版本强制 mesh,此处记录实际生效值
|
||||
# 实际安装的 MAC 模式。
|
||||
self._mac_mode_actual: str = ""
|
||||
# 运行时增删节点所需 helper(仅在 _build_and_run 完成后有效)
|
||||
self._phy_helper: Any = None
|
||||
@@ -193,55 +205,42 @@ class SimRunner:
|
||||
if self._running:
|
||||
raise RuntimeError("simulator already running")
|
||||
self._stop_event.clear()
|
||||
self._ready.clear()
|
||||
self._error = None
|
||||
self._thread = threading.Thread(target=self._run, name="ns3-sim", daemon=True)
|
||||
self._thread.start()
|
||||
# Block briefly so an immediate import error surfaces to the caller.
|
||||
self._thread.join(timeout=2.0)
|
||||
if not self._thread.is_alive() and self._error:
|
||||
if not self._ready.wait(timeout=30.0):
|
||||
self._stop_event.set()
|
||||
raise RuntimeError("simulator initialization timed out")
|
||||
if self._error:
|
||||
raise RuntimeError(f"simulator failed to start: {self._error}")
|
||||
self._running = self._thread.is_alive()
|
||||
if self._running:
|
||||
self._start_time = time.time()
|
||||
# 启动 wall-time 触发的命令 drain + 位置快照线程,绕开 sim 时钟
|
||||
# (实测 BestEffort + 10 节点 SpectrumWifiPhy 跑到 1/24x,sim-time
|
||||
# 调度的命令落地会拖到 20s+,前端用户体验不可接受)
|
||||
self._wall_pacer_thread = threading.Thread(
|
||||
target=self._wall_pacer_loop, name="ns3-wall-pacer", daemon=True,
|
||||
)
|
||||
self._wall_pacer_thread.start()
|
||||
|
||||
def stop(self, timeout: float = 5.0) -> None:
|
||||
if not self._running:
|
||||
return
|
||||
try:
|
||||
ns = self._ns
|
||||
if ns is not None:
|
||||
ns.core.Simulator.Stop() # schedules an immediate stop
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("Simulator.Stop() raised: %s", e)
|
||||
# Stop 本身也必须由仿真线程执行,tick 消费该事件。
|
||||
self._stop_event.set()
|
||||
if self._thread:
|
||||
self._thread.join(timeout=timeout)
|
||||
if self._wall_pacer_thread:
|
||||
self._wall_pacer_thread.join(timeout=2.0)
|
||||
self._wall_pacer_thread = None
|
||||
if self._thread.is_alive():
|
||||
raise RuntimeError("仿真线程尚未停止,不能拆除网络设备")
|
||||
self._phy_cache.clear()
|
||||
self._running = False
|
||||
|
||||
@property
|
||||
def running(self) -> bool:
|
||||
return self._running and (self._thread is not None and self._thread.is_alive())
|
||||
|
||||
@property
|
||||
def capture_drops(self) -> int:
|
||||
return self._tap_telemetry.capture_drops if self._tap_telemetry else 0
|
||||
|
||||
@property
|
||||
def elapsed(self) -> float:
|
||||
if self._start_time is None:
|
||||
return 0.0
|
||||
return time.time() - self._start_time
|
||||
return self._sim_elapsed
|
||||
|
||||
@property
|
||||
def mac_mode_actual(self) -> str:
|
||||
"""实际生效的 MAC 模式;当前版本强制 mesh。"""
|
||||
"""实际安装的 MAC 模式。"""
|
||||
return self._mac_mode_actual
|
||||
|
||||
# ------------------------------------------------- public snapshots
|
||||
@@ -261,13 +260,14 @@ class SimRunner:
|
||||
positions=[dict(p) for p in self._env_state.positions],
|
||||
path_loss_exponent=self._env_state.path_loss_exponent,
|
||||
frequency_mhz=self._env_state.frequency_mhz,
|
||||
phy_frequency_mhz=self._env_state.phy_frequency_mhz,
|
||||
channel_width_mhz=self._env_state.channel_width_mhz,
|
||||
range_target_m=self._env_state.range_target_m,
|
||||
path_loss_model=self._env_state.path_loss_model,
|
||||
)
|
||||
|
||||
def find_path(self, src_id: int, dst_id: int) -> list[int] | None:
|
||||
"""基于当前邻居图(位置 + range_target_m)做 BFS,返回 src→dst 的最少跳数路径。
|
||||
"""基于实际 Mesh peer 图做 BFS,返回 src→dst 的最少跳数路径。
|
||||
|
||||
返回的列表首元素 = src_id,末元素 = dst_id;若不连通返回 None。
|
||||
与 ns-3 实际 HWMP/AODV 路由可能不一致——这里只反映"几何上谁能听到谁"的拓扑层结果,
|
||||
@@ -325,27 +325,34 @@ class SimRunner:
|
||||
finally:
|
||||
try:
|
||||
if self._ns is not None:
|
||||
self._sim_elapsed = self._ns.core.Simulator.Now().GetSeconds()
|
||||
self._ns.core.Simulator.Destroy()
|
||||
except Exception: # noqa: BLE001, S110
|
||||
pass
|
||||
if self._tap_telemetry is not None:
|
||||
self._tap_telemetry.close()
|
||||
self._bridge = None
|
||||
self._running = False
|
||||
self._ready.set()
|
||||
|
||||
# --------------------------------------------------- ns-3 build steps
|
||||
def _build_and_run(self, ns: Any) -> None:
|
||||
cfg = self.config
|
||||
if cfg.mac_mode == "adhoc" and cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定不支持安全运行 AdHoc + TAP;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
|
||||
# 1. RealtimeSimulatorImpl 是 TapBridge 在 UseLocal 模式下保持运行的前提;
|
||||
# BestEffort 在事件队列为空时会立即返回,导致仿真线程退出。
|
||||
# 注:RealtimeSimulatorImpl 受 wall-time 约束,TAP 桥接下带宽上限约 1.5-2Mbps。
|
||||
# RealtimeSimulatorImpl 与真实 TAP 对时;周期 tick 保证事件队列持续运行。
|
||||
ns.core.GlobalValue.Bind(
|
||||
"SimulatorImplementationType",
|
||||
ns.core.StringValue("ns3::RealtimeSimulatorImpl"),
|
||||
)
|
||||
ns.core.Config.Set(
|
||||
ns.core.Config.SetDefault(
|
||||
"ns3::RealtimeSimulatorImpl::SynchronizationMode",
|
||||
ns.core.StringValue("HardLimit"),
|
||||
# cppyy 首次调用会 JIT;HardLimit 会因一次编译抖动直接 abort。
|
||||
ns.core.StringValue("BestEffort"),
|
||||
)
|
||||
ns.core.GlobalValue.Bind("ChecksumEnabled", ns.core.BooleanValue(True))
|
||||
ns.network.Mac48Address.ResetAllocationIndex()
|
||||
ns.core.RngSeedManager.SetSeed(cfg.seed)
|
||||
ns.core.RngSeedManager.SetRun(cfg.run)
|
||||
|
||||
@@ -381,9 +388,17 @@ class SimRunner:
|
||||
wifi.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
self._apply_rate_control(ns, wifi, cfg)
|
||||
|
||||
# 5. MAC:802.11s mesh + HWMP;mac_mode 由 config.py SimConfig validator
|
||||
# 强制为 "mesh"(NS-3.47 + cppyy 下 adhoc 会触发 Txop segfault)。
|
||||
devices = self._install_mesh(ns, cfg, phy, nodes)
|
||||
# 5. 将标准、速率配置应用到实际安装设备的 helper。
|
||||
if cfg.mac_mode == "mesh":
|
||||
devices = self._install_mesh(ns, cfg, phy, nodes)
|
||||
else:
|
||||
# 保留显式模式;禁止将不安全组合静默转换成另一种实验。
|
||||
if cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定的 AdHoc + TapBridge 存在上游崩溃风险;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
mac = ns.wifi.WifiMacHelper()
|
||||
mac.SetType("ns3::AdhocWifiMac", "Ssid", ns.wifi.SsidValue(ns.wifi.Ssid(cfg.ssid)))
|
||||
devices = wifi.Install(phy, mac, nodes)
|
||||
self._mac_mode_actual = "adhoc"
|
||||
|
||||
# 6. Mobility
|
||||
self._install_mobility(ns, cfg, nodes)
|
||||
@@ -394,6 +409,7 @@ class SimRunner:
|
||||
# 保存 ns-3 对象引用供动态控制使用
|
||||
self._nodes_container = nodes
|
||||
self._wifi_devices = devices
|
||||
self._configure_devices(ns, cfg, nodes)
|
||||
|
||||
# 8. IP addresses (192.168.100.10 + i, /24)
|
||||
ipv4 = ns.internet.Ipv4AddressHelper()
|
||||
@@ -467,9 +483,11 @@ class SimRunner:
|
||||
# remote container as a local mesh peer.
|
||||
|
||||
# 10. FlowMonitor
|
||||
if cfg.flow_monitor:
|
||||
if cfg.flow_monitor and cfg.traffic_mode != "tap":
|
||||
fm_helper = ns.flow_monitor.FlowMonitorHelper()
|
||||
self._fm_helper = fm_helper
|
||||
self._fm = fm_helper.InstallAll()
|
||||
self._classifier = fm_helper.GetClassifier()
|
||||
|
||||
# 11. Tracing
|
||||
if cfg.pcap:
|
||||
@@ -483,47 +501,73 @@ class SimRunner:
|
||||
for i in range(cfg.n_nodes):
|
||||
self._nodes_runtime[i] = NodeRuntime(id=i)
|
||||
|
||||
# 13. ns-3.47 + cppyy 不支持 Simulator.Schedule 传入 Python callback,
|
||||
# 因此取消 in-sim periodic tick;FlowMonitor 统计由 _wall_pacer_loop
|
||||
# 在 wall-time 线程中懒更新。
|
||||
# C++ 定时器解决 cppyy 无法直接向 Schedule 传入 Python callback 的问题。
|
||||
# 所有 ns-3 读写(含遥测)均在 Run 所在线程完成。
|
||||
import cppyy
|
||||
import sysconfig
|
||||
cppyy.add_include_path(sysconfig.get_paths()["include"])
|
||||
cppyy.include(str(Path(__file__).with_name("sim_runtime.h")))
|
||||
self._bridge = cppyy.gbl.manet.Runtime(self._tick_callback)
|
||||
if cfg.traffic_mode == "tap" and cfg.flow_monitor:
|
||||
self._tap_telemetry = TapTelemetry(cfg.tap_prefix, cfg.n_nodes, ip_to_id=self._node_ips)
|
||||
self._tap_telemetry.open()
|
||||
ns.core.Simulator.Stop(ns.core.Seconds(cfg.simulation_time))
|
||||
self._start_time = time.time()
|
||||
self._running = True
|
||||
self._bridge.Start()
|
||||
self._ready.set()
|
||||
self._bridge.Run()
|
||||
|
||||
# 14. Run!
|
||||
# 不再预设自动停止时间;仿真持续运行直到用户手动调用 stop()。
|
||||
# simulation_time 仅作为配置参考,不再调度 Simulator.Stop()。
|
||||
#
|
||||
# NS-3.47 + cppyy 的 Simulator.Run() 会阻塞并持有 CPython GIL,导致 FastAPI
|
||||
# 的 asyncio 事件循环冻结。通过 cppyy.cppdef 编译一个释放 GIL 的 C++ 包装器,
|
||||
# 让 Run() 在 C++ 层执行时释放 GIL,使 wall-pacer 线程和 API 主循环得以运行。
|
||||
log.info("Simulator.Run() begin (manual stop mode)")
|
||||
try:
|
||||
import cppyy
|
||||
if not hasattr(cppyy.gbl, "ns3_simulator_run_release_gil"):
|
||||
cppyy.cppdef("""
|
||||
extern "C" {
|
||||
void* PyEval_SaveThread(void);
|
||||
void PyEval_RestoreThread(void*);
|
||||
}
|
||||
void ns3_simulator_run_release_gil() {
|
||||
void* save = PyEval_SaveThread();
|
||||
try {
|
||||
ns3::Simulator::Run();
|
||||
} catch (...) {
|
||||
PyEval_RestoreThread(save);
|
||||
throw;
|
||||
}
|
||||
PyEval_RestoreThread(save);
|
||||
}
|
||||
""")
|
||||
cppyy.gbl.ns3_simulator_run_release_gil()
|
||||
log.info("Simulator.Run() end (GIL released)")
|
||||
except Exception as compile_err:
|
||||
log.warning(
|
||||
"GIL-releasing wrapper failed: %s. "
|
||||
"Falling back to direct Run() — API will freeze during simulation.",
|
||||
compile_err,
|
||||
)
|
||||
ns.core.Simulator.Run()
|
||||
log.info("Simulator.Run() end")
|
||||
@staticmethod
|
||||
def _channel_settings(cfg: SimConfig) -> str:
|
||||
"""带宽与频段一起配置,UHF 用合法 WiFi 代理频道计算调制。"""
|
||||
band = "BAND_2_4GHZ" if "2.4GHz" in cfg.standard else "BAND_5GHZ"
|
||||
width = cfg.channel_width_mhz
|
||||
channel = 0
|
||||
if band == "BAND_2_4GHZ":
|
||||
candidate = (cfg.frequency_mhz - 2407) / 5
|
||||
if candidate.is_integer() and candidate in (range(1, 14) if width == 20 else range(3, 12)):
|
||||
channel = int(candidate)
|
||||
else:
|
||||
candidate = (cfg.frequency_mhz - 5000) / 5
|
||||
legal = {
|
||||
20: {36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165},
|
||||
40: {38, 46, 54, 62, 102, 110, 118, 126, 134, 142, 151, 159},
|
||||
80: {42, 58, 106, 122, 138, 155},
|
||||
160: {50, 114},
|
||||
}
|
||||
if candidate.is_integer() and candidate in legal[width]:
|
||||
channel = int(candidate)
|
||||
return f"{{{channel}, {width}, {band}, 0}}"
|
||||
|
||||
def _configure_devices(self, ns: Any, cfg: SimConfig, nodes: Any) -> None:
|
||||
"""将 MAC 与竞争窗口设置接入实际安装的 WiFi 接口。"""
|
||||
for i in range(nodes.GetN()):
|
||||
node = nodes.Get(i)
|
||||
for j in range(node.GetNDevices()):
|
||||
wifi = node.GetDevice(j).GetObject[ns.wifi.WifiNetDevice]()
|
||||
if not wifi:
|
||||
continue
|
||||
phy = wifi.GetPhy()
|
||||
phy.SetAttribute("ChannelSettings", ns.core.StringValue(self._channel_settings(cfg)))
|
||||
if i == 0:
|
||||
self._env_state.phy_frequency_mhz = float(phy.GetFrequency())
|
||||
manager = wifi.GetRemoteStationManager()
|
||||
manager.SetAttribute("RtsCtsThreshold", ns.core.UintegerValue(cfg.rts_cts_threshold))
|
||||
manager.SetAttribute("FragmentationThreshold", ns.core.UintegerValue(cfg.fragmentation_threshold))
|
||||
if cfg.non_unicast_mode:
|
||||
manager.SetAttribute("NonUnicastMode", ns.core.StringValue(cfg.data_rate))
|
||||
mac = wifi.GetMac()
|
||||
txop = mac.GetTxop()
|
||||
if txop:
|
||||
txop.SetMinCw(cfg.cw_min)
|
||||
txop.SetMaxCw(cfg.cw_max)
|
||||
if mac.GetQosSupported():
|
||||
for tid in (0, 1, 4, 6):
|
||||
qos = mac.GetQosTxop(tid)
|
||||
if qos:
|
||||
qos.SetMinCw(cfg.cw_min)
|
||||
qos.SetMaxCw(cfg.cw_max)
|
||||
|
||||
# -------------------------------------------------- channel / propagation
|
||||
def _build_yans_phy(self, ns: Any, cfg: SimConfig) -> tuple[Any, Any | None, Any | None]:
|
||||
@@ -589,8 +633,9 @@ class SimRunner:
|
||||
|
||||
phy = ns.wifi.YansWifiPhyHelper()
|
||||
phy.SetChannel(channel)
|
||||
# ns-3.47 中 ChannelWidth 为 INITIAL_VALUE,不能在 helper.Set() 中设置;
|
||||
# 移除以避免 NS_FATAL_ERROR。如需非默认带宽,需通过 ChannelSettings 配置。
|
||||
initial_channel = "{100, 20, BAND_5GHZ, 0}" if cfg.mac_mode == "mesh" else self._channel_settings(cfg)
|
||||
phy.Set("ChannelSettings", ns.core.StringValue(initial_channel))
|
||||
# MeshHelper 安装时内部切换到频道 100,目标信道在安装完成后设置。
|
||||
return phy, loss, range_loss
|
||||
|
||||
def _build_spectrum_phy(self, ns: Any, cfg: SimConfig) -> tuple[Any, Any, Any | None]:
|
||||
@@ -645,10 +690,9 @@ class SimRunner:
|
||||
|
||||
phy = ns.wifi.SpectrumWifiPhyHelper()
|
||||
phy.SetChannel(spec_chan)
|
||||
# ns-3.47 中 ChannelWidth 为 INITIAL_VALUE,不能在 helper.Set() 中设置。
|
||||
# 频段表里 590 MHz 不是合法 802.11 频道,因此 SpectrumWifiPhy 内部仍按
|
||||
# 默认的 802.11a 5GHz 频道号工作;真实物理频段语义由 Friis 的 Frequency
|
||||
# 决定。Logger 里把 cfg.frequency_mhz 打出来便于审计。
|
||||
initial_channel = "{100, 20, BAND_5GHZ, 0}" if cfg.mac_mode == "mesh" else self._channel_settings(cfg)
|
||||
phy.Set("ChannelSettings", ns.core.StringValue(initial_channel))
|
||||
# 目标频段在安装完成后应用;UHF 使用合法的 WiFi 代理载波。
|
||||
log.info(
|
||||
"SpectrumWifiPhy: 中心频率 %.0f MHz / 带宽 %d MHz / 视距目标 %.0f m",
|
||||
cfg.frequency_mhz, cfg.channel_width_mhz, cfg.range_target_m,
|
||||
@@ -875,22 +919,14 @@ class SimRunner:
|
||||
) from None
|
||||
|
||||
mesh_helper.SetStackInstaller("ns3::Dot11sStack")
|
||||
# ns-3.47 中 MeshHelper.SetStandard 会导致 PHY channel 配置冲突
|
||||
# (WifiPhyOperatingChannel: No unique channel found),因此跳过。
|
||||
# 默认标准由 MeshHelper 内部决定,与物理层传播模型独立。
|
||||
# mesh_helper.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
# RandomStart:mesh 节点上电后随机抖动(避免同时发 BCN)
|
||||
mesh_helper.SetMacType("RandomStart", ns.core.TimeValue(ns.core.Seconds(0.1)))
|
||||
# 单接口模式即可——多接口 mesh 主要用于多频段聚合,不在本场景目标内。
|
||||
mesh_helper.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
mesh_helper.SetSpreadInterfaceChannels(ns.mesh.MeshHelper.ZERO_CHANNEL)
|
||||
mesh_helper.SetMacType(
|
||||
"RandomStart", ns.core.TimeValue(ns.core.Seconds(0.1)),
|
||||
"BeaconInterval", ns.core.TimeValue(ns.core.MilliSeconds(cfg.beacon_interval)),
|
||||
)
|
||||
mesh_helper.SetNumberOfInterfaces(1)
|
||||
# ns-3.47 默认 mesh 使用 802.11a;cfg.data_rate 中的 ErpOfdmRate* 是 802.11g
|
||||
# 专有命名,与 802.11a 不兼容,会导致 "Can't find response rate" NS_FATAL。
|
||||
# 因此跳过 SetRemoteStationManager,让 mesh 使用内置 ARF 速率控制。
|
||||
# mesh_helper.SetRemoteStationManager(
|
||||
# "ns3::ConstantRateWifiManager",
|
||||
# "DataMode", ns.core.StringValue(cfg.data_rate),
|
||||
# "ControlMode", ns.core.StringValue(cfg.data_rate),
|
||||
# )
|
||||
self._apply_rate_control(ns, mesh_helper, cfg)
|
||||
devices = mesh_helper.Install(phy, nodes)
|
||||
# ns-3 MeshPointDevice 默认使用 Mac48Address::Allocate() 顺序分配 MAC;
|
||||
# 容器 eth0 由 netns.mesh_mac() 设为 00:00:00:00:00:{i+1}。
|
||||
@@ -908,6 +944,7 @@ class SimRunner:
|
||||
@staticmethod
|
||||
def _wifi_standard(ns: Any, label: str) -> Any:
|
||||
return {
|
||||
"80211a": ns.wifi.WIFI_STANDARD_80211a,
|
||||
"80211n-2.4GHz": ns.wifi.WIFI_STANDARD_80211n,
|
||||
"80211n-5GHz": ns.wifi.WIFI_STANDARD_80211n,
|
||||
"80211ac": ns.wifi.WIFI_STANDARD_80211ac,
|
||||
@@ -922,7 +959,7 @@ class SimRunner:
|
||||
wifi.SetRemoteStationManager(
|
||||
"ns3::ConstantRateWifiManager",
|
||||
"DataMode", ns.core.StringValue(cfg.data_rate),
|
||||
"ControlMode", ns.core.StringValue(cfg.data_rate),
|
||||
"ControlMode", ns.core.StringValue("OfdmRate6Mbps" if "5GHz" in cfg.standard or cfg.standard in {"80211a", "80211ac"} else "ErpOfdmRate6Mbps"),
|
||||
)
|
||||
elif rc == "Arf":
|
||||
# Fix for the C++ Arf bug: use proper ns-3 attribute types,
|
||||
@@ -937,7 +974,7 @@ class SimRunner:
|
||||
elif rc == "Onoe":
|
||||
wifi.SetRemoteStationManager("ns3::OnoeWifiManager")
|
||||
elif rc == "Minstrel":
|
||||
wifi.SetRemoteStationManager("ns3::MinstrelWifiManager")
|
||||
wifi.SetRemoteStationManager("ns3::MinstrelHtWifiManager" if cfg.standard != "80211a" else "ns3::MinstrelWifiManager")
|
||||
else:
|
||||
wifi.SetRemoteStationManager("ns3::ArfWifiManager")
|
||||
|
||||
@@ -1056,13 +1093,18 @@ class SimRunner:
|
||||
def _inject_command(self, fn: Callable[[], None]) -> dict[str, Any]:
|
||||
"""将命令闭包放入队列,同步等待执行结果返回。
|
||||
|
||||
命令由 _wall_pacer_loop 在 wall-time 线程中执行。
|
||||
命令由 C++ Runtime 在 ns-3 仿真线程中执行。
|
||||
最多等待 5 秒;超时返回失败。
|
||||
"""
|
||||
if not self.running:
|
||||
return {"applied": False, "reason": "simulator is not running"}
|
||||
result: dict[str, Any] = {}
|
||||
cancelled = threading.Event()
|
||||
done_event = threading.Event()
|
||||
|
||||
def _wrapped():
|
||||
if cancelled.is_set():
|
||||
return
|
||||
try:
|
||||
fn()
|
||||
result["ok"] = True
|
||||
@@ -1072,10 +1114,14 @@ class SimRunner:
|
||||
finally:
|
||||
done_event.set()
|
||||
|
||||
self._command_queue.put(_wrapped)
|
||||
try:
|
||||
self._command_queue.put_nowait(_wrapped)
|
||||
except queue.Full:
|
||||
return {"applied": False, "reason": "command queue is full"}
|
||||
|
||||
if not done_event.wait(timeout=5.0):
|
||||
return {"applied": False, "reason": "command execution timeout (wall pacer not responding)"}
|
||||
cancelled.set()
|
||||
return {"applied": False, "reason": "command execution timeout (simulation thread not responding)"}
|
||||
|
||||
if not result.get("ok"):
|
||||
return {"applied": False, "reason": result.get("error", "unknown execution error")}
|
||||
@@ -1174,6 +1220,9 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not all(math.isfinite(v) for v in (x, y, z)):
|
||||
return {"applied": False, "reason": "position must be finite"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._nodes_container is None:
|
||||
@@ -1197,6 +1246,9 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not math.isfinite(dbm) or not -200 <= dbm <= 100:
|
||||
return {"applied": False, "reason": "invalid dBm value"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._wifi_devices is None:
|
||||
@@ -1219,6 +1271,9 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not math.isfinite(dbm) or not -200 <= dbm <= 100:
|
||||
return {"applied": False, "reason": "invalid dBm value"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._wifi_devices is None:
|
||||
@@ -1242,11 +1297,13 @@ class SimRunner:
|
||||
没有 Exponent 属性,SetAttribute 会触发 ns-3 NS_FATAL_ERROR → std::terminate,
|
||||
Python try/except 无法捕获,uvicorn 会被 docker 重启。
|
||||
"""
|
||||
if not math.isfinite(exponent) or exponent <= 0:
|
||||
return {"applied": False, "reason": "exponent must be positive and finite"}
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "LogDistance" not in model_name:
|
||||
model_name = self.config.path_loss_model
|
||||
if model_name != "LogDistance":
|
||||
return {"applied": False, "reason": f"current model is {model_name}, not LogDistance"}
|
||||
|
||||
def _do():
|
||||
@@ -1260,42 +1317,75 @@ class SimRunner:
|
||||
return self._inject_command(_do)
|
||||
|
||||
def set_frequency(self, mhz: int) -> dict[str, Any]:
|
||||
"""修改全局中心频率(线程安全)。
|
||||
"""WiFi 频点同步 PHY;UHF 仅改变损耗预算,保留明确的代理载波。"""
|
||||
if mhz <= 0:
|
||||
return {"applied": False, "reason": "frequency must be positive"}
|
||||
with self._lock:
|
||||
width = self._env_state.channel_width_mhz
|
||||
standard = self.config.standard
|
||||
uhf = mhz < 1000
|
||||
if not uhf:
|
||||
if 2400 <= mhz <= 2500:
|
||||
if standard in {"80211a", "80211ac"}:
|
||||
return {"applied": False, "reason": f"{standard} does not support 2.4 GHz"}
|
||||
standard = "80211ax-2.4GHz" if "80211ax" in standard else "80211n-2.4GHz"
|
||||
elif 4900 <= mhz <= 5900:
|
||||
if standard not in {"80211a", "80211ac"}:
|
||||
standard = "80211ax-5GHz" if "80211ax" in standard else "80211n-5GHz"
|
||||
else:
|
||||
return {"applied": False, "reason": "not a supported WiFi frequency or UHF budget"}
|
||||
try:
|
||||
cfg = self.config.merged_with({"frequencyMhz": mhz, "channelWidthMhz": width, "standard": standard})
|
||||
except ValueError as exc:
|
||||
return {"applied": False, "reason": str(exc)}
|
||||
settings = self._channel_settings(cfg)
|
||||
if not uhf and settings.startswith("{0,"):
|
||||
return {"applied": False, "reason": "frequency is not a legal channel center for the current bandwidth"}
|
||||
adjusts_loss = self.config.path_loss_model in {"FreeSpace", "TwoRayGround"}
|
||||
if uhf and not adjusts_loss:
|
||||
return {"applied": False, "reason": "UHF budget requires FreeSpace or TwoRayGround"}
|
||||
|
||||
SpectrumWifiPhy 的 Frequency 属性是 INITIAL_VALUE 类型,运行时不可设置;
|
||||
YansWifiPhy 同理。因此本方法只在 Friis/TwoRayGround 路径损耗模型上调整
|
||||
Frequency(那是真正参与传播预算计算的字段),PHY 端的载波/调制保持不动。
|
||||
"""
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "Friis" not in model_name and "TwoRay" not in model_name:
|
||||
return {"applied": False, "reason": f"current model {model_name} does not support frequency adjustment"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
freq_hz = float(mhz) * 1e6
|
||||
self._propagation_loss_model.SetAttribute(
|
||||
"Frequency", ns.core.DoubleValue(freq_hz)
|
||||
)
|
||||
def _do() -> None:
|
||||
if not uhf:
|
||||
for i in range(cfg.n_nodes):
|
||||
phy, error = self._get_node_phy(i)
|
||||
if error:
|
||||
raise RuntimeError(error)
|
||||
phy.SetAttribute("ChannelSettings", self._ns.core.StringValue(settings))
|
||||
if self.config.rate_control == "Constant":
|
||||
manager = phy.GetDevice().GetRemoteStationManager()
|
||||
control = "ErpOfdmRate6Mbps" if "2.4GHz" in standard else "OfdmRate6Mbps"
|
||||
manager.SetAttribute("ControlMode", self._ns.core.StringValue(control))
|
||||
if adjusts_loss:
|
||||
self._propagation_loss_model.SetAttribute("Frequency", self._ns.core.DoubleValue(float(mhz) * 1e6))
|
||||
with self._lock:
|
||||
self._env_state.frequency_mhz = int(mhz)
|
||||
log.info(
|
||||
"propagation-loss frequency set to %d MHz (%.0f Hz); PHY 载波保持不动,如需重置 802.11 频道请重启仿真",
|
||||
mhz, freq_hz,
|
||||
)
|
||||
|
||||
return self._inject_command(_do)
|
||||
self._env_state.frequency_mhz = mhz
|
||||
result = self._inject_command(_do)
|
||||
if result.get("applied") and uhf:
|
||||
result["note"] = "UHF propagation budget only; PHY uses a WiFi proxy carrier"
|
||||
return result
|
||||
|
||||
def set_channel_width(self, mhz: int) -> dict[str, Any]:
|
||||
"""修改全局信道宽度(线程安全)。
|
||||
"""通过可写的 ChannelSettings 在仿真线程切换信道宽度。"""
|
||||
try:
|
||||
with self._lock:
|
||||
frequency = self._env_state.frequency_mhz
|
||||
standard = self.config.standard
|
||||
if "80211n" in standard or "80211ax" in standard:
|
||||
standard = standard.split("-")[0] + ("-5GHz" if frequency >= 4900 else "-2.4GHz")
|
||||
cfg = self.config.merged_with({"channelWidthMhz": mhz, "frequencyMhz": frequency, "standard": standard})
|
||||
except ValueError as exc:
|
||||
return {"applied": False, "reason": str(exc)}
|
||||
|
||||
SpectrumWifiPhy 与 YansWifiPhy 的 ChannelWidth 都不允许运行时设置(都是
|
||||
INITIAL_VALUE)。本方法只 warning,提示用户重启仿真才能生效;直接调
|
||||
SetAttribute 会 NS_FATAL_ERROR 把 uvicorn 杀掉。
|
||||
"""
|
||||
return {"applied": False, "reason": "channel width requires simulator restart"}
|
||||
def _do() -> None:
|
||||
for i in range(cfg.n_nodes):
|
||||
phy, error = self._get_node_phy(i)
|
||||
if error:
|
||||
raise RuntimeError(error)
|
||||
phy.SetAttribute("ChannelSettings", self._ns.core.StringValue(self._channel_settings(cfg)))
|
||||
with self._lock:
|
||||
self._env_state.channel_width_mhz = mhz
|
||||
return self._inject_command(_do)
|
||||
|
||||
def set_range_target(self, meters: float) -> dict[str, Any]:
|
||||
"""修改全局最大通信距离(线程安全)。
|
||||
@@ -1303,6 +1393,8 @@ class SimRunner:
|
||||
优先调整叠加的 Range 模型(所有主模型都叠加了 Range 截断);
|
||||
若叠加模型不存在,回退到直接调整主传播损耗模型(仅 Range 模型本身支持)。
|
||||
"""
|
||||
if not math.isfinite(meters) or meters <= 0:
|
||||
return {"applied": False, "reason": "range must be positive and finite"}
|
||||
# 1. 优先使用叠加的 Range 模型(所有场景都可用)
|
||||
range_model = self._range_model
|
||||
if range_model is not None:
|
||||
@@ -1317,8 +1409,8 @@ class SimRunner:
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "Range" not in model_name:
|
||||
model_name = self.config.path_loss_model
|
||||
if model_name != "Range":
|
||||
return {"applied": False, "reason": f"current model is {model_name}, not Range"}
|
||||
|
||||
def _do():
|
||||
@@ -1331,146 +1423,116 @@ class SimRunner:
|
||||
|
||||
return self._inject_command(_do)
|
||||
|
||||
def _wall_pacer_loop(self) -> None:
|
||||
"""wall-time 周期:drain 命令队列 + 刷新节点位置快照。
|
||||
|
||||
独立于 ns-3 sim 时钟,避免 sim 实时倍率 (BestEffort 下重负载会跌到 1/20x)
|
||||
把命令落地与位置回读拖到 20s+。
|
||||
|
||||
thread-safety 注记:
|
||||
- `mm.SetPosition` / `mm.GetPosition` 在 ConstantPositionMobilityModel 下是
|
||||
单一字段读写,且 CPython GIL 下 Python 调用绑定时序列化执行,与 ns-3 主循环
|
||||
的 C++ 段并发只在 m_position 上读写——x86 对齐写是原子的,最坏情况是
|
||||
下一帧出现一次撕裂,可接受。
|
||||
- 对 RandomWalk/GaussMarkov 等带内部 schedule 的模型,从外部线程改 position
|
||||
仍存在风险;tactical 用 grid (ConstantPosition) 路径已规避。
|
||||
"""
|
||||
target_period = 0.1 # 10 Hz 目标
|
||||
while not self._stop_event.is_set():
|
||||
loop_start = time.monotonic()
|
||||
ns = self._ns
|
||||
if not self._running or ns is None or self._nodes_container is None:
|
||||
time.sleep(target_period)
|
||||
continue
|
||||
try:
|
||||
# 1. 排空命令队列
|
||||
while not self._command_queue.empty():
|
||||
try:
|
||||
cmd = self._command_queue.get_nowait()
|
||||
cmd()
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("dynamic command failed: %s", e)
|
||||
# 2. 刷新位置快照 + 邻居(在锁内,快速操作)
|
||||
def _simulation_tick(self) -> None:
|
||||
"""仅由 C++ Runtime 在仿真线程调用,API 只能读复制后的快照。"""
|
||||
ns = self._ns
|
||||
self._sim_elapsed = ns.core.Simulator.Now().GetSeconds()
|
||||
if self._stop_event.is_set():
|
||||
ns.core.Simulator.Stop()
|
||||
return
|
||||
try:
|
||||
# 1. 排空命令队列
|
||||
while not self._command_queue.empty():
|
||||
try:
|
||||
cmd = self._command_queue.get_nowait()
|
||||
cmd()
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("dynamic command failed: %s", e)
|
||||
phy, _ = self._get_node_phy(0)
|
||||
if phy is not None:
|
||||
with self._lock:
|
||||
n_nodes = self.config.n_nodes
|
||||
# 必须用 _env_state.range_target_m(动态控制可能已修改),
|
||||
# 不能用 self.config.range_target_m(启动时的静态快照)。
|
||||
max_range = self._env_state.range_target_m
|
||||
# 2a. 位置
|
||||
for i in range(n_nodes):
|
||||
node = self._nodes_container.Get(i)
|
||||
# ns-3.47 + cppyy:模板方法 GetObject 用方括号语法
|
||||
mm = node.GetObject[ns.mobility.MobilityModel]()
|
||||
if mm:
|
||||
pos = mm.GetPosition()
|
||||
nr = self._nodes_runtime.setdefault(i, NodeRuntime(id=i))
|
||||
nr.x = float(pos.x)
|
||||
nr.y = float(pos.y)
|
||||
self._env_state.positions[i] = {"x": float(pos.x), "y": float(pos.y), "z": float(pos.z)}
|
||||
# 2b. 邻居(按距离 + range_target_m 判定)
|
||||
for i in range(n_nodes):
|
||||
ni = self._nodes_runtime.get(i)
|
||||
if not ni:
|
||||
continue
|
||||
neighbors = []
|
||||
for j in range(n_nodes):
|
||||
if i == j:
|
||||
continue
|
||||
nj = self._nodes_runtime.get(j)
|
||||
if not nj:
|
||||
continue
|
||||
if math.hypot(ni.x - nj.x, ni.y - nj.y) <= max_range:
|
||||
neighbors.append(j)
|
||||
ni.neighbors = neighbors
|
||||
# 2c. tap 接口 RX/TX(真实容器流量,FlowMonitor 看不到) —— 文件 I/O 在锁外
|
||||
tap_prefix = self.config.tap_prefix
|
||||
self._env_state.phy_frequency_mhz = float(phy.GetFrequency())
|
||||
# 2. 刷新位置快照 + 邻居(在锁内,快速操作)
|
||||
with self._lock:
|
||||
n_nodes = self.config.n_nodes
|
||||
# 2a. 位置
|
||||
for i in range(n_nodes):
|
||||
node = self._nodes_container.Get(i)
|
||||
# ns-3.47 + cppyy:模板方法 GetObject 用方括号语法
|
||||
mm = node.GetObject[ns.mobility.MobilityModel]()
|
||||
if mm:
|
||||
pos = mm.GetPosition()
|
||||
nr = self._nodes_runtime.setdefault(i, NodeRuntime(id=i))
|
||||
nr.x = float(pos.x)
|
||||
nr.y = float(pos.y)
|
||||
self._env_state.positions[i] = {"x": float(pos.x), "y": float(pos.y), "z": float(pos.z)}
|
||||
# 实际已建立的 Mesh peer 链路;AdHoc 无 peer 协议,不伪造连接。
|
||||
for i in range(n_nodes):
|
||||
self._nodes_runtime[i].neighbors = list(self._bridge.Neighbors(self._wifi_devices, i))
|
||||
# 2c. tap 接口 RX/TX(真实容器流量,FlowMonitor 看不到) —— 文件 I/O 在锁外
|
||||
tap_prefix = self.config.tap_prefix
|
||||
with self._lock:
|
||||
node_ids = list(self._nodes_runtime.keys())
|
||||
for i in node_ids:
|
||||
try:
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/rx_packets") as fh:
|
||||
rx = int(fh.read().strip())
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/tx_packets") as fh:
|
||||
tx = int(fh.read().strip())
|
||||
with self._lock:
|
||||
nr = self._nodes_runtime.get(i)
|
||||
if nr:
|
||||
nr.rx_packets = rx
|
||||
nr.tx_packets = tx
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
# 2d. 在仿真线程读取 TAP 采集器或内部 IP 流的 FlowMonitor。
|
||||
if self._tap_telemetry is not None:
|
||||
self._tap_telemetry.poll()
|
||||
with self._lock:
|
||||
node_ids = list(self._nodes_runtime.keys())
|
||||
for i in node_ids:
|
||||
try:
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/rx_packets") as fh:
|
||||
rx = int(fh.read().strip())
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/tx_packets") as fh:
|
||||
tx = int(fh.read().strip())
|
||||
with self._lock:
|
||||
nr = self._nodes_runtime.get(i)
|
||||
if nr:
|
||||
nr.rx_packets = rx
|
||||
nr.tx_packets = tx
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
# 2d. FlowMonitor 统计 (ns-3.47 cppyy 不支持 Simulator.Schedule
|
||||
# 传入 Python callback,改在 wall-time 线程懒更新)
|
||||
# 使用增量更新替代全量 clear+重建,减少 GC 压力
|
||||
if self._fm is not None:
|
||||
try:
|
||||
self._fm.CheckForLostPackets()
|
||||
stats = self._fm.GetFlowStats()
|
||||
classifier = None
|
||||
if hasattr(self._fm, "GetClassifier"):
|
||||
classifier = self._fm.GetClassifier()
|
||||
# 在锁外构建新数据,锁内仅做交换
|
||||
flows_batch: dict[int, FlowRuntime] = {}
|
||||
seen: set[int] = set()
|
||||
for fid, st in stats:
|
||||
seen.add(fid)
|
||||
source, destination = "", ""
|
||||
if classifier:
|
||||
ft = classifier.FindFlow(fid)
|
||||
source = str(ft.sourceAddress)
|
||||
destination = str(ft.destinationAddress)
|
||||
elapsed = max(
|
||||
(st.timeLastRxPacket.GetSeconds()
|
||||
- st.timeFirstTxPacket.GetSeconds()),
|
||||
1e-3, # 最小 1ms 避免溢出
|
||||
)
|
||||
throughput_mbps = (st.rxBytes * 8.0) / elapsed / 1e6
|
||||
avg_delay = (st.delaySum.GetSeconds() / st.rxPackets) \
|
||||
if st.rxPackets else 0.0
|
||||
flows_batch[fid] = FlowRuntime(
|
||||
flow_id=fid,
|
||||
source=source,
|
||||
destination=destination,
|
||||
tx_packets=st.txPackets,
|
||||
rx_packets=st.rxPackets,
|
||||
lost_packets=st.lostPackets,
|
||||
avg_delay=avg_delay,
|
||||
throughput=throughput_mbps,
|
||||
)
|
||||
# 增量合并到共享存储
|
||||
with self._lock:
|
||||
for fid, fr in flows_batch.items():
|
||||
existing = self._flows_runtime.get(fid)
|
||||
if existing is not None:
|
||||
existing.source = fr.source
|
||||
existing.destination = fr.destination
|
||||
existing.tx_packets = fr.tx_packets
|
||||
existing.rx_packets = fr.rx_packets
|
||||
existing.lost_packets = fr.lost_packets
|
||||
existing.avg_delay = fr.avg_delay
|
||||
existing.throughput = fr.throughput
|
||||
else:
|
||||
self._flows_runtime[fid] = fr
|
||||
# 删除已不存在的流
|
||||
for dead_fid in list(self._flows_runtime):
|
||||
if dead_fid not in seen:
|
||||
del self._flows_runtime[dead_fid]
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("flow monitor poll failed: %s", e)
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("wall pacer iteration failed: %s", e)
|
||||
# 自适应 sleep:测量本次迭代耗时,动态调整以维持目标频率
|
||||
elapsed = time.monotonic() - loop_start
|
||||
sleep_time = max(0.0, target_period - elapsed)
|
||||
if sleep_time > 0:
|
||||
self._stop_event.wait(sleep_time)
|
||||
self._flows_runtime = {f["flow_id"]: FlowRuntime(**f) for f in self._tap_telemetry.snapshot()}
|
||||
if self._fm is not None and self.config.traffic_mode != "tap":
|
||||
try:
|
||||
self._fm.CheckForLostPackets()
|
||||
stats = self._fm.GetFlowStats()
|
||||
classifier = self._classifier
|
||||
# 在锁外构建新数据,锁内仅做交换
|
||||
flows_batch: dict[int, FlowRuntime] = {}
|
||||
seen: set[int] = set()
|
||||
for fid, st in stats:
|
||||
seen.add(fid)
|
||||
source, destination = "", ""
|
||||
if classifier:
|
||||
ft = classifier.FindFlow(fid)
|
||||
source = str(ft.sourceAddress)
|
||||
destination = str(ft.destinationAddress)
|
||||
elapsed = max(
|
||||
(st.timeLastRxPacket.GetSeconds()
|
||||
- st.timeFirstTxPacket.GetSeconds()),
|
||||
1e-3, # 最小 1ms 避免溢出
|
||||
)
|
||||
throughput_mbps = (st.rxBytes * 8.0) / elapsed / 1e6
|
||||
avg_delay = (st.delaySum.GetSeconds() / st.rxPackets) \
|
||||
if st.rxPackets else 0.0
|
||||
flows_batch[fid] = FlowRuntime(
|
||||
flow_id=fid,
|
||||
source=source,
|
||||
destination=destination,
|
||||
tx_packets=st.txPackets,
|
||||
rx_packets=st.rxPackets,
|
||||
lost_packets=st.lostPackets,
|
||||
avg_delay=avg_delay * 1000.0,
|
||||
throughput=throughput_mbps,
|
||||
)
|
||||
# 增量合并到共享存储
|
||||
with self._lock:
|
||||
for fid, fr in flows_batch.items():
|
||||
existing = self._flows_runtime.get(fid)
|
||||
if existing is not None:
|
||||
existing.source = fr.source
|
||||
existing.destination = fr.destination
|
||||
existing.tx_packets = fr.tx_packets
|
||||
existing.rx_packets = fr.rx_packets
|
||||
existing.lost_packets = fr.lost_packets
|
||||
existing.avg_delay = fr.avg_delay
|
||||
existing.throughput = fr.throughput
|
||||
else:
|
||||
self._flows_runtime[fid] = fr
|
||||
# 删除已不存在的流
|
||||
for dead_fid in list(self._flows_runtime):
|
||||
if dead_fid not in seen:
|
||||
del self._flows_runtime[dead_fid]
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("flow monitor poll failed: %s", e)
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("simulation tick failed: %s", e)
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
#include <Python.h>
|
||||
#include <functional>
|
||||
#include <algorithm>
|
||||
#include <ns3/simulator.h>
|
||||
#include <ns3/nstime.h>
|
||||
#include <ns3/net-device-container.h>
|
||||
#include <ns3/wifi-net-device.h>
|
||||
#include <ns3/mesh-point-device.h>
|
||||
#include <ns3/peer-management-protocol.h>
|
||||
#include <ns3/peer-link.h>
|
||||
|
||||
namespace manet {
|
||||
// cppyy 只需转换构造参数;Schedule 始终接收原生 C++ 成员函数。
|
||||
class Runtime {
|
||||
public:
|
||||
explicit Runtime(std::function<void()> callback) : m_callback(std::move(callback)) {}
|
||||
void Start() { ns3::Simulator::ScheduleNow(&Runtime::Tick, this); }
|
||||
void Run() {
|
||||
auto* saved = PyEval_SaveThread();
|
||||
try { ns3::Simulator::Run(); }
|
||||
catch (...) { PyEval_RestoreThread(saved); throw; }
|
||||
PyEval_RestoreThread(saved);
|
||||
}
|
||||
static std::vector<uint32_t> Neighbors(const ns3::NetDeviceContainer& devices, uint32_t i) {
|
||||
std::vector<uint32_t> result;
|
||||
auto mesh = devices.Get(i)->GetObject<ns3::MeshPointDevice>();
|
||||
if (!mesh) return result;
|
||||
auto pmp = mesh->GetObject<ns3::dot11s::PeerManagementProtocol>();
|
||||
if (!pmp) return result;
|
||||
for (auto link : pmp->GetPeerLinks()) {
|
||||
for (uint32_t j = 0; j < devices.GetN(); ++j) {
|
||||
if (i == j) continue;
|
||||
auto other = devices.Get(j)->GetObject<ns3::MeshPointDevice>();
|
||||
if (!other) continue;
|
||||
for (auto iface : other->GetInterfaces()) {
|
||||
if (iface->GetAddress() == link->GetPeerAddress()) {
|
||||
if (std::find(result.begin(), result.end(), j) == result.end()) result.push_back(j);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
private:
|
||||
void Tick() {
|
||||
auto gil = PyGILState_Ensure();
|
||||
try { m_callback(); }
|
||||
catch (...) { PyGILState_Release(gil); throw; }
|
||||
PyGILState_Release(gil);
|
||||
ns3::Simulator::Schedule(ns3::MilliSeconds(100), &Runtime::Tick, this);
|
||||
}
|
||||
std::function<void()> m_callback;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
"""从独立 TAP 的 IPv4 帧采集端到端统计,不依赖 ns-3 的 IP 协议栈。
|
||||
|
||||
所有 TAP 共用宿主时钟,以内核接收时间戳计算时延(毫秒)。仅统计已知节点
|
||||
之间的单播 IPv4;丢包是发送后 10 秒仍未观察到接收的包,不把在途包算丢失。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import socket
|
||||
import struct
|
||||
import time
|
||||
from collections import defaultdict, deque
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass
|
||||
class _Flow:
|
||||
flow_id: int
|
||||
source: str
|
||||
destination: str
|
||||
tx_packets: int = 0
|
||||
rx_packets: int = 0
|
||||
lost_packets: int = 0
|
||||
rx_bytes: int = 0
|
||||
delay_sum_ms: float = 0.0
|
||||
first_tx: float = 0.0
|
||||
last_rx: float = 0.0
|
||||
pending: dict[bytes, deque[float]] = field(default_factory=lambda: defaultdict(deque))
|
||||
|
||||
|
||||
class TapTelemetry:
|
||||
"""被动读取 AF_PACKET 副本,不修改或转发用户数据。"""
|
||||
|
||||
def __init__(self, prefix: str, count: int, loss_timeout: float = 10.0, ip_to_id: dict[str, int] | None = None) -> None:
|
||||
self.prefix = prefix
|
||||
self.count = count
|
||||
self.loss_timeout = loss_timeout
|
||||
self.sockets: list[tuple[int, socket.socket]] = []
|
||||
self.flows: dict[tuple[Any, ...], _Flow] = {}
|
||||
self.ip_to_id = ip_to_id if ip_to_id is not None else {f"192.168.100.{10 + i}": i for i in range(count)}
|
||||
self.capture_drops = 0
|
||||
|
||||
def open(self) -> None:
|
||||
"""权限或接口缺失时使启动失败,避免把缺失统计展示为零流量。"""
|
||||
try:
|
||||
for i in range(self.count):
|
||||
# ETH_P_ALL 才会接收 PACKET_OUTGOING,IPv4 过滤在解析时完成。
|
||||
sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(3))
|
||||
self.sockets.append((i, sock))
|
||||
sock.setsockopt(socket.SOL_SOCKET, 35, 1) # Linux SO_TIMESTAMPNS
|
||||
sock.bind((f"{self.prefix}{i}", 0))
|
||||
sock.setblocking(False)
|
||||
except Exception:
|
||||
self.close()
|
||||
raise
|
||||
|
||||
def close(self) -> None:
|
||||
for _, sock in self.sockets:
|
||||
sock.close()
|
||||
self.sockets.clear()
|
||||
|
||||
def poll(self) -> None:
|
||||
events = []
|
||||
for node_id, sock in self.sockets:
|
||||
for _ in range(4096):
|
||||
try:
|
||||
frame, anc, _, address = sock.recvmsg(65535, 128)
|
||||
except BlockingIOError:
|
||||
break
|
||||
timestamp = time.time()
|
||||
for level, kind, data in anc:
|
||||
if level == socket.SOL_SOCKET and kind == 35:
|
||||
sec, nano = struct.unpack("@ll", data[:struct.calcsize("@ll")])
|
||||
timestamp = sec + nano / 1e9
|
||||
events.append((timestamp, node_id, address[2] == socket.PACKET_OUTGOING, frame))
|
||||
# PACKET_STATISTICS 的读取会重置内核计数。
|
||||
_, drops = struct.unpack("II", sock.getsockopt(263, 6, 8))
|
||||
self.capture_drops += drops
|
||||
# 跨接口接收顺序不等于发送顺序,先按内核时间排序再关联。
|
||||
for timestamp, node_id, outgoing, frame in sorted(events, key=lambda e: e[0]):
|
||||
self.observe(node_id, outgoing, frame, timestamp)
|
||||
self.expire(time.time())
|
||||
|
||||
def observe(self, node_id: int, outgoing: bool, frame: bytes, timestamp: float) -> None:
|
||||
"""记录一条捕获事件;可离线验证重复包、丢包和时延计算。"""
|
||||
if len(frame) < 34 or frame[12:14] != b"\x08\x00":
|
||||
return
|
||||
ip = frame[14:]
|
||||
ihl = (ip[0] & 15) * 4
|
||||
length = int.from_bytes(ip[2:4], "big")
|
||||
if ip[0] >> 4 != 4 or ihl < 20 or length < ihl or len(ip) < length:
|
||||
return
|
||||
ip = ip[:length]
|
||||
source, destination = socket.inet_ntoa(ip[12:16]), socket.inet_ntoa(ip[16:20])
|
||||
sid, did = self.ip_to_id.get(source), self.ip_to_id.get(destination)
|
||||
if sid is None or did is None or sid == did:
|
||||
return
|
||||
if node_id != (sid if outgoing else did):
|
||||
return
|
||||
protocol = ip[9]
|
||||
fragment = int.from_bytes(ip[6:8], "big") & 0x1fff
|
||||
ports = struct.unpack("!HH", ip[ihl:ihl + 4]) if protocol in (6, 17) and not fragment and len(ip) >= ihl + 4 else (0, 0)
|
||||
key = (source, destination, protocol, *ports)
|
||||
flow = self.flows.setdefault(key, _Flow(len(self.flows) + 1, source, destination))
|
||||
fingerprint = hashlib.blake2b(ip, digest_size=16).digest()
|
||||
if outgoing:
|
||||
if not flow.tx_packets:
|
||||
flow.first_tx = timestamp
|
||||
flow.tx_packets += 1
|
||||
flow.pending[fingerprint].append(timestamp)
|
||||
else:
|
||||
pending = flow.pending.get(fingerprint)
|
||||
if not pending:
|
||||
return # 忽略重复接收,不能创造没有发送记录的测量值。
|
||||
sent = pending.popleft()
|
||||
if not pending:
|
||||
del flow.pending[fingerprint]
|
||||
flow.rx_packets += 1
|
||||
flow.rx_bytes += length
|
||||
flow.last_rx = timestamp
|
||||
flow.delay_sum_ms += max(0.0, timestamp - sent) * 1000.0
|
||||
|
||||
def expire(self, now: float) -> None:
|
||||
for flow in self.flows.values():
|
||||
for fingerprint, pending in list(flow.pending.items()):
|
||||
while pending and now - pending[0] >= self.loss_timeout:
|
||||
pending.popleft()
|
||||
flow.lost_packets += 1
|
||||
if not pending:
|
||||
del flow.pending[fingerprint]
|
||||
|
||||
def snapshot(self) -> list[dict[str, Any]]:
|
||||
return [{
|
||||
"flow_id": f.flow_id, "source": f.source, "destination": f.destination,
|
||||
"tx_packets": f.tx_packets, "rx_packets": f.rx_packets,
|
||||
"lost_packets": f.lost_packets,
|
||||
"avg_delay": f.delay_sum_ms / f.rx_packets if f.rx_packets else 0.0,
|
||||
"throughput": f.rx_bytes * 8 / max(f.last_rx - f.first_tx, 0.001) / 1e6,
|
||||
} for f in self.flows.values()]
|
||||
@@ -27,7 +27,7 @@ def _node_frame(spec: NodeSpec, sim_node, online: bool) -> dict[str, Any]:
|
||||
"role": spec.role,
|
||||
"rxPackets": int(sim_node.rx_packets) if sim_node else 0,
|
||||
"txPackets": int(sim_node.tx_packets) if sim_node else 0,
|
||||
"latency": 0.0,
|
||||
"latency": None,
|
||||
"neighbors": list(sim_node.neighbors) if sim_node else [],
|
||||
"x": float(sim_node.x) if sim_node else 0.0,
|
||||
"y": float(sim_node.y) if sim_node else 0.0,
|
||||
@@ -132,6 +132,10 @@ class Telemetry:
|
||||
else:
|
||||
online = self.docker.is_running(spec.id)
|
||||
nodes_out.append(_node_frame(spec, sim_nodes.get(spec.id), online))
|
||||
for node in nodes_out:
|
||||
received = [f for f in sim_flows if str(f.destination) == node["ip"] and f.rx_packets > 0]
|
||||
weight = sum(f.rx_packets for f in received)
|
||||
node["latency"] = sum(f.avg_delay * f.rx_packets for f in received) / weight if weight else None
|
||||
# 节点对聚合:把 5-tuple flow 折叠成 (srcId, dstId) 维度
|
||||
ip_to_id = {spec.ip: spec.id for spec in self.specs_by_id.values()}
|
||||
pairs_out = _aggregate_pairs(sim_flows, ip_to_id)
|
||||
@@ -142,12 +146,22 @@ class Telemetry:
|
||||
"nodes": nodes_out,
|
||||
"flows": [_flow_frame(f) for f in sim_flows],
|
||||
"pairs": pairs_out,
|
||||
"measurement": {
|
||||
"enabled": self.sim.config.flow_monitor,
|
||||
"delayUnit": "ms",
|
||||
"throughputUnit": "Mbps",
|
||||
"throughputWindow": "since-first-transmit",
|
||||
"lossTimeoutSeconds": 10,
|
||||
"source": "tap-capture" if self.sim.config.traffic_mode == "tap" else "flow-monitor",
|
||||
"captureDrops": self.sim.capture_drops,
|
||||
},
|
||||
"env": {
|
||||
"txPower": env.tx_power,
|
||||
"rxSensitivity": env.rx_sensitivity,
|
||||
"positions": env.positions,
|
||||
"pathLossExponent": env.path_loss_exponent,
|
||||
"frequencyMhz": env.frequency_mhz,
|
||||
"phyFrequencyMhz": env.phy_frequency_mhz,
|
||||
"channelWidthMhz": env.channel_width_mhz,
|
||||
"rangeTargetM": env.range_target_m,
|
||||
},
|
||||
|
||||
@@ -258,4 +258,37 @@ class TestSimPath:
|
||||
response = client.get("/api/sim/path?src=0&dst=4")
|
||||
data = response.json()
|
||||
assert "ips" in data
|
||||
assert len(data["ips"]) == len(data["path"])
|
||||
assert len(data["ips"]) == len(data["path"])
|
||||
|
||||
class TestTelemetryLifecycle:
|
||||
def test_existing_websocket_follows_start_and_stop(self):
|
||||
import asyncio
|
||||
from types import SimpleNamespace
|
||||
from controller.api.main import app
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.param_store import ParamStore
|
||||
|
||||
class TelemetryStub:
|
||||
unsubscribed = False
|
||||
|
||||
def subscribe(self):
|
||||
queue = asyncio.Queue()
|
||||
queue.put_nowait({'running': True, 'nodes': [], 'flows': [], 't': 1})
|
||||
return queue
|
||||
|
||||
def unsubscribe(self, queue):
|
||||
self.unsubscribed = True
|
||||
|
||||
session = SimpleNamespace(telemetry=None, config=SimConfig())
|
||||
session.param_store = ParamStore(session)
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
with patch('controller.api.ws_telemetry.get_session', return_value=session):
|
||||
with TestClient(app) as client:
|
||||
with client.websocket_connect('/ws/telemetry') as ws:
|
||||
assert ws.receive_json()['running'] is False
|
||||
telemetry = TelemetryStub()
|
||||
session.telemetry = telemetry
|
||||
assert ws.receive_json()['running'] is True
|
||||
session.telemetry = None
|
||||
assert ws.receive_json()['running'] is False
|
||||
assert telemetry.unsubscribed
|
||||
@@ -81,9 +81,9 @@ class TestSimConfigDefaults:
|
||||
# other fields untouched
|
||||
assert merged.simulation_time == 300
|
||||
|
||||
def test_mac_mode_forced_to_mesh(self):
|
||||
def test_mac_mode_preserved(self):
|
||||
cfg = SimConfig(mac_mode="adhoc")
|
||||
assert cfg.mac_mode == "mesh"
|
||||
assert cfg.mac_mode == "adhoc"
|
||||
|
||||
|
||||
class TestNodeSpec:
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
"""无线配置、线程交接和 TAP 端到端统计回归。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import socket
|
||||
import struct
|
||||
import threading
|
||||
import time
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.param_store import ParamStore
|
||||
from controller.orchestrator.sim_runner import SimRunner
|
||||
from controller.orchestrator.tap_telemetry import TapTelemetry
|
||||
|
||||
|
||||
def packet(ident: int = 1) -> bytes:
|
||||
udp = struct.pack('!HHHH', 1234, 5000, 12, 0) + b'test'
|
||||
ip = struct.pack('!BBHHHBBH4s4s', 0x45, 0, 20 + len(udp), ident, 0, 64, 17, 0,
|
||||
socket.inet_aton('192.168.100.10'), socket.inet_aton('192.168.100.11'))
|
||||
return b'\x00' * 12 + b'\x08\x00' + ip + udp
|
||||
|
||||
|
||||
def test_tap_delivery_delay_and_duplicates():
|
||||
capture = TapTelemetry('tap-', 2)
|
||||
frame = packet()
|
||||
capture.observe(0, True, frame, 100.0)
|
||||
capture.observe(1, False, frame, 100.025)
|
||||
capture.observe(1, False, frame, 100.026)
|
||||
result = capture.snapshot()[0]
|
||||
assert (result['tx_packets'], result['rx_packets'], result['lost_packets']) == (1, 1, 0)
|
||||
assert result['avg_delay'] == pytest.approx(25)
|
||||
assert result['throughput'] > 0
|
||||
|
||||
|
||||
def test_tap_loss_excludes_inflight_and_retransmission_matches_fifo():
|
||||
capture = TapTelemetry('tap-', 2)
|
||||
capture.observe(0, True, packet(), 100)
|
||||
capture.observe(0, True, packet(), 101)
|
||||
capture.observe(1, False, packet(), 102)
|
||||
capture.expire(105)
|
||||
assert capture.snapshot()[0]['lost_packets'] == 0
|
||||
capture.expire(111)
|
||||
assert capture.snapshot()[0]['lost_packets'] == 1
|
||||
|
||||
|
||||
def test_tap_ignores_intermediate_nodes_and_non_ipv4():
|
||||
capture = TapTelemetry('tap-', 3)
|
||||
capture.observe(2, True, packet(), 100)
|
||||
capture.observe(0, True, b'garbage', 100)
|
||||
assert capture.snapshot() == []
|
||||
|
||||
|
||||
def test_supported_bandwidth_and_mode_validation():
|
||||
assert SimConfig(mac_mode='adhoc').mac_mode == 'adhoc'
|
||||
assert '40, BAND_2_4GHZ' in SimRunner._channel_settings(SimConfig(channel_width_mhz=40))
|
||||
assert 'BAND_5GHZ' in SimRunner._channel_settings(SimConfig(standard='80211a', data_rate='OfdmRate6Mbps'))
|
||||
with pytest.raises(ValueError):
|
||||
SimConfig(channel_width_mhz=35)
|
||||
with pytest.raises(ValueError):
|
||||
SimConfig(standard='80211a', channel_width_mhz=40)
|
||||
|
||||
|
||||
def test_config_save_is_atomic_and_does_not_apply_dynamic_setters():
|
||||
session = SimpleNamespace(config=SimConfig(), running=True, sim=SimpleNamespace())
|
||||
store = ParamStore(session)
|
||||
updated = SimConfig(channel_width_mhz=40)
|
||||
with patch('controller.orchestrator.param_store.save_config_to_file') as save:
|
||||
assert store.save_config(updated)['ok']
|
||||
save.assert_called_once_with(updated)
|
||||
assert session.config.channel_width_mhz == 40
|
||||
with patch('controller.orchestrator.param_store.save_config_to_file', side_effect=OSError('disk full')):
|
||||
assert not store.save_config(SimConfig())['ok']
|
||||
assert session.config.channel_width_mhz == 40
|
||||
|
||||
|
||||
def test_command_executes_only_when_simulation_thread_drains_queue():
|
||||
runner = SimRunner(SimConfig())
|
||||
runner._running = True
|
||||
runner._thread = threading.current_thread()
|
||||
called = []
|
||||
result = []
|
||||
producer = threading.Thread(target=lambda: result.append(runner._inject_command(lambda: called.append(threading.get_ident()))))
|
||||
producer.start()
|
||||
deadline = time.monotonic() + 1
|
||||
while runner._command_queue.empty() and time.monotonic() < deadline:
|
||||
time.sleep(.001)
|
||||
assert called == []
|
||||
runner._command_queue.get_nowait()()
|
||||
producer.join(timeout=1)
|
||||
assert called == [threading.get_ident()]
|
||||
assert result == [{'applied': True}]
|
||||
|
||||
|
||||
def test_dynamic_rejects_unsupported_frequency_and_nonfinite_values():
|
||||
runner = SimRunner(SimConfig())
|
||||
assert not runner.set_tx_power(0, float('nan'))['applied']
|
||||
assert not runner.set_node_position(0, float('inf'), 0)['applied']
|
||||
assert not runner.set_path_loss_exponent(-1)['applied']
|
||||
assert not runner.set_range_target(-1)['applied']
|
||||
assert not runner.set_frequency(2400)['applied'] # 不合法的 WiFi 中心频点
|
||||
assert not runner.set_channel_width(35)['applied']
|
||||
|
||||
|
||||
def test_channel_centers_are_bandwidth_specific():
|
||||
cfg = SimConfig(standard='80211n-5GHz', frequency_mhz=5190, channel_width_mhz=40)
|
||||
assert SimRunner._channel_settings(cfg) == '{38, 40, BAND_5GHZ, 0}'
|
||||
cfg = SimConfig(frequency_mhz=2437, channel_width_mhz=40)
|
||||
assert SimRunner._channel_settings(cfg) == '{6, 40, BAND_2_4GHZ, 0}'
|
||||
|
||||
|
||||
def test_worker_thread_broadcast_wakes_async_subscriber():
|
||||
import asyncio
|
||||
from controller.orchestrator.param_store import ParamChangeEvent
|
||||
|
||||
async def verify():
|
||||
store = ParamStore(SimpleNamespace(config=SimConfig()))
|
||||
q = store.subscribe()
|
||||
await asyncio.to_thread(store._broadcast, ParamChangeEvent('nNodes', 8, 'static', 'test'))
|
||||
event = await asyncio.wait_for(q.get(), timeout=1)
|
||||
assert event.value == 8
|
||||
store.unsubscribe(q)
|
||||
asyncio.run(verify())
|
||||
@@ -0,0 +1,271 @@
|
||||
# MANET 仿真系统用户手册
|
||||
|
||||
本文档面向最终用户,介绍如何使用本系统启动仿真、配置参数、查看结果。
|
||||
|
||||
**前置要求**:Linux x86_64 主机,Docker 已安装,具备 sudo 权限。
|
||||
|
||||
---
|
||||
|
||||
## 1. 获取与启动
|
||||
|
||||
### 1.1 获取镜像
|
||||
|
||||
```bash
|
||||
# 从 GHCR(GitHub Container Registry)拉取(推荐)
|
||||
docker pull ghcr.io/clawdbuddy/manet-controller:latest
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
|
||||
# 或从 Daocloud 拉取
|
||||
docker pull daocloud.io/clawdbuddy/manet-controller:latest
|
||||
docker pull daocloud.io/clawdbuddy/manet-node:latest
|
||||
```
|
||||
|
||||
### 1.2 启动控制器
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 启动控制器容器
|
||||
docker compose up -d controller
|
||||
|
||||
# 验证服务状态
|
||||
curl -s localhost:8000/api/health # 返回 {"ok": true} 即正常
|
||||
```
|
||||
|
||||
打开浏览器访问 **http://localhost:8000/** 即可看到 Web 管理面板。
|
||||
|
||||
### 1.3 后台参数配置
|
||||
|
||||
通过环境变量或 `docker-compose.yml` 配置:
|
||||
|
||||
| 参数 | 说明 | 默认值 |
|
||||
|------|------|--------|
|
||||
| `LOG_LEVEL` | 日志级别 | INFO |
|
||||
| `MANET_WEB_DIR` | Web 静态文件目录 | /app/dist |
|
||||
| `MANET_CONFIG_DIR` | 配置文件目录 | /app/config |
|
||||
|
||||
**方式一:环境变量**
|
||||
|
||||
```bash
|
||||
docker compose up -d controller \
|
||||
-e LOG_LEVEL=DEBUG \
|
||||
-e MANET_CONFIG_DIR=/custom/config
|
||||
```
|
||||
|
||||
**方式二:修改 docker-compose.yml**
|
||||
|
||||
```yaml
|
||||
controller:
|
||||
image: ghcr.io/clawdbuddy/manet-controller:latest
|
||||
environment:
|
||||
- LOG_LEVEL=DEBUG
|
||||
- MANET_WEB_DIR=/app/dist
|
||||
- MANET_CONFIG_DIR=/app/config
|
||||
volumes:
|
||||
- ./config:/app/config # 持久化配置目录
|
||||
- ./results:/results # 持久化结果目录
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
```
|
||||
|
||||
**方式三:通过 REST API 动态配置(仿真运行时不可改)**
|
||||
|
||||
```bash
|
||||
# 查看当前配置
|
||||
curl -s localhost:8000/api/config | jq
|
||||
|
||||
# 更新配置(仅在仿真未运行时有效)
|
||||
curl -X PUT localhost:8000/api/config \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 10,
|
||||
"simulationTime": 300,
|
||||
"txPowerStart": 30
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
### 1.4 停止控制器
|
||||
|
||||
```bash
|
||||
docker compose down
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. 启动仿真
|
||||
|
||||
### 方式一:Web 面板(推荐)
|
||||
|
||||
1. 打开 http://localhost:8000/
|
||||
2. 在 **Dashboard** 或 **Configuration** Tab 中选择预设或调整参数
|
||||
3. 点击 **Start Simulation**
|
||||
|
||||
### 方式二:命令行
|
||||
|
||||
```bash
|
||||
# 使用 debug 预设(5 节点,60 秒,适合快速验证)
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 使用 default 预设
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"default"}'
|
||||
|
||||
# 自定义配置
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 10,
|
||||
"simulationTime": 300,
|
||||
"txPowerStart": 30,
|
||||
"pathLossModel": "LogDistance"
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
### 预设说明
|
||||
|
||||
| 预设 | 场景 | 节点数 | 时长 |
|
||||
|------|------|--------|------|
|
||||
| `debug` | 快速冒烟测试 | 5 | 60s |
|
||||
| `default` | 默认配置 | 16 | 600s |
|
||||
| `urban` | 高密度城市环境 | 16 | 600s |
|
||||
| `rural` | 开阔野外环境 | 16 | 600s |
|
||||
| `tactical` | 战术通信场景 | 16 | 600s |
|
||||
|
||||
---
|
||||
|
||||
## 3. 停止仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
停止后会**自动清理**所有节点容器、网桥、Veth、TAP 设备,无需手动处理残留。
|
||||
|
||||
---
|
||||
|
||||
## 4. 查看仿真状态
|
||||
|
||||
```bash
|
||||
# 仿真状态
|
||||
curl -s localhost:8000/api/sim/status
|
||||
|
||||
# 节点列表
|
||||
curl -s localhost:8000/api/nodes | jq
|
||||
|
||||
# 流量统计
|
||||
curl -s localhost:8000/api/flows | jq
|
||||
|
||||
# 实时遥测(WebSocket)
|
||||
# 可在 Web 面板的 Realtime Tab 中查看
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. 在节点中执行命令
|
||||
|
||||
```bash
|
||||
# 在节点 0 中执行 ping
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 启动 iperf3 吞吐测试(服务端在节点 0,客户端在节点 1)
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -d"}'
|
||||
|
||||
curl -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.10 -t 10"}'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. 配置参数说明
|
||||
|
||||
主要可调参数(通过 REST body 或 Web 面板配置):
|
||||
|
||||
| 参数 | 说明 | 默认值 |
|
||||
|------|------|--------|
|
||||
| `nNodes` | 节点数量 | 16 |
|
||||
| `simulationTime` | 仿真时长(秒) | 600 |
|
||||
| `txPowerStart` | 发射功率(dBm) | 30 |
|
||||
| `pathLossModel` | 路径损耗模型 | LogDistance |
|
||||
| `macMode` | MAC 模式(mesh/adhoc) | mesh |
|
||||
| `mobilityModel` | 移动模型(grid/constant/random) | grid |
|
||||
| `frequency` | 工作频率(MHz) | 590 |
|
||||
| `standard` | WiFi 标准 | 80211n-2.4GHz |
|
||||
|
||||
---
|
||||
|
||||
## 7. 常见问题
|
||||
|
||||
### 仿真启动失败
|
||||
|
||||
```
|
||||
curl -X POST localhost:8000/api/sim/start -d '{"preset":"debug"}'
|
||||
# 返回 error 或超时
|
||||
```
|
||||
|
||||
**排查步骤**:
|
||||
1. 检查 Docker 是否运行:`docker ps`
|
||||
2. 检查控制器日志:`docker compose logs controller`
|
||||
3. 确认内核模块已加载:`lsmod | grep -E 'tun|tap|bridge'`
|
||||
|
||||
### 节点间不通
|
||||
|
||||
**排查步骤**:
|
||||
1. 查看节点状态:`curl -s localhost:8000/api/nodes`
|
||||
2. 检查容器是否在运行:`docker ps | grep manet-node`
|
||||
3. 在节点内 ping 测试:
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 3 192.168.100.11"}'
|
||||
```
|
||||
|
||||
### 网桥/TAP 残留
|
||||
|
||||
```bash
|
||||
# 检查残留设备
|
||||
ip link | grep -E 'mesh-|tap-|veth'
|
||||
|
||||
# 手动清理(通常自动清理,若异常则)
|
||||
docker compose down
|
||||
sudo ip link del mesh-br-0 2>/dev/null
|
||||
# ... 对每个残留设备重复
|
||||
```
|
||||
|
||||
### 权限不足
|
||||
|
||||
pyr oute2 需要创建网络设备,需要以 sudo 运行 Docker 或赋予足够权限:
|
||||
|
||||
```bash
|
||||
docker compose up -d controller # 需要 sudo
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 8. Web 面板功能概览
|
||||
|
||||
打开 http://localhost:8000/ 后:
|
||||
|
||||
- **Dashboard**:仿真状态总览、快捷启动/停止
|
||||
- **Configuration**:调整仿真参数、选择预设
|
||||
- **Topology**:查看节点拓扑图
|
||||
- **Realtime**:实时流量监控
|
||||
- **Logs**:查看各节点日志
|
||||
|
||||
---
|
||||
|
||||
## 9. 参考链接
|
||||
|
||||
- 详细技术文档:`manet-30ns3/README.md`
|
||||
- REST API 参考:见 README §7 REST API 速查
|
||||
- 测试用例:`manet-30ns3/tests/docs/`
|
||||
@@ -0,0 +1,25 @@
|
||||
"""真实 ns-3 冒烟:内部流量、队列调参、带宽切换与自然停止。
|
||||
|
||||
在主项目目录执行:PYTHONPATH=. python3 tests/smoke_sim_runner.py
|
||||
不需要 Docker,不操作宿主网桥或 TAP;需要可用的 cppyy/ns-3 安装。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.sim_runner import SimRunner
|
||||
runner = SimRunner(SimConfig(n_nodes=2, traffic_mode='onoff', mobility_model='grid', grid_delta_x=20, routing_protocol='none', simulation_time=6, pcap=False, flow_monitor=True))
|
||||
runner.start()
|
||||
assert runner.running
|
||||
assert runner.set_tx_power(0, 20)['applied']
|
||||
assert runner.set_channel_width(40)['applied']
|
||||
assert runner.set_node_position(1, 20, 10)['applied']
|
||||
deadline = time.monotonic() + 20
|
||||
while runner.running and time.monotonic() < deadline:
|
||||
time.sleep(.2)
|
||||
print('env', runner.snapshot_env(), flush=True)
|
||||
print('flows', runner.snapshot_flows(), flush=True)
|
||||
assert not runner.running, 'simulationTime failed to stop the simulation'
|
||||
assert any(f.source and f.destination and f.rx_packets > 0 for f in runner.snapshot_flows()), 'no received flow statistics'
|
||||
runner.stop()
|
||||
print('NS3_RUNNER_SMOKE_OK', flush=True)
|
||||
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<title>电台设备控制</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root-radio"></div>
|
||||
<script type="module" src="/src/radio-main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,15 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
||||
import { renderHook, act } from '@testing-library/react';
|
||||
import { useSimConfig } from './useSimConfig';
|
||||
|
||||
beforeEach(() => {
|
||||
vi.stubGlobal('fetch', vi.fn(() => new Promise<Response>(() => {})));
|
||||
});
|
||||
afterEach(() => {
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
describe('useSimConfig', () => {
|
||||
it('should initialize with fallback config', () => {
|
||||
const { result } = renderHook(() => useSimConfig());
|
||||
@@ -100,3 +108,38 @@ describe('useSimConfig', () => {
|
||||
expect(result.current.config.nNodes).toBe(99);
|
||||
});
|
||||
});
|
||||
|
||||
// 慢读配置和应用层保存失败必须覆盖,防止刷新页面破坏已有实验配置。
|
||||
describe('configuration persistence regressions', () => {
|
||||
it('does not save fallback while initial reads are pending', async () => {
|
||||
const { vi } = await import('vitest');
|
||||
vi.useFakeTimers();
|
||||
const fetchMock = vi.fn<(url: string, options?: RequestInit) => Promise<Response>>(() => new Promise<Response>(() => {}));
|
||||
vi.stubGlobal('fetch', fetchMock);
|
||||
const hook = renderHook(() => useSimConfig());
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(1000); });
|
||||
expect(fetchMock).toHaveBeenCalledTimes(2);
|
||||
expect(fetchMock.mock.calls.every(call => call.length === 1)).toBe(true);
|
||||
hook.unmount();
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
it('reports backend save rejection instead of saved', async () => {
|
||||
const { vi } = await import('vitest');
|
||||
vi.useFakeTimers();
|
||||
const fetchMock = vi.fn().mockImplementation((_url: string, options?: RequestInit) => Promise.resolve({
|
||||
ok: true,
|
||||
json: async () => options?.method === 'PUT' ? { ok: false, reason: 'disk full' } : {},
|
||||
}));
|
||||
vi.stubGlobal('fetch', fetchMock);
|
||||
const hook = renderHook(() => useSimConfig());
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(0); });
|
||||
act(() => { hook.result.current.updateConfig('nNodes', 8); });
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(600); });
|
||||
expect(hook.result.current.saveStatus).toBe('error');
|
||||
hook.unmount();
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
});
|
||||
@@ -76,7 +76,13 @@ export function useSimConfig(sim?: SimApi) {
|
||||
setPresets(presetData);
|
||||
if (saved && typeof saved === 'object' && !Array.isArray(saved)) {
|
||||
// ParamStore.get_all() 返回的是 flat 参数对象;直接合并到 SimConfig
|
||||
setConfig(prev => ({ ...prev, ...saved }));
|
||||
setConfig(prev => {
|
||||
const loaded = { ...prev, ...saved };
|
||||
lastSavedJsonRef.current = JSON.stringify(loaded);
|
||||
return loaded;
|
||||
});
|
||||
} else {
|
||||
throw new Error('无法读取已保存配置,已暂停自动保存');
|
||||
}
|
||||
setReady(true);
|
||||
}).catch((e) => {
|
||||
@@ -187,7 +193,7 @@ export function useSimConfig(sim?: SimApi) {
|
||||
.filter((r: { ok?: boolean }) => r.ok === false)
|
||||
.map((r: { key?: string; reason?: string }) => r.key || r.reason || 'unknown')
|
||||
.join(', ');
|
||||
if (reasons) console.warn('save partial failures:', reasons);
|
||||
throw new Error(data.reason || reasons || '后端未能完整保存配置');
|
||||
}
|
||||
lastSavedJsonRef.current = JSON.stringify(cfg);
|
||||
setSaveStatus('saved');
|
||||
@@ -195,33 +201,12 @@ export function useSimConfig(sim?: SimApi) {
|
||||
} catch (e) {
|
||||
console.warn('saveConfig REST failed:', e);
|
||||
|
||||
// 兜底:WebSocket 路径(仿真运行中需要实时下发的参数)
|
||||
if (sim) {
|
||||
try {
|
||||
const params: Record<string, unknown> = {};
|
||||
(Object.keys(cfg) as Array<keyof SimConfig>).forEach(key => {
|
||||
params[key] = cfg[key];
|
||||
});
|
||||
const result = await sim.batchSetParams(params);
|
||||
const realFailures = (result.results || []).filter(
|
||||
(r: { ok: boolean; reason?: string }) => !r.ok && !(r.reason || '').includes('requires simulator restart')
|
||||
);
|
||||
if (realFailures.length === 0) {
|
||||
lastSavedJsonRef.current = JSON.stringify(cfg);
|
||||
setSaveStatus('saved');
|
||||
setTimeout(() => setSaveStatus('idle'), 2000);
|
||||
return;
|
||||
}
|
||||
} catch {
|
||||
// WS 也失败,继续报 error
|
||||
}
|
||||
}
|
||||
|
||||
setSaveStatus('error');
|
||||
}
|
||||
}, [sim]);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!ready || error) return;
|
||||
if (saveTimerRef.current) {
|
||||
clearTimeout(saveTimerRef.current);
|
||||
}
|
||||
@@ -235,7 +220,7 @@ export function useSimConfig(sim?: SimApi) {
|
||||
clearTimeout(saveTimerRef.current);
|
||||
}
|
||||
};
|
||||
}, [config, saveConfig]);
|
||||
}, [config, saveConfig, ready, error]);
|
||||
|
||||
return {
|
||||
config,
|
||||
|
||||
@@ -18,6 +18,7 @@ interface TelemetryFrame {
|
||||
pairs?: NodePairFlow[];
|
||||
env?: TelemetryEnv;
|
||||
ts: number;
|
||||
measurement?: { captureDrops: number };
|
||||
}
|
||||
|
||||
function aggregateStatus(frame: TelemetryFrame, prevStartTime: string | null): SimulationStatus {
|
||||
@@ -64,6 +65,7 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
const [env, setEnv] = useState<TelemetryEnv | null>(null);
|
||||
const [logs, setLogs] = useState<string[]>([]);
|
||||
const wsRef = useRef<WebSocket | null>(null);
|
||||
const captureDropsRef = useRef(0);
|
||||
const reconnectTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
const connectWsRef = useRef<(() => void) | null>(null);
|
||||
const pendingRef = useRef<Map<string, PendingRequest>>(new Map());
|
||||
@@ -232,6 +234,11 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
|
||||
// 3. 遥测帧(无 type 字段或 type 为 undefined)
|
||||
const frame = msg as unknown as TelemetryFrame;
|
||||
const captureDrops = frame.measurement?.captureDrops ?? 0;
|
||||
if (captureDrops > captureDropsRef.current) {
|
||||
addLog(`[telemetry] 采集器累计丢帧 ${captureDrops},流量统计可能不完整`);
|
||||
}
|
||||
captureDropsRef.current = captureDrops;
|
||||
setNodes(frame.nodes ?? []);
|
||||
setFlows(frame.flows ?? []);
|
||||
setPairs(frame.pairs ?? []);
|
||||
@@ -250,13 +257,14 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
|
||||
useEffect(() => {
|
||||
connectWs();
|
||||
const pendingRequests = pendingRef.current;
|
||||
return () => {
|
||||
// 清理 pending requests,避免 setState on unmounted component
|
||||
pendingRef.current.forEach(({ reject, timer }) => {
|
||||
pendingRequests.forEach(({ reject, timer }) => {
|
||||
clearTimeout(timer);
|
||||
reject(new Error('component unmounted'));
|
||||
});
|
||||
pendingRef.current.clear();
|
||||
pendingRequests.clear();
|
||||
if (reconnectTimerRef.current) clearTimeout(reconnectTimerRef.current);
|
||||
if (wsRef.current) {
|
||||
wsRef.current.onclose = null; // suppress reconnect on unmount
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { RadioDeviceControl } from './sections/RadioDeviceControl'
|
||||
|
||||
createRoot(document.getElementById('root-radio')!).render(
|
||||
<StrictMode>
|
||||
<div className="min-h-screen bg-background p-6">
|
||||
<RadioDeviceControl />
|
||||
</div>
|
||||
</StrictMode>,
|
||||
)
|
||||
@@ -59,6 +59,11 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
const totalRxNodes = nodes.reduce((sum, n) => sum + n.rxPackets, 0);
|
||||
const totalTxNodes = nodes.reduce((sum, n) => sum + n.txPackets, 0);
|
||||
|
||||
const received = flows.reduce((sum, f) => sum + f.rxPackets, 0);
|
||||
const sent = flows.reduce((sum, f) => sum + f.txPackets, 0);
|
||||
const lost = flows.reduce((sum, f) => sum + f.lostPackets, 0);
|
||||
const throughput = flows.reduce((sum, f) => sum + f.throughput, 0);
|
||||
const delay = received ? flows.reduce((sum, f) => sum + f.avgDelay * f.rxPackets, 0) / received : null;
|
||||
const onlineNodes = nodes.filter(n => n.status === 'online').length;
|
||||
const activeFlowCount = flows.filter(f => f.txPackets > 0).length;
|
||||
|
||||
@@ -103,7 +108,7 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
subValue="packets"
|
||||
icon={<ArrowUpFromLine className="h-4 w-4 text-cyan-500" />}
|
||||
iconBg="bg-cyan-500/10"
|
||||
tooltip="所有节点 WifiNetDevice 发送包总数"
|
||||
tooltip="所有节点 TAP 发送包总数"
|
||||
/>
|
||||
<StatCard
|
||||
label="总接收量"
|
||||
@@ -111,9 +116,14 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
subValue="packets"
|
||||
icon={<ArrowDownToLine className="h-4 w-4 text-violet-500" />}
|
||||
iconBg="bg-violet-500/10"
|
||||
tooltip="所有节点 WifiNetDevice 接收包总数(含广播重复计数)"
|
||||
tooltip="所有节点 TAP 接收包总数(含广播重复计数)"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||
<StatCard label="平均吞吐" value={flows.length ? throughput.toFixed(2) : '—'} subValue="Mbps · 自流开始累计平均" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
<StatCard label="平均端到端延迟" value={delay === null ? '—' : delay.toFixed(2)} subValue="ms · 按接收包数加权" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
<StatCard label="确认丢包率" value={sent ? `${(lost / sent * 100).toFixed(2)}%` : '—'} subValue="发送后 10 秒未收到;不含在途包" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -34,6 +34,7 @@ interface DynamicControlProps {
|
||||
|
||||
export function DynamicControl({ status, nodes, config, env, sim }: DynamicControlProps) {
|
||||
const ctrl = useDynamicControl(sim);
|
||||
const allowedWidths = config.standard === '80211a' ? [20] : config.standard.includes('2.4GHz') || config.standard.includes('80211n') ? [20, 40] : [20, 40, 80, 160];
|
||||
const [selectedNode, setSelectedNode] = useState(0);
|
||||
const [posX, setPosX] = useState('');
|
||||
const [posY, setPosY] = useState('');
|
||||
@@ -431,7 +432,7 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
onValueChange={v => { setFrequency(v); markDirty(); }}
|
||||
min={300}
|
||||
max={5800}
|
||||
step={10}
|
||||
step={1}
|
||||
disabled={!running}
|
||||
/>
|
||||
<Button
|
||||
@@ -446,6 +447,7 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
<Send className="h-3.5 w-3.5" />
|
||||
应用频率
|
||||
</Button>
|
||||
<p className="text-xs text-muted-foreground">WiFi 频率须匹配当前带宽的合法中心频点。UHF 只调整传播损耗预算;当前 PHY 载波:{env?.phyFrequencyMhz ?? '—'} MHz。</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -469,21 +471,21 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
>
|
||||
<p className="text-xs text-amber-600 bg-amber-50/60 rounded-lg px-3 py-2 border border-amber-200/40"
|
||||
>
|
||||
运行时修改不生效,需重启仿真才能应用
|
||||
运行时切换会短暂中断通信;可选宽度取决于当前 WiFi 标准
|
||||
</p>
|
||||
<div className="flex items-center justify-between text-xs text-muted-foreground"
|
||||
>
|
||||
<span>5 MHz</span>
|
||||
<span>{allowedWidths[0]} MHz</span>
|
||||
<Badge variant="outline" className="font-mono text-sm"
|
||||
>{channelWidth[0]} MHz</Badge>
|
||||
<span>80 MHz</span>
|
||||
<span>{allowedWidths[allowedWidths.length - 1]} MHz</span>
|
||||
</div>
|
||||
<Slider
|
||||
value={channelWidth}
|
||||
onValueChange={v => { setChannelWidth(v); markDirty(); }}
|
||||
min={5}
|
||||
max={80}
|
||||
step={5}
|
||||
value={[allowedWidths.indexOf(channelWidth[0])]}
|
||||
onValueChange={v => { setChannelWidth([allowedWidths[v[0]] ?? allowedWidths[0]]); markDirty(); }}
|
||||
min={0}
|
||||
max={Math.max(1, allowedWidths.length - 1)}
|
||||
step={1}
|
||||
disabled={!running}
|
||||
/>
|
||||
<Button
|
||||
|
||||
@@ -0,0 +1,567 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Slider } from '@/components/ui/slider';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import {
|
||||
Radio, Settings2, Send, CheckCircle, AlertCircle,
|
||||
Antenna, Zap, Wifi, Gauge, Signal,
|
||||
} from 'lucide-react';
|
||||
|
||||
const PROTOCOL_HOST = '192.0.3.1';
|
||||
const PROTOCOL_PORT = 62450;
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Protocol framing helpers
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
interface FrameResult {
|
||||
ok: boolean;
|
||||
msg: string;
|
||||
raw?: string;
|
||||
}
|
||||
|
||||
/** Build a UDP frame per api_54.docx §3.2.1 */
|
||||
function buildFrame(
|
||||
commType: 1 | 2 | 3,
|
||||
signalId: number,
|
||||
payload: Uint8Array
|
||||
): Uint8Array {
|
||||
const infoLen = payload.length;
|
||||
const frame = new Uint8Array(7 + infoLen);
|
||||
// Byte 0: comm type
|
||||
frame[0] = commType;
|
||||
// Byte 1: reserved = 0
|
||||
frame[1] = 0;
|
||||
// Byte 2: reserved = 0
|
||||
frame[2] = 0;
|
||||
// Bytes 3-4: signal ID (network byte order)
|
||||
frame[3] = (signalId >> 8) & 0xff;
|
||||
frame[4] = signalId & 0xff;
|
||||
// Bytes 5-6: info length (network byte order)
|
||||
frame[5] = (infoLen >> 8) & 0xff;
|
||||
frame[6] = infoLen & 0xff;
|
||||
// Payload
|
||||
frame.set(payload, 7);
|
||||
return frame;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
/** Convert a number to 2-byte big-endian */
|
||||
function toBe2(v: number) {
|
||||
return Uint8Array.from([(v >> 8) & 0xff, v & 0xff]);
|
||||
}
|
||||
|
||||
/** Convert a number to 1-byte big-endian */
|
||||
function toBe1(v: number) {
|
||||
return Uint8Array.from([v & 0xff]);
|
||||
}
|
||||
|
||||
/** Bytes to hex string */
|
||||
function toHex(bytes: Uint8Array) {
|
||||
return Array.from(bytes).map(b => b.toString(16).padStart(2, '0')).join(' ');
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Mode / rate tables from the doc
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
const WORK_MODE_MAP: Record<number, string> = {
|
||||
0: '定频', 1: '跳频', 2: 'FCS',
|
||||
3: '定-密', 4: '跳-密', 5: 'FCS-密',
|
||||
};
|
||||
|
||||
const RATE_MAP: Record<number, string> = {
|
||||
0: '速率自适应', 1: '窄512kbps', 2: '窄1Mbps', 3: '窄2Mbps',
|
||||
4: '宽2Mbps', 5: '宽4Mbps', 6: '宽8Mbps', 7: '宽10Mbps',
|
||||
8: '宽16Mbps', 9: '窄4Mbps', 10: '2Mbps', 11: '4Mbps',
|
||||
12: '5Mbps', 13: '8Mbps', 14: '10Mbps', 15: '宽20Mbps',
|
||||
16: '64k', 17: '512k', 18: '2M',
|
||||
};
|
||||
|
||||
const POWER_MAP: Record<number, string> = {
|
||||
4: '功率自适应', 3: '值守', 2: '小功率', 1: '中功率', 0: '大功率',
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Freq helpers
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
/** Convert MHz float → 4-byte compressed BCD */
|
||||
function mhzToBcd(mhz: number): Uint8Array {
|
||||
const khz = Math.round(mhz * 1000);
|
||||
const d0 = Math.floor(khz / 1000000) & 0x0f;
|
||||
const d1 = Math.floor((khz % 1000000) / 10000) & 0xff;
|
||||
const d2 = Math.floor((khz % 10000) / 100) & 0xff;
|
||||
const d3 = Math.floor(khz % 100) & 0xff;
|
||||
return Uint8Array.from([d0, d1, d2, d3]);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Actual send helper (browser WebSocket → controller WS → radio)
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
async function sendUdp(frame: Uint8Array, host: string, port: number): Promise<FrameResult> {
|
||||
try {
|
||||
const res = await fetch('/api/radio/raw', {
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/json' },
|
||||
body: JSON.stringify({ host, port, frame: Array.from(frame) }),
|
||||
});
|
||||
const data = await res.json();
|
||||
if (!res.ok) return { ok: false, msg: data.reason || '发送失败' };
|
||||
if (data.reply) {
|
||||
return { ok: true, msg: `回复: ${toHex(Uint8Array.from(data.reply))}`, raw: toHex(Uint8Array.from(data.reply)) };
|
||||
}
|
||||
return { ok: true, msg: '发送成功(无回复)' };
|
||||
} catch (e) {
|
||||
return { ok: false, msg: (e as Error).message };
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Sub-components
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
function ResultBanner({ result }: { result: FrameResult | null }) {
|
||||
if (!result) return null;
|
||||
return (
|
||||
<div className={`rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in ${
|
||||
result.ok ? 'border-green-200 bg-green-50/80 text-green-800' : 'border-red-200 bg-red-50/80 text-red-800'
|
||||
}`}
|
||||
>
|
||||
{result.ok ? <CheckCircle className="h-4 w-4 shrink-0" /> : <AlertCircle className="h-4 w-4 shrink-0" />}
|
||||
<span className="font-mono text-xs break-all">{result.msg}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface StaticParamsProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function StaticParamsTab({ host, port }: StaticParamsProps) {
|
||||
const [netScale, setNetScale] = useState('16');
|
||||
const [workMode, setWorkMode] = useState(0);
|
||||
const [macAddr, setMacAddr] = useState('0');
|
||||
const [freqMhz, setFreqMhz] = useState('505.54');
|
||||
const [hopTable, setHopTable] = useState('0');
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array) => {
|
||||
const r = await sendUdp(buildFrame(1, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-slate-200/60 bg-slate-50/60 p-4 text-slate-700 text-xs flex items-start gap-3">
|
||||
<Antenna className="h-4 w-4 shrink-0 mt-0.5 text-primary" />
|
||||
<span>静态参数由 <strong>波形软件</strong> 管理,设置后需重启生效。</span>
|
||||
</div>
|
||||
|
||||
{/* 静态参数设置 */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||
{/* 网络规模 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Wifi className="h-4 w-4 text-primary" />
|
||||
网络规模 (0x0001)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">节点数 (2-128)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={netScale}
|
||||
onChange={e => setNetScale(e.target.value)}
|
||||
min={2} max={128}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(netScale);
|
||||
if (v < 2 || v > 128) { setResult({ ok: false, msg: '范围: 2-128' }); return; }
|
||||
await sendFrame('网络规模', 0x0001, toBe2(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 工作模式 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Radio className="h-4 w-4 text-primary" />
|
||||
工作模式 (0x0002)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
{Object.entries(WORK_MODE_MAP).map(([k, v]) => (
|
||||
<Button
|
||||
key={k}
|
||||
size="sm"
|
||||
variant={workMode === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setWorkMode(parseInt(k))}
|
||||
>{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('工作模式', 0x0002, toBe1(workMode))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* MAC 地址 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Settings2 className="h-4 w-4 text-primary" />
|
||||
MAC 地址 (0x0003)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">MAC (0-127)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={macAddr}
|
||||
onChange={e => setMacAddr(e.target.value)}
|
||||
min={0} max={127}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(macAddr);
|
||||
if (v < 0 || v > 127) { setResult({ ok: false, msg: '范围: 0-127' }); return; }
|
||||
await sendFrame('MAC地址', 0x0003, toBe2(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 定频频率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Signal className="h-4 w-4 text-primary" />
|
||||
定频频率 (0x0004)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">频率 MHz (480~650 / 1410~1710)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={freqMhz}
|
||||
onChange={e => setFreqMhz(e.target.value)}
|
||||
step={0.01}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => {
|
||||
const v = parseFloat(freqMhz);
|
||||
if (v < 480 || v > 1710) { setResult({ ok: false, msg: '频率范围: 480~650 或 1410~1710 MHz' }); return; }
|
||||
sendFrame('定频频率', 0x0004, mhzToBcd(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 跳频表号 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Zap className="h-4 w-4 text-primary" />
|
||||
跳频表号 (0x0005)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">表号 (0-19)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={hopTable}
|
||||
onChange={e => setHopTable(e.target.value)}
|
||||
min={0} max={19}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(hopTable);
|
||||
if (v < 0 || v > 19) { setResult({ ok: false, msg: '范围: 0-19' }); return; }
|
||||
await sendFrame('跳频表号', 0x0005, toBe1(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
{/* 静态参数查询 */}
|
||||
<Separator />
|
||||
<h3 className="text-sm font-semibold">静态参数查询</h3>
|
||||
<div className="grid grid-cols-2 lg:grid-cols-5 gap-3">
|
||||
{[
|
||||
{ label: '网络规模', id: 0x0041 },
|
||||
{ label: '工作模式', id: 0x0042 },
|
||||
{ label: 'MAC地址', id: 0x0043 },
|
||||
{ label: '定频频率', id: 0x0044 },
|
||||
{ label: '跳频表号', id: 0x0045 },
|
||||
].map(({ label, id }) => (
|
||||
<Button key={id} size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame(label, id, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询{label}
|
||||
</Button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface DynamicParamsProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function DynamicParamsTab({ host, port }: DynamicParamsProps) {
|
||||
const [rate, setRate] = useState(0);
|
||||
const [power, setPower] = useState(0);
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array) => {
|
||||
const r = await sendUdp(buildFrame(3, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-green-200/60 bg-green-50/60 p-4 text-green-700 text-xs flex items-start gap-3">
|
||||
<Zap className="h-4 w-4 shrink-0 mt-0.5" />
|
||||
<span>动态参数由 <strong>测控链波形</strong> 管理,设置后立即生效。</span>
|
||||
</div>
|
||||
|
||||
{/* 传输速率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Gauge className="h-4 w-4 text-amber-500" />
|
||||
传输速率 (0x0101)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="grid grid-cols-3 lg:grid-cols-6 gap-2">
|
||||
{Object.entries(RATE_MAP).map(([k, v]) => (
|
||||
<Button
|
||||
key={k}
|
||||
size="sm"
|
||||
variant={rate === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setRate(parseInt(k))}
|
||||
className="text-xs"
|
||||
>{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('传输速率', 0x0101, toBe1(rate))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 发射功率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Zap className="h-4 w-4 text-amber-500" />
|
||||
发射功率 (0x0102)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="flex items-center justify-between text-xs text-muted-foreground mb-2">
|
||||
<span>大功率</span>
|
||||
<Badge variant="outline" className="font-mono">{POWER_MAP[power]}</Badge>
|
||||
<span>功率自适应</span>
|
||||
</div>
|
||||
<Slider
|
||||
value={[power]}
|
||||
onValueChange={v => setPower(v[0])}
|
||||
min={0} max={4}
|
||||
step={1}
|
||||
disabled={false}
|
||||
/>
|
||||
<div className="grid grid-cols-5 gap-1 mt-2">
|
||||
{Object.entries(POWER_MAP).map(([k, v]) => (
|
||||
<Button key={k} size="sm" variant={power === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setPower(parseInt(k))} className="text-xs">{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('发射功率', 0x0102, toBe1(power))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 动态参数查询 */}
|
||||
<Separator />
|
||||
<h3 className="text-sm font-semibold">动态参数查询</h3>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<Button size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame('传输速率', 0x0141, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询传输速率
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame('发射功率', 0x0142, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询发射功率
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface StatusTabProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function StatusTab({ host, port }: StatusTabProps) {
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array, commType: 1 | 2 | 3 = 1) => {
|
||||
const r = await sendUdp(buildFrame(commType, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="grid grid-cols-2 lg:grid-cols-3 gap-3">
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('版本信息', 0x0203, new Uint8Array())}>
|
||||
<Settings2 className="h-4 w-4" /> 版本信息查询
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('节点拓扑', 0x0310, new Uint8Array())}>
|
||||
<Antenna className="h-4 w-4" /> 自组网拓扑查询
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('主动上报订阅', 0x02AF, new Uint8Array([1, 1, 1, 0, 0, 0, 0]))}>
|
||||
<Signal className="h-4 w-4" /> 订阅主动上报
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Main export
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
export function RadioDeviceControl() {
|
||||
const [host, setHost] = useState(PROTOCOL_HOST);
|
||||
const [port, setPort] = useState(PROTOCOL_PORT.toString());
|
||||
|
||||
return (
|
||||
<div className="space-y-4 max-w-6xl mx-auto">
|
||||
{/* 连接配置 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Radio className="h-4 w-4 text-primary" />
|
||||
电台连接配置
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="flex gap-4 items-end flex-wrap">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">目标 IP</Label>
|
||||
<Input
|
||||
value={host}
|
||||
onChange={e => setHost(e.target.value)}
|
||||
className="h-9 mt-1.5 font-mono w-44"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">端口</Label>
|
||||
<Input
|
||||
value={port}
|
||||
onChange={e => setPort(e.target.value)}
|
||||
type="number"
|
||||
className="h-9 mt-1.5 font-mono w-28"
|
||||
/>
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
协议帧格式:通信类型(1B) + 预留(1B) + 预留(1B) + 信令ID(2B) + 信息长度(2B) + 信息内容(NB)
|
||||
</div>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 主动上报信息说明 */}
|
||||
<div className="rounded-xl border border-amber-200/60 bg-amber-50/80 p-4 text-amber-800 text-sm flex items-center gap-3">
|
||||
<AlertCircle className="h-5 w-5 shrink-0 text-amber-500" />
|
||||
<span>
|
||||
<strong>主动上报 (0x02AF)</strong>:基带波形加载后,按 <strong>5 秒周期</strong>主动上报状态信息。
|
||||
BYTE[0]=1 表示启用,BYTE[1]=1 表示 ZZW 同步,BYTE[2]=1 表示 CKL 同步。
|
||||
拓扑查询 (0x0310) 返回节点对,每条链路 5 字节:源MAC(2B) + 目的MAC(2B) + 链路质量(1B,FF=未知)。
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<Tabs defaultValue="static" className="w-full">
|
||||
<TabsList className="grid grid-cols-3 w-fit">
|
||||
<TabsTrigger value="static">静态参数</TabsTrigger>
|
||||
<TabsTrigger value="dynamic">动态参数</TabsTrigger>
|
||||
<TabsTrigger value="status">状态查询</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="static">
|
||||
<StaticParamsTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="dynamic">
|
||||
<DynamicParamsTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="status">
|
||||
<StatusTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -543,7 +543,7 @@ export function TopologyView({ nodes, flows, running, compact, sim }: TopologyVi
|
||||
return (
|
||||
<td
|
||||
key={d.id}
|
||||
title={`N${s.id} → N${d.id}\n距离: ${dist.toFixed(0)} m\n${reachable ? '可达 (在通信范围内)' : '不可达 (超出通信范围)'}`}
|
||||
title={`N${s.id} → N${d.id}\n距离: ${dist.toFixed(0)} m\n${reachable ? '已建立 Mesh peer 链路' : '未建立直接 Mesh peer 链路'}`}
|
||||
className="px-2 py-1.5 border border-border text-center font-mono transition-colors"
|
||||
style={reachabilityCellStyle(reachable)}
|
||||
>
|
||||
@@ -585,6 +585,7 @@ export function TopologyView({ nodes, flows, running, compact, sim }: TopologyVi
|
||||
<span className="text-xs font-mono tabular-nums">发: {flow.txPackets.toLocaleString()}</span>
|
||||
<span className="text-xs font-mono tabular-nums">收: {flow.rxPackets.toLocaleString()}</span>
|
||||
<span className="text-xs text-destructive font-mono tabular-nums">丢失: {flow.lostPackets}</span>
|
||||
<span className="text-xs font-mono tabular-nums">延迟: {flow.rxPackets ? `${flow.avgDelay.toFixed(2)} ms` : '—'}</span>
|
||||
<span className="text-xs text-purple-600 font-mono tabular-nums font-medium">{(flow.throughput).toFixed(2)} Mbps</span>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -123,7 +123,7 @@ export interface NodeStatus {
|
||||
role: string;
|
||||
rxPackets: number;
|
||||
txPackets: number;
|
||||
latency: number;
|
||||
latency: number | null;
|
||||
neighbors: number[];
|
||||
x: number;
|
||||
y: number;
|
||||
@@ -136,7 +136,7 @@ export interface FlowStats {
|
||||
txPackets: number;
|
||||
rxPackets: number;
|
||||
lostPackets: number;
|
||||
avgDelay: number;
|
||||
avgDelay: number; // 毫秒
|
||||
throughput: number;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ export interface NodePairFlow {
|
||||
rxPackets: number;
|
||||
lostPackets: number;
|
||||
throughput: number; // Mbps
|
||||
avgDelay: number;
|
||||
avgDelay: number; // 毫秒
|
||||
}
|
||||
|
||||
export interface NodeSpec {
|
||||
@@ -177,6 +177,7 @@ export interface SimulationStatus {
|
||||
}
|
||||
|
||||
export interface TelemetryEnv {
|
||||
phyFrequencyMhz?: number;
|
||||
txPower: number[];
|
||||
rxSensitivity: number[];
|
||||
positions: { x: number; y: number; z: number }[];
|
||||
|
||||
@@ -6,7 +6,7 @@ import { inspectAttr } from 'kimi-plugin-inspect-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
base: '/',
|
||||
plugins: [inspectAttr(), react()],
|
||||
test: {
|
||||
globals: true,
|
||||
@@ -32,4 +32,12 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: path.resolve(__dirname, 'index.html'),
|
||||
radio: path.resolve(__dirname, 'radio/index.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY controller/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
|
||||
|
||||
COPY controller/ .
|
||||
|
||||
ENV MANET_WEB_DIR=/app/dist
|
||||
ENV MANET_PORT=8000
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.mr-1\.5{margin-righLine truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CqkUhg2V.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-WF3UiNHW.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CCVvHT1S.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-BM9zNj5E.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-NN00cnJP.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1,91 @@
|
||||
import{r as x,j as t,R as Ye,c as Je}from"./index-CCVvHT1S.js";function Se(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function Qe(...e){return s=>{let r=!1;const n=e.map(o=>{const a=Se(o,s);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Se(e[o],null)}}}}var Xe=Symbol.for("react.lazy"),te=Ye[" use ".trim().toString()];function et(e){return typeof e=="object"&&e!==null&&"then"in e}function Be(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&et(e._payload)}function tt(e){const s=rt(e),r=x.forwardRef((n,o)=>{let{children:a,...c}=n;Be(a)&&typeof te=="function"&&(a=te(a._payload));const l=x.Children.toArray(a),i=l.find(ot);if(i){const d=i.props.children,u=l.map(h=>h===i?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:h);return t.jsx(s,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return t.jsx(s,{...c,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var st=tt("Slot");function rt(e){const s=x.forwardRef((r,n)=>{let{children:o,...a}=r;if(Be(o)&&typeof te=="function"&&(o=te(o._payload)),x.isValidElement(o)){const c=lt(o),l=at(a,o.props);return o.type!==x.Fragment&&(l.ref=n?Qe(n,c):c),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return s.displayName=`${e}.SlotClone`,s}var nt=Symbol("radix.slottable");function ot(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function at(e,s){const r={...s};for(const n in s){const o=e[n],a=s[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const i=a(...l);return o(...l),i}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function lt(e){var n,o;let s=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=s&&"isReactWarning"in s&&s.isReactWarning;return r?e.ref:(s=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=s&&"isReactWarning"in s&&s.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Pe(e){var s,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(s=0;s<o;s++)e[s]&&(r=Pe(e[s]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var e,s,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(s=Pe(e))&&(n&&(n+=" "),n+=s);return n}const Me=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ae=_e,it=(e,s)=>r=>{var n;if((s==null?void 0:s.variants)==null)return Ae(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=s,c=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],h=a==null?void 0:a[d];if(u===null)return null;const p=Me(u)||Me(h);return o[d][p]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,p]=u;return p===void 0||(d[h]=p),d},{}),i=s==null||(n=s.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:p,...b}=u;return Object.entries(b).every(y=>{let[m,g]=y;return Array.isArray(g)?g.includes({...a,...l}[m]):{...a,...l}[m]===g})?[...d,h,p]:d},[]);return Ae(e,c,i,r==null?void 0:r.class,r==null?void 0:r.className)},he="-",ct=e=>{const s=ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{const l=c.split(he);return l[0]===""&&l.length!==1&&l.shift(),$e(l,s)||dt(c)},getConflictingClassGroupIds:(c,l)=>{const i=r[c]||[];return l&&n[c]?[...i,...n[c]]:i}}},$e=(e,s)=>{var c;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),o=n?$e(e.slice(1),n):void 0;if(o)return o;if(s.validators.length===0)return;const a=e.join(he);return(c=s.validators.find(({validator:l})=>l(a)))==null?void 0:c.classGroupId},ze=/^\[(.+)\]$/,dt=e=>{if(ze.test(e)){const s=ze.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},ut=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return xt(Object.entries(e.classGroups),r).forEach(([a,c])=>{ue(c,n,a,s)}),n},ue=(e,s,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?s:Re(s,o);a.classGroupId=r;return}if(typeof o=="function"){if(mt(o)){ue(o(n),s,r,n);return}s.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,c])=>{ue(c,Re(s,a),r,n)})})},Re=(e,s)=>{let r=e;return s.split(he).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mt=e=>e.isThemeGetter,xt=(e,s)=>s?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?s+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[s+c,l])):a);return[r,o]}):e,ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const o=(a,c)=>{r.set(a,c),s++,s>e&&(s=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){r.has(a)?r.set(a,c):o(a,c)}}},Le="!",pt=e=>{const{separator:s,experimentalParseClassName:r}=e,nLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(...e)=>e.filter((s,r,n)=>!!s&&s.trim()!==""&&n.indexOf(s)===r).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Vt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ht=x.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...l},i)=>x.createElement("svg",{ref:i,...Vt,width:s,height:s,stroke:e,strokeWidth:n?Number(r)*24/Number(s):r,className:qe("lucide",o),...l},[...c.map(([d,u])=>x.createElement(d,u)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,s)=>{const r=x.forwardRef(({className:n,...o},a)=>x.createElement(Ht,{ref:a,iconNode:s,className:qe(`lucide-${Ut(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const G=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ze=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const pe=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ft=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Y=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Zt=C("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const J=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Dt=C("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Q=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Kt(e,s=!0){const[r,n]=x.useState(null),[o,a]=x.useState([]),[c,l]=x.useState("closed"),[i,d]=x.useState(null),u=x.useRef(null),[h,p]=x.useState(0);return x.useEffect(()=>{if(!s){l("closed");return}l("connecting"),d(null);const y=`/api/radio/stream?cmd=${e}`,m=new EventSource(y);return u.current=m,m.onopen=()=>{l("open"),d(null)},m.addEventListener("push",g=>{try{const N={...JSON.parse(g.data),receivedAt:Date.now()};n(N),a(A=>[N,...A].slice(0,30))}catch(v){d(`parse failed: ${v.message}`)}}),m.onerror=()=>{l("error"),d("EventSource error (浏览器会自动 3s 重连)")},()=>{m.close(),u.current=null,l("closed")}},[e,s,h]),{latest:r,history:o,status:c,lastError:i,reconnect:()=>{u.current&&u.current.close(),p(y=>y+1)}}}function Yt(e){const s=e.replace(/\s+/g,"");if(s.length%2!==0)return[];const r=[];for(let n=0;n<s.length;n+=2)r.push(parseInt(s.substr(n,2),16));return r}function Jt(e){return`${(e>>8).toString(16).padStart(2,"0")}:${(e&255).toString(16).padStart(2,"0")}`}function D(e){return{id:e,mac:e,label:"本机",isSelf:!0,hop:0,status:"online"}}function Qt(e,s){const r=Yt(e);if(r.length<7)return{nodes:[],format:"unknown",warnings:[`packet too short: ${r.length}B`]};const n=r.slice(7),o=Xt(n,s),a=es(n,s);return n.length===2?o:a&&n.length%5===0?a:o??{nodes:[D(s)],format:"unknown",warnings:[`payload length ${n.length} not 2 nor 5-multiple`]}}function Xt(e,s){if(e.length!==2)return{nodes:[D(s)],format:"count_2b",warnings:[`payload ${e.length}B != 2, 跳过 2B 解析`]};const r=e[0]<<8|e[1];return r===0?{nodes:[D(s)],format:"count_2b",warnings:[]}:{nodes:[D(s)],format:"count_2b",warnings:[`count=${r} 但 payload 只有 2B, 链路数据可能未到达, 等多节点实测`]}}function es(e,s){if(e.length<5||e.length%5!==0)return null;const r=e.length/5,n=new Map;for(let a=0;a<e.length;a+=5){const c=e[a]<<8|e[a+1],l=e[a+2]<<8|e[a+3],i=e[a+4];for(const d of[c,l]){const u=Jt(d);n.has(u)||n.set(u,{mac:u,quality:[],hops:new Set}),n.get(u).quality.push(i)}}const o=[D(s)];for(const{mac:a,quality:c}of n.values()){if(a===s)continue;const l=c.reduce((i,d)=>i+d,0)/c.length;o.push({id:a,mac:a,label:a,isSelf:!1,hop:1,quality:Math.round(l),status:l>=80?"online":l>=50?"weak":"offline"})}return{nodes:o,format:"link_5b",warnings:["5B/链路 格式 [未验证] — 见 manet-54/docs/api_54_discovered.md §13",`解出 ${r} 条链路, ${o.length-1} 个邻居`]}}const K={online:{fill:"hsl(199 89% 48% / 0.18)",stroke:"hsl(199 89% 48%)",text:"hsl(199 89% 38%)"},weak:{fill:"hsl(38 92% 50% / 0.18)",stroke:"hsl(38 92% 50%)",text:"hsl(38 92% 38%)"},offline:{fill:"hsl(0 84% 60% / 0.18)",stroke:"hsl(0 84% 60%)",text:"hsl(0 84% 48%)"}},F=32,ts=24,me=110,xe=75;function ss({nodes:e,width:s=640,height:r=480,className:n}){const o=x.useMemo(()=>as(e,s,r),[e,s,r]);if(o.length===0)return t.jsx(rs,{className:n});const a=o[0],c=o.slice(1),l=x.useMemo(()=>ls(a,c),[a,c]);return t.jsx("div",{className:n,children:t.jsxs("svg",{viewBox:`0 0 ${s} ${r}`,className:"w-full h-auto",role:"img","aria-label":"MANET 网络拓扑",children:[t.jsx("defs",{children:t.jsxs("radialGradient",{id:"topo-bg",cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(199 89% 48% / 0.04)"}),t.jsx("stop",{offset:"100%",stopColor:"hsl(199 89% 48% / 0)"})]})}),t.jsx("rect",{width:s,height:r,fill:"url(#topo-bg)"}),t.jsx(ns,{self:a,maxRadius:Math.max(...o.map(i=>De(i.hop??1)))}),l.map((i,d)=>t.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:K[i.status].stroke,strokeWidth:i.isMultihop?1.5:2,strokeDasharray:i.isMultihop?"6 4":void 0,opacity:.6},d)),o.map(i=>{const d=i.isSelf?F:ts,u=K[i.status];return t.jsxs("g",{transform:`translate(${i.x}, ${i.y})`,children:[i.isSelf&&t.jsxs("circle",{r:F+8,fill:u.fill,opacity:.6,children:[t.jsx("animate",{attributeName:"r",values:`${F+4};${F+12};${F+4}`,dur:"2.4s",repeatCount:"indefinite"}),t.jsx("animate",{attributeName:"opacity",values:"0.7;0.2;0.7",dur:"2.4s",repeatCount:"indefinite"})]}),t.jsx("circle",{r:d,fill:u.fill,stroke:u.stroke,strokeWidth:2}),i.isSelf?t.jsx(Zt,{x:-10,y:-10,width:20,height:20,color:u.stroke}):i.status==="offline"?t.jsx(Dt,{x:-9,y:-9,width:18,height:18,color:u.stroke}):t.jsx(ne,{x:-9,y:-9,width:18,height:18,color:u.stroke}),t.jsx("text",{y:d+16,textAnchor:"middle",fontSize:"12",fontWeight:"600",fill:"hsl(222 47% 11%)",children:i.label??i.mac}),i.quality!=null&&t.jsxs("text",{y:d+30,textAnchor:"middle",fontSize:"10",fill:"hsl(215 16% 47%)",fontFamily:"ui-monospace, monospace",children:["Q ",i.quality]})]},i.id)}),t.jsx(os,{x:16,y:r-16})]})})}function rs({className:e}){return t.jsx("div",{className:e,children:t.jsxs("div",{className:"bg-card rounded-xl border shadow-card p-8 flex flex-col items-center justify-center text-center min-h-[280px]",children:[t.jsx("div",{className:"h-12 w-12 roundeLine truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as m,j as t,R as Fe,c as He}from"./index-BM9zNj5E.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function qe(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ze=Symbol.for("react.lazy"),K=Fe[" use ".trim().toString()];function Ye(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ze&&"_payload"in e&&Ye(e._payload)}function Ke(e){const r=Xe(e),s=m.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=m.Children.toArray(a),d=i.find(De);if(d){const c=d.props.children,p=i.map(g=>g===d?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...l,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,p):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Je=Ke("Slot");function Xe(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),m.isValidElement(o)){const l=tt(o),i=et(a,o.props);return o.type!==m.Fragment&&(i.ref=n?qe(n,l):l),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function De(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function et(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const d=a(...i);return o(...i),d}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function tt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,rt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const p=s==null?void 0:s[c],g=a==null?void 0:a[c];if(p===null)return null;const x=ve(p)||ve(g);return o[c][x]}),i=s&&Object.entries(s).reduce((c,p)=>{let[g,x]=p;return x===void 0||(c[g]=x),c},{}),d=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:g,className:x,...b}=p;return Object.entries(b).every(y=>{let[u,h]=y;return Array.isArray(h)?h.includes({...a,...i}[u]):{...a,...i}[u]===h})?[...c,g,x]:c},[]);return we(e,l,d,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",st=e=>{const r=ot(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||nt(l)},getConflictingClassGroupIds:(l,i)=>{const d=s[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,nt=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},ot=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return it(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(at(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},at=e=>e.isThemeGetter,it=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",ct=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},d)=>m.createElement("svg",{ref:d,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,p])=>m.createElement(c,p)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Ge(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $e=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $t=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const F=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Vt="100.100.100.3",Wt=62450,Ut="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function B({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ve,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[l,i]=m.useState("0"),[d,c]=m.useState("505.54"),[p,g]=m.useState("0"),[x,b]=m.useState(null),y=m.useCallback(async(u,h,j)=>{const N=await de(ce(1,h,j),e,r);return b(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx($e,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${d}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:p,sub:"0-19",icon:t.jsx(F,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-NN00cnJP.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-CqkUhg2V.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as m,j as t,R as $e,c as Fe}from"./index-WF3UiNHW.js";function be(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=be(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():be(e[o],null)}}}}var qe=Symbol.for("react.lazy"),Y=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=m.forwardRef((n,o)=>{let{children:a,...i}=n;Ae(a)&&typeof Y=="function"&&(a=Y(a._payload));const l=m.Children.toArray(a),u=l.find(Xe);if(u){const c=u.props.children,x=l.map(g=>g===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...i,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,x):null})}return t.jsx(r,{...i,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof Y=="function"&&(o=Y(o._payload)),m.isValidElement(o)){const i=et(o),l=Qe(a,o.props);return o.type!==m.Fragment&&(l.ref=n?He(n,i):i),m.cloneElement(o,l)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var De=Symbol("radix.slottable");function Xe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===De}function Qe(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...l)=>{const u=a(...l);return o(...l),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Se(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Se(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Se(e))&&(n&&(n+=" "),n+=r);return n}const ye=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ve=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return ve(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,i=Object.keys(o).map(c=>{const x=s==null?void 0:s[c],g=a==null?void 0:a[c];if(x===null)return null;const y=ye(x)||ye(g);return o[c][y]}),l=s&&Object.entries(s).reduce((c,x)=>{let[g,y]=x;return y===void 0||(c[g]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,x)=>{let{class:g,className:y,...j}=x;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...l}[d]):{...a,...l}[d]===f})?[...c,g,y]:c},[]);return ve(e,i,u,s==null?void 0:s.class,s==null?void 0:s.className)},ae="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ae);return l[0]===""&&l.length!==1&&l.shift(),Re(l,r)||st(i)},getConflictingClassGroupIds:(i,l)=>{const u=s[i]||[];return l&&n[i]?[...u,...n[i]]:u}}},Re=(e,r)=>{var i;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ae);return(i=r.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},we=/^\[(.+)\]$/,st=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,i])=>{te(i,n,a,r)}),n},te=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:je(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){te(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,i])=>{te(i,je(r,a),s,n)})})},je=(e,r)=>{let s=e;return r.split(ae).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[r+i,l])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,i)=>{s.set(a,i),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let i=s.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){s.has(a)?s.set(a,i):o(a,i)}}},Te="!",it=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Be=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},u)=>m.createElement("svg",{ref:u,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Be("lucide",o),...l},[...i.map(([c,x])=>m.createElement(c,x)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Be(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const U=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ne=62450,Ut="http://100.100.100.3:8000";function ie(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function K(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function $t(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function ce(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ft={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},Ht={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function W({label:e,value:r,sub:s,icon:n,accent:o}){return t.jsx("div",{className:"bg-card rounded-xl border shadow-card hover:shadow-card-hover transition-all duration-200",children:t.jsxs("div",{className:"flex items-start justify-between p-3",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:A("h-9 w-9 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function de({result:e}){return e?t.jsxs("div",{className:A("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,title:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function qt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[i,l]=m.useState("0"),[u,c]=m.useState("505.54"),[x,g]=m.useState("0"),[y,j]=m.useState(null),v=m.useCallback(async(d,f,w)=>{const N=await ce(ie(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(W,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(oe,{className:"h-4 w-4 text-primary"}),accent:"bg-primary/10"}),t.jsx(W,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(re,{className:"h-4 w-4 text-cyan-500"}),accent:"bg-cyan-500/10"}),t.jsx(W,{label:"MAC地址",value:i,sub:"0-127",icon:t.jsx(se,{className:"h-4 w-4 text-violet-500"}),accent:"bg-violet-500/10"}),t.jsx(W,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(ne,{className:"h-4 w-4 text-rose-500"}),accent:"bg-rose-500/10"}),t.jsx(W,{label:"跳频表号",value:x,sub:"0-19",icon:t.jsx(U,{className:"h-4 w-4 text-amber-500"}),accent:"bg-amber-500/10"})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:t.jsx(oe,{className:"h-4 w-4"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:"网络规模"}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:"0x0001"})]})]}),t.jsxs("div",{className:"p-4 space-y-3",children:[t.jsxs("div",{children:[t.jsx(ELine truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as $e,c as Fe}from"./index-CSMGRq5Y.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var qe=Symbol.for("react.lazy"),K=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(Qe);if(u){const c=u.props.children,g=i.map(b=>b===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:b);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=et(o),i=De(a,o.props);return o.type!==p.Fragment&&(i.ref=n?He(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Xe=Symbol("radix.slottable");function Qe(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xe}function De(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],b=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(b);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[b,y]=g;return y===void 0||(c[b]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:b,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,b,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||st(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,st=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,it=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Ie="!",lt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Ot={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,...Ot,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Lt,{ref:a,iconNode:r,className:Ge(`lucide-${Bt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ut=62450,$t="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$t}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(_t,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,b]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>电台控制</title>
|
||||
<script type="module" crossorigin src="/radio/assets/main-BBqEByhd.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/radio/assets/index-CCVvHT1S.js">
|
||||
<link rel="stylesheet" crossorigin href="/radio/assets/index-BNtX7WGG.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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:Inter,system-ui,-apple-system,sans-serif;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:JetBrains Mono,ui-monospace,Cascadia Code,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{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +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}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.mr-1\.5{margin-righLine truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CqkUhg2V.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-WF3UiNHW.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CCVvHT1S.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-BM9zNj5E.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1 @@
|
||||
import{c as r,j as e,r as s}from"./index-NN00cnJP.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -0,0 +1,91 @@
|
||||
import{r as x,j as t,R as Ye,c as Je}from"./index-CCVvHT1S.js";function Se(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function Qe(...e){return s=>{let r=!1;const n=e.map(o=>{const a=Se(o,s);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Se(e[o],null)}}}}var Xe=Symbol.for("react.lazy"),te=Ye[" use ".trim().toString()];function et(e){return typeof e=="object"&&e!==null&&"then"in e}function Be(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&et(e._payload)}function tt(e){const s=rt(e),r=x.forwardRef((n,o)=>{let{children:a,...c}=n;Be(a)&&typeof te=="function"&&(a=te(a._payload));const l=x.Children.toArray(a),i=l.find(ot);if(i){const d=i.props.children,u=l.map(h=>h===i?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:h);return t.jsx(s,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return t.jsx(s,{...c,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var st=tt("Slot");function rt(e){const s=x.forwardRef((r,n)=>{let{children:o,...a}=r;if(Be(o)&&typeof te=="function"&&(o=te(o._payload)),x.isValidElement(o)){const c=lt(o),l=at(a,o.props);return o.type!==x.Fragment&&(l.ref=n?Qe(n,c):c),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return s.displayName=`${e}.SlotClone`,s}var nt=Symbol("radix.slottable");function ot(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function at(e,s){const r={...s};for(const n in s){const o=e[n],a=s[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const i=a(...l);return o(...l),i}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function lt(e){var n,o;let s=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=s&&"isReactWarning"in s&&s.isReactWarning;return r?e.ref:(s=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=s&&"isReactWarning"in s&&s.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Pe(e){var s,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(s=0;s<o;s++)e[s]&&(r=Pe(e[s]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var e,s,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(s=Pe(e))&&(n&&(n+=" "),n+=s);return n}const Me=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ae=_e,it=(e,s)=>r=>{var n;if((s==null?void 0:s.variants)==null)return Ae(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=s,c=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],h=a==null?void 0:a[d];if(u===null)return null;const p=Me(u)||Me(h);return o[d][p]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,p]=u;return p===void 0||(d[h]=p),d},{}),i=s==null||(n=s.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:p,...b}=u;return Object.entries(b).every(y=>{let[m,g]=y;return Array.isArray(g)?g.includes({...a,...l}[m]):{...a,...l}[m]===g})?[...d,h,p]:d},[]);return Ae(e,c,i,r==null?void 0:r.class,r==null?void 0:r.className)},he="-",ct=e=>{const s=ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{const l=c.split(he);return l[0]===""&&l.length!==1&&l.shift(),$e(l,s)||dt(c)},getConflictingClassGroupIds:(c,l)=>{const i=r[c]||[];return l&&n[c]?[...i,...n[c]]:i}}},$e=(e,s)=>{var c;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),o=n?$e(e.slice(1),n):void 0;if(o)return o;if(s.validators.length===0)return;const a=e.join(he);return(c=s.validators.find(({validator:l})=>l(a)))==null?void 0:c.classGroupId},ze=/^\[(.+)\]$/,dt=e=>{if(ze.test(e)){const s=ze.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},ut=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return xt(Object.entries(e.classGroups),r).forEach(([a,c])=>{ue(c,n,a,s)}),n},ue=(e,s,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?s:Re(s,o);a.classGroupId=r;return}if(typeof o=="function"){if(mt(o)){ue(o(n),s,r,n);return}s.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,c])=>{ue(c,Re(s,a),r,n)})})},Re=(e,s)=>{let r=e;return s.split(he).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mt=e=>e.isThemeGetter,xt=(e,s)=>s?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?s+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[s+c,l])):a);return[r,o]}):e,ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const o=(a,c)=>{r.set(a,c),s++,s>e&&(s=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){r.has(a)?r.set(a,c):o(a,c)}}},Le="!",pt=e=>{const{separator:s,experimentalParseClassName:r}=e,nLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(...e)=>e.filter((s,r,n)=>!!s&&s.trim()!==""&&n.indexOf(s)===r).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Vt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ht=x.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...l},i)=>x.createElement("svg",{ref:i,...Vt,width:s,height:s,stroke:e,strokeWidth:n?Number(r)*24/Number(s):r,className:qe("lucide",o),...l},[...c.map(([d,u])=>x.createElement(d,u)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,s)=>{const r=x.forwardRef(({className:n,...o},a)=>x.createElement(Ht,{ref:a,iconNode:s,className:qe(`lucide-${Ut(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const G=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ze=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const pe=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ft=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Y=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Zt=C("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const J=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Dt=C("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Q=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Kt(e,s=!0){const[r,n]=x.useState(null),[o,a]=x.useState([]),[c,l]=x.useState("closed"),[i,d]=x.useState(null),u=x.useRef(null),[h,p]=x.useState(0);return x.useEffect(()=>{if(!s){l("closed");return}l("connecting"),d(null);const y=`/api/radio/stream?cmd=${e}`,m=new EventSource(y);return u.current=m,m.onopen=()=>{l("open"),d(null)},m.addEventListener("push",g=>{try{const N={...JSON.parse(g.data),receivedAt:Date.now()};n(N),a(A=>[N,...A].slice(0,30))}catch(v){d(`parse failed: ${v.message}`)}}),m.onerror=()=>{l("error"),d("EventSource error (浏览器会自动 3s 重连)")},()=>{m.close(),u.current=null,l("closed")}},[e,s,h]),{latest:r,history:o,status:c,lastError:i,reconnect:()=>{u.current&&u.current.close(),p(y=>y+1)}}}function Yt(e){const s=e.replace(/\s+/g,"");if(s.length%2!==0)return[];const r=[];for(let n=0;n<s.length;n+=2)r.push(parseInt(s.substr(n,2),16));return r}function Jt(e){return`${(e>>8).toString(16).padStart(2,"0")}:${(e&255).toString(16).padStart(2,"0")}`}function D(e){return{id:e,mac:e,label:"本机",isSelf:!0,hop:0,status:"online"}}function Qt(e,s){const r=Yt(e);if(r.length<7)return{nodes:[],format:"unknown",warnings:[`packet too short: ${r.length}B`]};const n=r.slice(7),o=Xt(n,s),a=es(n,s);return n.length===2?o:a&&n.length%5===0?a:o??{nodes:[D(s)],format:"unknown",warnings:[`payload length ${n.length} not 2 nor 5-multiple`]}}function Xt(e,s){if(e.length!==2)return{nodes:[D(s)],format:"count_2b",warnings:[`payload ${e.length}B != 2, 跳过 2B 解析`]};const r=e[0]<<8|e[1];return r===0?{nodes:[D(s)],format:"count_2b",warnings:[]}:{nodes:[D(s)],format:"count_2b",warnings:[`count=${r} 但 payload 只有 2B, 链路数据可能未到达, 等多节点实测`]}}function es(e,s){if(e.length<5||e.length%5!==0)return null;const r=e.length/5,n=new Map;for(let a=0;a<e.length;a+=5){const c=e[a]<<8|e[a+1],l=e[a+2]<<8|e[a+3],i=e[a+4];for(const d of[c,l]){const u=Jt(d);n.has(u)||n.set(u,{mac:u,quality:[],hops:new Set}),n.get(u).quality.push(i)}}const o=[D(s)];for(const{mac:a,quality:c}of n.values()){if(a===s)continue;const l=c.reduce((i,d)=>i+d,0)/c.length;o.push({id:a,mac:a,label:a,isSelf:!1,hop:1,quality:Math.round(l),status:l>=80?"online":l>=50?"weak":"offline"})}return{nodes:o,format:"link_5b",warnings:["5B/链路 格式 [未验证] — 见 manet-54/docs/api_54_discovered.md §13",`解出 ${r} 条链路, ${o.length-1} 个邻居`]}}const K={online:{fill:"hsl(199 89% 48% / 0.18)",stroke:"hsl(199 89% 48%)",text:"hsl(199 89% 38%)"},weak:{fill:"hsl(38 92% 50% / 0.18)",stroke:"hsl(38 92% 50%)",text:"hsl(38 92% 38%)"},offline:{fill:"hsl(0 84% 60% / 0.18)",stroke:"hsl(0 84% 60%)",text:"hsl(0 84% 48%)"}},F=32,ts=24,me=110,xe=75;function ss({nodes:e,width:s=640,height:r=480,className:n}){const o=x.useMemo(()=>as(e,s,r),[e,s,r]);if(o.length===0)return t.jsx(rs,{className:n});const a=o[0],c=o.slice(1),l=x.useMemo(()=>ls(a,c),[a,c]);return t.jsx("div",{className:n,children:t.jsxs("svg",{viewBox:`0 0 ${s} ${r}`,className:"w-full h-auto",role:"img","aria-label":"MANET 网络拓扑",children:[t.jsx("defs",{children:t.jsxs("radialGradient",{id:"topo-bg",cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(199 89% 48% / 0.04)"}),t.jsx("stop",{offset:"100%",stopColor:"hsl(199 89% 48% / 0)"})]})}),t.jsx("rect",{width:s,height:r,fill:"url(#topo-bg)"}),t.jsx(ns,{self:a,maxRadius:Math.max(...o.map(i=>De(i.hop??1)))}),l.map((i,d)=>t.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:K[i.status].stroke,strokeWidth:i.isMultihop?1.5:2,strokeDasharray:i.isMultihop?"6 4":void 0,opacity:.6},d)),o.map(i=>{const d=i.isSelf?F:ts,u=K[i.status];return t.jsxs("g",{transform:`translate(${i.x}, ${i.y})`,children:[i.isSelf&&t.jsxs("circle",{r:F+8,fill:u.fill,opacity:.6,children:[t.jsx("animate",{attributeName:"r",values:`${F+4};${F+12};${F+4}`,dur:"2.4s",repeatCount:"indefinite"}),t.jsx("animate",{attributeName:"opacity",values:"0.7;0.2;0.7",dur:"2.4s",repeatCount:"indefinite"})]}),t.jsx("circle",{r:d,fill:u.fill,stroke:u.stroke,strokeWidth:2}),i.isSelf?t.jsx(Zt,{x:-10,y:-10,width:20,height:20,color:u.stroke}):i.status==="offline"?t.jsx(Dt,{x:-9,y:-9,width:18,height:18,color:u.stroke}):t.jsx(ne,{x:-9,y:-9,width:18,height:18,color:u.stroke}),t.jsx("text",{y:d+16,textAnchor:"middle",fontSize:"12",fontWeight:"600",fill:"hsl(222 47% 11%)",children:i.label??i.mac}),i.quality!=null&&t.jsxs("text",{y:d+30,textAnchor:"middle",fontSize:"10",fill:"hsl(215 16% 47%)",fontFamily:"ui-monospace, monospace",children:["Q ",i.quality]})]},i.id)}),t.jsx(os,{x:16,y:r-16})]})})}function rs({className:e}){return t.jsx("div",{className:e,children:t.jsxs("div",{className:"bg-card rounded-xl border shadow-card p-8 flex flex-col items-center justify-center text-center min-h-[280px]",children:[t.jsx("div",{className:"h-12 w-12 roundeLine truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as m,j as t,R as Fe,c as He}from"./index-BM9zNj5E.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function qe(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ze=Symbol.for("react.lazy"),K=Fe[" use ".trim().toString()];function Ye(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ze&&"_payload"in e&&Ye(e._payload)}function Ke(e){const r=Xe(e),s=m.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=m.Children.toArray(a),d=i.find(De);if(d){const c=d.props.children,p=i.map(g=>g===d?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...l,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,p):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Je=Ke("Slot");function Xe(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),m.isValidElement(o)){const l=tt(o),i=et(a,o.props);return o.type!==m.Fragment&&(i.ref=n?qe(n,l):l),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function De(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function et(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const d=a(...i);return o(...i),d}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function tt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,rt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const p=s==null?void 0:s[c],g=a==null?void 0:a[c];if(p===null)return null;const x=ve(p)||ve(g);return o[c][x]}),i=s&&Object.entries(s).reduce((c,p)=>{let[g,x]=p;return x===void 0||(c[g]=x),c},{}),d=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:g,className:x,...b}=p;return Object.entries(b).every(y=>{let[u,h]=y;return Array.isArray(h)?h.includes({...a,...i}[u]):{...a,...i}[u]===h})?[...c,g,x]:c},[]);return we(e,l,d,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",st=e=>{const r=ot(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||nt(l)},getConflictingClassGroupIds:(l,i)=>{const d=s[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,nt=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},ot=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return it(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(at(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},at=e=>e.isThemeGetter,it=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",ct=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},d)=>m.createElement("svg",{ref:d,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,p])=>m.createElement(c,p)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Ge(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $e=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $t=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const F=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Vt="100.100.100.3",Wt=62450,Ut="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function B({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ve,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[l,i]=m.useState("0"),[d,c]=m.useState("505.54"),[p,g]=m.useState("0"),[x,b]=m.useState(null),y=m.useCallback(async(u,h,j)=>{const N=await de(ce(1,h,j),e,r);return b(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx($e,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${d}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:p,sub:"0-19",icon:t.jsx(F,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-NN00cnJP.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-CqkUhg2V.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as m,j as t,R as $e,c as Fe}from"./index-WF3UiNHW.js";function be(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=be(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():be(e[o],null)}}}}var qe=Symbol.for("react.lazy"),Y=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=m.forwardRef((n,o)=>{let{children:a,...i}=n;Ae(a)&&typeof Y=="function"&&(a=Y(a._payload));const l=m.Children.toArray(a),u=l.find(Xe);if(u){const c=u.props.children,x=l.map(g=>g===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...i,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,x):null})}return t.jsx(r,{...i,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof Y=="function"&&(o=Y(o._payload)),m.isValidElement(o)){const i=et(o),l=Qe(a,o.props);return o.type!==m.Fragment&&(l.ref=n?He(n,i):i),m.cloneElement(o,l)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var De=Symbol("radix.slottable");function Xe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===De}function Qe(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...l)=>{const u=a(...l);return o(...l),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Se(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Se(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Se(e))&&(n&&(n+=" "),n+=r);return n}const ye=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ve=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return ve(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,i=Object.keys(o).map(c=>{const x=s==null?void 0:s[c],g=a==null?void 0:a[c];if(x===null)return null;const y=ye(x)||ye(g);return o[c][y]}),l=s&&Object.entries(s).reduce((c,x)=>{let[g,y]=x;return y===void 0||(c[g]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,x)=>{let{class:g,className:y,...j}=x;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...l}[d]):{...a,...l}[d]===f})?[...c,g,y]:c},[]);return ve(e,i,u,s==null?void 0:s.class,s==null?void 0:s.className)},ae="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ae);return l[0]===""&&l.length!==1&&l.shift(),Re(l,r)||st(i)},getConflictingClassGroupIds:(i,l)=>{const u=s[i]||[];return l&&n[i]?[...u,...n[i]]:u}}},Re=(e,r)=>{var i;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ae);return(i=r.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},we=/^\[(.+)\]$/,st=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,i])=>{te(i,n,a,r)}),n},te=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:je(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){te(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,i])=>{te(i,je(r,a),s,n)})})},je=(e,r)=>{let s=e;return r.split(ae).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[r+i,l])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,i)=>{s.set(a,i),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let i=s.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){s.has(a)?s.set(a,i):o(a,i)}}},Te="!",it=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Be=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},u)=>m.createElement("svg",{ref:u,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Be("lucide",o),...l},[...i.map(([c,x])=>m.createElement(c,x)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Be(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const U=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ne=62450,Ut="http://100.100.100.3:8000";function ie(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function K(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function $t(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function ce(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ft={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},Ht={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function W({label:e,value:r,sub:s,icon:n,accent:o}){return t.jsx("div",{className:"bg-card rounded-xl border shadow-card hover:shadow-card-hover transition-all duration-200",children:t.jsxs("div",{className:"flex items-start justify-between p-3",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:A("h-9 w-9 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function de({result:e}){return e?t.jsxs("div",{className:A("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,title:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function qt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[i,l]=m.useState("0"),[u,c]=m.useState("505.54"),[x,g]=m.useState("0"),[y,j]=m.useState(null),v=m.useCallback(async(d,f,w)=>{const N=await ce(ie(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(W,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(oe,{className:"h-4 w-4 text-primary"}),accent:"bg-primary/10"}),t.jsx(W,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(re,{className:"h-4 w-4 text-cyan-500"}),accent:"bg-cyan-500/10"}),t.jsx(W,{label:"MAC地址",value:i,sub:"0-127",icon:t.jsx(se,{className:"h-4 w-4 text-violet-500"}),accent:"bg-violet-500/10"}),t.jsx(W,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(ne,{className:"h-4 w-4 text-rose-500"}),accent:"bg-rose-500/10"}),t.jsx(W,{label:"跳频表号",value:x,sub:"0-19",icon:t.jsx(U,{className:"h-4 w-4 text-amber-500"}),accent:"bg-amber-500/10"})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:t.jsx(oe,{className:"h-4 w-4"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:"网络规模"}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:"0x0001"})]})]}),t.jsxs("div",{className:"p-4 space-y-3",children:[t.jsxs("div",{children:[t.jsx(ELine truncated
|
||||
@@ -0,0 +1,81 @@
|
||||
import{r as p,j as t,R as $e,c as Fe}from"./index-CSMGRq5Y.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var qe=Symbol.for("react.lazy"),K=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(Qe);if(u){const c=u.props.children,g=i.map(b=>b===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:b);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=et(o),i=De(a,o.props);return o.type!==p.Fragment&&(i.ref=n?He(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Xe=Symbol("radix.slottable");function Qe(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xe}function De(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],b=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(b);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[b,y]=g;return y===void 0||(c[b]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:b,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,b,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||st(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,st=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,it=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Ie="!",lt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Ot={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,...Ot,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Lt,{ref:a,iconNode:r,className:Ge(`lucide-${Bt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ut=62450,$t="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$t}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(_t,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,b]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>电台设备控制</title>
|
||||
<script type="module" crossorigin src="/radio/assets/radio-BRnMLgcu.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/radio/assets/index-CCVvHT1S.js">
|
||||
<link rel="stylesheet" crossorigin href="/radio/assets/index-BNtX7WGG.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root-radio"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,407 @@
|
||||
"""FastAPI 应用入口 - 电台设备控制后端。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
import socket
|
||||
import struct
|
||||
import time
|
||||
from contextlib import asynccontextmanager
|
||||
from typing import Any
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import FileResponse
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from push_stream import push_stream
|
||||
from sse_routes import router as sse_router
|
||||
|
||||
logging.basicConfig(level=os.environ.get("LOG_LEVEL", "INFO"))
|
||||
log = logging.getLogger("manet.api")
|
||||
|
||||
# Mock mode for UI testing without device.
|
||||
# Set MOCK_RADIO_RESPONSES=1 (or true/yes) → return synthetic success replies
|
||||
# Set MOCK_RADIO_RESPONSES=fail → simulate "device unreachable"
|
||||
# Bypasses the UDP socket entirely so the UI can be exercised in dev/CI.
|
||||
MOCK_MODE = os.environ.get("MOCK_RADIO_RESPONSES", "").strip().lower()
|
||||
|
||||
_MOCK_PAYLOADS: dict[int, bytes] = {
|
||||
0x0041: bytes([0x00, 0x10]), # 网络规模 = 16
|
||||
0x0042: bytes([0x01]), # 工作模式 = 定频
|
||||
0x0043: bytes([0x12, 0x07, 0x50, 0x00, 0x31]), # MAC 地址
|
||||
0x0044: bytes([0x05, 0x05, 0x05, 0x04]), # 频率 505.54 MHz (BCD)
|
||||
0x0045: bytes([0x05]), # 跳频表号
|
||||
0x0141: bytes([0x15]), # 传输速率
|
||||
0x0142: bytes([0x14]), # 发射功率 (20 dBm)
|
||||
0x0203: b"V1.00.00/2023-12-15", # 版本信息
|
||||
0x0202: bytes([0x00, 0x01, 0x00, 0x01]), # 计数 A
|
||||
0x0209: bytes([0x01, 0x01]), # 计数 B
|
||||
0x0240: bytes([0x05]), # 计数 D
|
||||
}
|
||||
|
||||
|
||||
def _build_mock_reply(frame_bytes: bytes) -> bytes:
|
||||
"""构造与设备真响应同格式 (7 字节头 + payload) 的合成响应。"""
|
||||
cmd_q = struct.unpack(">H", frame_bytes[3:5])[0]
|
||||
expected_rid = EXPECTED_RID.get(cmd_q, cmd_q + DEFAULT_RID_OFFSET)
|
||||
payload = _MOCK_PAYLOADS.get(cmd_q, b"\x00" * 8)
|
||||
return (
|
||||
bytes([frame_bytes[0], 0, 0])
|
||||
+ struct.pack(">HH", expected_rid, len(payload))
|
||||
+ payload
|
||||
)
|
||||
|
||||
|
||||
# 设备 1Hz 周期性 push cmd,这些不是用户查询的真响应,必须在 recv 循环里丢弃。
|
||||
# 经验值: 设备开机后每秒必推的 7 个 cmd (见 manet-54/docs/api_54_discovered.md §1)。
|
||||
PUSH_CMDS = frozenset({0x02AF, 0x0310, 0x0332, 0x0333, 0x0334, 0x0347, 0x1402})
|
||||
|
||||
# 真正的 push-only 触发器:发 Q 后设备**不会**回 R,只会在 1~2s 内 burst 一次 push。
|
||||
# 这些 cmd 不能套用 Q/R 配对超时逻辑,必须明确告诉前端"无 R,这是 push"而不是 timeout。
|
||||
# 2026-06-03 实测: 0x0310 Q 后,设备推 3 个 0x0310 push (内容恒为 [0x00, 0x00]) 加上其他 push 临时 burst。
|
||||
# 详见 manet-54/docs/api_54_discovered.md §13。
|
||||
PUSH_ONLY_CMDS = frozenset({0x02AF, 0x0310, 0x0332, 0x0333, 0x0334, 0x0347, 0x1402})
|
||||
|
||||
# 设备对未识别 cmd 的 NACK 槽位。R_cmd = 0x02A0 | (Q_cmd & 0x0001) (comm_type 影响已被实测观察到)。
|
||||
# 收到 NACK 也算"无真响应",应直接返回 reason 而不是当成空 payload 静默通过。
|
||||
NACK_FAMILY = frozenset({0x02A0, 0x02A1})
|
||||
|
||||
# 显式 Q→R cmd_id 映射表。
|
||||
# 0x0001~0x01FF 范围内 R = Q + 0x40 是统一规则;但 0x0200+ 范围设备用另一套命名空间
|
||||
# (例如 0x0203 → 0x02A3,差 0xA0;0x0209 → 0x0309,差 0x100)。
|
||||
# 没在表里的 cmd 默认 +0x40 — 大概率会超时,但绝不会把 push/NACK 误吞为响应。
|
||||
# 详见 manet-54/docs/api_54_discovered.md
|
||||
EXPECTED_RID = {
|
||||
# 文档化查询
|
||||
0x0041: 0x0081, 0x0042: 0x0082, 0x0043: 0x0083, 0x0044: 0x0084, 0x0045: 0x0085,
|
||||
0x0141: 0x0181, 0x0142: 0x0182,
|
||||
# 暴力扫描发现 (cmd_id 解析时不再用 +0x40 推算)
|
||||
0x0020: 0x0326, 0x0025: 0x0031, 0x0061: 0x0031,
|
||||
0x0046: 0x0086, 0x0047: 0x0087, 0x004A: 0x008A, 0x004B: 0x008B,
|
||||
0x004C: 0x008C, 0x004D: 0x008D,
|
||||
0x0143: 0x0183, 0x0144: 0x0184, 0x0145: 0x0185,
|
||||
0x0202: 0x02A2, 0x0203: 0x02A3, 0x0209: 0x0309, 0x021E: 0x0327, 0x0240: 0x0340,
|
||||
}
|
||||
DEFAULT_RID_OFFSET = 0x40
|
||||
|
||||
|
||||
async def _send_udp_async(frame_bytes: bytes, host: str, port: int) -> tuple[bytes | None, str | None]:
|
||||
"""Async wrapper over blocking socket send with Q/R pairing.
|
||||
|
||||
端口分工:
|
||||
- 62450 由 PushStream 独占 bind, 持续收 push
|
||||
- 本函数用 ephemeral 源端口发 Q, 然后 3s 内等待 R
|
||||
- 设备响应回 62450, 由 PushStream 顺便捕获并按 cmd 缓存
|
||||
(本函数的 socket 用 ephemeral 端口是收不到响应的, 真响应需要走 PushStream
|
||||
的缓存或另开一条 channel — 见下方 is_push_only 优化)
|
||||
|
||||
PUSH_ONLY 模式优化:
|
||||
- 这 7 个 cmd (0x02AF/0x0310/0x0332~0x0334/0x0347/0x1402) 设备不发 R, 只 push
|
||||
- 既然 PushStream 已经在持续收 push, 直接从 push_stream.get_latest(cmd) 拿
|
||||
- 不发 Q, 不踢设备, 不触发 burst
|
||||
"""
|
||||
loop = asyncio.get_running_loop()
|
||||
|
||||
# 提前解析 cmd_q 用于 PUSH_ONLY 优化
|
||||
try:
|
||||
cmd_q = struct.unpack(">H", frame_bytes[3:5])[0]
|
||||
except Exception:
|
||||
return None, f"frame 头部不合法 (长度 < 5): {frame_bytes.hex()}"
|
||||
|
||||
# PUSH_ONLY_CMDS: 直接从 PushStream 缓存拿最新 push, 不发 Q 不等 R
|
||||
if cmd_q in PUSH_ONLY_CMDS:
|
||||
cached = push_stream.get_latest(cmd_q)
|
||||
if cached is not None:
|
||||
return cached, None
|
||||
# 缓存为空, fallback 到发 Q + 等 burst (原行为, 2.5s 超时由调用方控制)
|
||||
log.debug("PUSH_ONLY 0x%04X 缓存空, fallback 到 Q+burst 等待", cmd_q)
|
||||
|
||||
def _do() -> tuple[bytes | None, str | None]:
|
||||
expected_rid = EXPECTED_RID.get(cmd_q, cmd_q + DEFAULT_RID_OFFSET)
|
||||
expected_nack = 0x02A0 | (cmd_q & 0x0001)
|
||||
is_push_only = cmd_q in PUSH_ONLY_CMDS
|
||||
overall_deadline = time.monotonic() + 3.0
|
||||
per_recv_timeout = 0.25
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
# 不再 bind 62450 — 由 PushStream 独占
|
||||
# 不 bind → 内核选 ephemeral 源端口, 真响应回不到这里
|
||||
# (真响应主要靠 PushStream 转给 PUSH_ONLY, 普通 Q/R 走另一条路径)
|
||||
try:
|
||||
sock.settimeout(per_recv_timeout)
|
||||
try:
|
||||
sock.sendto(frame_bytes, (host, port))
|
||||
except Exception as e:
|
||||
return None, f"sendto 失败: {e}"
|
||||
|
||||
push_during_query = 0
|
||||
while time.monotonic() < overall_deadline:
|
||||
# 优先从 PushStream 拿真响应 (它在 62450 收, 跨 socket 共享)
|
||||
cached = push_stream.get_latest(cmd_q)
|
||||
if cached is not None:
|
||||
cmd_r = struct.unpack(">H", cached[3:5])[0] if len(cached) >= 5 else 0
|
||||
if cmd_r == expected_rid:
|
||||
return cached, None
|
||||
if cmd_r == expected_nack:
|
||||
return None, f"设备 NACK (cmd=0x{cmd_r:04X}, 表示对 0x{cmd_q:04X} 不识别)"
|
||||
if is_push_only and cmd_r == cmd_q:
|
||||
return cached, None
|
||||
# 同时自己也尝试 recv 一下 (兜底, 响应理论上回不到这里)
|
||||
try:
|
||||
reply, _ = sock.recvfrom(4096)
|
||||
except (TimeoutError, socket.timeout):
|
||||
continue
|
||||
if len(reply) < 7:
|
||||
continue
|
||||
cmd_r = struct.unpack(">H", reply[3:5])[0]
|
||||
if cmd_r == expected_rid:
|
||||
return reply, None
|
||||
if cmd_r == expected_nack:
|
||||
return None, f"设备 NACK (cmd=0x{cmd_r:04X}, 表示对 0x{cmd_q:04X} 不识别)"
|
||||
if cmd_r in PUSH_CMDS:
|
||||
push_during_query += 1
|
||||
if is_push_only and cmd_r == cmd_q:
|
||||
return reply, None
|
||||
continue
|
||||
if cmd_r in NACK_FAMILY:
|
||||
return None, f"设备 NACK (cmd=0x{cmd_r:04X})"
|
||||
log.debug("查询 0x%04X 期间收到非预期 cmd=0x%04X, 跳过", cmd_q, cmd_r)
|
||||
continue
|
||||
|
||||
err_msg = (
|
||||
f"UDP 接收超时 (3s 内未收到 cmd=0x{expected_rid:04X} 真响应;"
|
||||
f"期间收到 {push_during_query} 个 push 包,设备可能繁忙或 cmd 无效)"
|
||||
)
|
||||
if is_push_only:
|
||||
err_msg = (
|
||||
f"PUSH_ONLY 0x{cmd_q:04X}: 3s 内 PushStream 未收到对应 push (设备静默)"
|
||||
)
|
||||
return None, err_msg
|
||||
except Exception as e:
|
||||
return None, f"socket 异常: {e}"
|
||||
finally:
|
||||
try:
|
||||
sock.close()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return await loop.run_in_executor(None, _do)
|
||||
|
||||
|
||||
app = FastAPI(title="电台控制", version="0.1.0")
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def _lifespan(app: FastAPI):
|
||||
"""启动时初始化 PushStream (bind 62450 持久监听), 关闭时清理。
|
||||
PushStream 与 _send_udp_async 端口分离: 前者独占 62450 收, 后者用 ephemeral 源端口发 Q。
|
||||
"""
|
||||
try:
|
||||
await push_stream.start()
|
||||
except OSError as e:
|
||||
log.error("PushStream bind 62450 失败: %s — 设备已被其他进程占用?", e)
|
||||
app.include_router(sse_router)
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
await push_stream.stop()
|
||||
|
||||
|
||||
app.router.lifespan_context = _lifespan
|
||||
|
||||
|
||||
@app.post("/api/radio/raw", summary="电台 UDP 帧透传", description=
|
||||
"""## 二进制帧格式(api_54 协议)
|
||||
7 字节头部 + N 字节内容:
|
||||
- `comm_type`: 通信类型(1=静态设置, 3=动态设置)
|
||||
- `cmd_id`: 信令 ID(大端序,2 字节)
|
||||
- `length`: 信息长度(大端序,2 字节)
|
||||
- `payload`: 参数内容
|
||||
|
||||
## 读写示例
|
||||
|
||||
### 静态参数查询(comm_type=1, 查询 ID = 设置 ID + 0x40)
|
||||
|
||||
| 参数 | 设置 ID | 查询 ID | Payload |
|
||||
|------|--------|--------|---------|
|
||||
| 网络规模 | 0x0001 | 0x0041 | 2字节 BE 整数 |
|
||||
| 工作模式 | 0x0002 | 0x0042 | 1字节 整数 |
|
||||
| MAC地址 | 0x0003 | 0x0043 | 2字节 BE 整数 |
|
||||
| 定频频率 | 0x0004 | 0x0044 | 4字节 BCD 压缩码 |
|
||||
| 跳频表号 | 0x0005 | 0x0045 | 1字节 整数 |
|
||||
|
||||
### 动态参数查询(comm_type=3)
|
||||
|
||||
| 参数 | 设置 ID | 查询 ID | Payload |
|
||||
|------|--------|--------|---------|
|
||||
| 传输速率 | 0x0101 | 0x0141 | 1字节 |
|
||||
| 发射功率 | 0x0102 | 0x0142 | 1字节 |
|
||||
|
||||
### 状态查询
|
||||
|
||||
| 功能 | ID | comm_type | Payload |
|
||||
|------|----|-----------|---------|
|
||||
| 版本信息 | 0x0203 | 1 | 空 |
|
||||
| 主动上报订阅 | 0x02AF | 1 | [1,1,1,0,0,0,0] |
|
||||
| 自组网拓扑 | 0x0310 | 1 | 空 |
|
||||
|
||||
## 示例请求
|
||||
|
||||
**查询网络规模:**
|
||||
```json
|
||||
POST /api/radio/raw
|
||||
{
|
||||
"host": "192.0.3.1",
|
||||
"port": 62450,
|
||||
"frame": [1, 0, 0, 0, 65, 0, 0]
|
||||
}
|
||||
```
|
||||
|
||||
**设置网络规模为 16:**
|
||||
```json
|
||||
POST /api/radio/raw
|
||||
{
|
||||
"host": "192.0.3.1",
|
||||
"port": 62450,
|
||||
"frame": [1, 0, 0, 0, 1, 0, 2, 0, 16]
|
||||
}
|
||||
```
|
||||
|
||||
**查询工作模式:**
|
||||
```json
|
||||
POST /api/radio/raw
|
||||
{
|
||||
"host": "192.0.3.1",
|
||||
"port": 62450,
|
||||
"frame": [1, 0, 0, 0, 66, 0, 0]
|
||||
}
|
||||
```
|
||||
|
||||
**设置定频频率 505.54MHz (BCD):**
|
||||
```json
|
||||
POST /api/radio/raw
|
||||
{
|
||||
"host": "192.0.3.1",
|
||||
"port": 62450,
|
||||
"frame": [1, 0, 0, 0, 4, 0, 4, 5, 0, 5, 5, 4]
|
||||
}
|
||||
```
|
||||
""")
|
||||
async def radio_raw(body: dict[str, Any]) -> dict[str, Any]:
|
||||
"""将 HTTP 请求中的二进制帧透传为 UDP,回复透传为 HTTP 响应。
|
||||
|
||||
Body: { host: string, port: number, frame: number[] }
|
||||
Response: { reply?: number[], reason?: string }
|
||||
"""
|
||||
host: str = body.get("host", "192.0.3.1")
|
||||
port: int = int(body.get("port", 62450))
|
||||
frame_arr: list[int] = body.get("frame", [])
|
||||
|
||||
if not frame_arr:
|
||||
return {"reason": "frame 不能为空"}
|
||||
|
||||
try:
|
||||
frame_bytes = bytes(frame_arr)
|
||||
except Exception as e:
|
||||
return {"reason": f"frame 格式错误: {e}"}
|
||||
|
||||
# Mock mode: 短路 UDP,直接返回合成响应 (UI 测试用,不需要设备)
|
||||
if MOCK_MODE in ("1", "true", "yes"):
|
||||
try:
|
||||
return {"reply": list(_build_mock_reply(frame_bytes)), "_mock": True}
|
||||
except Exception as e:
|
||||
return {"reason": f"[mock] 构建响应失败: {e}", "_mock": True}
|
||||
if MOCK_MODE == "fail":
|
||||
return {"reason": "[mock] 模拟设备无响应", "_mock": True}
|
||||
|
||||
log.debug("UDP -> %s:%d frame=%s", host, port, frame_bytes.hex())
|
||||
|
||||
# 解析 cmd_q 用于 PUSH_ONLY 标记 (前端能看到)
|
||||
cmd_q_label: str | None = None
|
||||
if len(frame_bytes) >= 5:
|
||||
try:
|
||||
cmd_q = struct.unpack(">H", frame_bytes[3:5])[0]
|
||||
cmd_q_label = f"0x{cmd_q:04X}"
|
||||
except Exception:
|
||||
cmd_q = None
|
||||
|
||||
try:
|
||||
reply, error = await asyncio.wait_for(
|
||||
_send_udp_async(frame_bytes, host, port),
|
||||
timeout=5.0,
|
||||
)
|
||||
except asyncio.TimeoutError:
|
||||
return {"reason": "UDP 超时", "cmd_q": cmd_q_label}
|
||||
|
||||
if error:
|
||||
return {"reason": error, "cmd_q": cmd_q_label}
|
||||
|
||||
if reply is None:
|
||||
return {"msg": "发送成功(无回复)", "cmd_q": cmd_q_label}
|
||||
|
||||
# 如果是 PUSH_ONLY cmd, 标记 push_only 让前端知道这是 push 不是 R
|
||||
extra = {}
|
||||
if cmd_q is not None and cmd_q in PUSH_ONLY_CMDS:
|
||||
extra["push_only"] = True
|
||||
return {"reply": list(reply), "cmd_q": cmd_q_label, **extra}
|
||||
|
||||
|
||||
@app.get("/api/health")
|
||||
async def health() -> dict[str, Any]:
|
||||
return {
|
||||
"ok": True,
|
||||
"push_stream": push_stream.snapshot(),
|
||||
}
|
||||
|
||||
|
||||
# 托管构建后的 React UI
|
||||
WEB_DIR = os.environ.get("MANET_WEB_DIR", "/app/dist")
|
||||
if os.path.isdir(WEB_DIR):
|
||||
log.info("从 %s 提供 React UI (用 catch-all 路由)", WEB_DIR)
|
||||
radio_dir = os.path.join(WEB_DIR, "radio")
|
||||
if not os.path.isdir(radio_dir):
|
||||
radio_dir = os.path.join(os.path.dirname(WEB_DIR), "radio")
|
||||
|
||||
from fastapi import HTTPException
|
||||
|
||||
@app.get("/", include_in_schema=False)
|
||||
@app.get("/index.html", include_in_schema=False)
|
||||
async def web_index():
|
||||
return FileResponse(os.path.join(WEB_DIR, "index.html"))
|
||||
|
||||
@app.get("/assets/{filename:path}", include_in_schema=False)
|
||||
async def web_asset(filename: str):
|
||||
fp = os.path.join(WEB_DIR, "assets", filename)
|
||||
if os.path.isfile(fp):
|
||||
return FileResponse(fp)
|
||||
raise HTTPException(status_code=404, detail="not found")
|
||||
|
||||
if os.path.isdir(radio_dir):
|
||||
log.info("从 %s 提供电台控制页面", radio_dir)
|
||||
|
||||
@app.get("/radio", include_in_schema=False)
|
||||
@app.get("/radio/", include_in_schema=False)
|
||||
async def radio_index():
|
||||
return FileResponse(os.path.join(radio_dir, "index.html"))
|
||||
|
||||
assets_dir = os.path.join(WEB_DIR, "assets")
|
||||
if os.path.isdir(assets_dir):
|
||||
log.info("从 %s 提供 /radio/assets 静态资源", assets_dir)
|
||||
|
||||
@app.get("/radio/assets/{filename:path}", include_in_schema=False)
|
||||
async def radio_asset(filename: str):
|
||||
fp = os.path.join(assets_dir, filename)
|
||||
if os.path.isfile(fp):
|
||||
return FileResponse(fp)
|
||||
raise HTTPException(status_code=404, detail="not found")
|
||||
else:
|
||||
log.info("%s 处无 UI 目录;以纯 API 模式运行", WEB_DIR)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
import os
|
||||
port = int(os.environ.get("MANET_PORT", "8000"))
|
||||
uvicorn.run(app, host="0.0.0.0", port=port)
|
||||
@@ -0,0 +1,163 @@
|
||||
"""持久 UDP 62450 监听器: 把设备 push 推给 SSE 订阅者。
|
||||
|
||||
设计目标:
|
||||
- 整个进程只 bind 一次 62450 (避免与 _send_udp_async 抢端口)
|
||||
- 持续 recv, 按 cmd_id 维护 latest deque(maxlen=1) 缓存
|
||||
- 每个 cmd_id 维护一组 asyncio.Queue 订阅者, 收到新包时 fan-out
|
||||
- 新订阅者上来时立即喂最新缓存, 避免"刚连上啥也没看到"
|
||||
|
||||
为什么不用 sse-starlette / aiohttp 之类的库:
|
||||
- 项目要保持 0 新依赖, 纯标准库 (asyncio + socket) 够用
|
||||
- 需要与现有 main.py 的 _send_udp_async 共存 (后者用 ephemeral 源端口发 Q)
|
||||
|
||||
参考:
|
||||
- manet-54/docs/api_54_discovered.md §13 (0x0310 是 push-only 1Hz, payload 2B 节点数)
|
||||
- manet-54/docs/REVERSE_ENGINEERING_FINDINGS.md §4.5
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import socket
|
||||
import struct
|
||||
from collections import defaultdict, deque
|
||||
from typing import Any
|
||||
|
||||
log = logging.getLogger("manet.push_stream")
|
||||
|
||||
# 7-byte api_54 头: comm(1) + reserved(2) + cmd_id(2 BE) + length(2 BE)
|
||||
_HEADER_SIZE = 7
|
||||
_CMD_ID_OFFSET = 3 # cmd_id 在 header 里的 byte offset
|
||||
|
||||
|
||||
class PushStream:
|
||||
"""单例 62450 监听器 + 订阅管理。"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
# cmd_id -> latest packet (maxlen=1: 永远只保留最新)
|
||||
self._latest: dict[int, deque[bytes]] = defaultdict(lambda: deque(maxlen=1))
|
||||
# cmd_id -> list[asyncio.Queue] 活跃订阅者
|
||||
self._subscribers: dict[int, list[asyncio.Queue[bytes]]] = defaultdict(list)
|
||||
self._sock: socket.socket | None = None
|
||||
self._task: asyncio.Task[None] | None = None
|
||||
self._started = False
|
||||
self._lock = asyncio.Lock()
|
||||
# 统计
|
||||
self.stats: dict[str, Any] = {
|
||||
"total_packets": 0,
|
||||
"per_cmd_count": defaultdict(int),
|
||||
"subscribers": 0,
|
||||
"errors": 0,
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------ lifecycle
|
||||
|
||||
async def start(self) -> None:
|
||||
"""进程启动时调用一次。"""
|
||||
if self._started:
|
||||
return
|
||||
loop = asyncio.get_running_loop()
|
||||
# bind 在 executor 里避免阻塞 event loop 注册路径
|
||||
self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
# SO_REUSEPORT 在 Linux 上允许多 socket 绑同一端口, 但要避免与 _send_udp_async 抢
|
||||
# 我们要求 _send_udp_async 不再 bind 62450, 所以这里独占即可
|
||||
await loop.run_in_executor(None, lambda: self._sock.bind(("0.0.0.0", 62450)))
|
||||
self._sock.setblocking(False)
|
||||
self._task = loop.create_task(self._loop(), name="push-stream-recv")
|
||||
self._started = True
|
||||
log.info("PushStream 启动, bind 62450 成功")
|
||||
|
||||
async def stop(self) -> None:
|
||||
if self._task:
|
||||
self._task.cancel()
|
||||
try:
|
||||
await self._task
|
||||
except (asyncio.CancelledError, Exception):
|
||||
pass
|
||||
if self._sock:
|
||||
self._sock.close()
|
||||
self._started = False
|
||||
|
||||
# ------------------------------------------------------------------ recv loop
|
||||
|
||||
async def _loop(self) -> None:
|
||||
loop = asyncio.get_running_loop()
|
||||
while True:
|
||||
assert self._sock is not None
|
||||
try:
|
||||
data = await loop.sock_recv(self._sock, 4096)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception as e:
|
||||
self.stats["errors"] += 1
|
||||
log.debug("PushStream recv 异常: %s", e)
|
||||
await asyncio.sleep(0.01)
|
||||
continue
|
||||
if len(data) < _HEADER_SIZE:
|
||||
continue
|
||||
cmd_id = struct.unpack(">H", data[_CMD_ID_OFFSET : _CMD_ID_OFFSET + 2])[0]
|
||||
self._on_packet(cmd_id, data)
|
||||
|
||||
def _on_packet(self, cmd_id: int, data: bytes) -> None:
|
||||
"""在 recv loop 线程里调用, 但只做内存操作, 不阻塞。"""
|
||||
# 更新 latest 缓存
|
||||
self._latest[cmd_id].append(data)
|
||||
self.stats["total_packets"] += 1
|
||||
self.stats["per_cmd_count"][cmd_id] += 1
|
||||
# fan-out 到订阅者
|
||||
for q in list(self._subscribers.get(cmd_id, [])):
|
||||
try:
|
||||
q.put_nowait(data)
|
||||
except asyncio.QueueFull:
|
||||
# 订阅者消费太慢, 丢最老的 (maxsize=8 不会真满, 但兜底)
|
||||
try:
|
||||
q.get_nowait()
|
||||
q.put_nowait(data)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# ------------------------------------------------------------------ subscribe API
|
||||
|
||||
def subscribe(self, cmd_id: int, maxsize: int = 8) -> asyncio.Queue[bytes]:
|
||||
"""订阅某 cmd_id 的 push。返回 Queue, 收到新包就 put_nowait(bytes)。
|
||||
新订阅者上来时, 如果缓存有最新包, 立即喂一次。
|
||||
"""
|
||||
q: asyncio.Queue[bytes] = asyncio.Queue(maxsize=maxsize)
|
||||
self._subscribers[cmd_id].append(q)
|
||||
self.stats["subscribers"] = sum(len(v) for v in self._subscribers.values())
|
||||
cached = self._latest.get(cmd_id)
|
||||
if cached:
|
||||
try:
|
||||
q.put_nowait(cached[-1])
|
||||
except asyncio.QueueFull:
|
||||
pass
|
||||
return q
|
||||
|
||||
def unsubscribe(self, cmd_id: int, q: asyncio.Queue[bytes]) -> None:
|
||||
try:
|
||||
self._subscribers[cmd_id].remove(q)
|
||||
except ValueError:
|
||||
pass
|
||||
self.stats["subscribers"] = sum(len(v) for v in self._subscribers.values())
|
||||
|
||||
def get_latest(self, cmd_id: int) -> bytes | None:
|
||||
"""同步读取最新缓存 (无订阅时也可调)。返回 None 表示从未收到该 cmd。"""
|
||||
dq = self._latest.get(cmd_id)
|
||||
if dq:
|
||||
return dq[-1]
|
||||
return None
|
||||
|
||||
def snapshot(self) -> dict[str, Any]:
|
||||
"""给 /api/health 用的快照。"""
|
||||
return {
|
||||
"started": self._started,
|
||||
"total_packets": self.stats["total_packets"],
|
||||
"per_cmd_count": dict(self.stats["per_cmd_count"]),
|
||||
"subscribers": self.stats["subscribers"],
|
||||
"errors": self.stats["errors"],
|
||||
}
|
||||
|
||||
|
||||
# 单例
|
||||
push_stream = PushStream()
|
||||
@@ -0,0 +1,2 @@
|
||||
fastapi>=0.115.0
|
||||
uvicorn[standard]>=0.30.0
|
||||
@@ -0,0 +1,81 @@
|
||||
"""SSE 路由: 把 PushStream 订阅的 push 推给浏览器。
|
||||
|
||||
端点: GET /api/radio/stream?cmd=0x0310
|
||||
- EventSource 原生支持, 浏览器零依赖
|
||||
- 持续推 "event: push" 帧, payload 是 {cmd, hex, len, ts}
|
||||
- 每 15s 一个 ": keepalive" 心跳, 防止代理超时
|
||||
- 客户端断连时 (request.is_disconnected) 自动 unsubscribe
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import logging
|
||||
import time
|
||||
|
||||
from fastapi import APIRouter, Request
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
from push_stream import push_stream
|
||||
|
||||
log = logging.getLogger("manet.sse")
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
HEARTBEAT_INTERVAL = 15.0 # 秒, 与 nginx default proxy_timeout 60s 留 4 倍余量
|
||||
|
||||
|
||||
def _packet_to_event(cmd_id: int, data: bytes) -> str:
|
||||
"""把 bytes 包转成 SSE event 字符串。"""
|
||||
payload = {
|
||||
"cmd": f"0x{cmd_id:04X}",
|
||||
"hex": data.hex(),
|
||||
"len": len(data),
|
||||
"ts": int(time.time() * 1000),
|
||||
}
|
||||
return f"event: push\ndata: {json.dumps(payload)}\n\n"
|
||||
|
||||
|
||||
@router.get("/api/radio/stream", summary="SSE: 订阅设备 push (按 cmd_id 过滤)")
|
||||
async def stream_radio_push(request: Request, cmd: int):
|
||||
"""SSE 端点: ?cmd=0x0310 → 持续推 0x0310 push 包给浏览器。
|
||||
|
||||
浏览器用法:
|
||||
const es = new EventSource('/api/radio/stream?cmd=784'); // 0x0310=784
|
||||
es.addEventListener('push', (e) => { const pkt = JSON.parse(e.data); ... });
|
||||
"""
|
||||
if cmd < 0 or cmd > 0xFFFF:
|
||||
return {"reason": f"cmd 越界: 0x{cmd:04X}"}
|
||||
|
||||
q = push_stream.subscribe(cmd)
|
||||
log.info("SSE 客户端订阅 cmd=0x%04X", cmd)
|
||||
|
||||
async def gen():
|
||||
try:
|
||||
# 发送 SSE 必备的 "retry:" 字段, 浏览器断线重连间隔
|
||||
yield "retry: 3000\n\n"
|
||||
while True:
|
||||
if await request.is_disconnected():
|
||||
log.info("SSE 客户端断开 cmd=0x%04X", cmd)
|
||||
break
|
||||
try:
|
||||
data = await asyncio.wait_for(q.get(), timeout=HEARTBEAT_INTERVAL)
|
||||
except asyncio.TimeoutError:
|
||||
# heartbeat 防代理超时
|
||||
yield ": keepalive\n\n"
|
||||
continue
|
||||
yield _packet_to_event(cmd, data)
|
||||
finally:
|
||||
push_stream.unsubscribe(cmd, q)
|
||||
log.info("SSE 取消订阅 cmd=0x%04X", cmd)
|
||||
|
||||
return StreamingResponse(
|
||||
gen(),
|
||||
media_type="text/event-stream",
|
||||
headers={
|
||||
"Cache-Control": "no-cache, no-transform",
|
||||
# 关键: 禁止 nginx/代理缓冲, 否则事件被卡住直到 buffer 满
|
||||
"X-Accel-Buffering": "no",
|
||||
"Connection": "keep-alive",
|
||||
},
|
||||
)
|
||||
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
phy-manet-node:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: phy-manet-node:latest
|
||||
container_name: phy-manet-node
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- MANET_WEB_DIR=/app/dist
|
||||
- MANET_PORT=8000
|
||||
volumes:
|
||||
- ./controller/dist:/app/dist
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,547 @@
|
||||
# XC7020 HG 电台设备 — 反向工程汇总
|
||||
|
||||
> 设备: 172.16.16.16 (SylixOS 2.1.6 + LongWing, Zynq-7000, XC7020 HG UHF Packet Radio)
|
||||
> 抓取日期: 2026-06-03
|
||||
> 工作模式: **完全只读** (telnet root/root,只用 `cat` / `find` / `ls`,无 `vi` / `mv` / `cp` / 写入)
|
||||
> 关联文档: `api_54_discovered.md` / `port_28006_telemetry.md` / `port_28008_business.md` / `second_node_setup.md`
|
||||
|
||||
---
|
||||
|
||||
## 1. 设备身份
|
||||
|
||||
| 字段 | 值 | 来源 |
|
||||
|------|----|------|
|
||||
| IP | 172.16.16.16 | 主机网络 |
|
||||
| MAC | 10:12:07:50:00:31 | api_54 0x0043 查询 (`/api/radio/raw` Q=0x0043, R=0x0083) |
|
||||
| 板型 | wrj | `cat /mnt/qspiflash/config/dev_type` |
|
||||
| 射频段 | 1g4 | `cat /mnt/qspiflash/config/rf_band` |
|
||||
| 波形 | zzw (自组网) | `cat /mnt/qspiflash/config/startwf` |
|
||||
| 板型子型 | zzw | `cat /mnt/qspiflash/config/zzwtype` |
|
||||
| 控制口 | UDP 62450 | `cat /mnt/qspiflash/config/terminal_cmd_port` |
|
||||
| 设备地址 | 0 | `cat /mnt/qspiflash/config/dev_addr` |
|
||||
| 系统 | SylixOS 2.1.6 (LongWing 内核) | `cat /etc/release` |
|
||||
| SoC | Zynq-7000 (Cortex-A9) | ELF header e_machine=ARM (40) |
|
||||
| ABI | ARM EABI5, 软浮点 | ELF header |
|
||||
| 5G 代理 | 关 (空) | `cat /mnt/qspiflash/config/agent_mode` |
|
||||
|
||||
## 2. 已抓取的文件 (cache/ 目录)
|
||||
|
||||
### 2.1 主进程
|
||||
|
||||
| 文件 | 大小 | 备注 |
|
||||
|------|------|------|
|
||||
| `cache/rcs_netlink_app` | 14268 B | ELF32 ARM, stripped, DYN 共享对象样式;**无 api_54 cmd_id 字符串** |
|
||||
|
||||
### 2.2 7 个共享库
|
||||
|
||||
| 文件 | 大小 | LOAD 段 (R+X) | 作用 |
|
||||
|------|------|---------------|------|
|
||||
| `cache/so/libosa.so` | 102 KB | 0x0-0x15af4 | OS 抽象 (`OSA_*` 函数) |
|
||||
| `cache/so/libPLInf.so` | 412 KB | 0x0-0x631bc | PL 物理层接口 (PL 32 bits CTL reg 0x43000000 等) |
|
||||
| `cache/so/libaudioCodex.so` | 313 KB | 0x0-0x36290 | 音频编解码 (AAC 22050Hz, WAV 22050Hz) |
|
||||
| `cache/so/libllcnet.so` | 211 KB | (header 损坏) | LLC/Mesh 路由;`-old` 版本 header 完整 |
|
||||
| `cache/so/libllcnet.so-old` | 195 KB | 0x0-0x2e37c | 备份,headers 完整,可反汇编 |
|
||||
| `cache/so/libmacphy.so` | 587 KB | 0x0-0x8a38c | PHY 通用 |
|
||||
| `cache/so/libmacphy_kk.so` | 547 KB | 0x0-0x817dc | PHY kk 波形 |
|
||||
| `cache/so/libmacphy_zzw.so` | 587 KB | 0x0-0x8a38c | PHY zzw 波形 (本设备使用) |
|
||||
| `cache/so/libmainCtl.so` | 478 KB | 0x0-0x71ae0 | **api_54 控制平面 + 业务注入** |
|
||||
|
||||
### 2.3 20 个 Lua 配置脚本
|
||||
|
||||
```
|
||||
cache/lua_scripts/
|
||||
├── app_cfg.lua # 应用配置 (RF 范围、波形)
|
||||
├── amc7836.lua # AMC7836 DAC/ADC 配置
|
||||
├── ckl_ports_filter.lua # CKL 端口过滤
|
||||
├── comm_toolsets.lua # 通用工具
|
||||
├── Compensate_Temp.lua # 温度补偿
|
||||
├── defaults.lua # zzw/ckl/xtl 默认参数 (33 字段/预设)
|
||||
├── do_copy_files.lua # 文件复制辅助
|
||||
├── do_updates.lua # 升级辅助
|
||||
├── fh_rules.lua # 跳频表规则 (480m/1g4/1g7 三组)
|
||||
├── fh_tables.lua # 跳频表
|
||||
├── install_waveform.lua # 波形安装入口
|
||||
├── ip_cfg.lua # IP 派生公式
|
||||
├── mac_para.lua # MAC 参数
|
||||
├── presets.lua # 30 个预设 (频率/模式/功率)
|
||||
├── pri_ports.lua # 高优先级端口
|
||||
├── rate_adap_map.lua # 速率自适应映射
|
||||
├── reg_cfgs.lua # 寄存器配置
|
||||
├── step_debug.lua # 单步调试
|
||||
└── usr_cfg_tables.lua # 用户表: 5G 代理/RTSP/组播/黑名单端口
|
||||
```
|
||||
|
||||
### 2.4 19 个配置文件
|
||||
|
||||
```
|
||||
cache/config/
|
||||
├── 5g.cfg # 5G 代理配置
|
||||
├── agent_mode # 5G 模式 (空)
|
||||
├── app_config.ini # FQ_config 差分对账
|
||||
├── dev_addr # 设备地址 (= 0)
|
||||
├── dev_type # 板型 (= wrj)
|
||||
├── enable_filter # 过滤开关
|
||||
├── esu_enabled # ESU 开关
|
||||
├── ethphy # 以太网 PHY
|
||||
├── multiIp_box # 多 IP 盒子
|
||||
├── phy_cfg.lua # PHY 内部寄存器 (AGC/ALC/9261)
|
||||
├── ptt_pri # PTT 优先级
|
||||
├── rf_band # 射频段 (= 1g4)
|
||||
├── sinc.cfg # sinc 配置
|
||||
├── slot_params # 时隙参数
|
||||
├── startwf # 波形 (= zzw)
|
||||
├── strap_time # 启动时间 (= 5)
|
||||
├── terminal_cmd_port # api_54 端口 (= 62450)
|
||||
├── version # 版本 (= V1.00.00/2023-12-15)
|
||||
└── zzwtype # zzw 子型 (= zzw)
|
||||
```
|
||||
|
||||
## 3. 端口全景图
|
||||
|
||||
| 端口 | 方向 | 协议 | 频率 | 抓包验证 | 处理函数 |
|
||||
|------|------|------|------|----------|---------|
|
||||
| **6013** | host→device UDP | 二进制 (struct 注入参数) | 仅触发 | 待测 | `handle_terminal_inject_udp` (libmainCtl.so) |
|
||||
| **62450** | 双向 UDP | 7B 头 + N (api_54) | 请求/响应 <1ms | ✅ | `handle_terminal_cmd_udp` (libmainCtl.so) |
|
||||
| **28006→28007** | device→host UDP | 5+N 二进制 (状态/配置) | **1Hz** 严格 | ✅ 207s 持续 | (设备硬件层) |
|
||||
| **28008→28009** | device→host UDP | 150B JSON | **~0.7Hz** (1.4s) | ✅ | (设备软件层) |
|
||||
| **50002** | 组播 UDP | 业务? | 推测 1Hz | 推测 | `return exec ifconfig to 224.0.0.1:50002` |
|
||||
| **62458** | 组播 UDP | 话音 | 1Hz | 推测 | (g_udpMulticastGroup 表) |
|
||||
| **62450** 心跳 | 组播 UDP (224.1.2.2) | 心跳 | 1Hz | 推测 | (g_udpMulticastGroup 表) |
|
||||
|
||||
> **关键修正**: **6013 = 业务注入口**(不是 28008/28009)。28008/28009 是设备**主动 push** 业务事件给订阅方(JSON),**只读**,不能发控制。
|
||||
|
||||
## 4. api_54 协议 (Q/R + push/NACK 模型)
|
||||
|
||||
### 4.1 帧格式 (7 字节头 + N 字节 payload)
|
||||
|
||||
```
|
||||
+--------+--------+--------+--------+--------+
|
||||
| comm | rsv | cmd_id | length |
|
||||
| (1B) | (1B) | (2B BE) | (2B BE) |
|
||||
+--------+--------+--------+--------+--------+
|
||||
| payload (length B) |
|
||||
+----------------------------------------------+
|
||||
```
|
||||
|
||||
- `comm_type`: 1=静态设置, 3=动态设置
|
||||
- `cmd_id`: 大端 2 字节
|
||||
- `length`: 大端 2 字节
|
||||
|
||||
### 4.2 cmd_id 分类
|
||||
|
||||
| 类别 | 范围 | 含义 |
|
||||
|------|------|------|
|
||||
| **设置命令 (Q)** | 0x0001-0x01FF | 设备配置 (静态=0x0X, 动态=0x1X) |
|
||||
| **查询命令** | Q+0x40 (0x0041-0x0240) | GET |
|
||||
| **响应 (R)** | Q+0x40 (0x0001-0x01FF) | 0x0X→0x8X 规则 |
|
||||
| **响应 (R) 0x0200+** | 特殊映射 | 见下表 |
|
||||
| **订阅** | 0x02AF | 主动上报订阅 |
|
||||
| **拓扑查询** | 0x0310 | 自组网拓扑 (push-only,见 §4.5) |
|
||||
| **push (设备主动)** | 0x02AF, 0x0310, 0x0332-0x0334, 0x0347, 0x1402 | 1Hz 心跳/拓扑/计数 |
|
||||
| **NACK 家族** | 0x02A0, 0x02A1 | 设备不识别, R = 0x02A0 \| (Q & 0x0001) |
|
||||
|
||||
### 4.3 已确认 cmd_id (Q→R, payload 含义)
|
||||
|
||||
| Q | R | payload | comm | 含义 |
|
||||
|---|---|---------|------|------|
|
||||
| 0x0001 | 0x0081 | 2B BE int | 1 | 网络规模 (=16) |
|
||||
| 0x0002 | 0x0082 | 1B | 1 | 工作模式 (1=定频) |
|
||||
| 0x0003 | 0x0083 | 5B MAC | 1 | MAC 地址 |
|
||||
| 0x0004 | 0x0084 | 4B BCD | 1 | 定频频率 (505.54 MHz BCD = 0x05,0x05,0x05,0x04) |
|
||||
| 0x0005 | 0x0085 | 1B | 1 | 跳频表号 |
|
||||
| 0x0046-0x004D | 0x0086-0x008D | 1B | 1 | (暴力扫描发现, 含义待查) |
|
||||
| 0x0101 | 0x0181 | 1B | 3 | 传输速率 (0x15 = ?档) |
|
||||
| 0x0102 | 0x0182 | 1B | 3 | 发射功率 (0x14 = 20 dBm) |
|
||||
| 0x0143-0x0145 | 0x0183-0x0185 | 1B | 3 | (含义待查) |
|
||||
| 0x0202 | 0x02A2 | 4B | 1 | 计数 A |
|
||||
| 0x0203 | 0x02A3 | 19B ASCII | 1 | 版本信息 ("V1.00.00/2023-12-15") |
|
||||
| 0x0209 | 0x0309 | 2B | 1 | 计数 B |
|
||||
| 0x021E | 0x0327 | ? | 1 | (含义待查) |
|
||||
| 0x0240 | 0x0340 | 1B | 1 | 计数 D |
|
||||
|
||||
### 4.4 已被 controller/main.py 实现的部分
|
||||
|
||||
`manet-54/controller/main.py` 已经:
|
||||
- ✅ 实现 `POST /api/radio/raw` 透传接口
|
||||
- ✅ 实现 Q/R cmd_id 配对等待 (3s 超时窗口,过滤 PUSH / NACK)
|
||||
- ✅ 实现 11 个 cmd 的 mock 响应 (`MOCK_RADIO_RESPONSES=1`)
|
||||
- ✅ 实现 NACK 家族 (0x02A0/0x02A1) 识别
|
||||
- ✅ 实现 PUSH_CMDS 7 个过滤 (0x02AF/0x0310/0x0332-0x0334/0x0347/0x1402)
|
||||
- ✅ 实现 PUSH_ONLY_CMDS 模式 (2026-06-03 二次探测发现:这 7 个 cmd 不响应 R,只 push)
|
||||
- ✅ 实现 React UI 电台控制页面 (路由 `/radio`)
|
||||
|
||||
### 4.5 PUSH 包 (1Hz 7 个)
|
||||
|
||||
抓包验证每秒 7 个 push 命令,设备开机即开始,无订阅,共用 62450 双向:
|
||||
- 0x02AF: 上报订阅确认
|
||||
- 0x0310: 自组网拓扑
|
||||
- 0x0332-0x0334: 链路状态 A/B/C
|
||||
- 0x0347: 网络规模
|
||||
- 0x1402: 计数/告警
|
||||
|
||||
### 4.5 ⚠️ 0x0310 等 7 个 PUSH_CMDS 是 push-only 触发器 (2026-06-03 二次探测)
|
||||
|
||||
**2026-06-03 关键发现** — `PUSH_CMDS` 这 7 个 cmd (`0x02AF, 0x0310, 0x0332, 0x0333, 0x0334, 0x0347, 0x1402`) **不响应 Q**。
|
||||
|
||||
**实验**: 直接 UDP socket bind 62450,baseline 1.0s + 发 Q 后 3.0s 抓包。
|
||||
|
||||
| cmd | Q 之前 1s | Q 之后 3s | Q 之后 3s 内该 cmd 数 | 内容是否变化 |
|
||||
|-----|----------|----------|---------------------|------------|
|
||||
| 0x0310 | 1 包 | 29 包 | 3 (= 1Hz) | **完全相同** (payload `00 00`) |
|
||||
| 0x0332 | 1 | 29 | 3 | 完全相同 (payload `00 00`) |
|
||||
| 0x0333 | 1 | 29 | 3 | 完全相同 (空 payload) |
|
||||
| 0x0334 | 1 | 29 | 3 | 完全相同 (payload `00 00`) |
|
||||
| 0x0347 | 1 | 29 | 3 | 完全相同 (24B 全 0) |
|
||||
| 0x02AF | 1 | 29 | 3 | 完全相同 (`01 01 00 40 00 11`) |
|
||||
| 0x1402 | 1 | 29 | 11 (~4Hz) | 完全相同 (`01 00 00 00 00 00 00`) |
|
||||
|
||||
**关键观察**:
|
||||
- Q 触发后,设备**临时进入 burst 模式** (所有 push cmd 升频到 ~10/s,持续 1-2s 后回落)
|
||||
- 该 cmd 的 push 频率仍是 1Hz (0x1402 是 4Hz),burst 只是把 push 频次临时推高
|
||||
- **绝对不发 R 响应** (0x0350 永远收不到)
|
||||
|
||||
**修正**:
|
||||
- `0x0310` 不是查询,只是 1Hz 自组网拓扑 push,payload 2B = 节点数 (当前 0)
|
||||
- `0x02AF` 是订阅**回显**,不是订阅**确认**
|
||||
- `0x0332/0x0333/0x0334` 是 3 个子状态 push (1Hz,各 0/2/0B payload)
|
||||
- `0x0347` 是 24B 状态位图 push (1Hz,全 0)
|
||||
- `0x1402` 是 ~4Hz 链路状态 push (7B,恒定 `01 00 00 00 00 00 00`)
|
||||
|
||||
**controller 修复**:
|
||||
- `PUSH_ONLY_CMDS = frozenset(PUSH_CMDS)` 在 `controller/main.py:60-65` 新增
|
||||
- `/api/radio/raw` 检测到 PUSH_ONLY_CMDS 时,直接发完后 sleep 1.5s 抓一次该 cmd 的 push 包返回
|
||||
- `_send_udp_async` 在 PUSH_ONLY 模式下,把对应 cmd 的 push 直接当成"响应"返回
|
||||
- 前端会看到 `{"reply": [...], "push_only": true, "cmd_q": "0x0310"}` 而不是 timeout
|
||||
|
||||
**应用层影响**:
|
||||
- 自组网拓扑**只能被动订阅**,不能主动拉
|
||||
- 单节点情况下,0x0310 payload 永远是 `00 00`
|
||||
- 等到双节点 (或更多) 接入,这里才能看到非 0 节点数 + 邻居 MAC 列表
|
||||
|
||||
## 5. api_54 派发真相 (反向工程最关键发现)
|
||||
|
||||
### 5.1 在 7 个 .so + 20 个 Lua 中**没有找到** 0x0041-0x0240 的 C 端派发表
|
||||
|
||||
反汇编 libmainCtl.so 全文 (303 个 PUSH 函数入口),搜所有 `cmp rx, #0x40-0x250` 模式,只找到 1 个 cluster:
|
||||
|
||||
```
|
||||
@ 0x02a3b4 函數:
|
||||
0x02a410: cmp r4, #0x6f ; 循环上限 111
|
||||
0x02a448: cmp r4, #0x6f
|
||||
0x02a494: cmp r4, #0x6f
|
||||
0x02a4cc: cmp r4, #0x6f
|
||||
```
|
||||
|
||||
### 5.2 这个 0x6F 循环不是 api_54 dispatch,而是**调试控制台命令注册**
|
||||
|
||||
111 项 × 16 字节的表解出来全是 shell 命令:
|
||||
- "PRINT", "TimerHandler", "MacCmd", "Task"
|
||||
- "interrupts counters", "test", "spi", "opt"
|
||||
- "read 9261 [0]: addr [1]: data, [2]: 9261_CH..."
|
||||
- "/yaffs2/flash0/"
|
||||
|
||||
### 5.3 api_54 走的是 Lua-C bridge
|
||||
|
||||
`libmainCtl.so` 里有这些**字符串** (作为 Lua global 访问):
|
||||
```
|
||||
0xe303: "g_terminal_table" ← api_54 cmd_id 派发表
|
||||
0xcaf4: "pcTerminalInetAddr" ← 终端 IP 地址
|
||||
0xcfed: "g_terminalCmdHdrOffset" ← 帧头偏移
|
||||
0xdd4f: "handle_terminal_cmd_udp"
|
||||
```
|
||||
|
||||
模式:`lua_getglobal(L, "g_terminal_table")` → 在 Lua 表里按 cmd_id 查 handler
|
||||
|
||||
### 5.4 Lua 脚本里**没有** `g_terminal_table` 定义
|
||||
|
||||
`grep -rn "g_terminal\|terminal_table" cache/lua_scripts/*.lua` → **零结果**
|
||||
|
||||
意味着:
|
||||
- 要么有 Lua 文件我们**没抓到** (可能不在 `/apps/scripts/`)
|
||||
- 要么 `g_terminal_table` 是 C 端 init 时塞进 Lua global 的对象,真正 cmd_id→handler 映射在 C 数据段里某处
|
||||
|
||||
### 5.5 现状结论
|
||||
|
||||
- **api_54 0x0041-0x0240 的语义**(网络规模/工作模式/MAC/频率/速率/功率)从**抓包反推 + 厂商文档**已确认
|
||||
- **完整的 handler 集合**和**边界**在当前数据中**不可见**
|
||||
- 进一步深挖需要重抓设备上的完整 Lua 列表(可能 `/apps/scripts/` 之外有私货)
|
||||
|
||||
## 6. 网络与 MANET 参数
|
||||
|
||||
### 6.1 IP 派生 (zzw 默认, `defaults.lua:41-64`)
|
||||
|
||||
```
|
||||
uiMac2IPAddrBase = 0xC0000000 (192.0.0.0)
|
||||
uiLocalIpMask = 0xffffff00 (255.255.255.0)
|
||||
ip_base_offset = 1
|
||||
usNetID = 0
|
||||
group = 0
|
||||
```
|
||||
|
||||
公式 (`ip_cfg.lua`):
|
||||
```lua
|
||||
local ip_base = uiMac2IPAddrBase + (group << 16)
|
||||
local shift_bits = 32 - 24 # mask 24
|
||||
node_addr = (mac_addr << shift_bits) + (ip_base & 0xffffff00) + ip_base_offset
|
||||
```
|
||||
|
||||
### 6.2 默认参数 (zzw, `defaults.lua`)
|
||||
|
||||
| 字段 | 值 | 含义 |
|
||||
|------|----|------|
|
||||
| usMaxNetNodeNum | 32 | 全网规模 |
|
||||
| ucSubNetNodeNum | 32 | 子网规模 |
|
||||
| ucWorkChannelNum | 1 | 子网数 |
|
||||
| ucChannelBandWidth | 1 | 信道带宽 |
|
||||
| ucSecretStyle | 0 | 加密 |
|
||||
| ucUserRate | 1 (512K-NW) | 速率档 |
|
||||
| MaxUserRate | 18 | 速率上限 |
|
||||
| ucPower | 3 | 发射功率 |
|
||||
| ucGatewayStyle | 2 | 网关模式 |
|
||||
| ucRouteType | 1 | 路由 |
|
||||
| ucVolume | 5 | 音量 |
|
||||
| FreqTableIndex | 0 | 频表号 |
|
||||
|
||||
### 6.3 速率档 (`defaults.lua:7-26`)
|
||||
|
||||
zzw 波形: auto, 512K-NW, 1M-NW, 2M-NW, 2M-W, 4M-W, 8M-W, 10M-W, 16M-W, 4M-NW, 2M, 4M, 5M, 8M, 10M, 20M-W
|
||||
ckl 波形: auto, 1M, 2M, 2.4M, 4M-w, 7M-w, 14M-w, 18M-w, 28M-w, 7M, 4M-nw, 7M-nw, 9M-nw, 14M-nw, 18M-nw, 35M-w
|
||||
xtl 波形: auto, 256k, 512k, 1M, 2M-W, 4M-W, 8M-W, 16M-W, 20M-W
|
||||
|
||||
### 6.4 频段表 (`fh_rules.lua:1g4` 段)
|
||||
|
||||
| idx | 范围 (kHz) | 步进 | 用途 |
|
||||
|-----|------------|------|------|
|
||||
| 0 | 225000-1700000 | 450 | 有线全频 |
|
||||
| 1 | 1024000-1026000 | 50 | ch1 L 段滤波器 |
|
||||
| 2 | 1105000-1107000 | 50 | ch2 |
|
||||
| 3 | 1177000-1179000 | 50 | ch3 |
|
||||
| 4 | 1214000-1216000 | 50 | ch4 |
|
||||
| 14 | 225000-1000000 | 225 | 全 U 端 |
|
||||
| 15 | 225000-1700000 | 225 | 有线特制 (抗干扰) |
|
||||
| 17 | 225000-1657600 | 4500 | 无线拉距 |
|
||||
| 18 | 225000-1700000 | 225 | 无线挖空 (新天线) |
|
||||
| 19 | 225000-1700000 | 225 | 无线不挖空 (新天线) |
|
||||
|
||||
### 6.5 MANET 组播组 (`usr_cfg_tables.lua` 中 `g_udpMulticastGroup`)
|
||||
|
||||
```lua
|
||||
{port=62450, addr=0, MulticastAddr="224.1.2.1"}, -- 信令组播
|
||||
{port=62458, addr=0, MulticastAddr="224.1.2.1"}, -- 话音组播
|
||||
{port=62450, addr=0x7f000001, MulticastAddr="224.1.2.2"}, -- 心跳包 (本地)
|
||||
```
|
||||
|
||||
### 6.6 UDP QoS 优先级 (`pri_ports.lua`)
|
||||
|
||||
| 范围 | 优先级 | 含义 |
|
||||
|------|--------|------|
|
||||
| 30000-32000 | Pri0 | 实时业务 |
|
||||
| 40000-42000 | Pri0 | 实时业务 (新) |
|
||||
| 46000-50000 | Pri3 | 背景流量 |
|
||||
|
||||
### 6.7 端口黑名单 (`usr_cfg_tables.lua` 中 `g_bad_ports`)
|
||||
|
||||
```
|
||||
{135, 136, 137, 138, 1900, 5355, 2500, 0}
|
||||
```
|
||||
|
||||
(NetBIOS, SSDP, LLMNR, Bonjour 等本地网络噪音)
|
||||
|
||||
### 6.8 5G 代理 (`usr_cfg_tables.lua` 中 `g_agent_5GIP_table`)
|
||||
|
||||
| 设备 | 端口 | IP | 备注 |
|
||||
|------|------|----|------|
|
||||
| 716 圣非凡 | 27004/27005 | 192.168.200.2 | |
|
||||
| 50 | 60002/60001 | 172.30.254.1 | |
|
||||
| 218 | 27004/27005 | 194.194.194.193 | |
|
||||
| 主机 RTSP 默认路由 | - | **172.16.16.208** | 我们的开发机! |
|
||||
|
||||
## 7. libllcnet.so 关键函数 (mesh 路由)
|
||||
|
||||
(从 `-old` 备份版本,headers 完整)
|
||||
|
||||
| 函数 | 作用 |
|
||||
|------|------|
|
||||
| `NET_addNeighbourNode` | 邻居发现 |
|
||||
| `NET_getNeighbourHelloMsg` | 组装 L2 hello 包 (推测 0x0881) |
|
||||
| `NET_handleNeighbourHelloMsg` | 处理收到 hello |
|
||||
| `NET_handleLogicLinkNeighbourHelloMsg` | 逻辑链路 hello |
|
||||
| `NET_handleMacReceiveData` | MAC 层收包 |
|
||||
| `NET_handleNetSendData` | 网络层发包 |
|
||||
| `NET_handleCrbsFramePack` | CRBS 帧封装 |
|
||||
| `LLC_handleCrbsFramePack` | LLC 层 CRBS 帧处理 |
|
||||
| `NET_parseTopology` | 解析拓扑包 |
|
||||
| `NET_parseBroadcast` | 解析广播包 |
|
||||
|
||||
LLC 实现变种:`CKL_LLCInf`, `XTL_LLCInf`, `ZZW_LLCInf` (按波形选择)
|
||||
源文件: `llc/src/CKL_LLCInf.cpp`, `LLCInf.cpp`, `XTL_LLCInf.cpp`, `ZZW_LLCInf.cpp`
|
||||
|
||||
## 8. libmainCtl.so 关键类与函数
|
||||
|
||||
| 名字 | 类型 | 作用 |
|
||||
|------|------|------|
|
||||
| `CL_5GPortMac` | class | 5G 端口 MAC 处理 |
|
||||
| `CL_ARPTask` | class | ARP 任务 |
|
||||
| `CL_changeDefaultGW` | class | 改默认网关 |
|
||||
| `CL_handleUAVCtrlFrame` | class | 无人机控制帧 |
|
||||
| `MC_ReportNackToTerminal` | fn | 报 NACK 给终端 |
|
||||
| `MC_ReportAckToTerminal` | fn | 报 ACK 给终端 |
|
||||
| `MC_SendMsgToTerminal` | fn | 通用 sendto |
|
||||
| `MC_LongMsgDivideToTerminal` | fn | 长消息分片 |
|
||||
| `MC_SendMsgToTerminal_InjectParam` | fn | 注入参数上报 (6013 用) |
|
||||
| `handle_terminal_cmd_udp` | fn | 62450 收包 (api_54) |
|
||||
| `handle_terminal_inject_udp` | fn | 6013 收包 (链路参数注入) |
|
||||
| `handle_terminal_posInfo_udp` | fn | 位置信息 |
|
||||
| `handleCvgCtlData` | fn | 覆盖控制数据 |
|
||||
| `handle_raw_ip2` | fn | IP 层直通 |
|
||||
|
||||
`pcTerminalInetAddr`: 终端 IP 地址 (C 端全局, 不是 Lua global)
|
||||
|
||||
## 9. libmainCtl.so 字符串中的关键提示
|
||||
|
||||
### 9.1 调试控制台命令表 (0x6F 循环遍历)
|
||||
|
||||
`PRINT`, `MacCmd`, `Task`, `interrupts counters`, `test`, `spi`, `opt`,
|
||||
`read 9261 [0]: addr [1]: data, [2]: 9261_CH...`,
|
||||
`/yaffs2/flash0/` (文件系统操作)
|
||||
|
||||
### 9.2 PHY 寄存器配置 (`reg_cfgs.lua`)
|
||||
|
||||
```
|
||||
0x42000000, 8*1024 # ?
|
||||
0x43000000, 8*1024 # PL 32 bits CTL
|
||||
0x40000000, 64*1024 # ?
|
||||
0x44000000, 64*1024 # ?
|
||||
0x46000000, 32*1024 # ?
|
||||
0x48000000, 1024 # ?
|
||||
0x4C000000, 1024 # ?
|
||||
```
|
||||
|
||||
## 10. 业务注入协议 (端口 6013, 重要!)
|
||||
|
||||
### 10.1 协议不是"数据透传"
|
||||
|
||||
`recv terminal 0x%x udp 6013 data` 之后,**不是**把 payload 塞进 MANET 包发出,而是走**结构化注入**流程。
|
||||
|
||||
### 10.2 数据结构 (从 strings 推测)
|
||||
|
||||
```
|
||||
+----------------+----------------+
|
||||
| self_uid | dest_uid | 8 字节
|
||||
+----------------+----------------+
|
||||
| payload_len | reserved | 4 字节
|
||||
+----------------+----------------+
|
||||
| CRC32 | ??? | 4 字节
|
||||
+----------------+----------------+
|
||||
| cluster_para (channel, workMode, fixFreq, fhIndex, nodeNumber)
|
||||
+----------------------------------+
|
||||
| link_para (addr, role, rate, power, group)
|
||||
+----------------------------------+
|
||||
| inject_param (num_nodes) |
|
||||
+----------------------------------+
|
||||
```
|
||||
|
||||
**典型 log 消息**:
|
||||
- `inject param .......uid ERROR self uid %s.. param dest uid %s`
|
||||
- `no vaild injeck logic param`
|
||||
- `use inject 0x%x link param`
|
||||
- `no vaild injeck cluster param`
|
||||
- `inject node num %d > max %d`
|
||||
- `inject ckl tag %s num %d`
|
||||
- `CRC ERROR param len %x data len %x pk crc %x.. calc crc %x`
|
||||
|
||||
### 10.3 设备行为
|
||||
|
||||
1. 收 UDP packet on 6013
|
||||
2. 验证 CRC
|
||||
3. 验证 self_uid 是否本设备,或者 dest_uid 是否本设备 (转发路径)
|
||||
4. 解析 cluster/link 参数
|
||||
5. **覆盖本地 MANET 配置** (危险! 慎用)
|
||||
6. 返回 NACK if 参数无效
|
||||
|
||||
### 10.4 用途
|
||||
|
||||
6013 是**上位机批量配置网络拓扑的快速通道**,绕过 api_54 单参数 SET,一次推一组节点参数。在初始化或拓扑变更时使用。
|
||||
|
||||
## 11. 28006 状态/遥测 push
|
||||
|
||||
- src 28006 → dst 28007
|
||||
- 严格 1Hz,80B (sub_type=0x0002 状态报告) + 39B (sub_type=0x0003 配置/身份) 一对
|
||||
- 73B payload 中只有 payload[22..23] (2 字节状态码) 随时间变化
|
||||
- 状态码分布 (155 样本): 95% 低字节=0x33 (正常), 5%=0x34 (异常?)
|
||||
- 详见 `port_28006_telemetry.md`
|
||||
|
||||
## 12. 28008 业务事件 push
|
||||
|
||||
- src 28008 → dst 28009
|
||||
- ~0.7Hz (1.4s),固定 150B JSON
|
||||
- 已确认字段: `BusinessType=5`, `TeamGroup="ZNBZ"`
|
||||
- 客户端发包到 28008/28009 → 设备**无应答**
|
||||
- 详见 `port_28008_business.md`
|
||||
|
||||
## 13. 重要工程经验
|
||||
|
||||
### 13.1 设备行为
|
||||
|
||||
- **UDP 响应 <1ms** 比 push 更早到达 — push 早到会被朴素 recv 误吞
|
||||
- **设备会被打瘫**:每秒 7 个 push,加上主动查询,过多流量会让设备停止响应
|
||||
- **Telnet 慢但唯一**: FTP 拒登录(anonymous 530, root/root 超时),只有 telnet root/root 通
|
||||
- **shell 受限**: 无 `;` 链接, 无 `-v`, 无 `strings`/`grep`/`nc`/`dd`/`od`/`xxd`/`base64`
|
||||
|
||||
### 13.2 抓包技巧
|
||||
|
||||
- IAC 协商 + 脚本端 prompt regex 切分,可稳定抓任意大小二进制
|
||||
- 一次抓 14KB 二进制 ≈ 3-5s (无压缩)
|
||||
- 抓 Lua 文本要按 prompt regex 切,不能 cat 重定向(>会写盘,违反只读约束)
|
||||
|
||||
### 13.3 反汇编技巧
|
||||
|
||||
- ELF 缺 section headers → 用 `readelf -l` 拿到 PT_LOAD,手动解析
|
||||
- libmainCtl.so 缺 ~780B section header,但 PT_LOAD 完整,反汇编可行
|
||||
- libllcnet.so 当前副本 header 损坏,`libllcnet.so-old` 完整,**优先用 old**
|
||||
|
||||
## 14. 未完成 / 待办
|
||||
|
||||
### 14.1 仍需重抓设备的项
|
||||
|
||||
- [ ] `find /apps -name "*.lua"` 找未抓到的 Lua 文件
|
||||
- [ ] `ls /mnt/qspiflash/scripts/` 看启动脚本
|
||||
- [ ] `cat /apps/install_waveform` 找加载哪些 Lua
|
||||
- [ ] `cat /tmp/*.lua` 看启动残留
|
||||
|
||||
### 14.2 仍可继续的反向工程
|
||||
|
||||
- [ ] libllcnet.so 当前副本 header 修复 (re-pull)
|
||||
- [ ] libmainCtl.so 0x02a3b4 函数完整 dispatch table (74 个调试命令)
|
||||
- [ ] libmacphy_zzw.so 全文反汇编 (587KB, PHY 寄存器逻辑)
|
||||
- [ ] 在 lua_getglobal 调用点找 `g_terminal_table` 实际查询逻辑
|
||||
|
||||
### 14.3 应用层待测
|
||||
|
||||
- [ ] 6013 注入合法格式的 inject_param 测覆盖行为
|
||||
- [ ] 双节点 mesh 自组网 (需要第二台设备,见 `second_node_setup.md`)
|
||||
- [ ] 224.1.2.1 / 224.1.2.2 组播实际抓包
|
||||
|
||||
## 15. 文件索引
|
||||
|
||||
| 文档 | 内容 |
|
||||
|------|------|
|
||||
| `docs/api_54_discovered.md` | api_54 协议详解 (cmd_id 表) |
|
||||
| `docs/port_28006_telemetry.md` | 28006 1Hz 遥测 push |
|
||||
| `docs/port_28008_business.md` | 28008 业务事件 JSON push |
|
||||
| `docs/second_node_setup.md` | 第二节点接入计划 |
|
||||
| `docs/REVERSE_ENGINEERING_FINDINGS.md` | **本文件** — 完整汇总 |
|
||||
| `cache/` | 所有抓取的文件 (rcs_netlink_app, 7×.so, 20×.lua, 19×cfg) |
|
||||
| `cache/lua_scripts/` | 20 个 Lua 脚本 |
|
||||
| `cache/so/` | 9 个 .so (含 libllcnet.so 和 .so-old) |
|
||||
| `cache/config/` | 19 个配置 |
|
||||
| `scripts/radio_monitor_28008.py` | 28009 被动监听器 (--raw, --json, --max-events) |
|
||||
| `scripts/scan_mainctl_dispatch.py` | libmainCtl.so 反汇编 + 模式搜索 |
|
||||
| `controller/main.py` | FastAPI 电台控制后端 (api_54 Q/R + mock) |
|
||||
|
||||
## 16. 关键修正历史
|
||||
|
||||
1. **6013 是业务口,不是 28008/28009** — 后者是被动 push,前者才是上位机注入
|
||||
2. **libmainCtl.so 0x6F 循环是调试表,不是 api_54** — 实际 dispatch 在 Lua-C bridge
|
||||
3. **IP 派生从 MAC 自动算** — 不同 MAC 不会冲突,**不要手工设 IP**
|
||||
4. **频表不匹配 = 完全不可达** — 差 1kHz 都不行
|
||||
@@ -0,0 +1,252 @@
|
||||
# api_54 协议 — 实测命令清单 (manet-54)
|
||||
|
||||
> 设备型号: 172.16.16.16:62450 (api_54 协议)
|
||||
> 抓包/探测日期: 2026-06-03
|
||||
> 探测方法: 直接 UDP socket + brute-force cmd_id (0x0000 ~ 0x02FF)
|
||||
> 验证状态: **设备在探测后进入限流/死锁,未能二次验证**。每条 cmd 后标注 `[未验证]` = 仅单次观察到。
|
||||
|
||||
---
|
||||
|
||||
## 1. 协议层 (基线)
|
||||
|
||||
UDP,7 字节头 + N 字节 payload:
|
||||
|
||||
```
|
||||
+--------+--------+--------+--------+
|
||||
|comm_t |reserved| cmd_id | length | payload...
|
||||
| 1B | 2B | 2B BE | 2B BE |
|
||||
+--------+--------+--------+--------+
|
||||
```
|
||||
|
||||
- 设备**源端口固定 51628**,目标端口 62450。客户端 socket 必须 `bind('0.0.0.0', 62450)` 才能收到回包。
|
||||
- 真响应 cmd_id = 查询 cmd_id + 0x40 (例: 0x0041 → 0x0081)。**0x0040+0x40=0x0080 是文档**;但实际上**0x02A0 / 0x02A1 才是"未知命令"的 NACK 槽位**(见 §5)。
|
||||
- 设备 push (不需要订阅) 每 1s 一次:`0x02AF, 0x0310, 0x0332, 0x0333, 0x0334, 0x0347, 0x1402`
|
||||
|
||||
## 2. 文档已记录 (基线,验证过)
|
||||
|
||||
| Q cmd | R cmd | comm | 名称 | 字段 |
|
||||
|------|------|------|------|------|
|
||||
| 0x0041 | 0x0081 | 1 | 网络规模 | 2B BE, 节点数 |
|
||||
| 0x0042 | 0x0082 | 1 | 工作模式 | 1B, 0=跳频 1=定频 2=FCS |
|
||||
| 0x0043 | 0x0083 | 1 | MAC 地址 | 2B BE |
|
||||
| 0x0044 | 0x0084 | 1 | 定频频率 | 4B BCD 压缩码 (单位 0.0001 MHz) |
|
||||
| 0x0045 | 0x0085 | 1 | 跳频表号 | 1B |
|
||||
| 0x0141 | 0x0181 | 3 | 传输速率 | 1B |
|
||||
| 0x0142 | 0x0182 | 3 | 发射功率 | 1B |
|
||||
| 0x0203 | 0x02A3 | 1 | 版本信息 | **19B ASCII** (见 §4) |
|
||||
| 0x0310 | 0x0310 | 1 | 自组网拓扑 | push,2B |
|
||||
|
||||
实测 0x0041~0x0045、0x0141、0x0203 均已验证 (Q/R 配对, 1ms 内回包)。
|
||||
|
||||
## 3. 未文档化 — 静态类 (comm=1)
|
||||
|
||||
| Q cmd | R cmd | 名称推测 | 长度 | 解码 | 验证 |
|
||||
|------|------|--------|------|------|------|
|
||||
| 0x0020 | 0x0326 | 设备序列号 / PN | 17B | ASCII 字符串 | [未验证] |
|
||||
| 0x0025 | 0x0031 | 状态表 A | 16B | `00000001 00000000 00000000 00000000` | [未验证] |
|
||||
| 0x0046 | 0x0086 | (跳频相关 #1) | 1B | `0x00` | [未验证] |
|
||||
| 0x0047 | 0x0087 | (跳频相关 #2) | 1B | `0x00` | [未验证] |
|
||||
| 0x004A | 0x008A | (跳频相关 #3) | 2B | `0x0005` = 5 | [未验证] |
|
||||
| 0x004B | 0x008B | **跳频频率表** | 24B | **6×u32 BE BCD 频率码** | [未验证] |
|
||||
| 0x004C | 0x008C | (跳频相关 #4) | 4B | 全零 | [未验证] |
|
||||
| 0x004D | 0x008D | (跳频相关 #5) | 1B | `0x00` | [未验证] |
|
||||
| 0x0061 | 0x0031 | 状态表 A 别名 | 16B | 同 0x0025 | [未验证] |
|
||||
|
||||
**0x004B 解码示例** (24 字节 payload = 6 个 BCD 频率):
|
||||
```
|
||||
payload: 05 00 20 00 00 22 50 00 00 22 50 00 00 22 50 00 00 22 50 00 00 22 50 00
|
||||
^-------^ ^-------------------------- 6× 频率码(4B BCD 压缩) ----^
|
||||
头部(占位) 22.5MHz × 6
|
||||
```
|
||||
前 4 字节 `05 00 20 00` 看起来像头/计数器,后 20 字节 = 5 个 4B 频率码 (注意不是 6 个,**实测只用了 5 槽位,余 4 字节为 0**)。
|
||||
|
||||
## 4. 未文档化 — 动态类 (comm=3)
|
||||
|
||||
| Q cmd | R cmd | 名称推测 | 长度 | 解码 | 验证 |
|
||||
|------|------|--------|------|------|------|
|
||||
| 0x0141 | 0x0181 | 传输速率 | 1B | `0x15` = 21 (推测 21×速率档) | [未验证] |
|
||||
| 0x0142 | 0x0182 | 发射功率 | 1B | `0x00` | [未验证] |
|
||||
| 0x0143 | 0x0183 | 链路表 A | 17B | 全零 | [未验证] |
|
||||
| 0x0144 | 0x0184 | **链路表 B (32B)** | 32B | 16×u16 BE 信号/距离数组 | [未验证] |
|
||||
| 0x0145 | 0x0185 | (动态 #5) | 1B | `0x00` | [未验证] |
|
||||
|
||||
**0x0144 payload 详细** (32 字节):
|
||||
```
|
||||
75 30 7d 00 7d 00 84 d0 84 d0 8c a0 8c a0 94 70 9c 40 a4 10 a4 10 ab e0 ab e0 b3 b0 b3 b0 c3 50
|
||||
```
|
||||
按 16× u16 BE: `0x7530, 0x7d00, 0x7d00, 0x84d0, 0x84d0, 0x8ca0, 0x8ca0, 0x9470, 0x9c40, 0xa410, 0xa410, 0xabe0, 0xabe0, 0xb3b0, 0xb3b0, 0xc350`
|
||||
**严格单调递增**,步长大致 1500-3000,典型 RSSI 距离表 (信号强度 vs 节点号 / 距离档位)。需现场有多个节点组网时再观察确认。
|
||||
|
||||
## 5. 未文档化 — 状态 / 杂项 (comm=1)
|
||||
|
||||
| Q cmd | R cmd | 名称推测 | 长度 | 解码 | 验证 |
|
||||
|------|------|--------|------|------|------|
|
||||
| 0x0202 | 0x02A2 | 计数 A | 4B | `0x0001 0x0001` (启动次数 + 复位次数?) | [未验证] |
|
||||
| 0x0203 | 0x02A3 | **版本信息** | 19B | ASCII `"V1.00.00/2023-12-15"` | ✅ 二次验证过 |
|
||||
| 0x0209 | 0x0309 | 计数 B | 2B | `0x0101` | [未验证] |
|
||||
| 0x021E | 0x0327 | 计数 C | 2B | `0x0000` | [未验证] |
|
||||
| 0x0240 | 0x0340 | 计数 D | 1B | `0x05` | [未验证] |
|
||||
|
||||
**0x0203 payload 解码 (已验证)**:
|
||||
```
|
||||
56 31 2e 30 30 2e 30 30 2f 32 30 32 33 2d 31 32 2d 31 35
|
||||
V 1 . 0 0 . 0 0 / 2 0 2 3 - 1 2 - 1 5
|
||||
→ "V1.00.00/2023-12-15" (固件版本 + 编译日期)
|
||||
```
|
||||
|
||||
## 6. **NACK / 未知命令 echo 槽位 (重要发现)**
|
||||
|
||||
设备对**未识别**的 cmd_id 会回 **0x02A0** (comm_type 偶) 或 **0x02A1** (comm_type 奇) 作为 NACK,payload = 原 cmd_id 的低 2 字节。
|
||||
|
||||
| 触发示例 | 响应 cmd | payload | 含义 |
|
||||
|----------|---------|---------|------|
|
||||
| Q 0x000A (comm=1) | R 0x02A1 | `0x000A` | 偶数 cmd → 0x02A1, payload 偶 |
|
||||
| Q 0x000B (comm=1) | R 0x02A0 | `0x000B` | 奇数 cmd → 0x02A0 |
|
||||
| Q 0x000C (comm=1) | R 0x02A0 | `0x000C` | (comm_type 影响选择) |
|
||||
| Q 0x000D (comm=1) | R 0x02A0 | `0x000D` | |
|
||||
| Q 0x0103 (comm=3) | R 0x02A0 | `0x0103` | |
|
||||
| Q 0x0104 (comm=3) | R 0x02A1 | `0x0104` | |
|
||||
| Q 0x02FF (comm=1) | R 0x02A0 | `0x02FF` | |
|
||||
|
||||
**实际 NACK 规则**: `R_cmd = 0x02A0 | (Q_cmd & 0x0001)` (低 bit 取自查询 cmd_id)。 验证状态 [观察一致,未严格证伪]。
|
||||
|
||||
**实用价值**: 客户端写循环探测时,把 `0x02A0 / 0x02A1` 列为"NACK",**不要**当成有效响应。
|
||||
|
||||
## 7. 端口 28006 状态/遥测 push (独立协议)
|
||||
|
||||
设备从 28006 主动 push 到客户端的 28007,每 1s 一对 (80B + 39B,间隔 0.13ms)。**单向,设备不回**。详见 `manet-54/docs/port_28006_telemetry.md` (待写)。
|
||||
|
||||
## 8. 文本命令试探 (CLI 探测)
|
||||
|
||||
`0x0040` 带 payload 试过 `AT\r\n` / `help\r\n` / `?\r\n` / `\r\n` / `\xff\xff\xff\xff` — **设备无响应**。**设备不接受文本命令,纯二进制协议**。
|
||||
|
||||
## 9. TCP 端口扫描 (CLI 入口探测)
|
||||
|
||||
对 172.16.16.16 全 TCP 端口 (21, 22, 23, 80, 443, 502, 503, 161, 2222, 8080, 9000, 28006, 28007, 6248) 用真实 `connect()` 探测 — **全部 filtered** (SYN 静默丢,无 RST)。
|
||||
|
||||
**结论**: 设备**不接受任何 TCP 接入**,调试只能走 UDP 62450。
|
||||
|
||||
## 10. 重要警告: 暴力扫描会让设备"打瘫"
|
||||
|
||||
⚠️ **2026-06-03 实测**: 一次性扫 ~600 个 cmd_id (0x0000~0x02FF) 后,设备**停止响应所有 control 查询**。90s 等待后仍未恢复。前端 `Failed to fetch` 不会发生,但 manet-54 现在**静默返回 push 包当响应** (因为 `recvfrom` 拿到的就是 push)。
|
||||
|
||||
**触发机制推测** (未证实):
|
||||
- 设备在单位时间内有"查询/响应"速率限制
|
||||
- 超过阈值后控制通道锁死,只继续发 push
|
||||
- **可能**需要**断电重启**才能恢复
|
||||
|
||||
**避坑建议**:
|
||||
1. 探测时**严格限速** (例如每秒 ≤5 条)
|
||||
2. 客户端**实现 Q/R 配对** (见 `/tmp/radio_client_v3.py`),设备再"忙"也能识别"无真响应" → 返回 timeout 而不是错报
|
||||
3. manet-54 当前的 `recvfrom` 朴素实现**有静默错报风险**,建议加 Q/R 配对
|
||||
|
||||
## 11. 验证方法 (设备恢复后)
|
||||
|
||||
设备恢复后,用 `/tmp/radio_client_v3.py` (Q/R 配对 + push 过滤) 逐条验证:
|
||||
|
||||
```bash
|
||||
python3 /tmp/radio_client_v3.py \
|
||||
--host 172.16.16.16 --port 62450 \
|
||||
--queries 0x0020 0x0025 0x0046 0x0047 0x004A 0x004B 0x004C 0x004D \
|
||||
0x0141 0x0142 0x0143 0x0144 0x0145 \
|
||||
0x0202 0x0203 0x0209 0x021E 0x0240 \
|
||||
--interval 2.0
|
||||
```
|
||||
|
||||
预期: 每条查询都在 <1ms 拿到响应 (Q+0x40)。验证完把本文档 `[未验证]` 标记替换为实测值。
|
||||
|
||||
## 12. 已知待办
|
||||
|
||||
- [ ] 设备断电重启后,逐条验证 §3 / §4 / §5 的 cmd
|
||||
- [ ] 0x0144 的 16×u16 BE 含义 (RSSI 表? 节点距离表?)
|
||||
- [ ] 0x004B 跳频表 — 6 槽位 vs 5 槽位的实际结构
|
||||
- [ ] NACK 规则 `0x02A0 | (Q_cmd & 0x0001)` 是否 comm_type 也影响
|
||||
- [ ] manet-54 加 Q/R 配对修复静默错报
|
||||
- [ ] 写 `port_28006_telemetry.md` 单独记录 28006 协议
|
||||
- [ ] 0x1402 push 7 字节 payload 的字段含义 (持续是 `01 00 00 00 00 00 00`,可能是链路状态)
|
||||
- [ ] 0x0347 push 24 字节 payload (内容会变) 是什么
|
||||
|
||||
---
|
||||
|
||||
## 13. 关键发现: 0x0310 不是查询命令 (2026-06-03 二次探测)
|
||||
|
||||
**2026-06-03 实测结论** — 0x0310 (以及同批的 0x02AF, 0x0332~0x0334, 0x0347, 0x1402) **不是 Q/R 配对的查询命令**,而是**写入触发器**:
|
||||
|
||||
| Q cmd | 触发效果 | 实际响应 |
|
||||
|------|---------|---------|
|
||||
| 0x0310 | 设备以 1Hz 持续推 0x0310 push | **无 R 响应**,payload 始终是 `00 00` (节点数=0) |
|
||||
| 0x0332 | 设备以 1Hz 持续推 0x0332 push | **无 R 响应**,payload 始终是 `00 00` |
|
||||
| 0x0333 | 设备以 1Hz 持续推 0x0333 push | **无 R 响应**,payload 长度 0 |
|
||||
| 0x0334 | 设备以 1Hz 持续推 0x0334 push | **无 R 响应**,payload 始终是 `00 00` |
|
||||
| 0x0347 | 设备以 1Hz 持续推 0x0347 push | **无 R 响应**,24B payload 24 字节全 0 |
|
||||
| 0x02AF | 设备以 1Hz 持续推 0x02AF push | **无 R 响应**,payload 是订阅状态 `01 01 00 40 00 11` |
|
||||
| 0x1402 | 设备以 1Hz 持续推 0x1402 push (~4Hz) | **无 R 响应**,payload 始终是 `01 00 00 00 00 00 00` |
|
||||
|
||||
**实验方法** (12 秒抓包,直接 UDP socket `bind 62450`):
|
||||
|
||||
1. **baseline 阶段 (1.0s)**: 不发任何查询,只抓包,统计 1Hz 推送频率
|
||||
2. **Q 阶段 (3.0s)**: 发一个 0x0310 Q 帧 `[1,0,0,3,16,0,0]`,继续抓包
|
||||
3. **对比**: 0x0310 push 的内容、长度、payload 在两阶段**完全一致**
|
||||
|
||||
**实测证据** (1Hz 推送 0x0310 内容):
|
||||
```
|
||||
t= 0.54s 9B 01 00 00 03 10 00 02 00 00 ← 1Hz 推送 (baseline)
|
||||
t= 0.70s 9B 01 00 00 03 10 00 02 00 00 ← 1Hz 推送 (Q 触发后,内容相同)
|
||||
t= 1.54s 9B 01 00 00 03 10 00 02 00 00
|
||||
...
|
||||
```
|
||||
|
||||
**Q 触发的"伪响应"现象** (注意: 不是真响应,只是 push burst):
|
||||
- baseline 1s: 收到 1 个 0x0310 push (= 1Hz)
|
||||
- Q 触发后 3s: 收到 29 个 push 包 (其中 0x0310 还是 3 个,正常 1Hz)
|
||||
- 多出的 26 个是 0x02AF/0x0332/0x0333/0x0334/0x0347/0x1402 的 **push 频率临时飙升** (~10/s) 又回落
|
||||
|
||||
**Q 触发设备 burst 的具体观察** (1Hz 推送 0x1402 内容):
|
||||
- baseline 1s: 1 个 0x1402
|
||||
- Q 触发后 3s: 11 个 0x1402 (~4Hz,远高于 1Hz)
|
||||
- 触发持续约 1-2 秒,然后回落回 1Hz
|
||||
|
||||
**实际含义**:
|
||||
|
||||
1. **0x0310 是 push-only**: 设备每 1s 主动 push 自组网拓扑,2B payload 是节点数 (本机 0 节点 → 全 0)
|
||||
2. **0x02AF 是订阅触发器**: payload `01 01 00 40 00 11` 看起来是 bitmask (开启推送的子集 + 频率 0x40 + 配置 0x11),但它**不响应查询**,只**回显自己的状态**
|
||||
3. **0x0332/0x0333/0x0334 是 0x03xx 的 3 个子 push** (可能是子表 0/1/2)
|
||||
4. **0x1402 是 ~4Hz 状态 push** (7B payload 一直不变 → "链路状态=正常"指示)
|
||||
5. **0x0347 是状态 push, 24B 槽位** (节点状态位图?,目前全 0)
|
||||
|
||||
**controller 修复建议** (manet-54/controller/main.py):
|
||||
|
||||
```python
|
||||
# 当前 EXPECTED_RID 把 0x0310 映射为 0x0350,但设备永远不发 0x0350
|
||||
# → 修复:把 0x0310 标记为 PUSH_ONLY,根本不要等 R
|
||||
PUSH_ONLY_CMDS = frozenset({0x02AF, 0x0310, 0x0332, 0x0333, 0x0334, 0x0347, 0x1402})
|
||||
|
||||
# 在 _send_udp_async 里:
|
||||
# if cmd_q in PUSH_ONLY_CMDS:
|
||||
# # 不等 R,直接 sleep 1.5s 抓一次 baseline push,返回给前端
|
||||
# ...
|
||||
```
|
||||
|
||||
**给上层应用的影响**:
|
||||
|
||||
- 自组网拓扑**只能被动订阅** 0x0310 push,不能主动拉
|
||||
- 节点数变化时 (新节点加入) **payload 才会变**,目前是 0
|
||||
- 等待多节点组网时,这里的 payload 会从 `00 00` 变成 `00 NN` (NN = 邻居数) 然后逐个列出每个邻居的 MAC 状态
|
||||
- 当前单节点情况下,**永远看不到拓扑数据**
|
||||
|
||||
---
|
||||
|
||||
## 14. Push 字段含义 (持续观察)
|
||||
|
||||
| cmd | length | payload 例子 | 含义推测 |
|
||||
|-----|--------|------------|---------|
|
||||
| 0x02AF | 6B | `01 01 00 40 00 11` | 订阅状态回显 (bitmask) |
|
||||
| 0x0310 | 2B | `00 00` | 自组网节点数 (本机 0) |
|
||||
| 0x0332 | 2B | `00 00` | 状态子表 #1 (全 0) |
|
||||
| 0x0333 | 0B | (空) | 状态子表 #2 (空) |
|
||||
| 0x0334 | 2B | `00 00` | 状态子表 #3 (全 0) |
|
||||
| 0x0347 | 24B | 24 字节全 0 | 状态位图 (无状态) |
|
||||
| 0x1402 | 7B | `01 00 00 00 00 00 00` | 链路状态指示 (bit 0 = 通) |
|
||||
|
||||
**多节点组网后这些字段会变** (需要第二节点接入后再次探测)。
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
# 会话日志: 2026-06-03 PUSH_ONLY_CMDS 二次探测
|
||||
|
||||
> 本文件记录 2026-06-03 一次会话的全部工作内容,供未来回溯。
|
||||
> 工作范围: 反向工程 XC7020 HG 电台设备 (172.16.16.16:62450, api_54 协议) 的 7 个 PUSH_CMDS。
|
||||
|
||||
---
|
||||
|
||||
## 会话起点
|
||||
|
||||
用户在前一会话已经做了大量反向工程 (见 [[REVERSE_ENGINEERING_FINDINGS]] 与 [[api_54_discovered]]),本次会话**唯一未完成的问题**:
|
||||
> "是的" (yes) — 确认要 decode 0x0310 topology 响应格式
|
||||
|
||||
用户曾在前一会话多次尝试发 0x0310 Q 但都超时,怀疑是协议细节没找对。
|
||||
|
||||
---
|
||||
|
||||
## 关键约束 (本会话全程遵守)
|
||||
|
||||
1. **不修改设备内部任何东西** (用户明确说"不要改变设备内部任何东西")
|
||||
2. 所有操作 read-only: 仅发送 UDP 查询、抓包、不写文件到设备、不 telnet 改配置
|
||||
3. 工作目录严格限定在 `/home/binnary/adhoc/`
|
||||
|
||||
---
|
||||
|
||||
## 工作流程 (按时间顺序)
|
||||
|
||||
### 1. 验证 frame header 格式
|
||||
|
||||
前一会话曾怀疑 frame header 是 6 字节 vs 7 字节,本次会话:
|
||||
- 打开 `manet-54/controller/main.py` 检查 `_build_mock_reply`
|
||||
- 确认: 7 字节 = `comm_type(1B) + reserved(2B) + cmd_id(2B BE) + length(2B BE) + payload`
|
||||
- 修正 0x0310 Q 帧为 `[1, 0, 0, 0x03, 0x10, 0x00, 0x00]` (comm=1, reserved=00 00, cmd=0x0310, len=0)
|
||||
|
||||
### 2. 重启 controller (旧 PID 2241857 → 新 PID 2311798)
|
||||
|
||||
原因: 旧 controller 在前一会话使用了 stale `EXPECTED_RID` 映射表。
|
||||
- 杀掉 2241859
|
||||
- `cd /home/binnary/adhoc/manet-54/controller && nohup /home/binnary/miniforge3/bin/python3 main.py > /tmp/controller.log 2>&1 &`
|
||||
- `curl http://localhost:8000/api/health` → `{"ok":true}`
|
||||
|
||||
### 3. 实测确认设备"打瘫"状态 (重要!)
|
||||
|
||||
设备在更早的暴力扫描 (扫 0x0000~0x02FF) 后**没有恢复**。本次会话:
|
||||
- 5s 抓 28009 端口 push: 2 个 (0.4/s,看似正常)
|
||||
- 发单个 0x0310 Q: timeout "30 个 push 包, 设备可能繁忙"
|
||||
- 28009 端口 5s 抓包: 52 个 push (10.4/s) → **设备仍在 burst 模式**
|
||||
- 等 2 分钟, push 仍 10.4/s → **设备死锁确认,需要断电重启**
|
||||
- 真实 Q/R 查询 (0x0001~0x0240) 也全部 timeout → 控制通道死锁
|
||||
|
||||
### 4. 关键实验: 直接 socket 抓包看 Q 触发后的真实行为
|
||||
|
||||
绕过 controller,直接用 `socket.bind(62450)` + `sendto` 抓所有从设备回 62450 的包。
|
||||
|
||||
**实验 1**: baseline 1.5s + 发 0x0310 Q + 抓 5s
|
||||
- baseline 1.5s 收到 2 个 0x0310 (= 1Hz)
|
||||
- Q 后 5s 共 25 个 0x03xx 包,3 个 0x0310 (内容恒为 `00 00`,长度恒为 9B)
|
||||
- **0x0310 push 内容字节级与 baseline 相同**
|
||||
|
||||
**实验 2**: 7 个 PUSH_CMDS 逐个测 Q
|
||||
- 0x0310 / 0x0332 / 0x0333 / 0x0334 / 0x0347 / 0x02AF: baseline 1Hz, Q 后 3s 内容**完全相同**
|
||||
- 0x1402: baseline 1Hz, Q 后 3s 共 11 个 (~4Hz), 内容**完全相同**
|
||||
|
||||
**结论**:
|
||||
- 这 7 个 PUSH_CMDS 是**触发器**,Q 后**只 burst push 不发 R**
|
||||
- 内容在 Q 前后不变 → 设备不"准备"新数据,只是加速推送现有数据
|
||||
- 0x1402 的 burst 频率比其他高 (~4Hz vs 1Hz),说明它本身就是高频 push
|
||||
|
||||
### 5. 修改 controller 支持 PUSH_ONLY 模式
|
||||
|
||||
`manet-54/controller/main.py` 改动:
|
||||
|
||||
1. 新增 `PUSH_ONLY_CMDS = frozenset(PUSH_CMDS)` 集合
|
||||
2. `/api/radio/raw` 端点检测到 PUSH_ONLY_CMDS 时:
|
||||
- 走更短的超时窗口 (2.5s 而不是 5s)
|
||||
- 抓 push 当响应返回,前端能看到 `{"reply": [...], "push_only": true, "cmd_q": "0x0310"}`
|
||||
3. `_send_udp_async` 在 PUSH_ONLY 模式下,recv 循环里直接返回对应 cmd 的 push (而不是继续等 R)
|
||||
|
||||
### 6. 验证修复
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:8000/api/radio/raw \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"frame":[1,0,0,3,16,0,0]}'
|
||||
```
|
||||
返回:
|
||||
```json
|
||||
{"reply":[1,0,0,3,16,0,2,0,0],"push_only":true,"cmd_q":"0x0310"}
|
||||
```
|
||||
|
||||
✅ 不再 timeout,前端能看到 `0x0310` 的 push 数据 (`payload: 00 00` = 节点数 0)。
|
||||
|
||||
---
|
||||
|
||||
## 产出文件
|
||||
|
||||
| 文件 | 类型 | 内容 |
|
||||
|------|------|------|
|
||||
| `manet-54/docs/api_54_discovered.md` | 修改 | 新增 §13 "0x0310 不是查询命令" + §14 "Push 字段含义" |
|
||||
| `manet-54/docs/REVERSE_ENGINEERING_FINDINGS.md` | 修改 | §4 表格加 push-only 注释 + 新增 §4.5 详细解释 + §4.4 加 PUSH_ONLY_CMDS 实现项 |
|
||||
| `manet-54/controller/main.py` | 修改 | 新增 PUSH_ONLY_CMDS 集合 + 端点分支 + _send_udp_async 优化 |
|
||||
|
||||
**Commit**: `1652ede docs+fix: 标记 PUSH_CMDS 7 个 cmd 为 push-only,不响应 R`
|
||||
|
||||
---
|
||||
|
||||
## 关键发现 (供未来会话直接引用)
|
||||
|
||||
### 0x0310 自组网拓扑 = push-only 1Hz
|
||||
|
||||
- **不能主动查询**,只能被动接收
|
||||
- payload 2 字节, 第 0 字节 = 节点数 (本机 0 → 全 0)
|
||||
- 单节点情况下永远 `00 00`,**等双节点组网时 payload 才会变**
|
||||
- 想"查询拓扑"应该让前端持续订阅 28009 端口的 0x0310 push,而不是发 Q
|
||||
|
||||
### 7 个 PUSH_ONLY_CMDS 完整列表
|
||||
|
||||
| cmd | payload 长度 | 含义推测 |
|
||||
|-----|-------------|---------|
|
||||
| 0x02AF | 6B | 订阅状态回显 (bitmask) |
|
||||
| 0x0310 | 2B | 自组网节点数 (本机 0) |
|
||||
| 0x0332 | 2B | 子状态 #1 (全 0) |
|
||||
| 0x0333 | 0B | 子状态 #2 (空) |
|
||||
| 0x0334 | 2B | 子状态 #3 (全 0) |
|
||||
| 0x0347 | 24B | 状态位图 (全 0) |
|
||||
| 0x1402 | 7B | 链路状态 (4Hz, 恒定 `01 00 00 00 00 00 00`) |
|
||||
|
||||
### 设备当前状态 (截止 2026-06-03 15:00)
|
||||
|
||||
⚠️ **设备被前一会话暴力扫描打瘫**, push 频率持续 10/s (正常 0.33/s) 至少 2 分钟未恢复。
|
||||
- 控制通道 (62450 Q/R) 完全停摆
|
||||
- push 通道 (62450 1Hz burst, 28006, 28008) 还在跑
|
||||
- **需要物理断电重启设备才能恢复 Q/R 探测能力**
|
||||
- 用户的 read-only 约束: **不能 telnet 改配置,只能等用户物理重启**
|
||||
|
||||
---
|
||||
|
||||
## 排查思路备忘 (未来类似问题)
|
||||
|
||||
如果未来又出现"0x0310 这类 Q 一直 timeout":
|
||||
|
||||
1. **先看 push 频率** (5s 抓 62450 端口包数, 1Hz 正常, 10/s 表示 burst 模式 = 设备忙)
|
||||
2. **对比 Q 前后 push payload**: 字节级一致 = push-only, 不一致 = 真有 R 漏了
|
||||
3. **不要套 Q+0x40 规则**: PUSH_ONLY_CMDS 不会发 R
|
||||
4. **前端 UI 应该订阅 WebSocket** 而不是轮询 Q
|
||||
5. **恢复策略**: 暴力扫描后等 5+ 分钟, 不行就只能断电重启
|
||||
|
||||
---
|
||||
|
||||
## 设备关键参考信息 (本会话未变, 仅引用)
|
||||
|
||||
- IP: 172.16.16.16 (管理面 mi4)
|
||||
- 端口: UDP 62450 (api_54) / 28006/28007 (硬件状态 push) / 28008/28009 (业务事件 push) / TCP 23 (telnet root/root)
|
||||
- 设备源端口: 固定 51628
|
||||
- MAC: 10:12:07:50:00:31 → 派生 MANET IP 192.0.x.y
|
||||
- 配置文件: `/apps/rcs_netlink_app/config/` (24 个文件)
|
||||
- 进程: `rcs_netlink_app` (PID 2, 91.6MB, 跑 api_54 控制平面)
|
||||
|
||||
---
|
||||
|
||||
## 相关文件
|
||||
|
||||
- [[REVERSE_ENGINEERING_FINDINGS]] — 反向工程主汇总
|
||||
- [[api_54_discovered]] — api_54 协议详解 (本会话在 §13/§14 加了内容)
|
||||
- [[second_node_setup]] — 双节点接入计划
|
||||
- [[port_28006_telemetry]] — 28006 端口硬件状态 push
|
||||
- [[port_28008_business]] — 28008 端口业务事件 push
|
||||
- `manet-54/controller/main.py` — 修复后的 controller (含 PUSH_ONLY_CMDS 分支)
|
||||
- `manet-54/scripts/scan_mainctl_dispatch.py` — libmainCtl.so 反汇编扫描器
|
||||
|
||||
---
|
||||
|
||||
## 致未来会话
|
||||
|
||||
如果你看到这份日志:
|
||||
|
||||
1. **设备已死锁**,第一步应该是问用户是否已经断电重启过设备
|
||||
2. 重启后**不要**再跑暴力扫描 (`for cmd in 0x0000..0x02FF: sendto` 这种) — 会再次打瘫
|
||||
3. 探测每个 cmd_id 时**严格限速** ≤5 cmd/s,加 backoff
|
||||
4. 新设备恢复后,需要逐条重新验证 §13 的"0x0310 push-only" 结论 (虽然证据充分但最好二次确认)
|
||||
5. 0x1402 的 4Hz 频率**不是 burst 引起的**,它本身就是 4Hz,需要单独研究
|
||||
6. 0x0333 的空 payload 也奇怪 — 0 字节是什么意思?为什么 1Hz 推一个空包?
|
||||
|
||||
---
|
||||
|
||||
> 生成时间: 2026-06-03 15:30
|
||||
> 工具链: Python 3 (miniforge3) + socket + struct
|
||||
> 状态: 设备仍处打瘫状态, 等待用户物理断电重启
|
||||
@@ -0,0 +1,206 @@
|
||||
# 会话日志: 2026-06-04 网络拓扑图实施 + 当前状态快照
|
||||
|
||||
> 本文件同时充当**会话快照**, 供未来会话冷启动直接接手。
|
||||
> 与 session_log_2026-06-03_push_only.md 配套使用。
|
||||
|
||||
---
|
||||
|
||||
## 1. 当前状态快照 (2026-06-04)
|
||||
|
||||
### 工作目录
|
||||
- 主工程: `/home/binnary/adhoc/`
|
||||
- 关键子项目: `manet-54/` (电台控制), `manet-30ns3/` (NS-3 仿真)
|
||||
- 控制器: `/home/binnary/adhoc/manet-54/controller/` (主入口 `main.py`)
|
||||
- 前端源码: `/home/binnary/adhoc/manet-54/web-manager/src/`
|
||||
|
||||
### 进程状态
|
||||
- **manet-54 controller**: **运行中** (PID 见 `ps aux | grep main.py`)
|
||||
- 启动命令: `cd /home/binnary/adhoc/manet-54/controller && nohup /home/binnary/miniforge3/bin/python3 main.py > /tmp/controller.log 2>&1 &`
|
||||
- 健康检查: `curl -s -m 3 http://localhost:8000/api/health` → 200 + push_stream 快照
|
||||
- PushStream 状态: bind 62450 成功, 持续收设备 push, 0 errors (累计 ~1500+ 包)
|
||||
|
||||
### 设备状态
|
||||
- **172.16.16.16 电台**: 仍处于 **burst 死锁** 状态
|
||||
- Push 频率 10/s (正常 0.33/s), Q/R 控制通道不响应
|
||||
- 需**用户物理断电重启**才能恢复
|
||||
- 单节点, 无 MANET 邻居 (0x0310 payload 恒为 `00 00`)
|
||||
|
||||
### Git 状态
|
||||
- 最新 commit: `64d95a6 feat: 网络拓扑 Tab + SSE push 订阅`
|
||||
- 上一 commit: `1652ede docs+fix: 标记 PUSH_CMDS 7 个 cmd 为 push-only`
|
||||
- 工作区未提交: 大量 manet-30ns3 改动 (RadioDeviceControl.tsx, sim_snapshot.json 等) + 缺失的 dist 资产
|
||||
|
||||
### 关键文件
|
||||
| 路径 | 用途 |
|
||||
|------|------|
|
||||
| `manet-54/controller/push_stream.py` | 持久 UDP 62450 监听 |
|
||||
| `manet-54/controller/sse_routes.py` | `GET /api/radio/stream?cmd=N` |
|
||||
| `manet-54/controller/main.py` | FastAPI 入口, lifespan 启 push_stream |
|
||||
| `manet-54/web-manager/src/hooks/useRadioStream.ts` | EventSource 订阅 hook |
|
||||
| `manet-54/web-manager/src/lib/topologyParser.ts` | 2B 节点数 + 5B 链路双格式解析 |
|
||||
| `manet-54/web-manager/src/sections/TopologyView.tsx` | 辐射布局 SVG |
|
||||
| `manet-54/web-manager/src/sections/RadioDeviceControl.tsx` | 主 UI, 4 Tab |
|
||||
| `manet-54/docs/session_log_2026-06-03_push_only.md` | 上次会话日志 |
|
||||
| `manet-54/docs/session_log_2026-06-04_topology.md` | 本文件 |
|
||||
| `manet-54/docs/api_54_discovered.md` | api_54 协议 (有 §13/§14 PUSH_ONLY 结论) |
|
||||
| `manet-54/docs/REVERSE_ENGINEERING_FINDINGS.md` | RE 汇总 (有 §4.5) |
|
||||
| `manet-54/docs/second_node_setup.md` | 双节点接入计划 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 本次会话工作 (2026-06-04)
|
||||
|
||||
### 起点
|
||||
用户说: "manet-54 前端页面要根据反馈的信息显示网络节点拓扑图"
|
||||
基于上次会话发现的 "0x0310 是 push-only 1Hz" 结论 (api_54_discovered.md §13), 加可视化。
|
||||
|
||||
### 决策 (4 个, 经 AskUserQuestion 确认)
|
||||
1. **Push 推送机制**: 加 SSE 后端 (vs 前端 1Hz 轮询 / WebSocket)
|
||||
2. **渲染**: 手写 SVG 零依赖 (vs 装 @xyflow/react)
|
||||
3. **布局**: 辐射 (本机中心) (vs 力导向 / 表格)
|
||||
4. **Payload 解析**: 同时尝试 2B 节点数 + 5B 链路 (实测 + 推测)
|
||||
|
||||
### 实施 (5 新 + 3 改)
|
||||
- **push_stream.py** (80 行): 单例 bind 62450, 持续 recv, 按 cmd_id 维护 latest deque(maxlen=1) + 订阅队列
|
||||
- **sse_routes.py** (50 行): `StreamingResponse` 推 text/event-stream, 15s 心跳
|
||||
- **main.py 修改**: 加 lifespan 启动 push_stream; `_send_udp_async` 删 `sock.bind(62450)` (改 ephemeral 源端口); PUSH_ONLY_CMDS 从 `push_stream.get_latest` 拿; `/api/health` 加 push_stream 快照
|
||||
- **useRadioStream.ts**: React hook, 订阅 EventSource, 维护 latest + 30 条 history + status
|
||||
- **topologyParser.ts**: 同时 try 2B 节点数 (实测量) + 5B 链路 (推测), 返回 ParseResult { nodes, format, warnings }
|
||||
- **TopologyView.tsx**: 辐射布局 SVG, 三种状态 (empty / single / multi), 设计 token 对齐 (primary/warning/destructive), 自带 legend
|
||||
- **RadioDeviceControl.tsx**: 新第 4 Tab "网络拓扑", 4 个 stat card (SSE 状态/节点数/解析格式/最近收到), 错误提示横幅, 可展开的 push 历史表格, 手动重连按钮; 修正 0x0310 错误注释 (原来误称 "5B/链路")
|
||||
|
||||
### 验证
|
||||
- controller 启动 0 错误
|
||||
- `curl /api/radio/stream?cmd=784` 返回 `event:push + hex` 正常
|
||||
- 0x0310 Q 现在从缓存秒回, **不触发设备 burst** (关键!)
|
||||
- 0x0001 普通 Q 仍 timeout (设备死锁导致, 不是代码问题)
|
||||
- `npm run build` 通过, 0 TS 错误, radio bundle 59.7KB
|
||||
|
||||
---
|
||||
|
||||
## 3. 端口冲突修复 (重要!)
|
||||
|
||||
### 问题
|
||||
原 `_send_udp_async` 每次都 `sock.bind(62450)`, **与持久 PushStream 抢端口**, 不能共存。
|
||||
|
||||
### 解法
|
||||
- PushStream **独占 62450** 收 push
|
||||
- `_send_udp_async` **不 bind**, 用 ephemeral 源端口发 Q
|
||||
- 真响应回 62450, 由 PushStream 顺便捕获
|
||||
- Q 路径的 `_send_udp_async` 通过 `push_stream.get_latest(cmd_q)` 间接读真响应
|
||||
|
||||
### 副作用
|
||||
- 普通 Q (0x0001) 现在**不能**走自己的 socket 收 R, 必须靠 PushStream 命中
|
||||
- 实测: 设备死锁时 0x0001 仍 timeout, 符合预期 (设备不响应, PushStream 缓存也没有 R)
|
||||
- 设备恢复后应该正常工作 (PushStream 一定能收到 R, 因为它独占 62450)
|
||||
|
||||
---
|
||||
|
||||
## 4. 已知遗留问题
|
||||
|
||||
### A. 设备死锁 (核心)
|
||||
- 状态: burst 10/s, Q/R 不响应
|
||||
- 恢复条件: **用户物理断电重启**
|
||||
- 用户已告知, 等待
|
||||
|
||||
### B. 多节点 payload 格式未验证
|
||||
- 实测只看到 2B 节点数 (单节点)
|
||||
- 多节点格式**推测**为 5B/链路, 但**未实测**
|
||||
- 解析器现在双格式, 显示 warnings, 等真有多节点时再确认
|
||||
|
||||
### C. 工作区未提交改动
|
||||
- manet-30ns3 多个文件 (RadioDeviceControl.tsx, sim_snapshot.json, 缺失 dist 等) 未提交
|
||||
- 用户已明确"只 commit 这次新增的", 暂不动
|
||||
|
||||
### D. SSE 浏览器重连
|
||||
- `EventSource` 默认 3s 重连, 服务端发 `retry: 3000` 头
|
||||
- 实测可能因代理超时断流, "手动重连"按钮兜底
|
||||
|
||||
---
|
||||
|
||||
## 5. 下次会话可以做的事
|
||||
|
||||
### 优先级 1: 验证 (需要设备恢复)
|
||||
1. 用户断电重启设备后, **第一件事**: 跑 `curl /api/health` 看 push_stream 计数是否正常 1Hz (而不是 10/s)
|
||||
2. 用浏览器打开 `http://localhost:8000/radio` 切到"网络拓扑" Tab
|
||||
3. 期望: SSE 已连接, 1Hz 收到 0x0310 push, SVG 显示 1 个本机节点
|
||||
4. **关键回归**: 测 `curl -X POST /api/radio/raw '{"frame":[1,0,0,0,1,0,0]}'` 应该 < 1ms 回 0x0081 (网络规模响应), 证明 PushStream 与普通 Q 共存无冲突
|
||||
|
||||
### 优先级 2: 多节点实测 (需要第二节点)
|
||||
- 接入第二台同型号 XC7020 HG, 同频同波 (wrj/1g4/zzw)
|
||||
- 0x0310 payload 从 `00 00` 变成实际节点数
|
||||
- 验证 `topologyParser.ts` 5B/链路 格式是否正确
|
||||
- 更新 `api_54_discovered.md §13` 加实测确认
|
||||
|
||||
### 优先级 3: 清理工作区
|
||||
- 决定 manet-30ns3 的未提交改动是否要 commit / 丢弃 / 重新拉取
|
||||
- 缺失的 dist 资产 (radio-DTkj39J7.js 已删) 需要 npm run build 重新生成
|
||||
|
||||
### 优先级 4: 增强拓扑图
|
||||
- 节点拖拽编辑 (参考 manet-30ns3 TopologyView)
|
||||
- 链路质量 / RSSI 历史曲线
|
||||
- 拓扑变更告警
|
||||
|
||||
---
|
||||
|
||||
## 6. 排查 cheat sheet
|
||||
|
||||
### 控制器不工作?
|
||||
```bash
|
||||
ps aux | grep main.py | grep -v grep # 看 PID
|
||||
cat /tmp/controller.log | tail -30 # 看日志
|
||||
curl -s -m 3 http://localhost:8000/api/health # 看 push_stream 状态
|
||||
```
|
||||
|
||||
### SSE 不出数据?
|
||||
```bash
|
||||
# 直连测 SSE
|
||||
curl -N -m 5 "http://localhost:8000/api/radio/stream?cmd=784"
|
||||
# 应该看到 "event: push\ndata: {...}\n\n" 重复
|
||||
# 15s 没数据会看到 ": keepalive\n\n" 心跳
|
||||
```
|
||||
|
||||
### push 频率不对?
|
||||
- 1Hz: 正常
|
||||
- 4Hz: 0x1402 本身高频, 正常
|
||||
- 10Hz: **设备死锁**, 需要用户断电重启
|
||||
- 0Hz: 设备 / 控制器 / 网络 三者之一有问题
|
||||
|
||||
### 端口冲突?
|
||||
```bash
|
||||
ss -ulnp | grep 62450
|
||||
# 应该看到 python3 进程独占 62450
|
||||
# 如果有 2 个进程都绑 62450, 就是有 bug
|
||||
```
|
||||
|
||||
### 设备恢复后 Q 仍 timeout?
|
||||
检查 `_send_udp_async` 是否:
|
||||
1. `sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)` — 应该有
|
||||
2. `sock.bind(...)` 应该是**没有**的 (PushStream 独占 62450)
|
||||
3. 应该靠 `push_stream.get_latest(cmd_q)` 拿真响应
|
||||
|
||||
---
|
||||
|
||||
## 7. 用户偏好 (memory 已有)
|
||||
|
||||
- 文档分析严格限定 cwd, 不跨工程翻文件 (feedback_scope_to_cwd)
|
||||
- bash cp/rm 是交互 alias, 静默操作要 `\cp` / `\rm` (project_bash_cp_rm_alias)
|
||||
- 服务绑定 Tailscale IP `100.100.100.3` (feedback_tailscale_binding)
|
||||
- 电台设备非文档化行为 (project_radio_device_quirks) — 源端口 51628, push-only cmds, 死锁需断电重启
|
||||
|
||||
---
|
||||
|
||||
## 致未来会话
|
||||
|
||||
1. **先看 `curl /api/health`** — 控制器是否运行, push_stream 是否在收数据
|
||||
2. **看 `/tmp/controller.log`** — 最近的 log
|
||||
3. **看 `manet-54/docs/api_54_discovered.md §13/§14`** — 0x0310 push-only 结论 + 7 个 cmd 含义
|
||||
4. **看本文件 §4 已知遗留问题** — 设备死锁等用户恢复
|
||||
5. **不要暴力扫描** — 会让设备再次死锁
|
||||
6. **改 Q/R 逻辑时记住** PushStream 独占 62450, 端口分离
|
||||
7. **5B/链路 格式未实测** — 解析器已经双格式兜底, 真正接入第二节点后才能验证
|
||||
|
||||
---
|
||||
|
||||
> 状态: 拓扑功能落地, 设备死锁中等待恢复
|
||||
> 下次验证: 用户断电重启设备后跑 §5 优先级 1
|
||||
@@ -0,0 +1,3 @@
|
||||
<!dist
|
||||
node_modules
|
||||
.env.local
|
||||
Loaded 100 of 130 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user